/* RABU 2.0 — category experience, product pages and account.
   All selectors are scoped to the RABU theme to avoid modifying unrelated plugins. */
body.rabu-atelier .rabu-category-drawer {width:min(500px,100%);z-index:114;display:flex;flex-direction:column;overflow:hidden;box-shadow:12px 0 45px #0002}
body.rabu-atelier .rabu-drawer-head {flex:0 0 65px;display:grid;grid-template-columns:36px 1fr 36px 36px;gap:8px;align-items:center;justify-content:normal;padding:0 16px;border-bottom:1px solid #e9e9e9}
body.rabu-atelier .rabu-drawer-head strong {font-family:Arial, sans-serif;font-weight:600;font-size:13px;letter-spacing:.09em;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.rabu-atelier .rabu-drawer-head button {width:36px;height:38px;border:0;background:transparent;display:grid;place-items:center;padding:0;color:#111}
body.rabu-atelier .rabu-drawer-back[hidden] {display:block!important;visibility:hidden}
body.rabu-atelier .rabu-drawer-search {display:flex;gap:8px;padding:12px 17px;border-bottom:1px solid #eee}
body.rabu-atelier .rabu-drawer-search[hidden] {display:none!important}
body.rabu-atelier .rabu-drawer-search input {flex:1;min-width:0;padding:10px 12px;font-size:14px;border:1px solid #ddd}
body.rabu-atelier .rabu-drawer-search button {width:42px;border:0;background:#111;color:white}
body.rabu-atelier .rabu-drawer-nav {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 0 20px}
body.rabu-atelier .rabu-cat-panel {margin:0;padding:0 0 18px}
body.rabu-atelier .rabu-cat-lead {font-size:11px;letter-spacing:.09em;color:#8a8a8a;padding:27px 20px 12px;text-transform:uppercase}
body.rabu-atelier .rabu-cat-lead-secondary {padding-top:32px}
body.rabu-atelier .rabu-category-row {width:100%;border:0;border-bottom:1px solid #efefef;background:#fff;text-align:left;display:grid;grid-template-columns:76px minmax(0,1fr) 24px;align-items:center;gap:15px;padding:9px 19px;min-height:96px;font-size:15px;font-weight:500;color:#121212;text-decoration:none;cursor:pointer}
body.rabu-atelier .rabu-category-row:focus-visible {outline:2px solid #151515;outline-offset:-3px}
body.rabu-atelier .rabu-category-row .rabu-icon {justify-self:end;color:#666}
body.rabu-atelier .rabu-category-row-image,body.rabu-atelier .rabu-category-row-placeholder {height:76px;width:76px;aspect-ratio:1;object-fit:cover;background:#efedea}
body.rabu-atelier .rabu-category-row-placeholder {display:grid;place-items:center;font:32px Georgia,serif;color:#b4afa7}
body.rabu-atelier .rabu-cat-special .rabu-category-row-placeholder {color:#151515;background:#f4f2ee}
body.rabu-atelier .rabu-cat-all {display:flex;gap:15px;justify-content:space-between;align-items:center;font-size:14px;padding:20px;border-bottom:1px solid #e5e5e5;font-weight:600;background:#fafafa}
body.rabu-atelier .rabu-cat-empty {color:#777;padding:20px;font-size:13px}
/* Desktop nested navigation: no duplicates, header occupies only one row. */
@media(min-width:851px){
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list li {position:relative}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list .sub-menu {position:absolute;top:100%;left:0;min-width:245px;padding:12px 0;background:#fff;border:1px solid #e9e9e9;box-shadow:0 12px 32px #00000012;z-index:70;display:none;list-style:none;margin:0}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list li:hover>.sub-menu,body.rabu-atelier .rabu-desktop-menu .rabu-menu-list li:focus-within>.sub-menu {display:block}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list .sub-menu li {width:100%}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list .sub-menu a {display:block;padding:12px 18px;font-size:12px;line-height:1.3;white-space:nowrap}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list .sub-menu .sub-menu {left:100%;top:0}
  body.rabu-atelier .rabu-desktop-menu .rabu-menu-list .sub-menu a:hover {background:#f8f8f8}
}
/* Browsable category chips and clean catalog controls. */
body.rabu-atelier .rabu-shop-category-chips {display:flex;gap:9px;overflow-x:auto;scrollbar-width:none;white-space:nowrap;padding:0 0 24px;margin:0 0 11px;max-width:100%}
body.rabu-atelier .rabu-shop-category-chips::-webkit-scrollbar {display:none}
body.rabu-atelier .rabu-shop-category-chips a {border:1px solid #e4e4e4;padding:10px 17px;font-size:12px;flex:0 0 auto;line-height:1.2;background:#fff}
body.rabu-atelier .rabu-shop-category-chips a:hover,body.rabu-atelier .rabu-shop-category-chips a.is-active {border-color:#111;color:#111}
body.rabu-atelier .rabu-product-photo {position:relative}
body.rabu-atelier .rabu-product-photo .rabu-product-photo-secondary {position:absolute;inset:0;opacity:0;transition:opacity .25s;object-fit:cover;width:100%;height:100%}
@media(hover:hover){body.rabu-atelier .rabu-product-photo:hover .rabu-product-photo-secondary{opacity:1}}
/* This wrapper is the single source of truth for the product page layout. */
body.rabu-atelier div.product.rabu-detail-product {display:block!important;width:100%;clear:both}
body.rabu-atelier .rabu-detail-layout {display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:clamp(28px,5vw,85px);align-items:start}
body.rabu-atelier .rabu-detail-gallery {min-width:0;position:relative}
body.rabu-atelier .rabu-detail-gallery .woocommerce-product-gallery,body.rabu-atelier .rabu-detail-gallery div.images {float:none!important;width:100%!important;max-width:100%;margin:0!important;position:relative}
body.rabu-atelier .rabu-detail-gallery .woocommerce-product-gallery__image img {max-width:100%;height:auto}
body.rabu-atelier .rabu-detail-gallery .flex-control-thumbs {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:10px!important}
body.rabu-atelier .rabu-detail-gallery .flex-control-thumbs li {float:none!important;width:100%!important}
body.rabu-atelier .rabu-detail-buy {min-width:0;padding:10px 0 0;position:sticky;top:28px}
body.rabu-atelier .rabu-detail-kicker {font-size:10px;letter-spacing:.16em;color:#888;margin-bottom:14px}
body.rabu-atelier .rabu-detail-buy .product_title {font-family:Arial,Helvetica,sans-serif;font-weight:500;line-height:1.33;font-size:clamp(22px,2.3vw,32px);letter-spacing:-.015em;margin:0 0 17px!important}
body.rabu-atelier .rabu-detail-buy p.price {font-size:24px!important;font-weight:600;margin-bottom:17px!important}
body.rabu-atelier .rabu-detail-buy .woocommerce-product-details__short-description {font-size:13px;line-height:1.7;color:#777;border-bottom:1px solid #e8e8e8;padding-bottom:12px}
body.rabu-atelier .rabu-detail-buy form.cart {margin-top:23px!important}
body.rabu-atelier .rabu-detail-buy form.cart .variations {border:0}
body.rabu-atelier .rabu-detail-buy form.cart .variations label {font-size:13px;font-weight:600}
body.rabu-atelier .rabu-detail-buy form.cart .variations select {height:50px;border:1px solid #ccc;padding:10px 12px;background:#fff}
body.rabu-atelier .rabu-detail-buy form.cart .single_add_to_cart_button {min-height:53px;font-size:13px!important;letter-spacing:.06em;text-transform:uppercase}
body.rabu-atelier .rabu-detail-buy .rabu-single-wishlist {margin:7px 0 17px}
body.rabu-atelier .rabu-detail-help {display:flex;flex-direction:column;gap:13px;padding:19px 0;border-top:1px solid #eee;border-bottom:1px solid #eee;font-size:12px}
body.rabu-atelier .rabu-detail-help>span,body.rabu-atelier .rabu-detail-help>a {display:flex;gap:10px;align-items:center}
body.rabu-atelier .rabu-detail-help>a {text-decoration:underline;text-underline-offset:3px}
body.rabu-atelier .rabu-detail-below {margin-top:50px}
body.rabu-atelier .rabu-detail-below .woocommerce-tabs {margin:0;padding:24px 0 0;border-top:1px solid #e7e7e7}
body.rabu-atelier .rabu-detail-below .related,body.rabu-atelier .rabu-detail-below .upsells {margin-top:63px}
body.rabu-atelier .rabu-mobile-buy-bar {display:none}
/* Account is a real WooCommerce dashboard, never a static blank placeholder. */
body.rabu-atelier .woocommerce-account .rabu-page-title,body.rabu-atelier.woocommerce-account .rabu-page-title {font-family:Arial,sans-serif;font-size:29px;letter-spacing:-.02em;font-weight:500}
body.rabu-atelier .woocommerce-MyAccount-navigation.rabu-account-navigation {float:left!important;width:24%!important;background:#fafafa;padding:8px 16px;box-sizing:border-box}
body.rabu-atelier .woocommerce-MyAccount-content {float:right!important;width:72%!important;box-sizing:border-box;min-height:270px}
body.rabu-atelier .rabu-account-navigation li {list-style:none;border-bottom:1px solid #e5e5e5}
body.rabu-atelier .rabu-account-navigation li:last-child {border-bottom:0}
body.rabu-atelier .rabu-account-navigation li a {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 6px!important;font-size:13px;color:#333}
body.rabu-atelier .rabu-account-navigation li.is-active a {font-weight:700}
body.rabu-atelier .rabu-account-welcome {padding:0 0 32px}
body.rabu-atelier .rabu-account-welcome h2 {font-family:Arial,sans-serif;font-size:27px!important;font-weight:500;margin:12px 0!important}
body.rabu-atelier .rabu-account-welcome p {font-size:13px;color:#777}
body.rabu-atelier .rabu-account-tiles {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.rabu-atelier .rabu-account-tiles>a {border:1px solid #e5e5e5;display:grid;grid-template-columns:1fr auto;gap:7px;padding:19px 20px;text-decoration:none}
body.rabu-atelier .rabu-account-tiles>a>span {grid-column:1/-1}
body.rabu-atelier .rabu-account-tiles>a strong {font-weight:600;font-size:14px;grid-column:1}
body.rabu-atelier .rabu-account-tiles>a small {font-size:12px;color:#777;grid-column:1}
body.rabu-atelier .rabu-account-tiles>a>.rabu-icon {grid-column:2;grid-row:2;align-self:center}
body.rabu-atelier .rabu-account-tiles>a:hover {border-color:#111}
body.rabu-atelier .woocommerce-form-login,body.rabu-atelier .woocommerce-form-register {border:1px solid #e8e8e8!important;padding:26px!important;max-width:610px}
body.rabu-atelier .woocommerce form.login .form-row,body.rabu-atelier .woocommerce form.register .form-row {padding:0;margin-bottom:17px}
body.rabu-atelier .woocommerce form.login label,body.rabu-atelier .woocommerce form.register label {font-size:12px;font-weight:600;margin-bottom:7px}
body.rabu-atelier .woocommerce .u-columns.col2-set {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:35px}
body.rabu-atelier .woocommerce .u-columns.col2-set::after {display:none}
body.rabu-atelier .woocommerce .u-columns.col2-set .col-1,body.rabu-atelier .woocommerce .u-columns.col2-set .col-2 {width:100%!important;float:none!important}
body.rabu-atelier .woocommerce-account .woocommerce-Address {border:1px solid #eee;padding:20px;margin-bottom:12px}
@media(max-width:850px){
  body.rabu-atelier .rabu-category-drawer {top:0;left:0;right:0;width:100%;max-width:none;bottom:calc(70px + env(safe-area-inset-bottom));box-shadow:none}
  body.rabu-atelier .rabu-drawer-head {grid-template-columns:36px 1fr 36px 36px}
  body.rabu-atelier .rabu-category-row {grid-template-columns:72px minmax(0,1fr) 24px;min-height:92px}
  body.rabu-atelier .rabu-category-row-image,body.rabu-atelier .rabu-category-row-placeholder {width:72px;height:72px}
  body.rabu-atelier .rabu-shop-category-chips {margin:2px -17px 15px;padding:0 17px 16px}
  body.rabu-atelier .rabu-detail-layout {display:flex;flex-direction:column;gap:20px}
  body.rabu-atelier .rabu-detail-gallery {width:100%}
  body.rabu-atelier .rabu-detail-gallery .woocommerce-product-gallery {margin:0!important}
  body.rabu-atelier .rabu-detail-buy {position:static;width:100%;padding:2px 0 0}
  body.rabu-atelier .rabu-detail-buy .product_title {font-size:23px}
  body.rabu-atelier .rabu-detail-buy p.price {font-size:21px!important}
  body.rabu-atelier .rabu-detail-below {margin-top:28px}
  body.rabu-atelier .rabu-mobile-buy-bar {position:fixed;left:0;right:0;bottom:calc(70px + env(safe-area-inset-bottom));z-index:108;background:#fff;border-top:1px solid #e7e7e7;box-shadow:0 -6px 20px #0000000b;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;transition:transform .15s,opacity .15s}
  body.rabu-atelier .rabu-mobile-buy-bar.rabu-buy-hidden {opacity:0;pointer-events:none;transform:translateY(110%)}
  body.rabu-atelier .rabu-mobile-buy-price {display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
  body.rabu-atelier .rabu-mobile-buy-price small {font-size:9px;letter-spacing:.08em;color:#888}
  body.rabu-atelier .rabu-mobile-buy-price strong {font-size:13px;line-height:1.3;white-space:nowrap}
  body.rabu-atelier .rabu-mobile-buy-bar button {flex:0 0 auto;max-width:64%;display:flex;align-items:center;gap:8px;justify-content:center;padding:13px 12px;font-size:11px;font-weight:600;color:white;background:#111;border:0}
  body.rabu-atelier .woocommerce-MyAccount-navigation.rabu-account-navigation,body.rabu-atelier .woocommerce-MyAccount-content {float:none!important;width:100%!important}
  body.rabu-atelier .rabu-account-navigation {padding:0!important;background:#fff!important;overflow:auto;margin-bottom:24px}
  body.rabu-atelier .rabu-account-navigation ul {display:flex;gap:15px;border-bottom:1px solid #e5e5e5;white-space:nowrap}
  body.rabu-atelier .rabu-account-navigation li {flex:0 0 auto}
  body.rabu-atelier .rabu-account-navigation li a {padding:12px 0!important}
  body.rabu-atelier .rabu-account-navigation li .rabu-icon {display:none}
  body.rabu-atelier .rabu-account-tiles {gap:9px}
  body.rabu-atelier .rabu-account-tiles>a {padding:16px 12px}
  body.rabu-atelier .rabu-account-tiles>a small {font-size:11px}
  body.rabu-atelier .woocommerce .u-columns.col2-set {grid-template-columns:1fr;gap:22px}
}
@media(max-width:390px){body.rabu-atelier .rabu-category-row{gap:10px;padding:8px 13px;font-size:14px}body.rabu-atelier .rabu-drawer-head {padding:0 10px}body.rabu-atelier .rabu-mobile-buy-bar button {font-size:10px}}

body.rabu-atelier.rabu-drawer-open {overflow:hidden;}
