:root{--bg:#f6f7fb;--surface:#fff;--text:#172033;--muted:#667085;--line:#e6e8ef;--brand:#5546e9;--brand2:#7c65ff;--success:#138a55;--danger:#c53a45;--warning:#b36a00;--shadow:0 14px 35px rgba(22,28,45,.07);--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}body{margin:0;font-family:inherit;background:var(--bg);color:var(--text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-synthesis:none}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.hidden{display:none!important}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;cursor:pointer;font-weight:700}.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border:1px solid #061342;box-shadow:0 10px 22px rgba(85,70,233,.22)}.btn-secondary{background:#eef0f6;color:var(--text)}.btn-danger{background:#fff0f1;color:var(--danger)}.btn-sm{padding:8px 11px;border-radius:10px;font-size:13px}.btn:disabled{opacity:.55;cursor:not-allowed}
.input,.select,.textarea{width:100%;border:1px solid var(--line);background:#fff;padding:11px 13px;border-radius:12px;outline:none;transition:.18s}.input:focus,.select:focus,.textarea:focus{border-color:#a39aff;box-shadow:0 0 0 4px rgba(85,70,233,.09)}.field label{display:block;font-size:12px;font-weight:800;color:#475467;margin:0 0 7px}.field{margin-bottom:15px}.textarea{min-height:92px;resize:vertical}
.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;inset:0 auto 0 0;width:221px;background:#101528;color:#dbe1f2;padding:18px 15px;display:flex;flex-direction:column;z-index:50}.brand-row{display:flex;align-items:center;gap:8px;padding:8px 7px 18px}.brand-link{display:flex;align-items:center;gap:10px;min-width:0}.brand-link strong{font-size:15px;display:block;color:#fff}.brand-link small{display:block;color:#98a4bf;font-size:10px;margin-top:2px}.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#6f5cf6,#9a88ff);color:#fff;font-size:13px;font-weight:900}.brand-logo{width:38px;height:38px;border-radius:10px;object-fit:contain;background:#fff}.icon-btn{width:38px;height:38px;border:0;background:transparent;color:inherit;border-radius:10px;cursor:pointer}.sidebar-close{margin-left:auto;display:none}.nav-stack{display:grid;gap:6px;margin-top:8px}.nav-item{padding:11px 12px;border-radius:12px;color:#aeb9d3;display:flex;align-items:center;gap:10px;font-weight:700;font-size:13px}.nav-item span{width:18px;text-align:center;font-size:16px}.nav-item:hover{background:#171d33;color:#fff}.nav-item.active{background:linear-gradient(135deg,rgba(111,92,246,.26),rgba(124,101,255,.16));color:#fff;border:1px solid rgba(150,140,255,.12)}.danger-link{color:#ffb0b7}.sidebar-bottom{margin-top:auto;display:grid;gap:6px}.main-content{margin-left:221px;min-width:0;width:calc(100% - 221px)}.topbar{height:80px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:15px;position:sticky;top:0;z-index:35}.menu-toggle{display:none}.topbar-title{min-width:0}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-weight:900;font-size:9px;color:var(--brand)}.topbar h1{font-size:21px;margin:2px 0 0}.topbar-user{margin-left:auto;display:flex;align-items:center;gap:10px}.topbar-user strong{display:block;font-size:13px}.topbar-user small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.avatar{width:38px;height:38px;border-radius:12px;background:#ecebff;color:var(--brand);display:grid;place-items:center;font-weight:900}.page-wrap{padding:26px;max-width:1500px;margin:auto}.grid{display:grid;gap:18px}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--surface);border:1px solid rgba(230,232,239,.9);border-radius:var(--radius);box-shadow:var(--shadow)}.card-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head h2{font-size:15px;margin:0}.card-body{padding:20px}.stat-card{padding:18px 20px;display:flex;align-items:flex-start;justify-content:space-between}.stat-label{font-size:11px;color:var(--muted);font-weight:800}.stat-value{font-size:28px;font-weight:900;margin-top:6px}.stat-icon{width:44px;height:44px;border-radius:14px;background:#eff0ff;color:var(--brand);display:grid;place-items:center;font-size:19px}.subtle{color:var(--muted);font-size:12px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.toolbar .input{max-width:310px}.pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900}.pill-green{background:#e9fbf3;color:var(--success)}.pill-gray{background:#eef1f5;color:#5c6675}.pill-blue{background:#eef3ff;color:#3f51b5}.pill-amber{background:#fff5df;color:var(--warning)}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:950px}.data-table th,.data-table td{padding:12px 15px;border-bottom:1px solid var(--line);text-align:left;font-size:12px;vertical-align:middle}.data-table th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#7b8495;background:#fafbfc}.data-table tr:last-child td{border-bottom:0}.product-name{font-weight:900}.muted-cell{color:var(--muted)}.thumb{width:42px;height:42px;border-radius:11px;object-fit:cover;background:#f0f2f5;border:1px solid var(--line)}.actions{display:flex;gap:6px;justify-content:flex-end}.link-btn{border:0;background:none;color:var(--brand);cursor:pointer;font-weight:800;padding:4px}.flash{padding:12px 15px;border-radius:12px;margin-bottom:15px;font-size:13px}.flash-success{background:#eafbf3;color:#0f7046}.flash-error{background:#fff0f1;color:#a5222d}
.modal-backdrop{position:fixed;inset:0;background:rgba(12,15,28,.54);display:none;align-items:center;justify-content:center;padding:16px;z-index:100}.modal-backdrop.open{display:flex}.modal{width:min(760px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 32px 80px rgba(9,12,25,.24)}.modal-lg{width:min(920px,100%)}.modal-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h3{margin:0;font-size:16px}.modal-body{padding:20px}.modal-foot{padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.full{grid-column:1/-1}.check-row{display:flex;align-items:center;gap:8px}.check-row input{width:16px;height:16px}.permission-grid{display:grid;grid-template-columns:1fr repeat(5,80px);gap:8px;align-items:center}.permission-grid>div{padding:8px;border-bottom:1px solid var(--line);font-size:11px}.permission-grid .head{font-weight:900;color:#667085;text-align:center}.permission-grid input{width:15px;height:15px}.attr-tabs{display:flex;gap:8px;overflow:auto;padding:4px}.attr-tab{border:1px solid var(--line);background:#fff;padding:10px 13px;border-radius:12px;font-size:12px;font-weight:900;cursor:pointer;white-space:nowrap}.attr-tab.active{background:#f0efff;border-color:#cdc9ff;color:var(--brand)}.tag-list{display:flex;flex-wrap:wrap;gap:7px}.tag{padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:#fafbfe;display:inline-flex;gap:7px;align-items:center;font-size:11px;font-weight:800}.tag button{border:0;background:none;color:#9aa0ad;cursor:pointer}.empty{text-align:center;padding:45px 20px;color:var(--muted)}
.store-body{background:linear-gradient(180deg,#fbfbfe 0%,#f2f5fb 100%)}.store-top{position:sticky;top:0;z-index:25;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}.store-nav{max-width:1420px;margin:auto;padding:14px 22px;display:flex;gap:15px;align-items:center}.store-hero{max-width:1420px;margin:auto;padding:24px 22px 10px}.store-brand{display:flex;align-items:center;gap:12px}.store-brand .brand-mark{width:44px;height:44px}.store-brand strong{font-size:17px}.store-brand small{display:block;color:var(--muted);font-size:10px;margin-top:1px}.store-search{margin-left:auto;width:min(410px,48vw)}.store-main{max-width:1420px;margin:auto;padding:20px 22px 45px}.filter-row{display:flex;gap:9px;overflow:auto;padding:5px 0 12px}.filter-chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}.filter-chip.active{background:#1b2140;color:#fff;border-color:#1b2140}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.p-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;min-width:0;box-shadow:0 10px 25px rgba(22,28,45,.045)}.p-image{aspect-ratio:1.24;display:grid;place-items:center;background:linear-gradient(135deg,#f5f6fa,#eceef5);padding:14px}.p-image img{width:100%;height:100%;object-fit:contain}.p-placeholder{width:70px;height:70px;border-radius:20px;background:#fff;display:grid;place-items:center;color:#78819a;font-weight:900}.p-body{padding:15px}.p-brand{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#717b8f}.p-title{font-size:14px;font-weight:900;margin-top:4px;line-height:1.25}.p-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}.p-price{font-size:19px;font-weight:950;margin-top:13px}.p-foot{padding:12px 15px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted)}.network-badge{font-weight:900;color:var(--brand)}.hero-copy{padding:12px 0}.hero-copy h1{font-size:clamp(26px,4.2vw,52px);line-height:1.03;margin:9px 0}.hero-copy p{max-width:700px;color:#616b80;font-size:13px;line-height:1.6}.mini-stat{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);padding:8px 10px;border-radius:12px;font-size:10px;font-weight:900;margin-right:6px}.store-footer{max-width:1420px;margin:auto;padding:20px 22px 35px;color:var(--muted);font-size:11px;display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line)}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 15% 15%,#ecebff 0,#f7f7fb 35%,#eef2f8 100%)}.login-card{width:min(1020px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 28px 80px rgba(15,23,42,.14)}.login-visual{padding:45px;background:linear-gradient(145deg,#121733,#262e62);color:#fff;position:relative}.login-visual:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:rgba(120,104,255,.18);right:-80px;top:-90px}.login-visual h1{font-size:38px;line-height:1.05;margin:35px 0 12px;position:relative}.login-visual p{color:#bec6db;line-height:1.65;position:relative}.login-features{display:grid;gap:12px;margin-top:30px;position:relative}.login-feature{display:flex;gap:10px;align-items:flex-start;color:#e9ecf5;font-size:12px}.login-feature b{display:block;margin-bottom:2px}.login-feature span{color:#b7c0d8}.login-form{padding:45px}.login-form h2{margin:0 0 8px;font-size:24px}.login-form .subtle{margin-bottom:25px}.logo-big{width:54px;height:54px;border-radius:16px;background:#f0efff;color:var(--brand);display:grid;place-items:center;font-weight:950;margin-bottom:20px}.error-note{background:#fff0f1;color:#a52831;border-radius:10px;padding:10px 12px;font-size:12px;margin-bottom:14px}
@media(max-width:1200px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.sidebar-close,.menu-toggle{display:block}.main-content{margin-left:0;width:100%}.menu-toggle{color:var(--text);background:#f2f3f8}.page-wrap{padding:18px}.topbar{padding:0 18px}.form-grid,.grid-3,.grid-2{grid-template-columns:1fr}.login-card{grid-template-columns:1fr}.login-visual{display:none}.store-search{width:45vw}}
@media(max-width:650px){.grid-4{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.store-nav{padding:12px 14px}.store-hero,.store-main,.store-footer{padding-left:14px;padding-right:14px}.p-body{padding:12px}.p-title{font-size:13px}.p-price{font-size:17px}.store-search{width:52vw}.topbar-user>div:last-child{display:none}.permission-grid{grid-template-columns:1fr repeat(5,58px);overflow:auto}}
@media(max-width:430px){.grid-4{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.store-brand small{display:none}.store-brand strong{font-size:14px}.store-brand .brand-mark{width:38px;height:38px}.p-image{aspect-ratio:1.1}.p-foot{font-size:9px}.toolbar{align-items:stretch}.toolbar .input{max-width:none;flex:1}}

/* ===== Responsive product workspace + B2B storefront refresh ===== */
html,body{max-width:100%;overflow-x:hidden}
button,.btn{white-space:nowrap}

/* Admin products */
.products-admin-page{display:grid;gap:16px;min-width:0}
.products-toolbar{padding:18px}
.products-toolbar-main{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.products-toolbar-main h2{margin:3px 0 4px;font-size:20px}
.products-kpis{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
.products-kpis span{background:#f7f7fb;border:1px solid var(--line);border-radius:12px;padding:8px 10px;color:var(--muted);font-size:10px;font-weight:800}
.products-kpis b{color:var(--text);font-size:13px;margin-right:3px}
.catalog-filters{display:grid;grid-template-columns:minmax(250px,1.4fr) minmax(160px,.5fr) minmax(160px,.5fr) auto;gap:10px;align-items:center;margin-top:16px}
.search-field{position:relative;min-width:0}
.search-field>span,.store-search>span,.brand-search>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#8b93a4;z-index:1}
.search-field .input,.store-search .input,.brand-search .input{padding-left:38px}
.admin-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-width:0}
.admin-product-card{padding:16px;min-width:0;display:flex;flex-direction:column;gap:12px;transition:transform .18s ease,box-shadow .18s ease}
.admin-product-card:hover{transform:translateY(-2px);box-shadow:0 20px 44px rgba(22,28,45,.10)}
.admin-product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-product-title-wrap{min-width:0}
.admin-product-brand{font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#717b8f}
.admin-product-top h3{margin:4px 0 0;font-size:16px;line-height:1.22;overflow-wrap:anywhere}
.admin-product-main{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}
.admin-product-price{font-size:22px;font-weight:950;letter-spacing:-.02em}
.admin-product-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.admin-product-detail{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;min-width:0}
.admin-product-detail span{color:var(--muted);font-weight:700}
.admin-product-detail strong{overflow-wrap:anywhere}
.admin-product-note{font-size:10px;color:#8b5d00;background:#fff8e8;border:1px solid #f2dfb1;padding:8px 9px;border-radius:10px;font-weight:800;overflow-wrap:anywhere}
.admin-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
.empty-card{grid-column:1/-1;padding:46px 20px;text-align:center}
.empty-card h3{margin:10px 0 5px;font-size:16px}
.empty-card p{margin:0;color:var(--muted);font-size:12px}
.empty-icon{width:44px;height:44px;margin:0 auto;border-radius:14px;background:#eef0ff;color:var(--brand);display:grid;place-items:center;font-weight:950;font-size:18px}
.loading-card{padding:18px;display:grid;gap:14px}
.loading-shimmer{height:18px;border-radius:8px;background:linear-gradient(90deg,#eef0f5,#f8f9fb,#eef0f5);background-size:200% 100%;animation:shimmer 1.2s infinite}
.loading-shimmer.short{width:55%;height:12px}
@keyframes shimmer{to{background-position:-200% 0}}
.switch-row{display:flex;align-items:center;gap:10px;cursor:pointer;padding-top:3px}
.switch-row input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{width:42px;height:24px;border-radius:99px;background:#dfe3eb;position:relative;transition:.18s;flex:none}
.switch-ui:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;background:#fff;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.15);transition:.18s}
.switch-row input:checked+.switch-ui{background:var(--brand)}
.switch-row input:checked+.switch-ui:before{transform:translateX(18px)}
.switch-row b{display:block;font-size:12px}.switch-row small{display:block;font-size:10px;color:var(--muted);margin-top:2px}

/* Storefront */
.store-nav{max-width:1460px}
.store-brand{min-width:0;flex:none}
.store-search{position:relative;max-width:440px}
.store-search .input{height:42px}
.cart-button{margin-left:auto;display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#151a35;color:#fff;padding:10px 13px;border-radius:13px;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 10px 20px rgba(21,26,53,.12)}
.cart-icon{font-size:15px;line-height:1}.cart-button b{min-width:21px;height:21px;padding:0 5px;border-radius:99px;background:#fff;color:#151a35;display:grid;place-items:center;font-size:10px}.cart-button b.has-items{background:#8c7cff;color:#fff}
.store-main{max-width:1460px;padding-top:26px}
.store-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:16px}
.store-heading h1{font-size:clamp(27px,4vw,44px);line-height:1.04;margin:7px 0 0;letter-spacing:-.035em}
.date-chip{display:inline-flex;padding:7px 10px;background:#eeedff;color:var(--brand);border:1px solid #ddd9ff;border-radius:99px;font-size:9px;font-weight:950;letter-spacing:.08em}
.catalog-summary{font-size:11px;font-weight:900;color:var(--muted);padding-bottom:4px}
.store-filter-bar{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:10px;align-items:start;margin-bottom:18px}
.category-buttons{display:flex;gap:8px;flex-wrap:wrap}
.category-buttons .filter-chip{padding:11px 14px}
.brand-picker{position:relative;min-width:0}
.brand-picker-button{width:100%;height:42px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;font-weight:900;cursor:pointer}
.brand-picker.open .brand-picker-button{border-color:#a39aff;box-shadow:0 0 0 4px rgba(85,70,233,.09)}
.brand-menu{display:none;position:absolute;right:0;top:48px;width:min(330px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 24px 55px rgba(22,28,45,.16);z-index:80;padding:10px}
.brand-picker.open .brand-menu{display:block}
.brand-search{position:relative}.brand-search .input{height:40px}
.brand-options{margin-top:8px;max-height:min(320px,55vh);overflow:auto;display:grid;gap:3px}
.brand-option{width:100%;border:0;background:#fff;border-radius:10px;padding:10px 10px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer;font-size:11px;font-weight:800}.brand-option:hover,.brand-option.active{background:#f0efff;color:var(--brand)}.brand-option b{font-size:9px;color:#9aa2b2}.brand-option.hidden{display:none}
.filter-state{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f7f7fd;border:1px solid #e3e4ef;border-radius:12px;padding:8px 11px;margin:-5px 0 14px;font-size:10px;font-weight:800;color:#677186}.filter-state button{border:0;background:none;color:var(--brand);font-weight:900;cursor:pointer}
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.p-card{padding:15px;overflow:visible;gap:8px}
.p-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.p-card-head>div{min-width:0}.p-card h2{margin:4px 0 0;font-size:15px;line-height:1.22;overflow-wrap:anywhere}.p-brand{font-size:10px}.category-badge{background:#f4f5f8;color:#697386;border-radius:99px;padding:5px 7px;font-size:9px;font-weight:900;white-space:nowrap}
.p-meta{margin:5px 0 0;min-height:25px}.p-price{font-size:22px;margin-top:5px;letter-spacing:-.025em}.p-colours{display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px;font-size:10px;line-height:1.45;padding-top:9px;margin-top:2px;border-top:1px solid var(--line)}.p-colours span{color:var(--muted);font-weight:700}.p-colours strong{overflow-wrap:anywhere}.p-note{font-size:10px;color:#8b5d00;background:#fff8e8;border:1px solid #f2dfb1;padding:7px 8px;border-radius:9px;font-weight:800;overflow-wrap:anywhere}.p-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}.p-actions .btn{min-width:0;padding:10px 8px;font-size:11px}
.btn-whatsapp{background:#e8f8ef;color:#087a45;border:1px solid #087a45}.btn-whatsapp:hover{background:#d9f2e4}
.store-empty{margin-top:25px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:46px 20px}.store-empty h3{margin:10px 0 5px}.store-empty p{margin:0;color:var(--muted);font-size:12px}
.store-footer{max-width:1460px;padding-top:22px;flex-wrap:wrap}
.store-toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:120;background:#151a35;color:#fff;border-radius:12px;padding:11px 15px;font-size:11px;font-weight:800;box-shadow:0 20px 50px rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.08)}.store-toast.bad{background:#7f1d2d}

/* Cart */
.cart-backdrop{position:fixed;inset:0;background:rgba(8,10,20,.45);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:.2s;z-index:90}.cart-backdrop.open{opacity:1;pointer-events:auto}
.cart-drawer{position:fixed;right:0;top:0;bottom:0;width:min(440px,100vw);background:#fff;z-index:100;transform:translateX(100%);transition:transform .23s ease;box-shadow:-24px 0 60px rgba(10,14,28,.16);display:flex;flex-direction:column;min-width:0}
.cart-drawer.open{transform:translateX(0)}.cart-head{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--line)}.cart-head h2{margin:3px 0 0;font-size:20px}.cart-close{color:var(--text);background:#f4f5f8}.cart-date{padding:9px 20px;background:#f8f8fc;color:var(--muted);font-size:10px}.cart-list{padding:8px 15px;overflow:auto;min-height:0;flex:1}.cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 10px;padding:14px 5px;border-bottom:1px solid var(--line)}.cart-item-main{min-width:0}.cart-item-main span{display:block;font-size:9px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.06em}.cart-item-main strong{display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere}.cart-item-main small{display:block;margin-top:4px;font-size:9px;color:var(--muted);overflow-wrap:anywhere}.cart-item-price{font-size:12px;font-weight:950;align-self:start}.qty-stepper{grid-column:1/-1;display:inline-flex;align-items:center;width:max-content;border:1px solid var(--line);border-radius:10px;overflow:hidden}.qty-stepper button{width:30px;height:30px;border:0;background:#f7f8fb;color:var(--text);cursor:pointer;font-weight:900}.qty-stepper b{min-width:31px;text-align:center;font-size:11px}.qty-stepper .remove-line{margin-left:4px;border-left:1px solid var(--line);color:var(--danger);background:#fff8f8}.cart-empty{padding:45px 20px;text-align:center}.cart-empty h3{margin:10px 0 5px}.cart-empty p{margin:0;color:var(--muted);font-size:11px}.cart-foot{padding:15px 20px;border-top:1px solid var(--line);background:#fff;display:grid;gap:9px}.cart-total{display:flex;justify-content:space-between;align-items:center}.cart-total span{font-size:11px;color:var(--muted);font-weight:800}.cart-total strong{font-size:22px}.cart-order-btn{width:100%}.cart-foot .btn{width:100%}

/* Prevent wide admin tables from creating page-level horizontal scroll. */
.table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden}.data-table{min-width:0;table-layout:fixed}.data-table th,.data-table td{overflow-wrap:anywhere}

@media(max-width:1250px){.admin-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-filters{grid-template-columns:minmax(220px,1fr) 170px 170px auto}}
@media(max-width:900px){.products-toolbar-main{display:grid}.products-kpis{justify-content:flex-start}.catalog-filters{grid-template-columns:1fr 1fr}.catalog-filters .search-field,.catalog-filters .btn{grid-column:1/-1}.admin-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.store-filter-bar{grid-template-columns:1fr}.brand-picker{width:100%}.brand-menu{left:0;right:auto}.store-heading{align-items:flex-start}.store-search{max-width:none;flex:1}.data-table th,.data-table td{padding:9px 7px;font-size:10px}.data-table th{font-size:9px}}
@media(max-width:650px){.store-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.store-search{grid-column:1/-1;grid-row:2;width:100%}.cart-button{margin-left:0;justify-self:end}.store-brand strong{font-size:15px}.store-brand small{font-size:9px}.admin-product-grid{grid-template-columns:1fr}.catalog-filters{grid-template-columns:1fr}.catalog-filters .search-field,.catalog-filters .btn{grid-column:auto}.products-toolbar{padding:15px}.products-kpis{gap:5px}.products-kpis span{flex:1 1 calc(50% - 5px)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.p-card{padding:12px;border-radius:15px}.p-card h2{font-size:13px}.p-price{font-size:18px}.p-actions{grid-template-columns:1fr}.p-actions .btn{font-size:10px}.category-buttons{gap:6px}.category-buttons .filter-chip{flex:1 1 auto}.store-heading{display:flex}.store-heading h1{font-size:30px}.catalog-summary{font-size:10px}.store-footer{display:grid;gap:7px}.cart-drawer{width:100%}}
@media(max-width:430px){.product-grid{grid-template-columns:1fr 1fr}.p-card{min-width:0}.category-buttons .filter-chip{padding:9px 8px;font-size:10px}.brand-picker-button{height:40px}.store-heading h1{font-size:27px}.p-colours{grid-template-columns:45px minmax(0,1fr);font-size:9px}.p-note{font-size:9px}.admin-product-actions{grid-template-columns:1fr}.permission-grid{max-width:100%;overflow:hidden}}


/* v3 refinement overrides: aligned product rows, reference-style product edit modal, configurable storefront theme */
.products-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.products-toolbar-top h2{margin:3px 0 0;font-size:20px}.products-new-btn{flex:none}
.product-stat-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.product-stat{min-width:0;display:inline-flex;align-items:center;justify-content:space-between;gap:9px;border:1px solid var(--line);background:#fbfbfd;color:var(--text);border-radius:12px;padding:9px 12px;cursor:pointer;font-size:10px;font-weight:900}.product-stat b{font-size:12px}.product-stat:hover{border-color:#c8c4ff;background:#f8f7ff}.product-stat.active{background:#1b2140;color:#fff;border-color:#1b2140}.product-stat.active b{color:#fff}
.catalog-filters{grid-template-columns:minmax(240px,1.5fr) minmax(180px,.6fr) minmax(180px,.6fr);margin-top:14px}.catalog-filters .search-field{position:relative}.catalog-filters .search-field>span{color:var(--brand);font-weight:900}
.admin-products-table{min-width:0;width:100%;}
.admin-product-header,.admin-product-row{display:grid;grid-template-columns:minmax(150px,1.45fr) minmax(95px,.82fr) minmax(95px,.82fr) minmax(78px,.68fr) minmax(135px,1.45fr) minmax(92px,.78fr) minmax(72px,.66fr) minmax(128px,.95fr);}
.admin-product-header{margin:0 0 7px;padding:0 14px;align-items:center;color:#697386;font-size:9px;font-weight:950;letter-spacing:.07em;text-transform:uppercase;}
.admin-product-header>div{min-width:0;padding:0 0 0 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.admin-product-header>div:first-child{padding-left:0;}
.admin-product-list{display:grid;gap:9px;min-width:0;}
.admin-product-row{align-items:stretch;gap:0;padding:0;overflow:hidden;}
.admin-product-model,.admin-product-cell,.admin-product-price-cell,.admin-product-badge,.admin-product-actions{min-width:0;padding:13px 12px;display:flex;flex-direction:column;justify-content:center;}
.admin-product-model{border-right:1px solid var(--line);}
.admin-product-brand{font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:var(--brand);margin-bottom:4px;line-height:1.1;}
.admin-product-model strong{font-size:13px;line-height:1.25;overflow-wrap:anywhere;}
.admin-product-cell{border-right:1px solid var(--line);}
.admin-product-cell b{display:block;font-size:10px;line-height:1.35;overflow-wrap:anywhere;}
.admin-product-colours b{max-height:3.6em;overflow:hidden;}
.admin-product-price-cell{border-right:1px solid var(--line);}
.admin-product-price-cell strong{display:block;font-size:15px;letter-spacing:-.01em;white-space:nowrap;}
.admin-product-badge{border-right:1px solid var(--line);align-items:stretch;}
.product-badge-select{font-size:9px;font-weight:800;padding:8px 8px;}
.admin-product-mrp{display:inline-block;margin-left:0;margin-top:5px;color:#d11f2f;background:#fff1a8;border:1px solid #f0cb52;border-radius:999px;padding:3px 6px;font-size:10px;font-weight:900;white-space:nowrap;align-self:flex-start;}
.admin-product-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.admin-product-actions .btn{width:100%;min-width:0;padding:8px 9px;}
.admin-product-row [data-label]::before{display:none;}
.admin-product-note-row{grid-column:1/-1;padding:8px 12px;border-top:1px solid var(--line);background:#fafbfe;}
.admin-product-note-row span{display:inline-block;color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-right:7px;}
.admin-product-note-row b{font-size:9px;color:#8b5d00;overflow-wrap:anywhere;}
.empty-card{grid-column:1/-1}.loading-card{padding:18px}
.product-edit-modal{width:min(1080px,100%);max-height:92vh}.product-edit-modal .modal-head{padding:19px 22px}.product-edit-modal .modal-head h3{font-size:18px;margin-top:3px}.product-edit-modal .modal-body{padding:24px 22px}.product-edit-modal .modal-foot{padding:16px 22px}.product-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px}.product-form-grid .field{margin-bottom:0}.product-form-grid .colours-field{grid-column:1 / span 2}.product-form-grid .notes-field{grid-column:3}.product-form-grid .colour-select{min-height:188px;border-radius:14px;padding:8px 10px}.product-form-grid .colour-select option{padding:4px 3px}.form-help{margin-top:7px}.modal-close-btn{background:#f4f5f8;color:var(--text)}
/* Storefront theme is supplied via CSS variables from admin settings. */
.store-top{background:var(--store-header-bg)}.store-nav{color:var(--store-header-text)}.store-brand,.store-brand strong,.store-brand small{color:var(--store-header-text)}.store-brand small{opacity:.72}.store-search{position:relative}.store-search .input{background:var(--store-search-bg);color:var(--store-search-text);padding-right:48px;border-color:rgba(0,0,0,.09)}.store-search .input::placeholder{color:color-mix(in srgb,var(--store-search-text) 56%, transparent)}.store-search-icon{position:absolute;right:5px;top:5px;width:32px;height:32px;border-radius:9px;background:var(--store-search-icon-bg);color:var(--store-search-icon-text);display:grid;place-items:center;font-size:16px;font-weight:900;z-index:2;pointer-events:none}.cart-button{background:var(--store-cart-bg);color:var(--store-cart-text);border-color:color-mix(in srgb,var(--store-cart-text) 18%, var(--store-cart-bg));box-shadow:0 10px 22px color-mix(in srgb,var(--store-cart-bg) 28%, transparent)}.cart-icon{color:var(--store-cart-icon)}.cart-button b{background:var(--store-cart-badge-bg);color:var(--store-cart-badge-text);font-size:11px;padding:0 7px;min-width:0}.cart-button b.has-items{background:var(--store-cart-badge-bg);color:var(--store-cart-badge-text)}.date-line{font-size:12px;font-weight:950;letter-spacing:.055em;color:#283044;text-align:left}.store-heading{align-items:flex-end}.store-heading h1{margin-top:6px}
.store-filter-bar{grid-template-columns:minmax(0,1fr) 250px;align-items:center}.brand-picker-button{height:44px}.brand-search{position:relative}.brand-search>span{position:absolute;left:12px;top:0;height:40px;display:grid;place-items:center;color:var(--brand);font-weight:900;z-index:2}.brand-search .input{padding-left:34px}.brand-search .input:focus{border-color:#a39aff}.brand-options{padding-right:2px}
.p-card{padding:16px}.p-card-head{align-items:flex-start}.p-brand{display:block;margin-top:-1px;margin-bottom:1px;font-size:9px;letter-spacing:.07em;text-transform:uppercase;color:#5e687c;font-weight:950}.p-card h2{margin-top:2px}.p-actions{grid-template-columns:1fr 1fr}.p-actions .btn{white-space:nowrap}.p-price{margin-top:7px}
/* Quantity dialog */
.store-quantity-modal{z-index:140}.quantity-dialog{width:min(390px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 30px 90px rgba(9,12,25,.28);position:relative}.quantity-close{position:absolute;right:12px;top:12px;background:#f4f5f8;color:var(--text)}.quantity-dialog h2{margin:5px 0 4px;font-size:22px}.quantity-product{margin:0 0 20px;color:var(--muted);font-size:12px;font-weight:700;line-height:1.5}.quantity-field{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fafbfe}.quantity-field button{border:0;background:#f0f1f6;font-size:20px;font-weight:900;cursor:pointer}.quantity-field input{border:0;background:#fff;width:100%;min-width:0;text-align:center;font-size:22px;font-weight:900;padding:12px;outline:none}.quantity-submit{width:100%;margin-top:13px}
.settings-page{min-width:0}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.settings-main,.settings-side{display:grid;gap:18px}.settings-card .card-head{padding:19px 20px}.settings-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.settings-form-grid .field{margin-bottom:0}.settings-form-grid .full{grid-column:1/-1}.settings-logo-preview{width:80px;height:80px;object-fit:contain;border:1px solid var(--line);border-radius:14px;padding:8px;background:#fff}.theme-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 18px}.color-setting{padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fbfbfd}.color-setting label{display:block;font-size:10px;font-weight:900;color:#475467;margin-bottom:8px}.color-setting>div{display:flex;align-items:center;gap:9px}.color-setting input[type=color]{width:38px;height:30px;padding:0;border:0;background:none;cursor:pointer}.color-setting code{font-size:10px;color:var(--muted)}.settings-save{width:100%;margin-top:10px}.settings-save-card h3{margin:5px 0 4px}.settings-preview-card .card-head{padding:16px 18px}.settings-theme-preview{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;gap:9px;align-items:center;background:var(--pv-bg);color:var(--pv-text);border-radius:15px;padding:12px}.preview-brand{display:flex;align-items:center;gap:7px;min-width:0}.preview-mark{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.12);display:grid;place-items:center;font-size:8px;font-weight:950}.preview-brand b{display:block;font-size:10px}.preview-brand small{display:block;font-size:7px;opacity:.7}.preview-search{height:32px;background:var(--pv-search);color:var(--pv-search-text);border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding-left:9px;overflow:hidden}.preview-search span{width:24px;height:24px;border-radius:7px;background:var(--pv-search-icon-bg);color:var(--pv-search-icon-text);display:grid;place-items:center;flex:none}.preview-search em{font-style:normal;font-size:8px;opacity:.72;padding-right:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-cart{height:32px;display:flex;align-items:center;gap:4px;background:var(--pv-cart);color:var(--pv-cart-text);border-radius:9px;padding:0 8px;font-size:10px;white-space:nowrap}.preview-cart b{font-size:8px}
@media(max-width:1250px){
  .admin-product-header,.admin-product-row{grid-template-columns:minmax(145px,1.4fr) minmax(90px,.8fr) minmax(90px,.8fr) minmax(74px,.65fr) minmax(125px,1.3fr) minmax(88px,.75fr) minmax(70px,.62fr) minmax(118px,.92fr)}
  .settings-layout{grid-template-columns:1fr 280px}
}
@media(max-width:1050px){
  .admin-product-header{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:0;}
  .admin-product-header>div:nth-child(5),.admin-product-header>div:nth-child(6),.admin-product-header>div:nth-child(7),.admin-product-header>div:nth-child(8){display:none;}
  .admin-product-row{grid-template-columns:1.6fr 1fr 1fr 1fr;}
  .admin-product-row .admin-product-model{border-right:1px solid var(--line);}
  .admin-product-row .admin-product-colours{grid-column:1/span 2;}
  .admin-product-row .admin-product-price-cell{grid-column:3;border-right:1px solid var(--line);}
  .admin-product-row .admin-product-badge{grid-column:4;border-right:0;}
  .admin-product-row .admin-product-actions{grid-column:1/-1;border-top:1px solid var(--line);padding:9px 12px;display:grid;grid-template-columns:1fr 1fr;}
  .settings-layout{grid-template-columns:1fr}.settings-side{grid-template-columns:1fr 1fr}
}
@media(max-width:900px){
  .products-toolbar-top{align-items:flex-start}
  .catalog-filters{grid-template-columns:1fr 1fr}
  .catalog-filters .search-field{grid-column:1/-1}
  .admin-product-header{padding:0 12px;grid-template-columns:1.3fr 1fr 1fr 1fr;}
  .admin-product-row{grid-template-columns:1.3fr 1fr 1fr 1fr;}
  .admin-product-row .admin-product-colours{grid-column:1/span 2;}
  .product-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-form-grid .colours-field{grid-column:1/-1}.product-form-grid .notes-field{grid-column:1/-1}
  .theme-settings-grid,.settings-form-grid{grid-template-columns:1fr}.settings-side{grid-template-columns:1fr}.store-filter-bar{grid-template-columns:1fr}.brand-picker{width:100%}
}
@media(max-width:650px){
  .products-toolbar-top{display:grid;grid-template-columns:1fr auto}.products-toolbar-top h2{font-size:17px}
  .product-stat-buttons{display:grid;grid-template-columns:1fr 1fr}.product-stat{width:100%}
  .catalog-filters{grid-template-columns:1fr}.catalog-filters .search-field{grid-column:auto}
  .admin-product-header{display:none}
  .admin-product-row{grid-template-columns:1fr 1fr;border-radius:15px;}
  .admin-product-row [data-label]{display:flex;flex-direction:column;justify-content:center;min-width:0;border-right:1px solid var(--line);padding:11px 12px;position:relative;}
  .admin-product-row [data-label]::before{display:block;content:attr(data-label);color:var(--muted);font-size:8px;font-weight:950;letter-spacing:.06em;text-transform:uppercase;margin-bottom:5px;line-height:1;}
  .admin-product-row .admin-product-model{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line);}
  .admin-product-row .admin-product-colours{grid-column:1/-1;}
  .admin-product-row .admin-product-price-cell{border-right:1px solid var(--line);}
  .admin-product-row .admin-product-badge{border-right:0;align-items:flex-start}.admin-product-row .product-badge-select{width:100%;}
  .admin-product-row .admin-product-actions{grid-column:1/-1;border-right:0;border-top:1px solid var(--line);padding:9px 10px;display:grid;grid-template-columns:1fr 1fr;}
  .admin-product-row .admin-product-actions::before{margin-bottom:7px;}
  .admin-product-row .admin-product-actions .btn{padding:9px 8px;font-size:10px;}
  .product-edit-modal .modal-body{padding:19px 16px}.product-form-grid{grid-template-columns:1fr;gap:13px}.product-form-grid .colours-field,.product-form-grid .notes-field{grid-column:1}.product-edit-modal .modal-foot{padding:13px 16px}.product-edit-modal .modal-foot .btn{flex:1}
  .store-nav{padding:11px 14px}.store-search .input{padding-right:47px}.store-heading{display:block}.catalog-summary{margin-top:8px}.date-line{font-size:10px}.store-filter-bar{gap:9px}.category-buttons{display:grid;grid-template-columns:1fr 1fr 1fr}.category-buttons .filter-chip{padding:10px 7px;font-size:9px}.brand-picker-button{height:42px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.p-card{padding:11px;border-radius:15px}.p-card h2{font-size:12px}.p-price{font-size:17px}.p-actions{grid-template-columns:1fr 1fr;gap:5px}.p-actions .btn{padding:9px 5px;font-size:9px}.quantity-dialog{padding:22px}.settings-save-card{position:static}
}
@media(max-width:390px){
  .store-brand small{display:none}.cart-button{padding:9px 10px}.cart-button .cart-icon{font-size:14px}.cart-button b{font-size:10px}.category-buttons .filter-chip{font-size:8px}.p-actions .btn{font-size:8px;padding:8px 4px}.admin-product-model strong{font-size:12px}.admin-product-row [data-label]{padding:10px}.admin-product-actions .btn{font-size:9px}
}
@media(max-width:390px){.store-brand small{display:none}.cart-button{padding:9px 10px}.cart-button .cart-icon{font-size:14px}.cart-button b{font-size:10px}.category-buttons .filter-chip{font-size:8px}.p-actions .btn{font-size:8px;padding:8px 4px}.admin-product-model strong{font-size:12px}.admin-product-cell b{font-size:9px}}


/* v5 — Sheet Editor + catalog master polish */
.sheet-editor-page{display:grid;gap:14px;min-width:0}.sheet-toolbar-card .card-head{align-items:flex-start}.sheet-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.sheet-dirty{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:10px;background:#f2f3f8;color:var(--muted);font-size:10px;font-weight:900}.sheet-filter-row{display:grid;grid-template-columns:minmax(240px,1.6fr) minmax(160px,.7fr) minmax(160px,.7fr) auto;gap:10px;padding:14px 18px;border-top:1px solid var(--line)}
.sheet-card{overflow:hidden}.sheet-head,.sheet-row{display:grid;grid-template-columns:minmax(170px,1.5fr) minmax(110px,.9fr) minmax(110px,.9fr) minmax(90px,.75fr) minmax(145px,1.35fr) minmax(100px,.82fr) minmax(90px,.72fr) minmax(100px,.85fr);min-width:0}.sheet-head{background:#f7f8fb;border-bottom:1px solid var(--line);padding:10px 12px;color:#667085;font-size:8px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.sheet-head>div{min-width:0;padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sheet-row{align-items:stretch;border-bottom:1px solid var(--line);transition:background .15s ease}.sheet-row:last-child{border-bottom:0}.sheet-row:hover{background:#fcfcff}.sheet-row.is-dirty{background:#fffdf4}.sheet-row.sheet-filtered{display:none}.sheet-cell{min-width:0;padding:8px;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:5px}.sheet-cell:last-child{border-right:0}.sheet-model{gap:6px}.sheet-brand-wrap{display:grid;grid-template-columns:38px minmax(0,1fr);gap:6px;align-items:center}.sheet-brand-wrap>span{font-size:7px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.05em}.sheet-input,.sheet-select{width:100%;min-width:0;border:1px solid transparent;background:#fff;border-radius:8px;padding:7px 8px;outline:none;color:var(--text);font-size:10px;font-weight:800}.sheet-input:hover,.sheet-select:hover{border-color:#d8dbea}.sheet-input:focus,.sheet-select:focus{border-color:#a39aff;box-shadow:0 0 0 3px rgba(85,70,233,.08)}.sheet-select{appearance:auto}.sheet-model-input{font-size:11px;font-weight:900}.sheet-colour-multi{min-height:72px;padding:5px 6px}.sheet-colour-multi option{padding:3px 4px}.sheet-price-wrap{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;border:1px solid transparent;border-radius:8px;background:#fff;overflow:hidden}.sheet-price-wrap:focus-within{border-color:#a39aff;box-shadow:0 0 0 3px rgba(85,70,233,.08)}.sheet-price-wrap>span{font-size:9px;color:var(--muted);text-align:center;font-weight:900}.sheet-price{border:0;border-radius:0;padding-left:0;font-weight:950}.sheet-mrp-wrap{margin-top:5px;border:1px solid #f0cb52;border-radius:8px;background:#fffdf0;padding:5px}.sheet-mrp-wrap label{display:block;font-size:7px;line-height:1;color:#9a6a00;font-weight:950;letter-spacing:.05em;text-transform:uppercase;margin-bottom:3px}.sheet-mrp-wrap>div{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center}.sheet-mrp-wrap>div>span{font-size:9px;color:#9a6a00;text-align:center;font-weight:900}.sheet-mrp{border:0!important;border-radius:0!important;padding-left:0!important;color:#c51e30!important;font-weight:900!important;background:transparent!important}.sheet-mrp:focus{box-shadow:none!important;border-color:transparent!important}.sheet-row-action .btn{width:100%}.sheet-loading{display:grid;gap:8px;padding:16px}.sheet-loading span{height:32px;border-radius:8px;background:linear-gradient(90deg,#eef0f5,#f8f9fb,#eef0f5);background-size:200% 100%;animation:shimmer 1.2s infinite}
.masters-head{align-items:flex-start}.masters-body{padding-top:14px}.masters-card .attr-tabs{padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.masters-card .attr-tab{display:flex;align-items:center;justify-content:flex-start;gap:8px}.masters-card .attr-tab span{font-size:13px}.masters-card .attr-tab b{margin-left:auto;font-size:9px;color:#9aa2b2}.masters-card .attr-panel{margin-top:16px;border:1px solid var(--line);border-radius:15px;overflow:hidden}.masters-card .attr-panel[hidden]{display:none}.attr-panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:15px 16px;border-bottom:1px solid var(--line);background:#fafbfe}.attr-panel-head h3{margin:0;font-size:14px}.attr-panel-head p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.45}.master-table th,.master-table td{padding:11px 13px;font-size:11px}.master-table th{font-size:9px}
/* Store search + cart reliability */
.store-search .input{padding-left:14px;padding-right:52px}.store-search-icon{left:auto!important;right:5px!important;pointer-events:none}.cart-button{color:var(--store-cart-text)}.cart-button .cart-icon{width:17px;height:17px;display:block;flex:none;color:var(--store-cart-icon);stroke:currentColor}.cart-button b{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 7px;line-height:1;border-radius:999px}.brand-menu{z-index:140}.brand-options{overscroll-behavior:contain}.brand-option{position:relative;z-index:1}
@media(max-width:1150px){.sheet-head,.sheet-row{grid-template-columns:minmax(145px,1.35fr) minmax(100px,.88fr) minmax(100px,.88fr) minmax(82px,.72fr) minmax(125px,1.2fr) minmax(88px,.78fr) minmax(82px,.7fr) minmax(92px,.82fr)}.sheet-filter-row{grid-template-columns:1fr 1fr}.sheet-filter-row .search-field{grid-column:1/-1}.masters-card .attr-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.sheet-head{display:none}.sheet-row{grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:15px;margin:10px}.sheet-cell{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px}.sheet-cell::before{content:attr(data-title);display:block;color:var(--muted);font-size:7px;font-weight:950;letter-spacing:.07em;text-transform:uppercase;margin-bottom:1px}.sheet-cell:nth-last-child(-n+2){border-bottom:0}.sheet-model{grid-column:1/-1;border-right:0}.sheet-colours{grid-column:1/-1}.sheet-row-action{grid-column:1/-1;border-right:0}.sheet-row-action .btn{max-width:180px}.sheet-filter-row{grid-template-columns:1fr}.masters-card .attr-tabs{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.sheet-toolbar-card .card-head{display:grid;gap:12px}.sheet-toolbar-actions{justify-content:stretch}.sheet-toolbar-actions .btn,.sheet-dirty{flex:1;justify-content:center}.sheet-filter-row{padding:12px}.masters-card .attr-tabs{grid-template-columns:1fr 1fr}.masters-card .attr-tab{font-size:10px}.attr-panel-head{display:grid}.master-table .actions{justify-content:flex-start;flex-wrap:wrap}.store-search{min-width:0}.store-search .input{font-size:11px}}


/* v6 — Sheet Editor Excel-like alignment + MRP storefront pill */
.sheet-filter-row{grid-template-columns:minmax(280px,1.5fr) minmax(190px,.8fr) minmax(190px,.8fr) auto;align-items:center}
.sheet-card{border:1px solid #d8deea;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(28,36,61,.04)}
.sheet-head,.sheet-row{grid-template-columns:minmax(210px,1.55fr) minmax(125px,.86fr) minmax(115px,.86fr) minmax(95px,.7fr) minmax(160px,1.15fr) minmax(115px,.78fr) minmax(100px,.7fr) minmax(105px,.72fr)}
.sheet-head{padding:0;background:#f1f4fa;border-bottom:2px solid #cfd6e3;color:#26334a;font-size:10px;letter-spacing:.04em;font-weight:950;text-transform:none}
.sheet-head>div{padding:11px 10px;border-right:1px solid #d4dbe7;display:flex;align-items:center;min-height:40px}
.sheet-head>div:last-child{border-right:0}
.sheet-row{background:#fff;border-bottom:1px solid #dde2eb;min-height:58px}
.sheet-row:nth-child(even){background:#fbfcfe}
.sheet-row:hover{background:#f7f9ff}
.sheet-row.is-dirty{background:#fff9e7}
.sheet-cell{padding:6px 7px;border-right:1px solid #dfe4ed;border-left:0;border-bottom:0;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}
.sheet-cell:last-child{border-right:0}
.sheet-model{gap:5px;align-items:stretch}
.sheet-brand-wrap{grid-template-columns:1fr;gap:3px;width:100%}
.sheet-brand-wrap>span{display:none}
.sheet-input,.sheet-select{height:34px;min-height:34px;border:1px solid #dfe4ed;border-radius:7px;background:#fff;padding:6px 8px;font-size:10px;font-weight:750;box-sizing:border-box;box-shadow:none}
.sheet-input:hover,.sheet-select:hover{border-color:#c4cbda}
.sheet-input:focus,.sheet-select:focus{border-color:#8f86ef;box-shadow:0 0 0 2px rgba(85,70,233,.08)}
.sheet-model-input{font-size:11px;font-weight:900}
.sheet-colour-multi{height:34px;min-height:34px;padding:3px 5px;overflow:auto}
.sheet-colour-multi option{padding:2px 3px}
.sheet-price-wrap{width:100%;height:34px;grid-template-columns:20px minmax(0,1fr);border:1px solid #dfe4ed;border-radius:7px;background:#fff}
.sheet-price{height:32px;border:0;padding:6px 7px;background:transparent}
.sheet-price-wrap:focus-within{border-color:#8f86ef;box-shadow:0 0 0 2px rgba(85,70,233,.08)}
.sheet-row-action{padding:6px}
.sheet-row-action .btn{height:34px;min-height:34px;font-size:9px;border-radius:7px}
.p-meta{align-items:center}
.pill-mrp{background:#fff0a6;color:#765c00;border:1px solid #f0d55a;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
.p-colours .availability-note{color:#9a7200;font-style:italic;font-weight:850}
@media(max-width:1150px){
  .sheet-head,.sheet-row{grid-template-columns:minmax(185px,1.45fr) minmax(110px,.86fr) minmax(100px,.82fr) minmax(85px,.68fr) minmax(145px,1.05fr) minmax(100px,.75fr) minmax(90px,.68fr) minmax(92px,.7fr)}
  .sheet-filter-row{grid-template-columns:minmax(0,1.4fr) minmax(170px,.8fr) minmax(170px,.8fr) auto}
}
@media(max-width:850px){
  .sheet-head{display:none}
  .sheet-row{grid-template-columns:1fr 1fr;border:1px solid #dfe4ed;border-radius:13px;margin:10px;background:#fff!important;overflow:hidden}
  .sheet-cell{min-height:66px;padding:9px;border-right:1px solid #dfe4ed;border-bottom:1px solid #dfe4ed}
  .sheet-cell::before{font-size:8px;color:#667085;margin-bottom:5px}
  .sheet-model,.sheet-colours,.sheet-row-action{grid-column:1/-1}
  .sheet-model{border-right:0}
  .sheet-row-action{border-right:0;border-bottom:0;align-items:flex-start}
  .sheet-row-action .btn{max-width:180px;width:100%}
  .sheet-filter-row{grid-template-columns:1fr 1fr;padding:12px}
  .sheet-filter-row .search-field{grid-column:1/-1}
}
@media(max-width:560px){
  .sheet-filter-row{grid-template-columns:1fr}
  .sheet-filter-row .search-field{grid-column:auto}
}

/* v7 — MRP placement + Notes image master */
.p-price-line{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin-top:5px;min-width:0}.p-price-line .p-price{margin-top:0}.p-mrp-pill{margin-left:2ch;background:#fff1a8;color:#d11f2f;border:1px solid #f0cb52;white-space:nowrap;font-size:10px;font-weight:900}.p-side-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none}.p-badge-stack{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:72px}.p-badge-name{font-size:10px;line-height:1.15;font-weight:900;text-align:center;overflow-wrap:anywhere;color:var(--text)}.p-note-tile{width:48px;height:48px;border-radius:10px;border:1px solid #dfe4ed;background:#f7f8fb;overflow:hidden;display:grid;place-items:center;box-shadow:0 6px 12px rgba(22,28,45,.05)}.p-note-tile img{width:100%;height:100%;display:block;object-fit:cover}.p-note-tile span{font-size:9px;font-weight:950;color:#7a8497;letter-spacing:.05em}.product-note-preview{display:flex;align-items:center;gap:8px;margin-top:9px;padding:7px 9px;border:1px solid #e4e7ee;border-radius:10px;background:#fafbfe}.product-note-preview-image{width:38px;height:38px;border-radius:8px;overflow:hidden;background:#f0f2f6;display:grid;place-items:center;flex:none}.product-note-preview-image img{width:100%;height:100%;object-fit:cover}.product-note-preview-image span{font-size:7px;font-weight:900;color:#8992a4}.product-note-preview-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notes-master-panel .master-table td,.notes-master-panel .master-table th{vertical-align:middle}.note-thumb{width:44px;height:44px;border:1px solid #dde3ec;border-radius:10px;overflow:hidden;background:#f5f7fa;display:grid;place-items:center}.note-thumb img{width:100%;height:100%;object-fit:cover}.note-thumb span{font-size:9px;color:#9aa2b2}.notes-scope-cell{display:flex;gap:5px;flex-wrap:wrap}.note-edit-grid{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:22px}.note-scope-editor{border:1px solid var(--line);border-radius:14px;padding:15px;background:#fbfcfe}.scope-editor-title{font-size:12px;font-weight:900;color:#28344a;margin-bottom:4px}.note-scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.note-scope-select{min-height:108px}.note-current-image{display:flex;align-items:center;gap:9px;margin-top:8px;color:var(--muted);font-size:10px}.note-current-image img{width:54px;height:54px;object-fit:cover;border-radius:10px;border:1px solid #dfe4ed}.note-edit-modal .modal-body{padding-bottom:18px}
@media(max-width:850px){.note-edit-grid{grid-template-columns:1fr}.note-scope-grid{grid-template-columns:1fr 1fr}.p-note-tile{width:44px;height:44px}}
@media(max-width:560px){.note-scope-grid{grid-template-columns:1fr}.p-note-tile{width:40px;height:40px}.p-mrp-pill{margin-left:2ch;font-size:9px}}

/* v9 — product badge read-only, taller sheet colours, user access matrix and addon manager */
.admin-product-badge{align-items:center;justify-content:center;text-align:center}.admin-product-badge-value{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:7px 9px;border-radius:999px;background:#f3f5fa;color:#39445a;border:1px solid #e0e5ef;font-size:10px;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.sheet-revert-help{font-size:9px;color:var(--muted);font-weight:800;max-width:250px}
.sheet-colour-multi{height:68px!important;min-height:68px!important;max-height:68px!important}

.access-matrix-card{overflow:hidden}.access-matrix-head{align-items:flex-start}.access-save-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.access-grid{width:100%;min-width:0}.access-grid-head,.access-user-row{display:grid;grid-template-columns:minmax(190px,1.2fr) repeat(5,minmax(150px,1fr)) repeat(3,minmax(120px,.78fr));min-width:0}.access-grid-head{background:#f1f4fa;border-bottom:2px solid #cfd6e3;color:#26334a;font-size:10px;font-weight:950}.access-grid-head>div{padding:12px 10px;border-right:1px solid #d4dbe7}.access-grid-head>div:last-child{border-right:0}.access-user-row{background:#fff;border-bottom:1px solid #dde2eb}.access-user-row:nth-of-type(2n+1){background:#fbfcfe}.access-user-cell,.access-section-cell{min-width:0;padding:10px;border-right:1px solid #dfe4ed}.access-user-cell{display:flex;flex-direction:column;justify-content:center;gap:2px}.access-user-cell strong{font-size:11px;overflow-wrap:anywhere}.access-user-cell span{font-size:9px;color:var(--muted)}.access-user-cell small{font-size:8px;color:var(--brand);font-weight:900;text-transform:uppercase;letter-spacing:.04em}.access-section-cell{display:flex;align-items:center;justify-content:center;min-height:76px}.access-mobile-label{display:none}.perm-checkboxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px;width:100%}.perm-check{display:flex;align-items:center;gap:4px;font-size:8px;color:#4a5568;font-weight:850;white-space:nowrap}.perm-check input{width:14px;height:14px;margin:0;accent-color:var(--brand)}.access-locked{background:#f8f9fb!important;color:#8b95a6;text-align:center}.access-locked div{display:flex;flex-direction:column;gap:2px}.access-locked strong{font-size:8px}.access-locked span{font-size:7px;text-transform:uppercase;letter-spacing:.06em;font-weight:900}.access-empty{padding:40px 20px;text-align:center}.access-empty h3{margin:4px 0;font-size:14px}.access-empty p{margin:0;color:var(--muted);font-size:11px}

.audit-table td{vertical-align:top}.audit-detail{min-width:200px;max-width:540px}.audit-summary{font-size:11px;line-height:1.45}.audit-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-top:6px}.audit-meta-item{border:1px solid #e3e7ee;border-radius:8px;padding:6px 7px;background:#fafbfe;min-width:0}.audit-meta-item>span{display:block;font-size:7px;text-transform:uppercase;letter-spacing:.05em;font-weight:950;color:#7b8495;margin-bottom:2px}.audit-meta-item>strong{font-size:8px;line-height:1.35;overflow-wrap:anywhere}.audit-inline{display:inline-flex;gap:4px;margin-right:5px;align-items:baseline}.audit-inline b{font-size:8px;color:#647084}.audit-inline em{font-style:normal}

.addons-page{display:grid;gap:14px}.addons-intro{max-width:760px;line-height:1.55}.addon-upload-form{display:grid;gap:10px}.addon-dropzone{display:flex;align-items:center;gap:12px;padding:14px;border:1px dashed #cdd5e2;border-radius:14px;background:#fafbfe}.addon-drop-icon{width:38px;height:38px;border-radius:12px;background:#efedff;color:var(--brand);display:grid;place-items:center;font-weight:950;font-size:16px;flex:none}.addon-dropzone strong{font-size:12px}.addon-file-button{margin-left:auto;flex:none}.addon-upload-meta{font-size:10px;color:var(--muted);font-weight:800}.addon-security-note{padding:11px 13px;border-radius:10px;background:#fff8e8;border:1px solid #f2dfb1;color:#7b5908;font-size:10px;line-height:1.5}.addon-list{display:grid;gap:8px;padding:14px}.addon-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;border:1px solid #e1e5ed;border-radius:13px;background:#fff}.addon-card.active{border-color:#cdebdc;box-shadow:0 6px 18px rgba(19,138,85,.06)}.addon-card-main{display:flex;gap:11px;min-width:0}.addon-icon{width:38px;height:38px;border-radius:12px;background:#f0efff;color:var(--brand);display:grid;place-items:center;font-weight:950;flex:none}.addon-copy{min-width:0}.addon-title-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.addon-title-line h3{margin:0;font-size:13px}.addon-copy>.subtle{margin-top:3px;line-height:1.45}.addon-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px;color:#7a8496;font-size:8px;font-weight:800}.addon-meta span{padding-right:8px;border-right:1px solid #e0e4ea}.addon-meta span:last-child{border-right:0}.addon-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;flex:none}.addon-spec-card .card-body{padding-top:16px}.addon-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.addon-spec-grid h3{font-size:11px;margin:0 0 7px}.code-box{margin:0;background:#101528;color:#e8ecf8;border-radius:12px;padding:13px;overflow:auto;font-size:9px;line-height:1.5;white-space:pre-wrap}

@media(max-width:1200px){.access-grid-head,.access-user-row{grid-template-columns:minmax(155px,1.1fr) repeat(5,minmax(95px,1fr)) repeat(3,minmax(82px,.72fr))}.access-grid-head{font-size:9px}.access-section-cell{padding:7px}.perm-check{font-size:7px}.perm-check input{width:13px;height:13px}.addon-spec-grid{grid-template-columns:1fr}}
@media(max-width:850px){.access-grid-head{display:none}.access-user-row{display:block;border:1px solid #dfe4ed;border-radius:14px;margin:10px;background:#fff!important;overflow:hidden}.access-user-cell{padding:13px;border-right:0;border-bottom:1px solid #e0e4ec}.access-section-cell{display:grid;grid-template-columns:120px minmax(0,1fr);min-height:54px;padding:9px 11px;border-right:0;border-bottom:1px solid #e0e4ed}.access-section-cell:last-child{border-bottom:0}.access-mobile-label{display:block;font-size:8px;color:var(--muted);font-weight:950;text-transform:uppercase;letter-spacing:.06em}.access-locked{display:grid;grid-template-columns:120px 1fr;text-align:left}.access-locked>div{display:flex;justify-content:center}.perm-checkboxes{grid-template-columns:repeat(4,minmax(60px,1fr))}.audit-detail{max-width:none}.addon-dropzone{align-items:flex-start}.addon-file-button{margin-left:0}}
@media(max-width:560px){.access-section-cell,.access-locked{grid-template-columns:95px minmax(0,1fr)}.perm-checkboxes{grid-template-columns:repeat(2,minmax(70px,1fr))}.access-save-tools{width:100%;justify-content:stretch}.access-save-tools .btn,.access-save-tools .sheet-dirty{flex:1;justify-content:center}.addon-card{display:grid}.addon-actions{justify-content:flex-start}.addon-meta{display:grid;grid-template-columns:1fr}.addon-meta span{border-right:0;padding:0}.addon-dropzone{display:grid}.sheet-revert-help{display:none}.sheet-colour-multi{height:68px!important;min-height:68px!important;max-height:68px!important}}
.addons-hero-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;flex-wrap:wrap}.addons-hero-actions .btn{white-space:nowrap}
@media(max-width:560px){.addons-hero-actions{width:100%;justify-content:flex-start}}

/* v11 — compact storefront badge layout: badge stays in the right visual lane without reserving a tall blank column. */
.p-card-head{position:relative;display:block;min-height:0;padding-right:88px;}
.p-card-main{min-width:0;}
.p-card-main .p-meta{margin:8px 0 0;min-height:25px;}
.p-side-meta{position:absolute;right:0;top:0;align-items:flex-end;z-index:1;}
.p-price-line{padding-right:88px;}
.p-colours{padding-right:88px;}
@media(max-width:650px){.p-card-head,.p-price-line,.p-colours{padding-right:75px}.p-side-meta{max-width:66px}.p-badge-stack{max-width:66px}}
@media(max-width:430px){.p-card-head,.p-price-line,.p-colours{padding-right:66px}.p-side-meta{max-width:58px}.p-badge-stack{max-width:58px}.p-note-tile{width:40px;height:40px}.p-badge-name{font-size:9px}}

/* v10 performance: render long lists only when near the viewport; visuals are unchanged. */
.admin-product-list,.sheet-rows,.product-grid{content-visibility:auto;contain-intrinsic-size:0 900px}

/* v12 — keep Sale Price + MRP on one readable line and reserve a consistent two-line Colours area. */
.p-card{container-type:inline-size}
.p-price-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2ch;flex-wrap:nowrap;min-width:0;white-space:nowrap}
.p-price-line .p-price{min-width:0;white-space:nowrap;overflow:visible;line-height:1.1}
.p-mrp-pill{margin-left:0;padding:5px 8px;line-height:1.2;justify-self:end}
.p-colours strong{display:block;min-height:2.9em;max-height:2.9em;line-height:1.45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.p-colours .availability-note{white-space:nowrap;text-overflow:clip;overflow:hidden}
@container (max-width:235px){
  .p-price-line{gap:1.6ch}
  .p-price-line .p-price{font-size:19px}
  .p-mrp-pill{font-size:9px;padding:5px 7px}
}
@container (max-width:195px){
  .p-price-line{gap:1.2ch}
  .p-price-line .p-price{font-size:17px;letter-spacing:-.035em}
  .p-mrp-pill{font-size:8px;padding:5px 6px}
}
@container (max-width:175px){
  .p-price-line{gap:1ch}
  .p-price-line .p-price{font-size:15.5px}
  .p-mrp-pill{font-size:7.5px;padding:4px 5px}
}
.price-line-compact .p-price{letter-spacing:-.035em}
.price-line-compact .p-mrp-pill{font-weight:950}

/* v12 refinement — don't reserve badge-column width from the price/colour rows.
   The card header itself reserves enough vertical room when a badge is present,
   giving Sale Price + MRP the full card width for a stable single-line layout. */
.p-card-head.has-badge{min-height:72px}
.p-price-line,.p-colours{padding-right:0}
@media(max-width:650px){.p-card-head,.p-price-line,.p-colours{padding-right:0}.p-card-head.has-badge{min-height:62px}}
@media(max-width:430px){.p-card-head,.p-price-line,.p-colours{padding-right:0}.p-card-head.has-badge{min-height:56px}}

/* v13 — prevent the right-side Badge image/name from colliding with the Sale Price + MRP row. */
.p-price-line{padding-right:0}
.p-card-head.has-badge + .p-price-line{margin-top:38px}
.p-card-head.has-badge + .p-price-line{position:relative;z-index:2}
@media(max-width:650px){.p-card-head.has-badge + .p-price-line{margin-top:32px}}
@media(max-width:430px){.p-card-head.has-badge + .p-price-line{margin-top:30px}}


/* v14 — required product pricing + equal-height storefront badge lane + shop details order modal */
.p-badge-placeholder .p-note-tile{display:grid;place-items:center;color:#8d95a8;background:#f7f8fb}
.p-badge-placeholder .p-note-tile svg{width:30px;height:30px;display:block}
.p-badge-placeholder-name{visibility:hidden;user-select:none}
.p-card-head.has-badge{min-height:72px}
.p-card-head.has-badge + .p-price-line{margin-top:38px;position:relative;z-index:2}
@media(max-width:650px){.p-card-head.has-badge{min-height:62px}.p-card-head.has-badge + .p-price-line{margin-top:32px}}
@media(max-width:430px){.p-card-head.has-badge{min-height:56px}.p-card-head.has-badge + .p-price-line{margin-top:30px}}
.customer-dialog{width:min(450px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 30px 90px rgba(9,12,25,.28);position:relative}
.customer-dialog h2{margin:5px 0 4px;font-size:22px}
.customer-helper{margin:0 0 19px;color:var(--muted);font-size:11px;line-height:1.55}
.customer-dialog .field{margin-bottom:13px}
.customer-submit{width:100%;margin-top:3px}
.customer-whatsapp-note{margin-top:12px;text-align:center;color:#7a8497;font-size:9px;font-weight:800;line-height:1.45}
@media(max-width:430px){.customer-dialog{padding:21px}.customer-dialog h2{font-size:20px}}

/* v16 — keep mobile Config/Network content inside the content lane reserved
   for the right-side Badge, preventing the Network pill from sliding beneath it.
   Price/MRP and Colours intentionally continue using the full card width. */
.p-card-head{padding-right:88px;}
.p-card-main{width:100%;min-width:0;}
.p-card-main .p-meta{max-width:100%;min-width:0;overflow:visible;}
@media(max-width:650px){
  .p-card-head{padding-right:75px;}
  .p-card-main .p-meta{gap:6px;}
}
@media(max-width:430px){
  .p-card-head{padding-right:66px;}
  .p-card-main .p-meta{gap:5px;}
}


/* v17 — mobile storefront product cards use a fixed six-row, two-column information grid.
   This keeps Brand/Model, Category, Config/Network, Badge, Sale Price, MRP, Colours and
   action buttons aligned without allowing the right-side Badge to cover the left content. */
.p-brand-model{min-width:0}.p-separator{display:none}.wa-icon{width:14px;height:14px;display:block;flex:none;color:currentColor}
@media(max-width:650px){
  .product-grid .p-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto auto auto 1px auto auto;
    column-gap:9px;
    row-gap:7px;
    align-items:start;
    padding:11px;
    min-width:0;
  }
  .product-grid .p-card-head{display:contents;padding:0;min-height:0!important}
  .product-grid .p-card-main{display:contents;width:auto;min-width:0}
  .product-grid .p-brand-model{grid-column:1;grid-row:1;min-width:0}
  .product-grid .p-brand{margin-top:0;margin-bottom:1px;font-size:9px}
  .product-grid .p-card h2{margin:2px 0 0;font-size:13px;line-height:1.2;overflow-wrap:anywhere}
  .product-grid .p-side-meta{display:contents;position:static;max-width:none}
  .product-grid .p-side-meta .category-badge{grid-column:2;grid-row:1;justify-self:end;align-self:start;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .product-grid .p-meta{grid-column:1;grid-row:2;align-self:start;display:flex;flex-wrap:wrap;gap:5px;margin:0;min-height:0;max-width:100%;padding-top:1px;overflow:hidden}
  .product-grid .p-meta .pill{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .product-grid .p-badge-stack{grid-column:2;grid-row:2;justify-self:end;align-self:start;max-width:64px;width:64px;gap:4px}
  .product-grid .p-note-tile{width:44px;height:44px}
  .product-grid .p-badge-name{max-width:64px;font-size:9px;line-height:1.15}
  .product-grid .p-price-line{display:contents;margin:0!important;padding:0!important;white-space:normal}
  .product-grid .p-price-line .p-price{grid-column:1;grid-row:3;align-self:center;min-width:0;margin:0;font-size:clamp(14px,7cqw,20px);letter-spacing:-.035em;white-space:nowrap;line-height:1.05}
  .product-grid .p-price-line .p-mrp-pill{grid-column:2;grid-row:3;justify-self:end;align-self:center;margin:0!important;max-width:100%;padding:5px 7px;font-size:clamp(8px,4cqw,10px);line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .product-grid .p-separator{display:block;grid-column:1/-1;grid-row:4;width:100%;height:1px;background:var(--line);}
  .product-grid .p-colours{grid-column:1/-1;grid-row:5;display:grid;grid-template-columns:45px minmax(0,1fr);column-gap:7px;row-gap:0;align-items:start;margin:0;padding:0;border-top:0;min-height:2.9em;font-size:9px;line-height:1.45}
  .product-grid .p-colours strong{grid-column:2;min-width:0;min-height:2.9em;max-height:2.9em;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .product-grid .p-colours .availability-note{white-space:nowrap;text-overflow:clip;overflow:hidden}
  .product-grid .p-actions{grid-column:1/-1;grid-row:6;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px;margin:0;width:100%}
  .product-grid .p-actions .btn{min-width:0;min-height:40px;padding:8px 5px;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .product-grid .p-actions .wa-icon{width:13px;height:13px}
}
@media(max-width:430px){
  .product-grid .p-card{column-gap:7px;row-gap:6px;padding:10px}
  .product-grid .p-side-meta .category-badge{font-size:8px;padding:5px 6px}
  .product-grid .p-meta{gap:4px}
  .product-grid .p-meta .pill{font-size:8px;padding:5px 7px}
  .product-grid .p-badge-stack{max-width:58px;width:58px}
  .product-grid .p-note-tile{width:40px;height:40px}
  .product-grid .p-badge-name{max-width:58px;font-size:8px}
  .product-grid .p-actions .btn{font-size:8px;padding:8px 3px}
  .product-grid .p-actions .wa-icon{width:12px;height:12px}
}
@media(max-width:360px){
  .product-grid .p-card{padding:9px;column-gap:6px}
  .product-grid .p-card h2{font-size:12px}
  .product-grid .p-brand{font-size:8px}
  .product-grid .p-meta .pill{font-size:7.5px;padding:4px 6px}
  .product-grid .p-actions .btn{font-size:7.5px}
}

/* v18 — mobile storefront readability polish.
   Keep the existing six-row card layout, but make the long availability message
   fully visible and ensure both action labels stay comfortably inside their buttons. */
@media (max-width: 650px){
  .product-grid .p-colours{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:6px;
  }
  .product-grid .p-colours strong{
    min-width:0;
  }
  .product-grid .p-colours .availability-note{
    font-size:clamp(7.2px,2.05vw,8.5px);
    letter-spacing:-.025em;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    line-height:1.35;
  }
  .product-grid .p-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:6px;
  }
  .product-grid .p-actions .btn{
    min-width:0;
    width:100%;
    padding:8px 4px;
    gap:4px;
    font-size:clamp(8px,2.35vw,10px);
    line-height:1.1;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
  }
  .product-grid .p-actions .btn > span{
    min-width:0;
    flex:0 1 auto;
    white-space:nowrap;
  }
  .product-grid .p-actions .wa-icon{
    width:12px;
    height:12px;
    flex:0 0 12px;
  }
}
@media (max-width:430px){
  .product-grid .p-colours{
    grid-template-columns:38px minmax(0,1fr);
    column-gap:5px;
  }
  .product-grid .p-colours .availability-note{
    font-size:7.5px;
    letter-spacing:-.035em;
  }
  .product-grid .p-actions{
    gap:5px;
  }
  .product-grid .p-actions .btn{
    padding:8px 3px;
    font-size:8px;
    gap:3px;
  }
  .product-grid .p-actions .wa-icon{
    width:11px;
    height:11px;
    flex-basis:11px;
  }
}
@media (max-width:360px){
  .product-grid .p-colours{
    grid-template-columns:36px minmax(0,1fr);
    column-gap:4px;
  }
  .product-grid .p-colours .availability-note{
    font-size:7.2px;
    letter-spacing:-.04em;
  }
  .product-grid .p-actions .btn{
    padding:7px 2px;
    font-size:7.7px;
  }
}


/* v19 — mobile action buttons get separate rows; use native system UI font stack for consistent, fast, cross-device readability. */
@media(max-width:650px){
  .product-grid .p-actions{
    grid-column:1/-1;
    grid-row:6;
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
    gap:7px;
    width:100%;
  }
  .product-grid .p-actions .btn{
    width:100%;
    min-height:40px;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    font-size:clamp(9px,2.6vw,11px);
    padding:9px 10px;
  }
}
@media(max-width:430px){
  .product-grid .p-actions{gap:6px}
  .product-grid .p-actions .btn{font-size:clamp(9px,2.8vw,10.5px);padding:9px 8px}
}

/* v20 — typography readability refinement.
   Uses the existing native system font stack. Sizes are increased modestly and weights
   strengthened only where they improve scanning, while fixed card/control dimensions
   and the existing responsive layout are preserved. */
body{font-size:16px;font-weight:400;line-height:1.45}
.nav-item{font-size:13.5px;font-weight:750}.nav-item span{font-size:16.5px}.brand-link strong{font-size:15.5px}.brand-link small{font-size:10.5px}
.eyebrow{font-size:10px}.topbar h1{font-size:22px;font-weight:850}.topbar-user strong{font-size:14px;font-weight:800}.topbar-user small{font-size:11px}.card-head h2{font-size:16px;font-weight:850}.stat-label{font-size:12px}.subtle{font-size:13px}.stat-value{font-size:29px}.btn{font-weight:750}.btn-sm{font-size:13.5px}.field label{font-size:13px;font-weight:850}.pill{font-size:11px}.data-table th{font-size:11px;font-weight:900}.data-table td{font-size:13px}.link-btn{font-size:13px}.flash{font-size:13.5px}
.permission-grid>div{font-size:12px}.permission-grid .head{font-size:12px}
.admin-product-header{font-size:10px}.admin-product-cell b{font-size:11px}.admin-product-brand{font-size:10px}.admin-product-model strong{font-size:14px}.admin-product-price-cell strong{font-size:16px}.admin-product-mrp{font-size:11px}.admin-product-badge-value{font-size:11px}.admin-product-actions .btn{font-size:11px}.admin-product-note-row span{font-size:9px}.admin-product-note-row b{font-size:10px}
.sheet-input,.sheet-select{font-size:11px;font-weight:700}.sheet-model-input{font-size:12px;font-weight:900}.sheet-row-action .btn{font-size:10px}.sheet-revert-help{font-size:10px}
.access-grid-head{font-size:11px}.access-user-cell strong{font-size:12px}.access-user-cell span{font-size:10px}.access-user-cell small{font-size:9px}.perm-check{font-size:9px;font-weight:800}.access-locked strong{font-size:9px}.access-locked span{font-size:8px}.access-mobile-label{font-size:9px}.access-empty h3{font-size:15px}.access-empty p{font-size:12px}
.audit-summary{font-size:12px}.audit-meta-item>span{font-size:8px}.audit-meta-item>strong{font-size:9px}.audit-inline b{font-size:9px}
.addon-dropzone strong{font-size:13px}.addon-upload-meta{font-size:11px}.addon-security-note{font-size:11px}.addon-title-line h3{font-size:14px}.addon-meta{font-size:9px}.addon-spec-grid h3{font-size:12px}.code-box{font-size:10px}
.store-brand strong{font-size:18px}.store-brand small{font-size:11px}.store-search .input{font-size:16px;font-weight:500}.store-search-icon{font-size:17px}.cart-button{font-size:13px;font-weight:800}.cart-button b{font-size:12px;font-weight:900}.date-line{font-size:13px;font-weight:950}.store-heading h1{font-weight:850}.catalog-summary{font-size:11px}.filter-chip{font-size:12px;font-weight:900}.brand-picker-button{font-size:12px;font-weight:800}.brand-search .input{font-size:14px}.brand-option{font-size:12px;font-weight:750}
.product-grid .p-brand{font-size:10px;font-weight:950}.product-grid .p-card h2{font-size:14px;font-weight:900;line-height:1.18}.product-grid .p-meta .pill{font-size:10px;font-weight:900}.product-grid .p-badge-name{font-size:10px;font-weight:950}.product-grid .p-price-line .p-price{font-size:clamp(15px,7cqw,20px);font-weight:950;line-height:1.05}.product-grid .p-price-line .p-mrp-pill{font-size:10px;font-weight:950}.product-grid .p-colours{font-size:10px}.product-grid .p-colours strong{font-size:10px;font-weight:800}.product-grid .p-colours .availability-note{font-size:clamp(8.1px,2.2vw,9.5px);font-weight:850;letter-spacing:-.02em}.product-grid .p-actions .btn{font-size:11px;font-weight:800}.product-grid .p-actions .wa-icon{width:14px;height:14px}.cart-head h2{font-size:21px;font-weight:850}.cart-date{font-size:11px}.cart-item-main span{font-size:10px}.cart-item-main strong{font-size:13px;font-weight:850}.cart-item-main small{font-size:10px}.cart-item-price{font-size:13px;font-weight:950}.qty-stepper b{font-size:12px}.cart-total span{font-size:12px}.cart-total strong{font-size:23px}.cart-empty p{font-size:12px}
.quantity-dialog h2,.customer-dialog h2{font-weight:850}.quantity-product{font-size:13px}.customer-helper{font-size:12px}.customer-whatsapp-note{font-size:10px}
.store-footer{font-size:12px}
/* Keep compact mobile cards visually stable while improving legibility. */
@media(max-width:650px){
  .store-brand strong{font-size:16px}.store-brand small{font-size:10px}.filter-chip{font-size:11.5px}.brand-picker-button{font-size:11.5px}
  .product-grid .p-brand{font-size:9.5px}.product-grid .p-card h2{font-size:13.5px}.product-grid .p-meta .pill{font-size:9.5px;padding:5px 7px}.product-grid .p-badge-name{font-size:9.5px}.product-grid .p-price-line .p-price{font-size:clamp(15px,7cqw,20px)}.product-grid .p-price-line .p-mrp-pill{font-size:9.5px;padding:5px 7px}.product-grid .p-colours{font-size:10px}.product-grid .p-colours strong{font-size:9.5px}.product-grid .p-colours .availability-note{font-size:clamp(8.2px,2.25vw,9.5px);letter-spacing:-.02em}.product-grid .p-actions .btn{font-size:10.5px;min-height:41px;padding:9px 10px}.product-grid .p-actions .wa-icon{width:14px;height:14px}
  .cart-button{font-size:12.5px}.cart-button b{font-size:11.5px}.cart-item-main strong{font-size:13px}
}
@media(max-width:430px){
  .product-grid .p-brand{font-size:9px}.product-grid .p-card h2{font-size:13px}.product-grid .p-meta .pill{font-size:9px}.product-grid .p-badge-name{font-size:9px}.product-grid .p-price-line .p-mrp-pill{font-size:9px}.product-grid .p-colours strong{font-size:9px}.product-grid .p-colours .availability-note{font-size:8.3px;letter-spacing:-.025em}.product-grid .p-actions .btn{font-size:10px;min-height:41px;padding:9px 9px}.product-grid .p-actions .wa-icon{width:13px;height:13px}
}
@media(max-width:360px){
  .product-grid .p-card h2{font-size:12.5px}.product-grid .p-meta .pill{font-size:8.5px}.product-grid .p-badge-name{font-size:8.5px}.product-grid .p-price-line .p-mrp-pill{font-size:8.5px}.product-grid .p-colours strong{font-size:8.7px}.product-grid .p-colours .availability-note{font-size:8px}.product-grid .p-actions .btn{font-size:9.7px;padding:9px 8px}.product-grid .p-actions .wa-icon{width:13px;height:13px}
}

/* v21 — storefront typography alignment/readability refinement.
   Keep the established layout and sizing, but make the brand selector and category
   buttons use the exact same native font treatment, strengthen product action labels,
   and baseline-align Colours with its value text. */
.store-filter-bar .filter-chip,
.store-filter-bar .brand-picker-button{
  font-family:inherit;
  font-size:12px;
  font-weight:900;
}
.store-filter-bar .brand-picker-button{letter-spacing:0;}
.product-grid .p-colours{
  align-items:baseline;
}
.product-grid .p-colours span,
.product-grid .p-colours strong,
.product-grid .p-colours .availability-note{
  font-family:inherit;
  font-size:10px;
  font-weight:850;
  line-height:1.45;
}
.product-grid .p-colours strong{
  display:block;
  padding-top:0;
}
@media(max-width:650px){
  .store-filter-bar .filter-chip,
  .store-filter-bar .brand-picker-button{
    font-size:11.5px;
    font-weight:900;
  }
  .product-grid .p-actions .btn{
    font-family:inherit;
    font-size:12px;
    font-weight:850;
    line-height:1.15;
    padding:9px 12px;
    gap:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
  }
  .product-grid .p-actions .wa-icon{
    width:14px;
    height:14px;
    flex:0 0 14px;
  }
}
@media(max-width:430px){
  .store-filter-bar .filter-chip,
  .store-filter-bar .brand-picker-button{
    font-size:11.5px;
  }
  .product-grid .p-actions .btn{
    font-size:11.5px;
    padding:9px 10px;
    gap:5px;
  }
  .product-grid .p-colours,
  .product-grid .p-colours span,
  .product-grid .p-colours strong,
  .product-grid .p-colours .availability-note{
    font-size:10px;
    font-weight:850;
    line-height:1.45;
  }
}
@media(max-width:360px){
  .product-grid .p-actions .btn{
    font-size:11px;
    padding:9px 9px;
  }
}


/* v23 — keep the Colours label explicit and allow real colour values to wrap
   into the existing second reserved line without clipping. */
.product-grid .p-colours strong{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  white-space:normal;
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:normal;
  min-width:0;
  min-height:2.9em;
  max-height:2.9em;
}
.product-grid .p-colours .availability-note{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
  overflow-wrap:normal;
}

/* v22 — unified storefront typography and control readability.
   Keep one native, fast UI font stack across frontend and backend, including custom
   dropdown options and form controls. Slightly strengthen storefront action/value
   typography without changing card structure, spacing, or responsive behavior. */
:root{
  --ui-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
html,body,button,input,select,textarea,option{
  font-family:var(--ui-font);
}

/* Storefront filter controls — All Brands and category buttons use the exact same type treatment. */
.store-body,
.store-body button,
.store-body input,
.store-body select,
.store-body option,
.store-body textarea{
  font-family:var(--ui-font);
}
.store-filter-bar .filter-chip,
.store-filter-bar .brand-picker-button,
.store-filter-bar .brand-option,
.store-filter-bar .brand-option b,
.store-filter-bar .brand-search .input{
  font-family:var(--ui-font);
}
.store-filter-bar .filter-chip,
.store-filter-bar .brand-picker-button{
  font-size:12px;
  font-weight:900;
  line-height:1.2;
}
.store-filter-bar .brand-option{
  font-size:12px;
  font-weight:850;
  line-height:1.25;
}
.store-filter-bar .brand-option b{
  font-size:10px;
  font-weight:900;
}

/* Product actions — one consistent readable type treatment on every device. */
.product-grid .p-actions .btn{
  font-family:var(--ui-font);
  font-size:12.5px;
  font-weight:900;
  line-height:1.15;
  min-height:42px;
  padding:10px 12px;
  gap:6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
.product-grid .p-actions .btn > span{
  font-family:inherit;
  font-weight:900;
  min-width:0;
  white-space:nowrap;
}
.product-grid .p-actions .wa-icon{
  width:15px;
  height:15px;
  flex:0 0 15px;
}

/* Colours — label, values and availability message share the same readable size/weight
   and baseline so the first line reads as one clean row on every viewport. */
.product-grid .p-colours{
  align-items:baseline;
  font-family:var(--ui-font);
  font-size:11px;
  line-height:1.45;
}
.product-grid .p-colours span,
.product-grid .p-colours strong,
.product-grid .p-colours .availability-note{
  font-family:var(--ui-font);
  font-size:11px;
  font-weight:850;
  line-height:1.45;
  vertical-align:baseline;
}
.product-grid .p-colours strong{
  padding-top:0;
}
.product-grid .p-colours .availability-note{
  letter-spacing:-.025em;
}

/* Keep the same typography treatment at compact widths; only spacing may tighten. */
@media(max-width:650px){
  .store-filter-bar .filter-chip,
  .store-filter-bar .brand-picker-button,
  .store-filter-bar .brand-option{
    font-size:12px;
  }
  .product-grid .p-actions .btn{
    font-size:12.5px;
    min-height:42px;
    padding:10px 12px;
  }
  .product-grid .p-colours,
  .product-grid .p-colours span,
  .product-grid .p-colours strong,
  .product-grid .p-colours .availability-note{
    font-size:11px;
  }
}
@media(max-width:430px){
  .store-filter-bar .filter-chip,
  .store-filter-bar .brand-picker-button,
  .store-filter-bar .brand-option{
    font-size:11.5px;
  }
  .product-grid .p-actions .btn{
    font-size:12px;
    min-height:42px;
    padding:10px 11px;
  }
  .product-grid .p-actions .wa-icon{
    width:15px;
    height:15px;
    flex-basis:15px;
  }
  .product-grid .p-colours,
  .product-grid .p-colours span,
  .product-grid .p-colours strong,
  .product-grid .p-colours .availability-note{
    font-size:11px;
  }
}
@media(max-width:360px){
  .store-filter-bar .filter-chip,
  .store-filter-bar .brand-picker-button,
  .store-filter-bar .brand-option{
    font-size:11.5px;
  }
  .product-grid .p-actions .btn{
    font-size:11.8px;
    padding:10px 10px;
  }
}

/* v24 — add a little breathing room between the Colours label and its values.
   This is intentionally limited to the gap only so the existing card layout,
   wrapping behavior, sizing, and responsive design remain unchanged. */
.p-colours{column-gap:12px}
@media(max-width:650px){.product-grid .p-colours{column-gap:9px}}
@media(max-width:430px){.product-grid .p-colours{column-gap:8px}}

/* v26 — long Colours values open in a responsive product-aware popup instead of being
   silently truncated after the reserved two-line card area. */
.product-grid .p-colours strong.p-colours-trigger{
  cursor:pointer;
  text-decoration-line:underline;
  text-decoration-style:dotted;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}
.product-grid .p-colours strong.p-colours-trigger:hover,
.product-grid .p-colours strong.p-colours-trigger:focus-visible{
  color:var(--brand);
  outline:none;
}
.store-colours-modal{z-index:145}
.colours-dialog{position:relative;width:min(520px,calc(100vw - 28px));max-height:min(82vh,620px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:0 30px 90px rgba(9,12,25,.28)}
.colours-dialog h2{margin:5px 0 4px;font-size:22px;font-weight:850;line-height:1.2}
.colours-product{margin:0 0 17px;color:var(--muted);font-size:12px;font-weight:800;line-height:1.45;overflow-wrap:anywhere}
.colours-value-box{border:1px solid #dfe4ec;border-radius:14px;background:#fafbfe;padding:13px 14px}
.colours-value-label{font-size:11px;font-weight:900;color:var(--text);margin-bottom:7px;line-height:1.4}
.colours-value-full{font-size:12px;font-weight:850;line-height:1.6;color:var(--text);white-space:normal;overflow-wrap:anywhere;word-break:normal}
@media(max-width:430px){
  .colours-dialog{padding:21px;width:min(520px,calc(100vw - 20px));border-radius:20px}
  .colours-dialog h2{font-size:20px}
  .colours-product{font-size:11.5px}
  .colours-value-label,.colours-value-full{font-size:11px}
}

/* v27 — keep storefront product actions in separate full-width rows at every viewport.
   This removes desktop/tablet button crowding while preserving the existing card styling. */
.product-grid .p-actions{
  grid-template-columns:1fr;
  grid-auto-rows:auto;
  gap:8px;
  width:100%;
}
.product-grid .p-actions .btn{
  width:100%;
  min-width:0;
  box-sizing:border-box;
  justify-content:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:clip;
}
.product-grid .p-actions .btn > span{
  min-width:0;
  max-width:100%;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
.product-grid .p-actions .wa-icon{
  flex:0 0 auto;
}
@media(max-width:650px){
  .product-grid .p-actions{gap:7px}
}
@media(max-width:430px){
  .product-grid .p-actions{gap:6px}
}



/* v29 — login cleanup and application logo. */
.login-logo{width:84px;height:84px;border-radius:20px;object-fit:contain;background:#fff;padding:10px;box-shadow:0 12px 28px rgba(8,14,39,.18);display:block}
.login-visual .login-logo + h1{margin-top:35px}

/* v30 — dedicated Badge sub-permission in the Super Admin access matrix. */
.access-section-cell[data-title="Badge"] .perm-check span{line-height:1.25}
.access-section-cell[data-title="Badge"]{min-width:210px}
@media(max-width:1100px){.access-section-cell[data-title="Badge"]{min-width:190px}}
