/* OSSY GROUP design system — dark theme by default, purple accent. */
:root {
  --bg: #0B0A10;
  --surface: #15131D;
  --surface-2: #1D1928;
  --surface-3: #262033;
  --border: #30283D;
  --text: #F5F3FF;
  --text-2: #B5AEC5;
  --text-3: #8A829B;
  --primary: #8B5CF6;
  --primary-hover: #A78BFA;
  --primary-soft: rgba(139, 92, 246, .14);
  --success: #22C55E;
  --success-soft: rgba(34, 197, 94, .14);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, .14);
  --danger: #EF4444;
  --danger-soft: rgba(239, 68, 68, .14);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary-hover); text-decoration: none; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: .85rem; }
:focus-visible { outline: 2px solid var(--primary-hover); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: .02em; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 1.25rem; line-height: 1; }
.brand-name span { color: var(--primary-hover); }
.brand-tag { display: block; font-size: .68rem; font-weight: 500; color: var(--text-2); letter-spacing: .04em; margin-top: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 16, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.header-search { flex: 1; display: flex; max-width: 620px; }
.header-search input { flex: 1; min-width: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.header-search button { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-link { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2); font-size: .72rem; padding: 6px 8px; border-radius: var(--radius-sm); position: relative; }
.icon-link:hover { color: var(--text); background: var(--surface-2); }
.icon-link svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 0; right: 2px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.staff-link { font-size: .78rem; color: var(--text-3); white-space: nowrap; }
.staff-link:hover { color: var(--primary-hover); }
.main-nav { border-top: 1px solid var(--border); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { display: block; padding: 10px 12px; color: var(--text-2); font-weight: 500; font-size: .92rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-staff { display: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); color: #FCA5A5; border-color: rgba(239, 68, 68, .35); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-hover); cursor: pointer; }

input, select, textarea { width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--primary); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field .help { color: var(--text-3); font-size: .8rem; margin-top: 4px; }
.field .help ul { margin: 4px 0 0; padding-left: 18px; }
.field-check { display: flex; gap: 8px; align-items: center; }
.field-check label { margin: 0; font-weight: 500; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: #FCA5A5; font-size: .85rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }

/* Cards, alerts, badges */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-elevated { background: var(--surface-2); box-shadow: var(--shadow); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 16px; background: var(--surface-2); }
.alert-success { background: var(--success-soft); border-color: rgba(34, 197, 94, .35); color: #BBF7D0; }
.alert-warning { background: var(--warning-soft); border-color: rgba(245, 158, 11, .35); color: #FDE68A; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .35); color: #FECACA; }
.alert-info { background: var(--primary-soft); border-color: rgba(139, 92, 246, .35); color: #DDD6FE; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.badge-success { background: var(--success-soft); color: #86EFAC; }
.badge-warning { background: var(--warning-soft); color: #FCD34D; }
.badge-danger { background: var(--danger-soft); color: #FCA5A5; }
.badge-primary { background: var(--primary-soft); color: #C4B5FD; }

/* Page sections */
.page { padding-top: 32px; padding-bottom: 56px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
.section { padding: 40px 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack > * + * { margin-top: 12px; }

.hero { padding: 48px 0; background: radial-gradient(900px 400px at 85% 0%, rgba(139, 92, 246, .18), transparent 70%), var(--bg); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero h1 span { color: var(--primary-hover); }
.hero p { color: var(--text-2); font-size: 1.08rem; max-width: 52ch; }
.hero-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; }
.trust-list svg { width: 22px; height: 22px; color: var(--primary-hover); flex: none; margin-top: 2px; }

/* Auth layout */
.auth-wrap { display: grid; place-items: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--text-2); font-size: .9rem; }
.portal-body { background: radial-gradient(800px 500px at 50% -10%, rgba(139, 92, 246, .22), transparent 70%), var(--bg); }
.portal-head { text-align: center; margin-bottom: 22px; }
.portal-head .brand { flex-direction: column; gap: 8px; }
.portal-title { font-size: 1.3rem; font-weight: 700; margin-top: 6px; }
.role-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 22px; }
.role-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: .75rem; }
.role-chip svg { width: 22px; height: 22px; color: var(--primary-hover); }

/* Dashboard layout */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-side { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side .brand { padding: 0 8px 18px; }
.dash-nav { list-style: none; padding: 0; margin: 0; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.dash-nav a:hover { background: var(--surface-2); color: var(--text); }
.dash-nav a[aria-current="page"] { background: var(--primary-soft); color: #DDD6FE; }
.dash-nav .soon { margin-left: auto; font-size: .65rem; color: var(--text-3); }
.dash-main { padding: 24px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-label { color: var(--text-2); font-size: .85rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; margin-top: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }
tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 48px; padding: 40px 0 24px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: var(--text); font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--primary-hover); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--text-3); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .dash-nav { display: flex; overflow-x: auto; gap: 4px; }
  .dash-nav a { white-space: nowrap; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-tag { display: none; }
  .staff-link { display: none; }
  .nav-staff { display: block !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .dash-main { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Catalogue */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-align: center; transition: border-color .15s, transform .15s; }
.cat-tile:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.cat-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); display: grid; place-items: center; }
.cat-tile .count { font-size: .78rem; color: var(--text-3); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .15s; }
.product-card:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.product-media { aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-media .badge { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-supplier { font-size: .8rem; color: var(--text-3); }
.price { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.price small { font-size: .78rem; font-weight: 500; color: var(--text-2); }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.stock-in { color: #86EFAC; } .stock-low { color: #FCD34D; } .stock-out { color: #FCA5A5; }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 130px; }
.filters h3 { font-size: .95rem; margin-top: 18px; }
.filters h3:first-child { margin-top: 0; }
.filter-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.filter-links a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--text-2); }
.filter-links a:hover, .filter-links a[aria-current="true"] { background: var(--primary-soft); color: var(--text); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar select { width: auto; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-2); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.breadcrumbs { font-size: .85rem; color: var(--text-3); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-2); }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: var(--text-3); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; width: 70px; height: 70px; flex: none; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-price { font-size: 2rem; font-weight: 800; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 18px 0; font-size: .92rem; }
.spec-list dt { color: var(--text-2); }
.spec-list dd { margin: 0; font-weight: 600; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-options label { cursor: pointer; }
.variant-options input { position: absolute; opacity: 0; width: 1px; }
.variant-options span { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.variant-options input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.variant-options input:focus-visible + span { outline: 2px solid var(--primary-hover); }
.variant-options input:disabled + span { opacity: .4; text-decoration: line-through; }
.qty-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.qty-row .field { margin: 0; width: 140px; }
.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .cat-icon { width: 44px; height: 44px; flex: none; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; color: var(--text-2); }
.prose p { color: var(--text-2); }
@media (max-width: 900px) {
  .catalog-layout, .pdp { grid-template-columns: 1fr; }
  .filters { position: static; }
}
.filters summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters details[open] summary { margin-bottom: 14px; }
@media (min-width: 901px) { .filters summary { display: none; } }
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-body { padding: 10px; }
  .price { font-size: 1rem; }
  .product-meta .badge { font-size: .68rem; padding: 2px 7px; }
}

/* Brand, policy, FAQ */
.badge-brand { background: #F5F3FF; color: #4C1D95; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--text) !important; font-weight: 600; }
.tagline-strong { font-weight: 700; color: var(--primary-hover) !important; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin: 1.2em 0 .3em; }
.area-card { margin: 12px 0; padding: 14px 16px; }
.policy { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 20px; }
.policy-item { display: flex; gap: 12px; align-items: flex-start; }
.policy-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-hover); }
.policy-compact { grid-template-columns: 1fr; background: transparent; border: 0; padding: 16px 0 0; margin: 0; }
.faq-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.faq-section { margin-bottom: 12px; padding: 0; overflow: hidden; }
.faq-section > summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; align-items: center; gap: 10px; }
.faq-section > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.faq-section > summary::after, .faq-item > summary::after { content: "+"; margin-left: auto; color: var(--primary-hover); font-weight: 700; }
.faq-section[open] > summary::after, .faq-item[open] > summary::after { content: "−"; }
.faq-section[open] > summary { border-bottom: 1px solid var(--border); }
.faq-letter { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .85rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; gap: 10px; }
.faq-item > summary:hover { background: var(--surface-2); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--text-2); }
.filter-radios { display: grid; gap: 6px; }
.filter-radios label { display: flex; gap: 8px; align-items: center; color: var(--text-2); cursor: pointer; }

/* Product order form */
.size-grid-wrap { border: 0; padding: 0; margin: 0 0 14px; }
.size-grid-wrap legend { font-weight: 600; margin-bottom: 6px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.size-cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: grid; gap: 4px; }
.size-cell label { font-weight: 700; font-size: .9rem; }
.size-cell input { padding: 8px; text-align: center; }
.size-cell.is-out { opacity: .5; }
.btn-pair { display: flex; gap: 10px; }
.btn-pair > .btn { flex: 1; }

/* Cart & checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.summary-card { position: sticky; top: 16px; }
.cart-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cart-thumb { flex: none; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--text-3); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-table td { vertical-align: middle; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 90px; padding: 8px; }
.num { text-align: right; white-space: nowrap; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 14px 0; }
.totals dt { color: var(--text-2); }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .total { font-size: 1.2rem; font-weight: 800; color: var(--text); padding-top: 8px; border-top: 1px solid var(--border); }
.summary-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.pay-option:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.pay-option > span { display: grid; gap: 2px; }

/* Order tracking */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline .tl-done:not(:last-child)::before { background: var(--success); }
.tl-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); margin-top: 2px; }
.tl-done .tl-dot { background: var(--success); border-color: var(--success); }
.tl-current .tl-dot { background: var(--primary); border-color: var(--primary-hover); box-shadow: 0 0 0 4px var(--primary-soft); }
.tl-todo strong { color: var(--text-3); font-weight: 500; }
.pin-card { text-align: center; }
.pin { font-size: 2.2rem; font-weight: 800; letter-spacing: .3em; color: var(--primary-hover); margin: 4px 0 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text-2); border: 1px solid var(--border); }
.tabs a[aria-current="page"] { background: var(--primary-soft); color: var(--text); border-color: var(--primary); }
a.stat { color: inherit; }
a.stat:hover { border-color: var(--primary); }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 640px) {
  .btn-pair { flex-direction: column; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table td:nth-child(2) { grid-column: 1 / -1; }
  .header-actions .icon-link { padding: 6px 4px; }
}
.table-wrap { overflow-x: auto; max-width: 100%; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } }

/* Admin AI assistant */
.ai-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; font-size: .9rem; }
.ai-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.ai-history ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.ai-history a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-size: .88rem; }
.ai-history a:hover, .ai-history a[aria-current="page"] { background: var(--primary-soft); color: var(--text); }
.ai-chat { display: flex; flex-direction: column; min-height: 60vh; }
.ai-messages { flex: 1; overflow-y: auto; max-height: 62vh; display: flex; flex-direction: column; gap: 12px; padding-bottom: 12px; }
.ai-msg { max-width: 85%; padding: 12px 14px; border-radius: var(--radius); white-space: pre-wrap; line-height: 1.55; overflow-wrap: anywhere; }
.ai-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ai-pending { color: var(--text-3); font-style: italic; }
.ai-error { border-color: var(--danger); color: #FCA5A5; }
.ai-suggest { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ai-suggest .btn { text-align: left; white-space: normal; }
.ai-form { display: flex; gap: 10px; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 12px; }
.ai-form textarea { flex: 1; resize: vertical; min-height: 48px; }
@media (max-width: 900px) {
  .ai-layout { grid-template-columns: minmax(0, 1fr); }
  .ai-history ul { max-height: 160px; }
  .ai-msg { max-width: 95%; }
}

/* ==========================================================================
   Storefront theme (light grey, navy + yellow) — body.shop
   Dashboards and the business portal keep the dark purple tokens above.
   ========================================================================== */
body.shop {
  --bg: #EEF1F6;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --surface-3: #E8ECF3;
  --border: #DDE3EC;
  --text: #212432;
  --text-2: #4B5675;
  --text-3: #7C869F;
  --primary: #0267FB;
  --primary-hover: #0153D0;
  --primary-soft: rgba(2, 103, 251, .10);
  --navy: #001C42;
  --navy-2: #0A2A5C;
  --yellow: #FBC503;
  --yellow-hover: #E9B500;
  --sale: #E8101F;
  --success: #1FA43B;
  --success-soft: #E7F6EC;
  --warning: #D97706;
  --warning-soft: #FFF5E0;
  --danger: #DC2626;
  --danger-soft: #FDECEC;
  --shadow: 0 2px 10px rgba(15, 27, 61, .07);
  color-scheme: light;
}
.shop a { color: var(--primary); }
.shop a:hover { color: var(--primary-hover); }
.shop .alert-success { background: var(--success-soft); border-color: #BFE6CC; color: #14532D; }
.shop .alert-warning { background: var(--warning-soft); border-color: #F8D99B; color: #7C4A03; }
.shop .alert-error, .shop .alert-danger { background: var(--danger-soft); border-color: #F5C2C2; color: #7F1D1D; }
.shop .alert-info { background: #EAF1FE; border-color: #C8DAFB; color: #163A80; }
.shop .badge-success { color: #166534; }
.shop .badge-warning { color: #92400E; }
.shop .badge-danger { color: #991B1B; }
.shop .badge-primary { color: #1E40AF; }
.shop .errorlist { color: var(--danger); }
.shop .btn-danger { color: var(--danger); }
.shop .btn-secondary:hover { color: var(--text); }
.shop .card { box-shadow: var(--shadow); }
.shop .stock-in { color: var(--success); }
.shop .stock-low { color: var(--warning); }
.shop .stock-out { color: var(--danger); }
.shop .badge-brand { background: var(--navy); color: var(--yellow); }
.shop .tagline-strong { color: var(--navy) !important; }
.shop .faq-letter { background: var(--navy); color: var(--yellow); }
.shop .policy-icon { background: #EAF1FE; color: var(--primary); }
.shop .ai-user { background: var(--primary); }

/* Header */
.shop .site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border: 0; backdrop-filter: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.shop .header-row { gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.shop .brand, .shop .brand:hover { color: #fff; }
.shop .brand-mark { width: 46px; height: 38px; color: #fff; }
.shop .brand-name { font-size: 1.55rem; font-weight: 800; letter-spacing: .01em; }
.shop .brand-tag { color: #C9D3EE; font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.header-search { position: relative; align-items: stretch; background: #fff; border-radius: 8px; overflow: hidden; max-width: 560px; }
.shop .header-search input { border: 0; border-radius: 0; background: #fff; color: var(--text); padding-left: 38px; box-shadow: none; }
.shop .header-search select { width: auto; max-width: 170px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background: #fff; color: var(--text-2); font-size: .85rem; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); display: flex; }
.shop .header-search button { border: 0; background: var(--yellow); color: var(--navy); padding: 0 18px; cursor: pointer; display: grid; place-items: center; border-radius: 0; }
.shop .header-search button:hover { background: var(--yellow-hover); }
.shop .icon-link { color: #fff; font-size: .75rem; font-weight: 600; }
.shop .icon-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.shop .icon-link svg { width: 28px; height: 28px; }
.shop .badge-count { background: var(--sale); top: -2px; right: 0; }
.icon-btn { background: none; border: 0; color: inherit; padding: 6px; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.shop .menu-btn { color: #fff; display: none; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(15,27,61,.18); padding: 8px; display: grid; z-index: 60; }
.account-pop a, .account-pop button { display: block; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.account-pop a:hover, .account-pop button:hover { background: var(--surface-2); color: var(--text); }
.account-pop hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* Category bar */
.cat-nav { background: #fff; border-bottom: 1px solid var(--border); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; padding: 12px 16px; color: var(--text); font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: var(--primary); }
.cat-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

/* Mobile drawer */
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--navy); color: #fff; z-index: 80; transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; padding: 12px 10px 24px; }
.drawer.open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5, 12, 33, .55); z-index: 70; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer-head .brand { color: #fff; }
.drawer-head .brand-name { font-size: 1.2rem; }
.drawer-head .icon-btn { color: #fff; }
.drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer-pages { border-top: 1px solid rgba(255,255,255,.12); }
.shop .drawer a { display: flex; gap: 14px; align-items: center; padding: 11px 12px; color: #fff; border-radius: 8px; font-weight: 500; }
.shop .drawer a:hover { background: rgba(255,255,255,.08); color: var(--yellow); }
.drawer svg { flex: none; opacity: .9; }

/* Home */
.home { padding-top: 16px; padding-bottom: 32px; display: grid; gap: 16px; }
.hero-slider { position: relative; border-radius: 12px; overflow: hidden; background: var(--navy); min-height: 330px; }
.hero-slide { position: relative; min-height: 330px; display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 38%, rgba(14,31,77,.86) 52%, rgba(14,31,77,.15) 80%, rgba(14,31,77,0)); z-index: 1; }
.hero-copy { position: relative; z-index: 2; max-width: 540px; padding: 36px 40px; color: #fff; border-left: 5px solid var(--yellow); margin-left: 28px; padding-left: 24px; }
.hero-copy h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; text-transform: uppercase; line-height: 1.08; letter-spacing: .01em; margin-bottom: 14px; }
.hero-copy h1 span { color: var(--yellow); display: block; }
.hero-copy p { color: #E3E9F8; font-size: 1rem; max-width: 46ch; }
.shop .hero-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; padding: 11px 22px; border-radius: 999px; margin-top: 6px; }
.shop .hero-btn:hover { background: var(--yellow-hover); color: var(--navy); }
.hero-sign { position: absolute; z-index: 2; right: 28px; top: 22px; background: #F4F1EA; color: var(--navy); border: 3px solid #1B2A55; padding: 8px 14px; font-weight: 900; text-transform: uppercase; text-align: center; line-height: 1.05; font-size: 1.05rem; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.hero-sign small { font-size: .85rem; }
.hero-credit { position: absolute; z-index: 2; right: 10px; bottom: 6px; font-size: .62rem; color: rgba(255,255,255,.75); }
.shop .hero-credit a { color: inherit; text-decoration: underline; }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; }
.hero-dots button[aria-current] { background: #fff; }

.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.shop .info-item { display: flex; gap: 14px; align-items: center; padding: 16px 18px; color: var(--text); }
.info-item + .info-item { border-left: 1px solid var(--border); }
.shop .info-item:hover { background: var(--surface-2); color: var(--text); }
.info-item strong { display: block; font-size: .92rem; color: var(--navy); }
.info-item small { display: block; color: var(--text-2); font-size: .78rem; line-height: 1.35; }
.info-icon { flex: none; display: grid; place-items: center; }
.info-icon.green { color: var(--success); }
.info-icon.blue { color: var(--primary); }
.info-icon.navy { color: var(--navy); }

.psection { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 18px 20px 20px; }
.psection-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.psection-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.45rem; font-weight: 800; color: var(--navy); flex-wrap: wrap; }
.psection-head > a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.ps-icon { display: grid; place-items: center; }
.ps-icon.red { color: var(--sale); }
.ps-icon.yellow { color: var(--yellow-hover); }
.ps-icon.navy { color: var(--navy); }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.pill-yellow { background: #FFF1C2; color: #7A5A00; }
.pill-orange { background: #FFE4C2; color: #9A4A00; }
.pill-navy { background: var(--navy); color: var(--yellow); }
.countdown { display: inline-flex; align-items: flex-start; gap: 4px; margin-left: 8px; }
.countdown span { display: grid; justify-items: center; }
.countdown b { background: var(--sale); color: #fff; font-size: 1rem; min-width: 36px; text-align: center; padding: 4px 6px; border-radius: 6px; }
.countdown small { font-size: .58rem; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.countdown i { font-style: normal; font-weight: 800; padding-top: 4px; }
.prow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

/* Product card */
.pcard { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.pcard:hover { box-shadow: 0 6px 18px rgba(15,27,61,.12); border-color: #C9D3E4; }
.pcard-media { position: relative; display: block; aspect-ratio: 1.15; background: var(--surface-3); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9AA6C1; }
.pcard-off { position: absolute; top: 8px; left: 8px; background: var(--sale); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 6px; }
.pcard-brand { position: absolute; left: 8px; bottom: 8px; background: var(--navy); color: var(--yellow); font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 5px; letter-spacing: .02em; }
.pcard-heart { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; }
.pcard-heart button, .pcard-heart > span { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: var(--text-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pcard-heart button[aria-pressed="true"] { color: var(--sale); }
.pcard-heart button[aria-pressed="true"] svg { fill: currentColor; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.shop .pcard-name { color: var(--text); font-weight: 700; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop .pcard-name:hover { color: var(--primary); }
.pcard-price { font-size: 1.12rem; font-weight: 800; color: var(--navy); }
.pcard-price s { font-size: .82rem; color: var(--sale); font-weight: 600; margin-left: 4px; }
.pcard-meta { list-style: none; margin: 0 0 10px; padding: 0; font-size: .78rem; color: var(--text-2); line-height: 1.45; flex: 1; }
.pcard form { margin: 0; }
.shop .pcard-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff; border: 0; border-radius: 6px; padding: 8px 10px; font: 700 .85rem var(--font); cursor: pointer; }
.shop .pcard-btn:hover { background: var(--primary-hover); color: #fff; }
.pcard-btn.is-disabled { background: var(--surface-3) !important; color: var(--text-3) !important; cursor: not-allowed; }
.shop .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

/* Product page extras */
.was { color: var(--sale); font-size: 1rem; font-weight: 600; }
.badge-sale { background: var(--sale) !important; color: #fff !important; }
.sale-ends { color: var(--sale); font-weight: 700; margin: 6px 0 0; }

/* Footer */
.shop .site-footer { background: var(--navy); color: #C9D3EE; border: 0; margin-top: 24px; padding: 34px 0 18px; }
.shop .footer-grid { grid-template-columns: 1.5fr 1fr 1fr .8fr 1.5fr; gap: 28px; }
.shop .footer-grid h4 { color: var(--yellow); font-size: 1rem; margin-bottom: 10px; }
.shop .footer-grid a { color: #E3E9F8; }
.shop .footer-grid a:hover { color: var(--yellow); }
.footer-brand p { color: #C9D3EE; font-size: .88rem; margin: 12px 0; }
.socials { display: flex; gap: 10px; }
.shop .socials a { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.shop .socials a:hover { background: var(--yellow); color: var(--navy); }
.footer-news p { color: #C9D3EE; font-size: .88rem; }
.news-form { display: flex; border-radius: 6px; overflow: hidden; }
.shop .news-form input { border: 0; border-radius: 0; background: #fff; color: var(--text); min-width: 0; }
.news-form button { border: 0; background: var(--yellow); color: var(--navy); font-weight: 800; padding: 0 18px; cursor: pointer; }
.news-form button:hover { background: var(--yellow-hover); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.shop .footer-bottom { border-color: rgba(255,255,255,.14); color: #AEB9D8; justify-content: flex-end; gap: 24px; }
.shop .footer-bottom span:first-child { margin-right: auto; }
.shop .footer-bottom a { color: #AEB9D8; }

/* Content pages on the light theme */
.shop .page { padding-top: 20px; }
.shop .prose.card, .shop .prose .card { padding: 24px 28px; }
.shop .filters { background: #fff; }
.shop .cat-tile { background: #fff; }
.shop .faq-section { background: #fff; }
.shop .table-wrap { background: #fff; }
.shop th { background: var(--surface-2); }

@media (max-width: 1100px) {
  .prow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prow > :nth-child(n+9) { display: none; }
  .shop .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 3; }
}
@media (max-width: 900px) {
  .shop .menu-btn { display: grid; }
  .shop .header-row { flex-wrap: wrap; gap: 8px 10px; }
  .shop .brand-name { font-size: 1.25rem; }
  .shop .brand-mark { width: 38px; height: 32px; }
  .shop .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .account-menu { display: none; }
  .cat-nav ul { justify-content: flex-start; }
  .cat-nav a { padding: 10px 12px; font-size: .85rem; }
  .info-strip { grid-template-columns: repeat(4, 1fr); }
  .shop .info-item { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; }
  .info-item small { display: none; }
  .info-item strong { font-size: .75rem; }
  .info-item + .info-item { border-left: 0; }
  .prow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; margin: 0 -4px; }
  .prow > .pcard { flex: 0 0 42%; scroll-snap-align: start; }
  .prow > :nth-child(n+9) { display: flex; }
  .hero-img { width: 100%; opacity: .45; }
  .hero-slide::before { background: linear-gradient(90deg, rgba(14,31,77,.95), rgba(14,31,77,.7)); }
  .hero-sign { display: none; }
}
@media (max-width: 640px) {
  .shop .brand-tag { display: block; font-size: .5rem; }
  .shop .header-search select { max-width: 112px; font-size: .78rem; padding: 6px; }
  .home { padding-top: 10px; gap: 12px; }
  .hero-slider, .hero-slide { min-height: 260px; }
  .hero-copy { margin-left: 16px; padding: 22px 16px 34px 16px; }
  .hero-copy p { font-size: .88rem; }
  .psection { padding: 14px 12px; }
  .psection-head h2 { font-size: 1.15rem; }
  .countdown b { min-width: 28px; font-size: .85rem; }
  .prow > .pcard { flex-basis: 46%; }
  .pcard-body { padding: 8px; }
  .pcard-price { font-size: .98rem; }
  .shop .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-news { grid-column: span 2; }
  .shop .footer-bottom { justify-content: flex-start; flex-direction: column; gap: 4px; }
}
.home { grid-template-columns: minmax(0, 1fr); }
.home > * { min-width: 0; }
@media (min-width: 1101px) { .prow > :nth-child(n+6) { display: none; } }
@media (max-width: 640px) {
  .prow > .pcard { flex-basis: 31.5%; }
  .pcard-name { font-size: .74rem !important; }
  .pcard-price { font-size: .86rem; }
  .pcard-price s { display: block; margin: 0; font-size: .7rem; }
  .pcard-meta { font-size: .64rem; margin-bottom: 6px; }
  .shop .pcard-btn { font-size: .68rem; padding: 6px 4px; gap: 3px; }
  .pcard-btn svg { width: 12px; height: 12px; }
  .pcard-heart button, .pcard-heart > span { width: 26px; height: 26px; }
  .pcard-off, .pcard-brand { font-size: .6rem; padding: 2px 5px; }
  .pcard-ph svg { width: 32px; height: 32px; }
}

/* --- Exact mockup details --- */
.shop .brand-name b { color: var(--yellow); font-weight: 800; }
.shop .brand-name { font-size: 1.75rem; letter-spacing: 0; }
.shop .brand-tag { color: #fff; font-weight: 700; font-size: .6rem; }
.shop .brand-mark { width: 52px; height: 44px; }
.header-search { border-radius: 8px; }
.shop .header-search button { border-radius: 0 8px 8px 0; padding: 0 20px; }
.chev { font-size: .8rem; }
.shop .badge-count { background: #E5252F; width: 20px; height: 20px; border-radius: 50%; top: -4px; right: -2px; font-size: .7rem; }
.cat-nav a { font-size: .95rem; color: #2B2E3B; padding: 14px 18px; }
.cat-nav a[aria-current="page"] { color: var(--primary); border-bottom-width: 3px; }
.hero-img { width: 72%; }
.hero-slide::before { background: linear-gradient(90deg, var(--navy) 30%, rgba(0,28,66,.9) 42%, rgba(0,28,66,.35) 62%, rgba(0,28,66,0) 78%); }
.info-item strong { font-size: .95rem; }
.info-item.t-green strong { color: var(--success); }
.info-item.t-blue strong { color: var(--primary); }
.info-item.t-navy strong { color: var(--navy); }
.info-icon svg { width: 40px; height: 40px; }
.info-icon.green { color: var(--success); }
.info-icon.blue { color: var(--primary); }
.psection-head h2 { font-size: 1.55rem; color: #1B1E2B; }
.pill-yellow { background: #FDE7A1; color: #3E3410; }
.pill-orange { background: #FDDA90; color: #B04A1C; }
.countdown b { background: var(--sale); min-width: 34px; }
.pcard { border-radius: 8px; }
.pcard-media { aspect-ratio: 1.92; }
.pcard-off { top: 0; left: 0; border-radius: 6px 0 6px 0; font-size: 1rem; padding: 5px 11px; min-width: 64px; min-height: 30px; text-align: center; }
.pcard-heart { top: 5px; right: 5px; }
.pcard-heart button, .pcard-heart > span { width: 38px; height: 38px; color: #2B2E3B; }
.pcard-heart svg { width: 20px; height: 20px; }
.shop .pcard-name { font-size: .92rem; font-weight: 700; color: #1B1E2B; }
.pcard-price { color: #1B1E2B; font-size: 1.15rem; }
.pcard-price s { color: var(--sale); font-weight: 500; }
.shop .pcard-btn { background: var(--primary); border-radius: 4px; font-weight: 600; }
.shop .footer-grid > div + div { border-left: 1px solid rgba(255,255,255,.18); padding-left: 24px; }
.shop .footer-grid h4 { color: var(--yellow); font-size: 1.05rem; }
.shop .socials a { background: transparent; color: #fff; width: 38px; height: 38px; }
.shop .socials a:hover { background: transparent; color: var(--yellow); }
.shop .socials svg { width: 30px; height: 30px; }
.news-form { border-radius: 6px; }
@media (max-width: 1100px) { .shop .footer-grid > div + div { border-left: 0; padding-left: 0; } }
@media (max-width: 900px) {
  .hero-img { width: 100%; opacity: 1; }
  .hero-slide::before { background: linear-gradient(90deg, rgba(0,28,66,.96) 35%, rgba(0,28,66,.75) 65%, rgba(0,28,66,.35)); }
  .info-icon svg { width: 32px; height: 32px; }
  .shop .brand-name { font-size: 1.3rem; }
  .shop .brand-mark { width: 40px; height: 34px; }
}
@media (max-width: 640px) {
  .pcard-off { font-size: .68rem; padding: 3px 6px; min-width: 40px; min-height: 0; }
  .pcard-heart button, .pcard-heart > span { width: 26px; height: 26px; }
  .pcard-heart svg { width: 14px; height: 14px; }
  .pcard-media { aspect-ratio: 1.5; }
}
.pcard-media img { position: absolute; inset: 0; }
.hero-img { object-position: center top; }
.countdown [hidden] { display: none !important; }
@media (max-width: 640px) {
  .shop .header-row { flex-wrap: wrap; }
  .shop .brand { min-width: 0; flex: 1; gap: 6px; }
  .shop .brand-name { font-size: 1.12rem; white-space: nowrap; }
  .shop .brand-tag { font-size: .44rem; white-space: nowrap; }
  .shop .brand-mark { width: 34px; height: 29px; }
  .shop .header-actions { margin-left: 0; flex: none; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(0,28,66,.82), rgba(0,28,66,.9)); }
  .hero-img { object-position: 70% top; }
  .hero-copy h1 { font-size: 1.45rem; }
  .info-item strong, .info-item.t-green strong, .info-item.t-blue strong, .info-item.t-navy strong { font-size: .68rem; line-height: 1.25; }
  .info-icon svg { width: 28px; height: 28px; }
  .pcard-price { font-size: .8rem; white-space: nowrap; }
  .psection-head h2 { font-size: 1.1rem; gap: 6px; }
  .psection-head > a { font-size: .78rem; }
  .countdown b { min-width: 24px; font-size: .75rem; padding: 3px 4px; }
}
.ai-note { align-self: flex-start; font-size: .8rem; color: var(--text-3); font-style: italic; }
.ai-proposal { align-self: flex-start; max-width: 85%; border: 1px solid var(--warning); background: var(--warning-soft); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; }
.ap-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--warning); }
.ap-summary { font-weight: 600; }
.ap-status { font-size: .85rem; color: var(--text-2); }
.ap-buttons { display: flex; gap: 8px; }
.ai-proposal.is-confirmed { border-color: var(--success); background: var(--success-soft); }
.ai-proposal.is-confirmed .ap-head { color: var(--success); }
.ai-proposal.is-failed { border-color: var(--danger); background: var(--danger-soft); }
.ai-proposal.is-cancelled, .ai-proposal.is-expired { opacity: .65; border-color: var(--border); background: var(--surface-2); }
.ap-buttons[hidden] { display: none; }
.ai-msg code { background: rgba(127,127,127,.15); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
