/* Retail layout: compact catalog, clear purchase hierarchy, contained assistant. */
:root{--ink:#252531;--muted:#72717e;--line:#e5e5ed;--bg:#f5f5f8}
.header-inner{max-width:1560px;min-height:72px;padding:12px 32px;gap:32px}
.logo{font-size:22px;gap:9px}.logo-mark{width:36px;height:36px;border-radius:10px}.logo b{font-size:16px}
.search{margin-left:14px;max-width:560px;border-color:#e1dbe9;border-radius:8px;background:#faf9fc;padding:6px 8px 6px 13px}
.search input{font-size:14px}.search button{background:var(--purple);color:#fff;border:0;border-radius:5px;padding:7px 18px}
.nav{gap:22px}.nav-cart{font-weight:600}.logout{color:#78717f}
.mall-layout{max-width:1560px;padding:24px 32px 0;grid-template-columns:minmax(0,1fr) 320px;gap:24px}
.section-heading{margin-bottom:16px;align-items:center}.section-heading h1{font-size:24px;letter-spacing:-.5px}.section-heading>span{color:#77717f}
.catalog-heading h1{font-size:23px;display:inline-block;margin-right:16px}.catalog-heading p{display:inline-block;margin:0;font-size:12px;color:#817a8b}
.catalog-toolbar{background:#fff;border:1px solid var(--line);padding:8px;border-radius:10px;margin-bottom:16px;gap:8px;align-items:center}
.categories{gap:3px}.categories button{font-size:12px;padding:7px 11px;color:#655f6f}.categories button.active{background:#eee8f7;border-radius:6px}
.sort-label{flex-shrink:0}.sort-label select{font-size:12px;max-width:128px;padding:7px 4px;color:#645b71}
.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.product-card{border-radius:11px}.product-card:hover{box-shadow:0 5px 18px #47345a0d}
.product-picture{height:190px;padding:16px 20px;background:#f0f0f4}.product-picture>span{top:10px;left:10px;font-size:10px;padding:3px 7px;color:#756e7f}
.product-info{padding:12px 14px 0}.product-info>small{font-size:10px;letter-spacing:.4px;margin-bottom:4px;color:#857a91}
.product-title{font-size:14px;line-height:1.55;min-height:44px;color:#302c38}
.product-info>p{font-size:11px;line-height:1.7;margin:7px 0 8px;color:#7d7389;display:block}
.product-price{margin:0 0 10px;gap:4px}.product-price strong{font-size:23px;letter-spacing:-.5px}.product-price i{font-size:12px;margin-right:2px}.product-price .text-button{font-size:11px;white-space:nowrap;color:#7b629c}
.product-actions{padding:9px 0;justify-content:stretch}.product-actions button{width:100%;border:1px solid #e1d8ec;border-radius:6px;padding:6px 10px;background:#faf8fd;font-size:12px;line-height:1.5}.product-actions button:hover{background:#eee8f7}.product-actions button.added{background:#f2f7f4;border-color:#deebe3}
.catalog-cartbar{position:sticky;bottom:12px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:12px 16px;background:#fffffff5;backdrop-filter:blur(10px);border:1px solid #dfd9e9;border-radius:10px;box-shadow:0 4px 22px #3a245910}
.catalog-cartbar>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}.catalog-cartbar span{font-size:12px;color:#73677f}.catalog-cartbar b{color:var(--purple)}.catalog-cartbar strong{font-size:20px;color:#56416f}.catalog-cartbar small{font-size:11px;color:#8b8295}.catalog-cartbar .primary{padding:10px 16px;font-size:12px;border-radius:7px;white-space:nowrap}
.assistant{top:96px;min-height:0;height:min(720px,calc(100dvh - 116px));max-height:none;border-radius:12px;box-shadow:0 2px 12px #32263e03}
.assistant-heading{padding:13px 16px}.assistant-heading strong{font-size:14px}.ai-status{font-size:10px;color:#8e8399}.spark{font-size:19px}
.avatar-stage{height:86px;min-height:86px;background:linear-gradient(110deg,#f0eaf7,#faf9fc);text-align:left;display:flex;align-items:center;gap:8px;padding:0 14px;flex-shrink:0}
.avatar-stage>img{position:static;top:auto;width:66px;height:82px;object-fit:cover;object-position:top;flex-shrink:0}.avatar-orbit{display:none}
.avatar-caption{position:static;background:none;padding:0;letter-spacing:0;color:#70617f}.avatar-caption strong{display:block;font-size:12px;font-weight:600;margin-bottom:4px}.avatar-caption span{display:block;font-size:10px;color:#94849f}
.chat-context{padding:12px 14px 8px;font-size:11px;color:#8c7e98}.messages{padding:0 12px 8px;min-height:90px}.message{padding:10px 12px;font-size:13px;line-height:1.75;margin-bottom:10px}.message small{color:#9782ad;font-size:10px}
.quick-questions{padding:10px 12px 7px;border-top:1px solid #f1edf5}.quick-questions>small{font-size:10px;color:#8d7f99;margin-bottom:6px}.quick-questions button{padding:6px 9px;font-size:11px;margin-bottom:5px;border-radius:6px}
.composer{padding:0 12px 12px}.compose-field{padding:6px 7px 6px 10px;border-radius:8px}.compose-field textarea{font-size:12px}.composer>small{font-size:9px;margin-top:6px;color:#92859c}
.back{margin-bottom:14px;color:#78618f}.detail-card{padding:22px;border-radius:12px}.detail-top{gap:22px}.detail-info h1{font-size:21px}.detail-section{margin-top:20px;padding-top:18px}
.cart-card{padding:20px;border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr) 256px;gap:0 22px;align-items:start}
.cart-intro,.cart-items,.cart-card>.empty{grid-column:1}.cart-intro{font-size:12px;margin:0 0 4px;line-height:1.7;color:#7f728c}.cart-row{padding:16px 0;gap:12px}.cart-image{width:64px;height:78px}.cart-copy h3{font-size:12px;line-height:1.65;margin-bottom:6px}.cart-options{gap:5px}.cart-options select{max-width:110px}.cart-row-end{min-width:72px}.cart-row-end strong{font-size:14px}.cart-row-end button{margin-top:8px}.cart-copy small{color:#93869e}
.cart-summary{grid-column:2;grid-row:1/span 3;background:#f8f7fa;border:1px solid #ece7f1;border-radius:10px;padding:16px}.cart-summary h2{font-size:15px;margin-bottom:16px}.budget{flex-direction:column;background:none;padding:0;gap:9px;font-size:11px;color:#82768d}.budget span{display:flex;justify-content:space-between;gap:5px}.budget b{color:#584569;font-weight:500;margin:0}.total{border-top:1px solid #e7e1ed;padding-top:16px;margin:16px 0;display:block}.total>span{font-size:11px;color:#8b7b97}.total>strong{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#756380;margin-top:6px}.total b{font-size:25px;margin-left:0}.checkout-buttons{flex-direction:column-reverse;gap:9px}.checkout-buttons>*{width:100%;padding:10px 8px;border-radius:7px;font-size:12px}.checkout-buttons .secondary{border:0;background:none;font-size:11px;color:#81708c;padding:5px}.simulation-note{text-align:left;line-height:1.7;font-size:10px;color:#95869f;margin-top:13px}
.footer{max-width:1560px;padding:17px 32px;margin-top:20px}
dialog{padding:26px;border-radius:14px;max-width:570px}dialog h2{font-size:21px;margin-bottom:12px}.confirm-list>div{padding:11px 0}.confirm-note{line-height:1.7}.dialog-actions>*{padding:11px 17px;border-radius:8px}
@media(min-width:1560px){.product-picture{height:210px}}
@media(max-width:1279px){.header-inner{gap:22px;padding-inline:24px}.mall-layout{grid-template-columns:minmax(0,1fr) 300px;padding-inline:24px;gap:20px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-picture{height:190px}.catalog-heading p{display:none}.cart-card{display:block}.cart-summary{margin-top:20px}.cart-summary .budget{flex-direction:row}.cart-summary .total{display:flex}.cart-summary .total>strong{gap:16px}.checkout-buttons{flex-direction:row}.checkout-buttons>*{width:auto}.catalog-toolbar{flex-wrap:wrap}.catalog-cartbar small{display:none}}
@media(max-width:1000px){.mall-layout{padding:20px;gap:16px;grid-template-columns:minmax(0,1fr) 280px}.header-inner{padding-inline:20px;gap:16px}.nav{gap:12px}.product-picture{height:165px;padding:12px}.product-info{padding-inline:12px}.product-title{font-size:13px}.product-price strong{font-size:20px}.product-price .text-button{font-size:10px}.catalog-cartbar{padding:10px}.catalog-cartbar>div{gap:8px}.catalog-cartbar strong{font-size:17px}.categories button{padding:6px 9px}.avatar-stage{padding-inline:10px}.avatar-stage>img{width:58px}.avatar-caption strong{font-size:11px}.avatar-caption span{font-size:9px}}
@media(max-height:660px) and (min-width:761px){.assistant{position:static;height:550px}.quick-questions{padding-top:6px}}
@media(max-width:760px){.header-inner{padding:12px 16px;min-height:70px;gap:12px}.logo{font-size:20px}.logo-mark{width:34px;height:34px}.search{margin:0;max-width:none}.nav{gap:12px}.mall-layout{display:flex;padding:18px 16px;gap:20px}.section-heading h1{font-size:21px}.catalog-heading p{display:none}.catalog-toolbar{padding:7px;margin-bottom:12px}.categories{gap:1px}.categories button{font-size:11px;padding:6px 7px}.product-grid{gap:12px}.product-picture{height:160px;padding:12px}.product-info{padding:10px 11px 0}.product-title{min-height:42px;font-size:13px}.product-info>p{display:none}.product-price{margin-top:8px}.product-price strong{font-size:18px}.product-price .text-button{display:none}.product-actions{padding:8px 0}.product-actions button{font-size:11px}.catalog-cartbar{bottom:8px;margin-top:12px;gap:8px}.catalog-cartbar .primary{font-size:11px;padding:9px 11px}.catalog-cartbar strong{font-size:17px}.assistant{position:static;width:100%;height:560px;min-height:0;max-height:none}.messages{max-height:none;min-height:90px}.avatar-stage{height:86px;min-height:86px}.avatar-stage>img{width:66px}.avatar-caption strong{font-size:12px}.avatar-caption span{font-size:10px}.cart-card{padding:16px}.cart-row{gap:9px}.cart-summary .budget{flex-direction:column}.cart-summary .total{display:block}.cart-summary .total>strong{margin-top:5px}.cart-copy{min-width:120px}.checkout-buttons{flex-direction:column-reverse}.checkout-buttons>*{width:100%}.footer{padding:16px}.catalog-cartbar>div{gap:6px}.detail-card{padding:16px}}
/* Empty conversations stay compact; ongoing conversations gain scrollable space. */
.assistant:not(.has-conversation){height:auto}
.assistant:not(.has-conversation) .messages{flex:0 1 auto;min-height:0}
.product-info>small{display:none}.product-info>p{display:none}.product-picture{height:180px}.product-price{margin-top:9px}.product-actions{padding:8px 0}
.cart-card{background:transparent;border:0;padding:0;gap:0 20px}
.cart-intro{background:#fff;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;margin:0;padding:14px 16px 0}
.cart-items{background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 10px 10px;padding:0 16px}
.cart-row:last-child{border-bottom:0}.cart-card>.empty{background:#fff;border:1px solid var(--line);border-radius:10px}
@media(min-width:1560px){.product-picture{height:200px}}
@media(max-width:1000px){.product-picture{height:165px}}
@media(max-width:760px){.product-picture{height:160px}.cart-card{padding:0}.assistant.has-conversation{height:560px}}
/* The catalog summary follows the grid so it never covers product prices or actions. */
.catalog-cartbar{position:static}
/* Bring the assistant back into focus with a larger portrait and quiet depth. */
.assistant{border-color:#ddd5e8;box-shadow:0 4px 9px #4c365b04,0 18px 40px -24px #4c365b30;background:linear-gradient(180deg,#ffffff,#fefcff)}
.assistant-heading{background:#fff;border-bottom-color:#ede6f2;padding-block:14px}
.avatar-stage{height:182px;min-height:182px;display:block;isolation:isolate;text-align:center;background:radial-gradient(ellipse at 52% 40%,#fffdfd 0%,#f1eaf7 43%,#e6dfee 100%);padding:0}
.avatar-stage::before{content:"";position:absolute;inset:16px 52px 21px;border-radius:50%;background:linear-gradient(150deg,#ffffffb3,#faf7ff1a);border:1px solid #ffffff8c;box-shadow:0 12px 30px #6747790b;z-index:-1}
.avatar-stage>img{position:relative;top:5px;width:220px;height:330px;object-fit:cover;object-position:top;mix-blend-mode:multiply;filter:drop-shadow(0 6px 8px #4f366b12)}
.avatar-orbit{display:block;z-index:-1;bottom:38px;width:244px;height:78px;border-color:#b4a0c829;transform:translateX(-50%) rotate(-14deg)}
.avatar-caption{position:absolute;inset:auto 0 0;padding:28px 10px 10px;background:linear-gradient(0deg,#f7f2fbdc 60%,#f7f2fb00);color:#675277;letter-spacing:.2px}
.avatar-caption strong{font-size:12px;font-weight:600;margin-bottom:3px}.avatar-caption span{font-size:10px;color:#9886a7}
.chat-context{color:#8d789e;padding-top:13px}.message{background:#f5f0f9;border-color:#ebe2f2;color:#695675;box-shadow:0 2px 3px #613a7a02}.message small{color:#9981ab}.user-message{background:#eae1f4;border-color:#e0d4ed;color:#5d4772}
.quick-questions{background:#fefcff}.quick-questions button{border-color:#e6dced;background:linear-gradient(#fff,#fefcff);color:#7a658b}.quick-questions button:hover{background:#f3edf9;border-color:#d3c1e4}
.compose-field{border-color:#d6c6e4;box-shadow:0 2px 8px #67477904}.send{box-shadow:0 3px 7px #6c4e9720}
@media(max-height:700px) and (min-width:761px){.avatar-stage{height:128px;min-height:128px}.avatar-stage>img{width:170px;height:255px;top:0}.avatar-stage::before{inset:6px 75px 12px}.avatar-caption{padding:22px 10px 7px}.avatar-caption span{display:none}.avatar-orbit{bottom:20px;width:210px;height:64px}}
.avatar-stage::before{background:linear-gradient(150deg,#ffffff65,#faf7ff10);border-color:#ffffff55;box-shadow:0 12px 30px #67477906}.avatar-orbit{opacity:.5}.avatar-caption{background:linear-gradient(0deg,#f7f2fb 62%,#f7f2fb00)}
/* Restore the open conversation area and give product details a clear entry. */
.assistant,.assistant:not(.has-conversation){height:min(860px,calc(100dvh - 116px));background:#fff;border-color:#e5dfec;box-shadow:0 8px 26px -18px #4c365b25}
.assistant:not(.has-conversation) .messages{flex:1;min-height:70px}
.avatar-stage{background:radial-gradient(ellipse at 50% 45%,#eae3f2,#f8f6fb 78%)}
.avatar-stage::before,.avatar-orbit{display:none}.avatar-caption{background:linear-gradient(0deg,#f8f5fc 60%,#f8f5fc00)}
.quick-questions{background:white}.message{box-shadow:none}.compose-field{box-shadow:none}
.product-picture{background:#f6f6f8;padding:18px}.product-picture>span{z-index:1}
.catalog-cover{display:block;width:100%;height:100%;overflow:hidden;mix-blend-mode:multiply}
.product-actions{gap:8px;border-top:0;padding:0 0 12px}
.product-actions button{width:auto;flex:1;padding:9px 6px;font-size:12px;white-space:nowrap;border-radius:7px;line-height:1.5}
.product-actions .details-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:14px;font-weight:600;color:#fff;background:#69549f;border-color:#69549f;flex:1.2}
.product-actions .details-button:hover{background:#584388;border-color:#584388}.details-button svg{width:16px;height:16px}
.product-actions button[data-add]{background:white;color:#71617e;border-color:#e2dae9;font-weight:500}
.product-actions button.added{color:#578574;background:#f6faf7;border-color:#e0ebe4}
.product-price{margin-bottom:12px}.cart-image.catalog-cover{flex-shrink:0}
@media(max-height:660px) and (min-width:761px){.assistant,.assistant:not(.has-conversation){height:560px;position:static}}
@media(max-width:760px){.assistant,.assistant:not(.has-conversation){height:650px}.product-actions{gap:5px}.product-actions .details-button{font-size:13px;gap:3px}.product-actions button[data-add]{font-size:10px;padding-inline:4px}.details-button svg{width:13px;height:13px}.product-info{padding-inline:9px}}
.cart-image.catalog-cover{width:64px;height:78px}

/* A single heading above the portrait; no caption or repeated context label. */
.assistant>.messages{padding-top:16px}
