/* Home cards and shared navigation retain their existing styling. */
#apsara-app[data-aa-view="home"] .aa-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}#apsara-app[data-aa-view="home"] .aa-category-card{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-content:start;gap:7px;padding:29px 8px 8px;background:#fff;border:1px solid #efeaf2;border-radius:14px;box-shadow:0 2px 7px #48205906;overflow:hidden}
#apsara-app[data-aa-view="home"] .aa-category-photo img{width:100%;height:108px;object-fit:contain;display:block}#apsara-app[data-aa-view="home"] .aa-category-details h3{font:650 11px/1.3 system-ui;margin:0 0 4px;overflow-wrap:anywhere}#apsara-app[data-aa-view="home"] .aa-category-details p{color:#8c8393;font:10px/1.35 system-ui;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#apsara-app[data-aa-view="home"] .aa-price{font-size:13px;line-height:1.35;display:flex;flex-wrap:wrap;gap:3px;margin:4px 0}#apsara-app[data-aa-view="home"] .aa-price del{font-size:9px;color:#a098a8}#apsara-app[data-aa-view="home"] .aa-card-points{font:9px/1.3 system-ui;background:#fff0ce;color:#906a27;border-radius:5px;padding:4px;display:inline-block}#apsara-app[data-aa-view="home"] .aa-rating{font-size:10px;color:#89788e}#apsara-app[data-aa-view="home"] .aa-offer-badge{position:absolute;top:8px;left:8px;font-size:9px;padding:3px 6px;background:#f8d991;color:#3c2930;border-radius:5px;margin:0}#apsara-app[data-aa-view="home"] .aa-heart{position:absolute;right:3px;top:0;width:40px;height:40px;background:transparent;border:0;padding:9px;z-index:1}#apsara-app[data-aa-view="home"] .aa-heart svg{width:20px;height:20px}
#apsara-app[data-aa-view="home"] [data-cart-control],#apsara-app[data-aa-view="home"] .aa-category-card>.aa-add{grid-column:1/-1;margin-top:2px}#apsara-app[data-aa-view="home"] .aa-add{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:40px;background:linear-gradient(110deg,#633174,#391047);border-radius:9px;font-size:12px;padding:6px;color:white}#apsara-app[data-aa-view="home"] .aa-quantity{display:flex;justify-content:space-between;align-items:center;background:#f5eef9;border-radius:20px;width:100%;font-size:13px}#apsara-app[data-aa-view="home"] .aa-quantity button{min-width:40px;min-height:40px;background:none;font-size:21px;padding:0}
body nav.aa-customer-nav.aa-bottom{background:linear-gradient(110deg,#371043,#542366);border-radius:48% 48% 0 0 / 28px 28px 0 0;color:#d5bedf;border:0;padding:14px 8px calc(12px + env(safe-area-inset-bottom));min-height:84px;overflow:visible}body nav.aa-customer-nav.aa-bottom>a{color:#c0a2cd;background:none!important;border-radius:0;font-size:10px;gap:5px}body nav.aa-customer-nav.aa-bottom>a[aria-current=page]{color:#fff}body nav.aa-customer-nav.aa-bottom .aa-nav-bag>.aa-svg{background:linear-gradient(140deg,#fff0b9,#e9bd51);color:#391446;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;margin-top:-34px;box-shadow:0 0 0 7px #76498944}body nav.aa-customer-nav.aa-bottom .aa-nav-bag .aa-count{top:-21px;background:#4c195c;color:#fff}
@media(min-width:700px){#apsara-app[data-aa-view="home"] .aa-category-card{padding:34px 16px 16px}#apsara-app[data-aa-view="home"] .aa-category-details h3{font-size:16px}#apsara-app[data-aa-view="home"] .aa-category-details p{font-size:13px}#apsara-app[data-aa-view="home"] .aa-category-photo img{height:180px}}

/* The catalogue owns one viewport: the rail and results scroll independently. */
#apsara-app .aa-browse-header{display:none}
#apsara-app .aa-browse-layout{min-width:0}
#apsara-app .aa-browse-heading{display:contents}
#apsara-app.aa-category-design{
 --aa-purple:#512347;--aa-text:#332633;--aa-line:#e9e0e6;--aa-muted:#81757e;
 --aa-browse-nav:calc(70px + env(safe-area-inset-bottom,0px));
 width:100%;max-width:1040px;height:calc(100vh - var(--aa-admin-space,0px));height:calc(100dvh - var(--aa-admin-space,0px));
 min-height:0!important;padding:0 0 var(--aa-browse-nav)!important;background:#faf7f1;color:var(--aa-text);overflow:hidden;
 display:flex;flex-direction:column;
}
#apsara-app.aa-category-design *{box-sizing:border-box;min-width:0}
#apsara-app.aa-category-design>.aa-header,#apsara-app.aa-category-design>.aa-location{display:none}
#apsara-app.aa-category-design .aa-browse-header{display:flex;align-items:center;gap:2px;flex:0 0 auto;padding:5px 4px;border-bottom:1px solid var(--aa-line);background:#faf7f1}
#apsara-app.aa-category-design .aa-browse-header .aa-icon{width:38px;min-width:38px;height:44px;min-height:44px;padding:9px;font-size:25px;color:var(--aa-purple)}
#apsara-app.aa-category-design .aa-pickup-label{flex:1;background:transparent;color:var(--aa-purple);text-align:left;padding:5px 0;white-space:nowrap;font:650 clamp(10px,3.1vw,13px)/1.3 system-ui;min-height:44px}
#apsara-app.aa-category-design .aa-count{background:#512347;color:#fff;top:0;right:0;min-width:17px;height:17px;font-size:10px;line-height:17px}
body.apsara-active #apsara-app.aa-category-design>.aa-content{display:flex;flex-direction:column;flex:1 1 0;min-height:0;padding:0;width:100%;overflow:hidden}
#apsara-app.aa-category-design .aa-search{flex:0 0 auto;margin:6px 8px;border-radius:12px;box-shadow:none;min-height:42px;background:#fffdfb}
#apsara-app.aa-category-design .aa-search input{min-height:42px;font-size:16px;padding:8px 0}
#apsara-app.aa-category-design .aa-browse-layout{display:grid;grid-template-columns:68px minmax(0,1fr);flex:1 1 0;min-height:0;overflow:hidden}
#apsara-app.aa-category-design .aa-category-rail{display:flex;flex-direction:column;gap:3px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-width:none;padding:5px 3px 12px;background:#f5f0f0;border-right:1px solid var(--aa-line);min-height:0}
#apsara-app.aa-category-design .aa-category-rail button{position:relative;flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:8px 2px;min-height:77px;border:1px solid transparent;border-radius:13px;background:transparent;color:#5d515d;font:500 10px/1.22 system-ui;overflow-wrap:anywhere;text-align:center}
#apsara-app.aa-category-design .aa-category-rail button[aria-pressed=true]{background:#ece0ed;border-color:#ddcfdf;color:#512347;font-weight:750}
#apsara-app.aa-category-design .aa-category-rail button[aria-pressed=true]:before{content:'';position:absolute;left:-4px;top:15px;bottom:15px;width:3px;border-radius:0 3px 3px 0;background:#512347}
#apsara-app.aa-category-design .aa-rail-image{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#eee6e9;font-size:27px;overflow:hidden;flex-shrink:0}
#apsara-app.aa-category-design .aa-rail-image img{display:block;width:39px;height:39px;object-fit:contain;border-radius:50%}
#apsara-app.aa-category-design .aa-category-rail button[aria-pressed=true] .aa-rail-image{background:#512347;color:#fff}
#apsara-app.aa-category-design .aa-products-section{overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:0 7px 14px;min-height:0;scrollbar-width:thin}
#apsara-app.aa-category-design .aa-section-title{display:flex;align-items:center;gap:6px;margin:8px 0}
#apsara-app.aa-category-design .aa-section-title h2{flex:1;font:700 14px/1.25 system-ui;margin:0;overflow-wrap:anywhere}
#apsara-app.aa-category-design .aa-section-title h2:before{display:none}
#apsara-app.aa-category-design [data-results]{font:10px/1.3 system-ui;text-align:right;flex-shrink:0;max-width:35%}
#apsara-app.aa-category-design .aa-subcategories{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;margin:0 0 8px;padding:1px 1px 4px;max-width:100%}
#apsara-app.aa-category-design .aa-subcategories button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;flex:0 0 62px;gap:5px;background:#f4eef2;border:1px solid transparent;border-radius:11px;padding:6px 3px;color:#594651;font:500 10px/1.2 system-ui;text-align:center;overflow-wrap:anywhere}
#apsara-app.aa-category-design .aa-subcategories button[aria-pressed=true]{border-color:#68465d;background:#eee4ee;color:#512347;font-weight:650}
#apsara-app.aa-category-design .aa-subcategory-image{display:grid;place-items:center;width:42px;height:42px;font-size:27px;flex-shrink:0}
#apsara-app.aa-category-design .aa-subcategory-image img{width:42px;height:42px;object-fit:contain}
#apsara-app.aa-category-design .aa-category-controls{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:0 0 8px;margin:0;max-width:100%;flex-wrap:nowrap}
#apsara-app.aa-category-design .aa-category-controls button{position:relative;flex:1 0 auto;min-height:36px;padding:6px 8px;font:600 10px/1.2 system-ui;border:1px solid #e9e0e4;border-radius:11px;background:#fffdfb;color:#4e3449;white-space:nowrap;box-shadow:0 2px 4px #37203d04}
#apsara-app.aa-category-design .aa-category-controls button[aria-pressed=true]{border-color:#8e7086;background:#eee4ee}
#apsara-app.aa-category-design [data-filter-count]{font-size:9px;background:#512347;color:white;border-radius:5px;padding:1px 3px}
#apsara-app.aa-category-design .aa-active-filters{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px;margin:0 0 8px;background:#eee5ef;border-radius:8px;padding:3px 7px}
#apsara-app.aa-category-design .aa-active-filters button{font-size:11px;min-height:30px;background:none;color:#512347;padding:3px}
#apsara-app.aa-category-design .aa-filter-open,#apsara-app.aa-category-design .aa-tools,#apsara-app.aa-category-design .aa-footer{display:none!important}
#apsara-app.aa-category-design .aa-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:stretch;margin:0}
#apsara-app.aa-category-design .aa-browse-card{display:flex;flex-direction:column;position:relative;gap:0;padding:5px 6px 7px;border:1px solid #ebe3e6;border-radius:13px;background:#fffdfa;box-shadow:0 2px 5px #392a3a04;overflow:hidden}
#apsara-app.aa-category-design .aa-browse-photo{display:block;flex-shrink:0;width:100%;height:clamp(92px,25vw,112px);aspect-ratio:auto;padding:4px 3px;margin:15px 0 3px}
#apsara-app.aa-category-design .aa-browse-photo img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
#apsara-app.aa-category-design .aa-browse-card h3{font:600 11px/1.35 system-ui;min-height:30px;margin:3px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;color:#332633}
#apsara-app.aa-category-design .aa-pack{font:10px/1.25 system-ui;color:#81757e;overflow-wrap:anywhere;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#apsara-app.aa-category-design .aa-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 5px;margin:1px 0 4px;min-height:18px;font:750 13px/1.3 system-ui;color:#332633;overflow-wrap:anywhere}
#apsara-app.aa-category-design .aa-price del{order:1;font:400 10px/1.3 system-ui;margin:0;color:#8e838b}
#apsara-app.aa-category-design .aa-price ins{order:0;text-decoration:none;background:transparent}
#apsara-app.aa-category-design .aa-price .woocommerce-price-suffix{font-size:9px;font-weight:400}
#apsara-app.aa-category-design .aa-discount{align-self:flex-start;font:650 9px/1.4 system-ui;color:#973a50;background:#fae9e8;border-radius:6px;padding:1px 5px;margin:0 0 4px}
#apsara-app.aa-category-design .aa-card-points{font:500 9px/1.3 system-ui;color:#8c733f;background:none;padding:0;margin:0 0 4px;display:block}
#apsara-app.aa-category-design .aa-stock{font:500 10px/1.3 system-ui;color:#8a555f;margin:0 0 5px}
#apsara-app.aa-category-design .aa-product-badge{position:absolute;top:6px;left:6px;max-width:calc(100% - 45px);background:#512347;color:#fff;border-radius:6px;padding:3px 5px;font:550 9px/1.1 system-ui;z-index:1}
#apsara-app.aa-category-design .aa-heart{position:absolute;top:0;right:0;width:36px;height:36px;min-height:36px;padding:9px;background:#fffdfad9;color:#746471}
#apsara-app.aa-category-design .aa-heart svg{width:18px;height:18px}
#apsara-app.aa-category-design .aa-heart[aria-pressed=true]{color:#bc3658}
#apsara-app.aa-category-design .aa-heart[aria-pressed=true] svg{fill:#bc3658}
#apsara-app.aa-category-design .aa-browse-cart,#apsara-app.aa-category-design .aa-browse-card>.aa-add{margin-top:auto;padding-top:4px}
#apsara-app.aa-category-design .aa-add{display:flex;align-items:center;justify-content:center;width:100%;min-height:34px;border-radius:9px;background:#512347;color:#fff;font:650 11px/1.2 system-ui;padding:8px 3px;gap:3px;text-align:center}
#apsara-app.aa-category-design .aa-browse-card>.aa-add{padding:8px 3px}
#apsara-app.aa-category-design .aa-quantity{display:flex;align-items:center;justify-content:space-between;gap:0;width:100%;border:1px solid #dfd1dd;border-radius:9px;background:#eee4ee;color:#512347;font:700 12px/1 system-ui;overflow:hidden}
#apsara-app.aa-category-design .aa-quantity button{width:32px;min-width:30px;height:34px;min-height:34px;padding:0;background:transparent;color:#512347;font:500 19px/1 system-ui}
#apsara-app.aa-category-design .aa-pagination{padding:14px 0 3px}
#apsara-app.aa-category-design .aa-pagination button{background:#eee4ee;color:#512347;font-size:11px;padding:10px 14px}
#apsara-app.aa-category-design .aa-empty{padding:24px 10px;background:#f1eaf0;font-size:12px}
#apsara-app.aa-category-design .aa-empty button{font-size:11px;padding:8px 10px}
#apsara-app.aa-category-design .aa-skeleton{padding:8px;border-radius:13px;background:#fffdfb;border:1px solid #ebe3e6;min-height:235px}
#apsara-app.aa-category-design .aa-skeleton i,#apsara-app.aa-category-design .aa-skeleton b,#apsara-app.aa-category-design .aa-skeleton span{display:block;background:#eee7eb;border-radius:7px;animation:aa-browse-pulse 1s ease-in-out infinite alternate}
#apsara-app.aa-category-design .aa-skeleton i{height:clamp(92px,25vw,112px);margin-bottom:12px}
#apsara-app.aa-category-design .aa-skeleton b{height:10px;margin-bottom:8px}
#apsara-app.aa-category-design .aa-skeleton span{height:30px;margin-top:14px}
@keyframes aa-browse-pulse{to{opacity:.4}}
#apsara-app.aa-category-design nav.aa-customer-nav.aa-bottom{height:var(--aa-browse-nav);min-height:0;padding:7px 2px calc(7px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8dfe6;border-radius:0;background:#fffdf9;color:#897c88;box-shadow:0 -3px 12px #452a4405}
#apsara-app.aa-category-design nav.aa-customer-nav.aa-bottom>a{font-size:10px;color:#8b7e89;gap:3px;padding:2px 0}
#apsara-app.aa-category-design nav.aa-customer-nav.aa-bottom>a[aria-current=page]{color:#512347;font-weight:750}
#apsara-app.aa-category-design .aa-nav-categories[aria-current=page] svg{fill:#512347}
#apsara-app.aa-category-design nav.aa-customer-nav .aa-count{top:0;right:calc(50% - 22px)}
#apsara-app.aa-category-design .aa-dialog{position:fixed;margin:auto auto 0;inset:auto 0 0;width:min(100%,520px);max-width:100%;max-height:85vh;max-height:85dvh;overflow:auto;border-radius:22px 22px 0 0;padding:30px 18px calc(22px + env(safe-area-inset-bottom));background:#fffdf9}
#apsara-app.aa-category-design .aa-dialog h2{font:700 21px/1.3 system-ui;color:#512347}
#apsara-app.aa-category-design .aa-sheet-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:12px;background:#f4edf3;border-radius:12px;margin:8px 0;color:#512347;font-size:14px}
#apsara-app.aa-category-design .aa-sheet-choice[aria-pressed=true]{background:#512347;color:#fff}
#apsara-app .aa-price-fields{display:flex;gap:12px;border:0;padding:0;margin:18px 0}
#apsara-app .aa-price-fields legend{font-size:13px;margin-bottom:8px}
#apsara-app .aa-price-fields label{display:block;flex:1;font-size:12px}
#apsara-app .aa-price-fields input,#apsara-app .aa-brand-field select{display:block;width:100%;border:1px solid #ddcedc;border-radius:10px;padding:11px 8px;background:white;font-size:16px;color:#512347;margin-top:6px}
#apsara-app .aa-brand-field{display:block;font-size:13px;margin:14px 0}
#apsara-app .aa-filter-error{font-size:12px;color:#a32649}
#apsara-app .aa-reset-filters{display:block;width:100%;background:transparent;color:#512347;text-decoration:underline;font-size:13px;margin-top:10px}
#apsara-app.aa-category-design .aa-dialog .aa-primary{background:#512347}
/* Preserve the existing Home AI slot; browsing uses the floating launcher. */
#apsara-app [data-category-ai]:not([hidden]){display:flex;align-items:center;justify-content:flex-end;flex:0 0 44px;width:44px;min-height:44px;margin:0}
#apsara-app [data-category-ai] .aai{position:static!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important}
#apsara-app [data-category-ai] .aai-launcher{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:6px!important}
#apsara-app .aa-products-section .aa-section-title:has([data-category-ai]:not([hidden])){flex-wrap:wrap;gap:8px}
#apsara-app.aa-category-design .aa-browse-heading{display:flex;align-items:center;gap:6px;margin:8px 0}
#apsara-app.aa-category-design .aa-browse-heading>.aa-section-title{flex:1;margin:0}
/* Keep the AI widget at its original footer location, outside the scrolling grid.
   The AI plugin measures the actual nav/safe-area height in --aai-bottom. */
body.aa-category-design-page #apsara-ai-root .aai-launcher{position:fixed!important;inset:auto!important;right:max(12px,calc((100vw - 1040px)/2 + 12px))!important;bottom:var(--aai-bottom,calc(82px + env(safe-area-inset-bottom,0px)))!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;margin:0!important;padding:7px!important;transform:none!important;background:#512347;box-shadow:0 3px 12px #51234726;z-index:1000}
body.aa-category-design-page #apsara-ai-root .aai-launcher svg{width:29px;height:29px;margin-top:-3px}
body.aa-category-design-page #apsara-ai-root .aai-launcher>span{right:0;bottom:5px;width:100%;text-align:center;font-size:8px;line-height:1}
body.aa-category-design-page:has(#apsara-ai-root) #apsara-app .aa-products-section{padding-bottom:76px}
@media(min-width:390px){#apsara-app.aa-category-design .aa-browse-layout{grid-template-columns:72px minmax(0,1fr)}#apsara-app.aa-category-design .aa-browse-card h3{font-size:12px;min-height:33px}#apsara-app.aa-category-design .aa-products-section{padding-inline:8px}}
@media(min-width:700px){#apsara-app.aa-category-design .aa-browse-layout{grid-template-columns:94px minmax(0,1fr)}#apsara-app.aa-category-design .aa-products{grid-template-columns:repeat(3,minmax(0,1fr))}#apsara-app.aa-category-design .aa-category-rail button{font-size:12px;min-height:92px}#apsara-app.aa-category-design .aa-browse-card h3{font-size:14px}#apsara-app.aa-category-design .aa-browse-photo{height:140px;max-height:140px}#apsara-app.aa-category-design .aa-browse-header .aa-pickup-label{font-size:14px}}
@media(prefers-reduced-motion:reduce){#apsara-app.aa-category-design .aa-skeleton *{animation:none}}
