:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17191d;background:#f7f7f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}.auth-page{display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#f8f8f6,#eceeeb)}.auth-card{width:min(100%,430px);background:#fff;border:1px solid #e7e8e5;border-radius:24px;padding:34px;box-shadow:0 18px 60px #24292112}.brand-mark{font-weight:850;letter-spacing:.12em;text-decoration:none;color:#17191d;font-size:16px}.brand-mark span{font-weight:500;color:#747a78}.eyebrow{font-size:11px;letter-spacing:.2em;color:#747a78;font-weight:700;margin:34px 0 8px}.auth-card h1{margin:0 0 22px;font-size:30px}.auth-switch{display:grid;grid-template-columns:1fr 1fr;background:#f2f3f1;border-radius:12px;padding:4px;margin-bottom:22px}.auth-switch a{text-decoration:none;text-align:center;padding:11px;color:#6b706e;border-radius:9px}.auth-switch .selected{background:white;color:#151719;box-shadow:0 1px 4px #0001}.auth-form{display:grid;gap:15px}.auth-form label{display:grid;gap:7px;font-size:13px;color:#555c59}.auth-form input{width:100%;height:48px;padding:0 13px;border:1px solid #dfe2df;border-radius:11px;font:inherit;color:#17191d;background:#fff}.primary-button{height:50px;border:0;border-radius:12px;background:#1d2823;color:white;font-size:15px;font-weight:700;cursor:pointer}.muted{font-size:12px;line-height:1.5;color:#808683;margin:0}.notice{font-size:13px;border-radius:10px;padding:11px 13px}.notice.error{background:#fff0ef;color:#a5312b}.status-card{text-align:center}.status-icon{font-size:34px;margin:30px 0 8px}.status-card>p:not(.status-icon){color:#6d7470;line-height:1.55}.text-button,.logout-form button{background:none;border:0;color:#66706b;text-decoration:underline;cursor:pointer;padding:14px}.storefront-page{padding-bottom:95px}.site-header{height:84px;display:flex;align-items:center;gap:36px;padding:0 clamp(18px,5vw,76px);background:#fff;border-bottom:1px solid #e9eae7;position:sticky;top:0;z-index:5}.search-box{height:46px;display:flex;flex:1;max-width:720px;border:1px solid #e1e3e0;border-radius:14px;background:#f8f9f7;overflow:hidden}.search-box input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:0 16px;font:inherit}.search-box button{width:52px;border:0;background:transparent;font-size:27px;cursor:pointer}.currency{font-weight:700;font-size:14px;white-space:nowrap}.site-main{width:min(1240px,calc(100% - 40px));margin:40px auto}.page-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}.page-heading .eyebrow{margin:0 0 7px}.page-heading h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.04em;margin:0}.back-button{border:1px solid #dfe2df;background:#fff;border-radius:10px;padding:10px 14px;cursor:pointer}.brands-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.brand-card{min-height:95px;background:white;border:1px solid #e7e9e6;border-radius:16px;display:grid;place-items:center;font-size:17px;font-weight:700;cursor:pointer;transition:transform .18s,border-color .18s}.brand-card:hover,.product-card:hover{transform:translateY(-2px);border-color:#aab3ad}.content-section{margin-top:48px}.content-section h2{font-size:24px;margin:0 0 18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand-tabs{display:flex;gap:8px;overflow:auto}.brand-tabs button{white-space:nowrap;border:1px solid #e0e3df;background:#fff;border-radius:99px;padding:8px 13px;cursor:pointer}.brand-tabs button.selected{background:#202a24;color:white;border-color:#202a24}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.product-card{min-height:140px;padding:18px;background:white;border:1px solid #e7e9e6;border-radius:16px;cursor:pointer;transition:transform .18s,border-color .18s}.product-card h3{font-size:16px;margin:0 0 12px}.product-card p{font-size:13px;color:#78807b;margin:4px 0}.product-card .price{font-weight:800;font-size:17px;color:#1b211e;margin-top:14px}.stock-pill{display:inline-block;padding:5px 8px;border-radius:8px;background:#eef5ef;color:#336b43;font-size:11px}.stock-pill.empty{background:#f2f2f1;color:#767b78}.brand-tabs{max-width:60%}.search-results{margin:10px 0 32px;padding:18px;background:#fff;border:1px solid #e5e7e4;border-radius:18px}.search-results h2{margin:0 0 14px;font-size:19px}.result-list{display:grid;gap:8px}.result-row{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:13px;border:1px solid #eceeeb;border-radius:11px;background:white;cursor:pointer;font:inherit}.variant-list{display:grid;gap:10px}.variant-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;background:#fff;border:1px solid #e7e9e6;border-radius:15px;padding:16px}.supply-details-button{background:#202a24;color:white;border:0;border-radius:9px;padding:10px 14px;cursor:pointer}.detail-card{max-width:760px;padding:24px;background:#fff;border:1px solid #e7e9e6;border-radius:18px}.detail-card dl{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-card dt{font-size:12px;color:#737b76}.detail-card dd{margin:4px 0 0;font-weight:650}.site-message{color:#7a817c}.bottom-nav{position:fixed;z-index:6;bottom:0;left:0;right:0;height:76px;display:flex;justify-content:center;gap:min(8vw,90px);background:#fff;border-top:1px solid #e5e7e4;padding:8px 12px calc(8px + env(safe-area-inset-bottom))}.bottom-nav a,.bottom-nav button{flex:1 1 0;min-width:0;max-width:96px;width:100%;height:100%;display:grid;grid-template-rows:28px auto;justify-items:center;align-content:center;gap:3px;border:0;background:none;text-decoration:none;color:#7c837f;font-family:inherit;font-size:11px;font-weight:400;line-height:1.2;cursor:pointer}.bottom-nav .active{color:#1b2821}.bottom-nav button:disabled{opacity:.42;cursor:default}.logout-form{position:fixed;right:22px;bottom:89px}.logout-form button{background:#fff;border:1px solid #e6e8e5;border-radius:9px}.auth-page .logout-form{position:static}.auth-page .logout-form button{background:transparent;border:0}@media(max-width:800px){.site-header{height:auto;min-height:74px;flex-wrap:wrap;gap:12px;padding:14px 18px}.brand-mark{font-size:13px}.search-box{order:3;flex-basis:100%;max-width:none}.site-main{width:calc(100% - 28px);margin:28px auto}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product-card{padding:14px;min-height:125px}.content-section{margin-top:35px}.section-title{align-items:flex-start;flex-direction:column}.brand-tabs{max-width:100%}.variant-row{grid-template-columns:1fr auto;gap:10px}.supply-details-button{grid-column:1/-1}.page-heading h1{font-size:29px}.bottom-nav{justify-content:space-around;gap:0}.logout-form{right:14px;bottom:83px}}@media(max-width:420px){.auth-card{padding:24px}.detail-card{padding:17px}.detail-card dl{grid-template-columns:1fr}.currency{margin-left:auto}}
.cart-lock-notice,.cart-stock-warning{padding:12px 14px;border-radius:11px;line-height:1.45}.cart-lock-notice{margin:0 0 14px;background:#fff6df;border:1px solid #efd999;color:#6f5311}.cart-lock-notice p{margin:0}.cart-lock-notice p+p{margin-top:6px;font-weight:700}.cart-stock-warning{margin:8px 0 0;background:#fff0ef;color:#9a302b;font-size:13px}
.admin-panel{width:min(980px,calc(100% - 32px));margin:32px auto;padding:28px;background:#fff;border:1px solid #e7e9e6;border-radius:18px}.admin-panel header,.admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-panel section{margin:20px 0 32px}.admin-row{padding:13px 0;border-bottom:1px solid #eceeeb}.admin-row small{display:block;margin-top:5px;color:#737b76}.admin-actions{display:flex;gap:8px}.admin-panel button,.admin-panel .primary-button{border:1px solid #d6dbd7;border-radius:9px;padding:9px 12px;background:#fff;color:#202a24;cursor:pointer;text-decoration:none}.admin-panel .primary-button{background:#202a24;color:#fff}

/* Brand tiles use real, local SVG artwork while retaining square responsive cards. */
.brand-card{aspect-ratio:1/1;min-height:0;padding:14px}
.brand-logo{display:block;width:78%;height:78%;object-fit:contain}
.result-brand-logo{width:36px;height:30px;object-fit:contain;margin-right:10px}
@media(max-width:800px){.brands-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.brand-card{min-height:0;padding:8px}}


/* Customer storefront: category navigation and variant selectors use their own classes. */
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.category-card{min-height:72px;padding:16px 20px;text-align:left;font:inherit;font-weight:650;color:#202a24;background:#fff;border:1px solid #e7e9e6;border-radius:14px;cursor:pointer}
.category-card:hover{border-color:#aab3ad;transform:translateY(-1px)}
.variant-selector{display:grid;gap:20px}
.variant-choice-group{display:grid;gap:10px}
.variant-choice-group h2{margin:0;font-size:15px;color:#555c59}
.variant-choices{display:flex;flex-wrap:wrap;gap:8px}
.variant-choice{min-height:44px;padding:9px 16px;border:1px solid #dfe2df;border-radius:11px;background:#fff;color:#202a24;font:inherit;cursor:pointer}
.variant-choice.selected{border-color:#202a24;background:#202a24;color:#fff}
.supply-list{gap:10px}
.supply-row{grid-template-columns:minmax(180px,2fr) minmax(140px,1.2fr) auto auto;gap:14px}
.supply-label{min-width:0;overflow-wrap:anywhere}
.supply-stock{color:#68716b;font-size:13px}
.supply-price{white-space:nowrap;font-size:16px}
.supply-details-button{min-height:42px;padding:9px 14px;background:#202a24;color:#fff;border:0;border-radius:9px;cursor:pointer;white-space:nowrap}
.variant-empty-state{margin:0;padding:16px;border:1px dashed #cfd5d0;border-radius:12px;color:#68716b}
.quantity-controls{display:flex;align-items:center;gap:8px;min-width:0}
.quantity-controls .quantity-stepper{display:inline-grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;border:1px solid #d5dbd6;border-radius:10px;background:#fff;color:#202a24;font:600 20px/1 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.quantity-controls .quantity-stepper:disabled{opacity:.45;cursor:default}
.quantity-controls .remove-button{min-height:40px;padding:8px 12px;border:1px solid #e2c9c7;border-radius:10px;background:#fff;color:#9a302b;font:inherit;cursor:pointer;white-space:nowrap}
.cart-row{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.cart-row .quantity-controls{grid-column:1/-1;justify-content:flex-end}
.variant-row .supply-details-button{grid-column:auto}
.product-card{width:100%;text-align:left;color:inherit;font:inherit;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;min-width:0}
.product-card h3,.product-card p{overflow-wrap:anywhere}
.variant-row{min-width:0}
@media(min-width:801px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.supply-row .supply-details-button{justify-self:end}}
@media(max-width:1024px){.brands-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.supply-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.supply-stock{grid-column:1}.supply-price{grid-column:2;grid-row:2}.supply-row .supply-details-button{grid-column:1/-1;width:max-content;min-width:112px}}
@media(max-width:800px){.brands-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.brand-card{aspect-ratio:1/1;min-height:0;padding:8px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:1fr;gap:10px}.category-card{min-height:64px}.supply-row{grid-template-columns:minmax(0,1fr) auto;padding:14px}.supply-details-button{min-height:44px}.cart-row .quantity-controls{justify-content:flex-start}}
@media(max-width:480px){.site-main{width:calc(100% - 24px);margin:20px auto}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{overflow-wrap:anywhere}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-card{padding:12px;min-height:132px}.product-card h3{font-size:14px}.stock-pill{font-size:10px}.supply-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.supply-label{font-size:14px}.supply-stock{font-size:12px}.supply-price{font-size:15px}.quantity-controls{gap:6px}.quantity-controls .quantity-stepper{flex-basis:40px;width:40px;height:40px;min-width:40px}.cart-row .quantity-controls{flex-wrap:wrap}}
@media(max-width:359px){.product-grid{grid-template-columns:1fr}.brands-grid{gap:6px}.brand-card{padding:6px}.variant-row{padding:12px}.supply-row{padding:12px}}
.header-actions{display:flex;align-items:center;gap:12px}
.header-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:4px 8px;border:0;border-radius:10px;background:transparent;color:#46554c;text-decoration:none;font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}
.header-icon-button img,.bottom-nav img{display:block;flex:none;object-fit:contain}
.header-icon-button img{width:36px;height:36px}
.bottom-nav img{width:28px;height:28px}

.header-icon-button:focus-visible,.bottom-nav button:focus-visible{outline:2px solid #1769aa;outline-offset:2px}
@media(max-width:800px){.header-actions{margin-left:auto;gap:3px}.header-icon-button{gap:4px;padding:3px 5px;font-size:11px}.header-icon-button img{width:32px;height:32px}}
@media(max-width:359px){.header-icon-button span{font-size:10px}.header-icon-button img{width:28px;height:28px}.bottom-nav img{width:26px;height:26px}}
.order-admin-page .order-status-tabs{display:flex;gap:8px;overflow-x:auto;padding:8px 0 14px}
.order-admin-page .order-status-tabs a,.order-admin-page .order-pagination a{flex:none;padding:9px 12px;border:1px solid #dfe2df;border-radius:10px;background:#fff;color:#46554c;text-decoration:none;white-space:nowrap}
.order-admin-page .order-status-tabs a.selected{border-color:#202a24;background:#202a24;color:#fff}
.order-admin-page .order-search,.order-admin-page .fulfillment-form,.order-admin-page .order-message-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:16px 0 24px}
.order-admin-page label{display:grid;gap:7px;color:#555c59;font-size:13px}
.order-admin-page input,.order-admin-page select,.order-admin-page textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dfe2df;border-radius:10px;background:#fff;color:#17191d;font:inherit}
.order-admin-page .order-inbox-row{display:flex;width:100%;color:#202a24;text-decoration:none;align-items:center}
.order-admin-page .order-inbox-main{display:grid;gap:4px;min-width:0}
.order-admin-page .order-inbox-main small,.order-admin-page .order-detail-item small{color:#737b76;overflow-wrap:anywhere}
.order-admin-page .order-latest-message{max-width:760px}
.order-admin-page .unread-count{display:grid;place-items:center;flex:none;min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:#1769aa;color:#fff;font-size:12px;font-weight:700}
.order-admin-page .order-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}
.order-admin-page .order-detail-items{display:grid;gap:10px}
.order-admin-page .order-detail-item,.order-admin-page .order-customer-card{display:grid;gap:6px;padding:14px;border:1px solid #e7e9e6;border-radius:12px;background:#fff}
.order-admin-page .order-status-history{padding-left:22px;line-height:1.8}
.order-admin-page .order-actions{flex-wrap:wrap}
.order-admin-page .order-messages{display:grid;gap:10px;max-height:55vh;overflow-y:auto;padding:12px;border:1px solid #e7e9e6;border-radius:14px;background:#f7f7f5}
.order-admin-page .order-message{max-width:min(88%,700px);padding:12px 14px;border:1px solid #e1e4e0;border-radius:12px;background:#fff;overflow-wrap:anywhere}
.order-admin-page .order-message-customer{justify-self:start}
.order-admin-page .order-message-admin{justify-self:end;background:#eef5ef}
.order-admin-page .order-message-system{justify-self:center;background:#f2f3f1;color:#555c59}
.order-admin-page .order-message header{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;color:#68716b}
.order-admin-page .order-message p{margin:9px 0 0;line-height:1.5}
.order-admin-page .order-message-form{grid-template-columns:1fr;margin-top:14px}
.order-admin-page .order-message-form .primary-button{justify-self:start}
@media(max-width:600px){.order-admin-page .admin-panel{width:calc(100% - 20px);margin:10px auto;padding:18px}.order-admin-page .order-search,.order-admin-page .fulfillment-form{grid-template-columns:1fr}.order-admin-page .order-inbox-row{align-items:flex-start}.order-admin-page .order-messages{max-height:60vh}.order-admin-page .order-message{max-width:96%}}
.storefront-page .order-message-threads{display:grid;gap:10px}
.storefront-page .order-message-thread{position:relative;display:grid;gap:6px;width:100%;padding:16px 54px 16px 16px;border:1px solid #e7e9e6;border-radius:14px;background:#fff;color:#202a24;text-align:left;font:inherit;cursor:pointer}
.storefront-page .order-message-thread span,.storefront-page .order-message-thread time{color:#737b76;font-size:13px;overflow-wrap:anywhere}
.storefront-page .order-message-thread .thread-unread-count{position:absolute;right:14px;top:14px;display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;background:#1769aa;color:#fff;font-size:12px;font-weight:700}
.storefront-page .order-message-transcript{display:grid;gap:10px;max-height:55vh;overflow-y:auto;padding:12px;border:1px solid #e7e9e6;border-radius:14px;background:#f7f7f5}
.storefront-page .customer-order-message{max-width:min(88%,700px);padding:12px 14px;border:1px solid #e1e4e0;border-radius:12px;background:#fff;overflow-wrap:anywhere}
.storefront-page .customer-order-message-customer{justify-self:end;background:#eef5ef}
.storefront-page .customer-order-message-system{justify-self:center;background:#f2f3f1;color:#555c59}
.storefront-page .customer-order-message p{margin:8px 0;line-height:1.5;white-space:pre-wrap}
.storefront-page .customer-order-message time{font-size:11px;color:#68716b}
.storefront-page .order-customer-message-form{display:grid;gap:10px;margin-top:14px}
.storefront-page .order-customer-message-form label{display:grid;gap:7px;color:#555c59;font-size:13px}
.storefront-page .order-customer-message-form textarea{width:100%;min-height:90px;padding:12px;border:1px solid #dfe2df;border-radius:11px;background:#fff;color:#17191d;font:inherit;resize:vertical}
.storefront-page .order-customer-message-form .primary-button{justify-self:start;padding:0 18px}
@media(max-width:480px){.storefront-page .customer-order-message{max-width:96%}}
