:root {
  --ink: #17312b;
  --ink-deep: #102823;
  --muted: #667871;
  --muted-light: #8b9a95;
  --line: #dfe8e4;
  --line-strong: #cbd9d4;
  --paper: #ffffff;
  --canvas: #fbfcfb;
  --soft: #f3f7f5;
  --brand: #1d5c4d;
  --brand-dark: #123b33;
  --brand-deep: #0d2c26;
  --brand-soft: #e6f0ec;
  --accent: #d99a38;
  --accent-dark: #b9791f;
  --accent-soft: #fbf1df;
  --danger: #a43b36;
  --danger-soft: #f9e7e5;
  --success-soft: #e0f2e9;
  --shadow-sm: 0 8px 22px rgba(16, 40, 35, .06);
  --shadow: 0 18px 46px rgba(16, 40, 35, .10);
  --shadow-lg: 0 28px 72px rgba(16, 40, 35, .16);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--brand-dark); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink-deep); }
h1 { margin-bottom: 1rem; font-size: clamp(2.35rem, 5vw, 5rem); font-weight: 850; letter-spacing: -.065em; line-height: 1.01; }
h2 { margin-bottom: .75rem; font-size: clamp(1.7rem, 3.2vw, 2.75rem); font-weight: 820; letter-spacing: -.045em; line-height: 1.08; }
h3 { margin-bottom: .55rem; font-size: 1.08rem; line-height: 1.22; }
.container { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }
.narrow-container { max-width: 880px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Header */
.top-strip { background: var(--brand-deep); color: rgba(255,255,255,.9); font-size: .76rem; letter-spacing: .025em; }
.top-strip-inner { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 1rem; }
.top-strip-note { color: #e8c98f; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(203,217,212,.85); background: rgba(255,255,255,.94); box-shadow: 0 6px 24px rgba(16,40,35,.045); backdrop-filter: blur(16px); }
.header-main { display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; min-height: 82px; align-items: center; gap: 1.45rem; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--ink-deep); }
.brand:hover, .footer-brand:hover { color: var(--ink-deep); }
.brand-mark { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--brand), var(--brand-dark)); box-shadow: 0 9px 20px rgba(29,92,77,.22); }
.brand-mark svg { width: 27px; height: 27px; fill: #f2c974; }
.brand-copy strong, .brand-copy small, .footer-brand strong, .footer-brand small { display: block; }
.brand-copy strong, .footer-brand strong { max-width: 245px; overflow: hidden; color: var(--ink-deep); font-size: 1rem; font-weight: 850; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small, .footer-brand small { margin-top: .08rem; color: var(--muted); font-size: .69rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.header-search { position: relative; display: flex; min-height: 46px; max-width: 610px; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,92,77,.11); }
.header-search svg { width: 20px; height: 20px; margin-left: .88rem; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
.header-search input { min-width: 0; flex: 1; min-height: 44px; padding: .55rem .7rem; border: 0; outline: 0; color: var(--ink); background: transparent; }
.header-search input::placeholder { color: #93a29d; }
.header-search button { min-height: 36px; margin-right: .3rem; padding: .4rem .78rem; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; }
.header-search button:hover { background: var(--brand-dark); }
.header-actions { display: flex; align-items: center; gap: .48rem; }
.header-action-link, .header-cart-link { display: inline-flex; min-height: 42px; align-items: center; gap: .38rem; padding: .48rem .64rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: .83rem; font-weight: 800; }
.header-action-link:hover, .header-cart-link:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.header-cart-link { border-color: #ead7b1; background: var(--accent-soft); }
.header-action-link svg, .header-cart-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.cart-badge { display: grid; min-width: 22px; height: 22px; place-items: center; padding-inline: .25rem; border-radius: 999px; background: var(--accent); color: #3e2a09; font-size: .71rem; font-weight: 900; }
.nav-shell { border-top: 1px solid rgba(223,232,228,.8); background: rgba(250,252,251,.92); }
.nav-row { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 1rem; }
.main-nav, .nav-utility { display: flex; align-items: center; gap: 1.1rem; }
.main-nav a, .nav-utility, .nav-utility a, .link-button { color: var(--ink); font-size: .79rem; font-weight: 760; }
.main-nav a { position: relative; padding: .7rem 0; }
.main-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--accent); content: ""; opacity: 0; transform: scaleX(.4); transition: opacity .18s ease, transform .18s ease; }
.main-nav a.active, .main-nav a:hover, .nav-utility a:hover, .link-button:hover { color: var(--brand); }
.main-nav a.active::after, .main-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.nav-utility { color: var(--muted); font-size: .76rem; }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: transparent; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); }
.mobile-nav-only { display: none; }

/* General controls */
.eyebrow { margin-bottom: .62rem; color: var(--brand); font-size: .72rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.section { padding: 5rem 0; }
.section-muted { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.3rem; margin-bottom: 1.75rem; }
.section-heading h2 { max-width: 760px; margin-bottom: .55rem; }
.section-copy { max-width: 670px; margin-bottom: 0; color: var(--muted); font-size: .98rem; }
.compact-heading { margin-bottom: 1.35rem; }
.text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .35rem; color: var(--brand); font-size: .9rem; font-weight: 850; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(4px); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: .4rem; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 12px; font-size: .88rem; font-weight: 830; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, opacity .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled, .button.is-loading { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { background: var(--brand); box-shadow: 0 8px 17px rgba(29,92,77,.16); color: #fff; }
.button-primary:hover { background: var(--brand-dark); box-shadow: 0 12px 25px rgba(18,59,51,.22); color: #fff; }
.button-secondary { border-color: #b8cec6; background: rgba(255,255,255,.8); color: var(--brand-dark); }
.button-secondary:hover { border-color: var(--brand); background: #fff; color: var(--brand-dark); }
.button-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.button-ghost:hover { border-color: var(--line-strong); background: var(--soft); color: var(--ink); }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover { background: #862f2b; color: #fff; }
.button-light { background: #fff; color: var(--brand-dark); }
.button-light:hover { background: #f7fbf9; color: var(--brand-dark); }
.button-outline-light { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.07); color: #fff; }
.button-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.14); color: #fff; }
.button-large { min-height: 51px; padding: .78rem 1.2rem; border-radius: 14px; }
.button-small { min-height: 34px; padding: .36rem .62rem; border-radius: 9px; font-size: .78rem; }
.button-block { width: 100%; }
.disabled-link { pointer-events: none; opacity: .5; }

/* Home */
.hero { position: relative; overflow: hidden; padding: 5.25rem 0 5.6rem; background: radial-gradient(circle at 84% 18%, rgba(240,185,90,.22), transparent 24%), radial-gradient(circle at 15% 75%, rgba(29,92,77,.09), transparent 27%), linear-gradient(135deg, #f7fbf8 0%, #fcf8ef 100%); }
.hero::before, .hero::after { position: absolute; border: 1px solid rgba(29,92,77,.08); border-radius: 999px; content: ""; }
.hero::before { width: 420px; height: 420px; right: -160px; top: -170px; }
.hero::after { width: 310px; height: 310px; left: -180px; bottom: -200px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 4rem; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { max-width: 760px; }
.hero h1 span { display: block; color: var(--brand); }
.hero-copy { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .72rem; margin: 1.75rem 0 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .95rem; padding-top: .2rem; }
.hero-trust div { display: grid; gap: .02rem; padding-right: .95rem; border-right: 1px solid var(--line-strong); }
.hero-trust div:last-child { border-right: 0; }
.hero-trust strong { color: var(--brand-dark); font-size: .85rem; }
.hero-trust span { color: var(--muted); font-size: .76rem; }
.hero-visual { position: relative; z-index: 1; }
.hero-card { padding: .65rem; border: 1px solid rgba(255,255,255,.82); border-radius: 32px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-lg); transform: rotate(1.6deg); }
.hero-card img { width: 100%; border-radius: 26px; }
.hero-floating-card { position: absolute; display: flex; min-width: 220px; align-items: center; gap: .65rem; padding: .72rem .82rem; border: 1px solid rgba(223,232,228,.9); border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.hero-floating-card strong, .hero-floating-card small { display: block; }
.hero-floating-card strong { color: var(--ink-deep); font-size: .78rem; }
.hero-floating-card small { color: var(--muted); font-size: .68rem; }
.hero-floating-top { top: 7%; right: -8%; }
.hero-floating-bottom { bottom: 8%; left: -12%; }
.floating-icon { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 900; }
.value-strip-wrap { position: relative; z-index: 3; margin-top: -32px; }
.value-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.value-item { display: flex; min-height: 95px; align-items: center; gap: .78rem; padding: 1rem 1.2rem; border-right: 1px solid var(--line); }
.value-item:last-child { border-right: 0; }
.value-icon { color: var(--accent-dark); font-size: .77rem; font-weight: 950; letter-spacing: .12em; }
.value-item strong, .value-item small { display: block; }
.value-item strong { color: var(--ink-deep); font-size: .92rem; }
.value-item small { margin-top: .1rem; color: var(--muted); font-size: .76rem; }
.departments-section { padding-top: 5.6rem; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.category-card { position: relative; display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.05rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(16,40,35,.035); color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.category-card::after { position: absolute; right: -18px; bottom: -24px; width: 86px; height: 86px; border-radius: 999px; background: var(--brand-soft); content: ""; transition: transform .18s ease; }
.category-card:hover { border-color: #bad0c8; box-shadow: var(--shadow); color: var(--ink); transform: translateY(-5px); }
.category-card:hover::after { transform: scale(1.18); }
.category-icon { position: relative; z-index: 1; font-size: 2rem; }
.category-card-copy { position: relative; z-index: 1; display: block; padding-right: 1rem; }
.category-card strong { display: block; color: var(--ink-deep); font-size: .98rem; }
.category-card small, .category-admin-row small { display: block; margin-top: .32rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.category-arrow { position: absolute; right: 1rem; bottom: .88rem; z-index: 1; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 900; transition: transform .18s ease; }
.category-card:hover .category-arrow { transform: translateX(4px); }
.featured-section { border-block: 1px solid rgba(223,232,228,.82); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(16,40,35,.04); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { border-color: #bdd0ca; box-shadow: var(--shadow); transform: translateY(-5px); }
.product-image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eef4f1; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image { transform: scale(1.045); }
.product-view-label { position: absolute; right: .65rem; bottom: .65rem; padding: .28rem .48rem; border-radius: 8px; background: rgba(16,40,35,.84); color: #fff; font-size: .66rem; font-weight: 800; opacity: 0; transform: translateY(5px); transition: opacity .18s ease, transform .18s ease; }
.product-card:hover .product-view-label { opacity: 1; transform: translateY(0); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: .92rem; }
.product-card-topline { display: flex; align-items: center; justify-content: space-between; gap: .45rem; }
.product-meta { color: var(--brand); font-size: .67rem; font-weight: 900; letter-spacing: .115em; text-transform: uppercase; }
.stock-pill { flex: 0 0 auto; padding: .2rem .4rem; border-radius: 999px; font-size: .62rem; font-weight: 850; }
.in-stock-pill { background: var(--success-soft); color: #206347; }
.out-stock-pill { background: var(--danger-soft); color: var(--danger); }
.product-card h3 { min-height: 2.5em; margin: .46rem 0 .45rem; font-size: 1rem; }
.product-card h3 a { color: var(--ink-deep); }
.product-card h3 a:hover { color: var(--brand); }
.product-price, .detail-price { color: var(--ink-deep); font-size: 1.23rem; font-weight: 900; letter-spacing: -.025em; }
.product-price small, .detail-price small { color: var(--muted); font-size: .73rem; font-weight: 650; letter-spacing: 0; }
.stock-detail, .stock { margin-top: .4rem; color: var(--muted); font-size: .74rem; font-weight: 700; }
.in-stock { color: var(--brand); }
.out-stock, .warning-text { color: var(--danger); }
.card-action { margin-top: auto; padding-top: .9rem; }
.card-action .button { min-height: 40px; font-size: .8rem; }
.order-callout-section { padding-bottom: 2rem; }
.order-callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; overflow: hidden; padding: 2.3rem; border-radius: 26px; background: radial-gradient(circle at 90% 0%, rgba(240,185,90,.2), transparent 30%), linear-gradient(135deg, var(--brand-deep), #1c5a4d); box-shadow: var(--shadow); color: rgba(255,255,255,.82); }
.order-callout h2 { max-width: 760px; color: #fff; }
.order-callout p { max-width: 750px; margin-bottom: 0; }
.order-callout .eyebrow { color: #efc36d; }
.order-callout-actions { display: grid; min-width: 175px; gap: .7rem; }
.process-section { padding-top: 3.5rem; }
.service-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .metric-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(16,40,35,.03); }
.service-card span { display: inline-flex; color: var(--accent-dark); font-size: .76rem; font-weight: 950; letter-spacing: .15em; }
.service-card h3 { margin-top: .8rem; }
.service-card p, .metric-card span { margin-bottom: 0; color: var(--muted); font-size: .88rem; }

/* Catalogue and product details */
.page-hero, .admin-header { padding: 3rem 0; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 88% 10%, rgba(240,185,90,.17), transparent 24%), linear-gradient(135deg, #eef5f2, #faf8f0); }
.page-hero.compact h1, .admin-header h1 { margin-bottom: .55rem; font-size: clamp(2.1rem, 4vw, 3.55rem); }
.page-hero p:last-child, .admin-header p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 1.35rem; }
.filter-panel, .form-card, .summary-card, .table-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.filter-panel { position: sticky; top: 150px; }
.filter-panel h2 { font-size: 1.15rem; }
.stack-form, .form-card { display: grid; gap: .9rem; }
label { display: grid; gap: .3rem; color: var(--ink); font-size: .82rem; font-weight: 820; }
label small, .fine-print { color: var(--muted); font-size: .77rem; font-weight: 520; }
input, select, textarea { width: 100%; min-height: 44px; padding: .62rem .72rem; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: #fff; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,92,77,.11); }
.result-bar { margin-bottom: .95rem; color: var(--muted); font-size: .9rem; }
.empty-state { padding: 2.5rem 1.2rem; border: 1px dashed #b9cdc6; border-radius: var(--radius); background: rgba(255,255,255,.76); text-align: center; color: var(--muted); }
.empty-state h2 { margin-bottom: .45rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.45rem; color: var(--muted); font-size: .82rem; }
.product-detail { display: grid; grid-template-columns: .94fr 1.06fr; align-items: start; gap: 2.1rem; }
.product-detail-image { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--soft); box-shadow: var(--shadow-sm); }
.product-detail-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail h1 { margin-top: .65rem; font-size: clamp(2.2rem, 4vw, 3.9rem); }
.detail-price { margin: .8rem 0; font-size: 1.95rem; }
.add-form { display: flex; align-items: end; gap: .75rem; margin-top: 1.25rem; }
.add-form label { max-width: 112px; }
.info-note { margin-top: 1rem; padding: .85rem; border: 1px solid #dce8e4; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: .8rem; }

/* Cart, checkout and account */
.cart-layout, .order-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 1.15rem; }
.cart-lines { display: grid; gap: .3rem; margin-bottom: 1rem; }
.cart-line, .order-line { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto auto auto; align-items: center; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.cart-line img, .order-line img, .table-product img { width: 58px; height: 50px; border-radius: 9px; background: var(--soft); object-fit: cover; }
.cart-line h3 { margin: 0; font-size: .96rem; }
.cart-line small, .order-line small, td small { display: block; color: var(--muted); }
.qty-label { max-width: 64px; font-size: .7rem; }
.qty-label input { min-height: 36px; padding: .35rem; }
.icon-button { border: 0; background: transparent; color: var(--danger); font-size: 1.45rem; }
.summary-card { position: sticky; top: 150px; }
.summary-row { display: flex; justify-content: space-between; gap: .7rem; padding: .67rem 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.summary-row.total { margin-top: .35rem; border-bottom: 0; font-size: 1.08rem; }
.summary-card .button { margin-top: .65rem; }
.auth-section { display: grid; min-height: 67vh; place-items: center; padding: 4rem 1rem; background: radial-gradient(circle at 84% 18%, rgba(240,185,90,.18), transparent 24%), linear-gradient(135deg, #eff6f3, #fbf8ef); }
.auth-card { width: min(100%, 490px); padding: 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.auth-card.wide { width: min(100%, 710px); }
.auth-card h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.auth-switch { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }
.form-grid { display: grid; gap: .85rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.checkbox-row label { display: flex; align-items: center; gap: .45rem; }
.checkbox-row input { width: auto; min-height: auto; }
.order-list { display: grid; gap: .85rem; }
.order-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 4px 14px rgba(16,40,35,.025); color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.order-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); transform: translateY(-2px); }
.order-card h2 { margin: .45rem 0 .18rem; font-size: 1.08rem; }
.order-card small { display: block; color: var(--muted); }
.order-card-right { text-align: right; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.card-heading h2 { margin: 0; }
.order-line { grid-template-columns: 60px minmax(0, 1fr) auto; }
.detail-list { display: grid; grid-template-columns: 88px 1fr; gap: .6rem; font-size: .84rem; }
.detail-list dt { color: var(--muted); font-weight: 820; }
.detail-list dd { margin: 0; word-break: break-word; }
.timeline-card { margin-top: 1rem; }
.timeline-item { display: grid; grid-template-columns: 15px 1fr; gap: .55rem; padding: .65rem 0; }
.timeline-dot { width: 10px; height: 10px; margin-top: .32rem; border-radius: 50%; background: var(--brand); }
.timeline-item small, .timeline-item p { display: block; margin: .15rem 0 0; color: var(--muted); font-size: .79rem; }
.status-pill { display: inline-flex; width: max-content; padding: .22rem .5rem; border-radius: 999px; background: #eef2f0; color: #43504b; font-size: .66rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.status-pending { background: #fff2c9; color: #765500; }
.status-confirmed { background: #dceef8; color: #155575; }
.status-ready { background: #e7e3fb; color: #4e438f; }
.status-dispatched { background: #e8ebee; color: #3e4d59; }
.status-completed { background: #dff3e9; color: #176446; }
.status-cancelled { background: #f8dfdd; color: #8d2c27; }

/* Admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.admin-tabs a { padding: .46rem .68rem; border: 1px solid rgba(203,217,212,.74); border-radius: 9px; background: rgba(255,255,255,.72); color: var(--ink); font-size: .81rem; font-weight: 800; }
.admin-tabs a.active { border-color: var(--brand); background: var(--brand); color: #fff; }
.metric-card { display: grid; gap: .25rem; }
.metric-card small { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.metric-card strong { font-size: 2rem; }
.admin-columns { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem; margin-top: 1rem; }
.compact-row, .audit-row, .category-admin-row { display: flex; justify-content: space-between; gap: .75rem; padding: .76rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.compact-row > div { display: grid; gap: .25rem; }
.compact-row > div:last-child { justify-items: end; }
.compact-row small, .audit-row small, .audit-row span { display: block; color: var(--muted); }
.audit-row { display: grid; }
.category-admin-row { align-items: center; }
.category-admin-row div { flex: 1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: .76rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: .82rem; }
th { color: var(--muted); font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; }
.table-product { display: flex; align-items: center; gap: .65rem; }
.table-actions { display: flex; align-items: center; gap: .35rem; }
.status-form { margin-top: 1rem; }
.flash-stack { display: grid; gap: .45rem; padding-top: .7rem; }
.flash { padding: .76rem .88rem; border-radius: 10px; font-size: .86rem; font-weight: 720; }
.flash-success { background: var(--success-soft); color: #176446; }
.flash-error { background: var(--danger-soft); color: #8d2c27; }

/* Footer */
.site-footer { margin-top: auto; padding: 3.3rem 0 1rem; background: var(--brand-deep); color: rgba(255,255,255,.91); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr .8fr 1.05fr; gap: 1.5rem; }
.footer-brand { color: #fff; }
.footer-brand:hover { color: #fff; }
.footer-brand .brand-mark { background: rgba(255,255,255,.1); box-shadow: none; }
.footer-brand strong { color: #fff; }
.footer-brand small { color: rgba(255,255,255,.58); }
.footer-heading { display: block; margin-bottom: .72rem; color: #efc36d; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer p { max-width: 440px; margin-bottom: 0; color: rgba(255,255,255,.62); font-size: .8rem; }
.footer-links { display: grid; gap: .48rem; }
.footer-links a { color: rgba(255,255,255,.72); font-size: .8rem; }
.footer-links a:hover { color: #efc36d; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.52); font-size: .73rem; }

@media (max-width: 1080px) {
  .header-main { gap: .9rem; }
  .brand-copy strong { max-width: 185px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { gap: 2.6rem; }
  .hero-floating-top { right: -2%; }
  .hero-floating-bottom { left: -4%; }
  .footer-grid { grid-template-columns: 1.25fr .75fr .85fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .header-main { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: -.35rem 0 .72rem; }
  .hero { padding: 4.1rem 0 5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { width: min(100%, 620px); margin-inline: auto; }
  .value-strip { grid-template-columns: 1fr; }
  .value-item { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-item:last-child { border-bottom: 0; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-layout, .cart-layout, .order-detail-layout { grid-template-columns: 1fr; }
  .filter-panel, .summary-card { position: static; }
  .order-callout { grid-template-columns: 1fr; }
  .order-callout-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 1.15rem, 1200px); }
  .top-strip { font-size: .68rem; }
  .top-strip-inner { min-height: 30px; justify-content: center; text-align: center; }
  .top-strip-note { display: none; }
  .header-main { min-height: 68px; gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-copy strong { max-width: 150px; font-size: .86rem; }
  .brand-copy small { display: none; }
  .header-action-link, .header-cart-link, .nav-toggle { min-height: 39px; padding: .42rem .52rem; }
  .header-action-label { display: none; }
  .header-actions { gap: .35rem; }
  .nav-toggle { display: block; }
  .nav-shell { position: relative; border-top: 0; }
  .nav-row { min-height: 0; }
  .main-nav { position: absolute; top: 0; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: .55rem .65rem .75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav .link-button { display: block; width: 100%; padding: .7rem .55rem; text-align: left; }
  .main-nav a::after { display: none; }
  .mobile-nav-only { display: block; }
  .nav-utility { display: none; }
  .hero { padding: 3.5rem 0 4.2rem; }
  .hero-copy { font-size: .98rem; }
  .hero-actions { margin: 1.35rem 0; }
  .hero-trust { gap: .68rem; }
  .hero-trust div { padding-right: .68rem; }
  .hero-floating-card { min-width: 190px; padding: .58rem .65rem; }
  .hero-floating-card strong { font-size: .72rem; }
  .hero-floating-card small { font-size: .62rem; }
  .floating-icon { width: 28px; height: 28px; }
  .section { padding: 3.5rem 0; }
  .departments-section { padding-top: 4.6rem; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 1.3rem; }
  .service-grid, .metric-grid, .admin-columns { grid-template-columns: 1fr; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 1.4rem; }
  .cart-line { grid-template-columns: 54px minmax(0,1fr) auto; }
  .cart-line img { width: 50px; height: 44px; }
  .cart-line .qty-label { grid-column: 2; }
  .cart-line > strong { grid-row: 2; grid-column: 3; }
  .cart-line .icon-button { grid-row: 1; grid-column: 3; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .footer-bottom { align-items: start; flex-direction: column; }
}

@media (max-width: 500px) {
  h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  h2 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .brand-copy strong { max-width: 108px; }
  .header-search button { padding-inline: .62rem; }
  .header-search input { font-size: .86rem; }
  .hero-card { border-radius: 23px; }
  .hero-card img { border-radius: 18px; }
  .hero-floating-card { display: none; }
  .hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-trust div { padding-right: .4rem; }
  .hero-trust strong { font-size: .75rem; }
  .hero-trust span { font-size: .64rem; }
  .category-grid { gap: .62rem; }
  .category-card { min-height: 145px; padding: .85rem; }
  .category-card small { display: none; }
  .product-grid { gap: .62rem; }
  .product-card-body { padding: .72rem; }
  .product-card h3 { min-height: 2.35em; margin-top: .37rem; font-size: .87rem; }
  .product-meta { max-width: 74px; overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
  .stock-pill { padding: .15rem .3rem; font-size: .55rem; }
  .product-price { font-size: 1.02rem; }
  .stock-detail { font-size: .66rem; }
  .card-action { padding-top: .7rem; }
  .card-action .button { min-height: 37px; padding: .48rem .45rem; font-size: .72rem; }
  .product-view-label { display: none; }
  .order-callout { padding: 1.35rem; }
  .order-callout-actions { grid-template-columns: 1fr; }
  .add-form { align-items: stretch; flex-direction: column; }
  .add-form label { max-width: none; }
}

/* Retail catalogue redesign — inspired by large-format hardware stores */
:root {
  --retail-green: hwb(245 1% 49%);
  --retail-green-dark: hwb(245 1% 49%);
  --retail-green-deep: hwb(245 1% 49%);
  --retail-lime: #c9e56b;
  --retail-yellow: #f5c343;
  --retail-red: #e85b43;
  --retail-blue: #d9eef7;
  --retail-sand: #f6efe1;
  --retail-page: #f5f6f4;
  --retail-card-border: #d6ddd9;
}

body { background: var(--retail-page); }
.retail-header { border-bottom: 0; background: #fff; box-shadow: 0 5px 16px rgba(7, 42, 34, .09); backdrop-filter: none; }
.retail-top-strip { background: var(--retail-green-deep); }
.retail-top-strip-inner { min-height: 32px; }
.retail-top-links { display: flex; align-items: center; gap: .95rem; color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 700; }
.retail-top-links a { color: rgba(255,255,255,.88); }
.retail-top-links a:hover { color: var(--retail-yellow); }
.retail-brand-bar { background: var(--retail-green); }
.retail-header-main { min-height: 86px; }
.retail-brand { color: #fff; }
.retail-brand:hover { color: #fff; }
.retail-brand-mark { background: #fff; box-shadow: 0 6px 18px rgba(3, 34, 26, .2); }
.retail-brand-mark svg { fill: var(--retail-green); }
.retail-brand-copy strong { color: #fff; font-size: 1.05rem; }
.retail-brand-copy small { color: rgba(255,255,255,.74); }
.retail-header-search { max-width: 670px; min-height: 50px; border: 0; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.retail-header-search:focus-within { box-shadow: 0 0 0 4px rgba(245,195,67,.34); }
.retail-header-search button { min-height: 42px; border-radius: 3px; background: var(--retail-yellow); color: #293118; font-size: .82rem; }
.retail-header-search button:hover { background: #ffd35e; }
.retail-action-link, .retail-cart-link { border-color: rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.09); color: #fff; }
.retail-action-link:hover, .retail-cart-link:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.retail-cart-badge { background: var(--retail-yellow); color: #332609; }
.retail-nav-shell { border-top: 0; background: #fff; }
.retail-nav-row { min-height: 48px; }
.retail-main-nav { gap: 1.3rem; }
.retail-main-nav a, .retail-nav-utility, .retail-nav-utility a, .retail-main-nav .link-button { color: #263b35; font-size: .8rem; }
.retail-main-nav a::after { background: var(--retail-green); }
.retail-main-nav a.active, .retail-main-nav a:hover, .retail-nav-utility a:hover { color: var(--retail-green); }
.product-menu { position: relative; }
.product-menu summary { display: flex; min-height: 48px; align-items: center; gap: .3rem; padding: 0 .8rem; border: 0; background: var(--retail-green); color: #fff; cursor: pointer; font-size: .82rem; font-weight: 850; list-style: none; }
.product-menu summary::-webkit-details-marker { display: none; }
.product-menu[open] summary, .product-menu summary:hover { background: var(--retail-green-dark); }
.mega-menu { position: absolute; top: calc(100% + 1px); left: 0; width: min(900px, calc(100vw - 2rem)); padding: 1.1rem; border: 1px solid var(--retail-card-border); background: #fff; box-shadow: 0 18px 35px rgba(7,42,34,.16); }
.mega-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #e4e9e6; }
.mega-menu-heading strong { color: #17352d; font-size: 1rem; }
.mega-menu-heading a { color: var(--retail-green); font-size: .75rem; }
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .55rem; padding-top: .8rem; }
.mega-menu-grid a { display: grid; grid-template-columns: 28px minmax(0,1fr); column-gap: .55rem; padding: .58rem; border-radius: 4px; color: #263b35; }
.mega-menu-grid a:hover { background: #eef5f1; color: var(--retail-green); }
.mega-menu-grid span { grid-row: 1 / span 2; font-size: 1.25rem; }
.mega-menu-grid strong { font-size: .8rem; }
.mega-menu-grid small { color: #71807b; font-size: .68rem; line-height: 1.3; }

.retail-home-hero { padding: 1.35rem 0 1rem; background: #fff; }
.retail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(300px, .78fr); gap: .9rem; }
.retail-promo { position: relative; display: flex; overflow: hidden; border-radius: 2px; color: #fff; }
.retail-promo:hover { color: #fff; }
.retail-promo-main { min-height: 420px; align-items: center; background: linear-gradient(125deg, var(--retail-green-dark), var(--retail-green)); }
.retail-promo-main::after, .retail-promo-small::after { position: absolute; right: -68px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); content: ""; }
.retail-promo-copy { position: relative; z-index: 2; max-width: 610px; padding: 2.25rem; }
.retail-kicker { display: block; margin-bottom: .55rem; color: var(--retail-yellow); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.retail-promo h1 { max-width: 650px; margin-bottom: .8rem; color: #fff; font-size: clamp(2.6rem, 5vw, 4.6rem); }
.retail-promo p { max-width: 590px; color: rgba(255,255,255,.83); font-size: 1rem; }
.retail-promo-main img { position: absolute; right: 0; bottom: 0; z-index: 1; width: min(46%, 440px); height: 100%; object-fit: contain; object-position: right bottom; }
.button-accent { background: var(--retail-yellow); color: #263118; }
.button-accent:hover { background: #ffd35e; color: #263118; }
.retail-promo-stack { display: grid; gap: .9rem; }
.retail-promo-small { min-height: 205px; align-items: center; padding: 1.2rem 1.25rem; }
.retail-promo-small > div { position: relative; z-index: 2; max-width: 58%; }
.retail-promo-small h2 { margin-bottom: .65rem; color: #17352d; font-size: clamp(1.55rem, 2.2vw, 2.15rem); }
.retail-promo-small img { position: absolute; right: .2rem; bottom: 0; z-index: 1; width: 48%; height: 92%; object-fit: contain; object-position: right bottom; }
.retail-promo-warm { background: var(--retail-sand); }
.retail-promo-blue { background: var(--retail-blue); }
.promo-link { color: var(--retail-green-dark); font-size: .78rem; font-weight: 900; }
.retail-promo-small .retail-kicker { color: var(--retail-green); }

.retail-service-banner { background: var(--retail-green-deep); color: #fff; }
.retail-service-banner-inner { display: grid; grid-template-columns: auto 1fr auto; min-height: 78px; align-items: center; gap: .85rem; }
.retail-service-banner-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 999px; background: rgba(255,255,255,.11); }
.retail-service-banner strong, .retail-service-banner span { display: block; }
.retail-service-banner strong { color: #fff; font-size: .96rem; }
.retail-service-banner span { color: rgba(255,255,255,.72); font-size: .78rem; }
.retail-service-banner a { color: var(--retail-yellow); font-size: .82rem; font-weight: 900; }

.retail-category-section, .retail-product-section { padding: 3.7rem 0; }
.retail-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.retail-section-heading h2 { margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.retail-eyebrow { margin-bottom: .36rem; color: var(--retail-green); font-size: .69rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.retail-text-link { color: var(--retail-green); font-size: .84rem; font-weight: 900; }
.retail-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .78rem; }
.retail-category-card { display: flex; min-height: 194px; flex-direction: column; padding: 1rem; border: 1px solid var(--retail-card-border); border-radius: 2px; background: #fff; color: #243a34; box-shadow: 0 3px 9px rgba(7,42,34,.035); transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease; }
.retail-category-card:hover { border-color: #9bbab0; box-shadow: 0 12px 26px rgba(7,42,34,.09); color: var(--retail-green); transform: translateY(-3px); }
.retail-category-icon { display: grid; width: 52px; height: 52px; margin-bottom: .72rem; place-items: center; border-radius: 50%; background: #eef5f1; font-size: 1.65rem; }
.retail-category-card strong { color: #17352d; font-size: .96rem; }
.retail-category-card small { margin-top: .25rem; color: #71807b; font-size: .72rem; line-height: 1.42; }
.retail-category-link { margin-top: auto; padding-top: .75rem; color: var(--retail-green); font-size: .74rem; font-weight: 900; }
.retail-category-all { background: var(--retail-green); }
.retail-category-all strong, .retail-category-all small, .retail-category-all .retail-category-link { color: #fff; }
.retail-category-all .retail-category-icon { background: rgba(255,255,255,.15); color: #fff; }

.retail-product-section { background: #fff; }
.retail-product-section-muted { background: #f0f3f1; }
.retail-product-grid { gap: .78rem; }
.retail-product-card { border-radius: 2px; box-shadow: none; }
.retail-product-card:hover { border-color: #9bbab0; box-shadow: 0 12px 26px rgba(7,42,34,.09); transform: translateY(-3px); }
.retail-product-image-wrap { aspect-ratio: 1 / .82; background: #f4f6f5; }
.retail-product-card-body { padding: .88rem; }
.retail-product-topline { align-items: flex-start; }
.retail-product-sku { display: block; margin-bottom: .35rem; color: #87938f; font-size: .64rem; }
.retail-product-price { margin-top: .38rem; color: var(--retail-green-dark); font-size: 1.35rem; }
.retail-card-action { padding-top: .78rem; }
.retail-add-button { border-radius: 2px; background: var(--retail-green); box-shadow: none; }
.retail-add-button:hover { background: var(--retail-green-dark); box-shadow: none; }

.retail-feature-strip-section { padding: 1.3rem 0; background: #eff4f2; }
.retail-feature-strip { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid #dce5e1; background: #fff; }
.retail-feature-strip > div { display: grid; grid-template-columns: 42px 1fr; column-gap: .7rem; padding: 1rem 1.1rem; border-right: 1px solid #e1e7e4; }
.retail-feature-strip > div:last-child { border-right: 0; }
.retail-feature-icon { grid-row: 1 / span 2; display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #eef5f1; }
.retail-feature-strip strong { color: #17352d; font-size: .88rem; }
.retail-feature-strip small { color: #71807b; font-size: .72rem; }

.retail-project-section { padding: 3.7rem 0; background: #fff; }
.retail-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.retail-project-card { position: relative; display: flex; min-height: 285px; overflow: hidden; padding: 1.55rem; color: #fff; }
.retail-project-card:hover { color: #fff; }
.retail-project-card > div { position: relative; z-index: 2; max-width: 64%; }
.retail-project-card .retail-eyebrow { color: var(--retail-yellow); }
.retail-project-card h2 { color: #fff; font-size: clamp(1.85rem, 3vw, 2.75rem); }
.retail-project-card p:not(.retail-eyebrow) { color: rgba(255,255,255,.8); font-size: .88rem; }
.retail-project-card img { position: absolute; right: 0; bottom: 0; z-index: 1; width: 45%; height: 95%; object-fit: contain; object-position: right bottom; }
.retail-project-garden { background: linear-gradient(125deg, #185d50, #257a69); }
.retail-project-safety { background: linear-gradient(125deg, #2b4f62, #477a91); }
.retail-account-callout-section { padding: 0 0 3.7rem; background: #fff; }
.retail-account-callout { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1.2rem; padding: 2rem; background: var(--retail-green-deep); color: rgba(255,255,255,.8); }
.retail-account-callout h2 { color: #fff; }
.retail-account-callout p:last-child { max-width: 700px; margin-bottom: 0; }
.retail-account-actions { display: grid; min-width: 185px; gap: .62rem; }

.retail-footer { margin-top: 0; padding-top: 2.8rem; background: #06251e; }
.retail-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .85fr 1fr; gap: 1.35rem; }
.retail-footer-brand .retail-brand-mark { background: rgba(255,255,255,.96); }
.retail-footer-bottom { margin-top: 1.8rem; }

@media (max-width: 1080px) {
  .retail-header-main { gap: .85rem; }
  .retail-brand-copy strong { max-width: 185px; }
  .retail-hero-grid { grid-template-columns: 1fr; }
  .retail-promo-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .retail-category-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .retail-footer-grid { grid-template-columns: 1.25fr .75fr .8fr; }
  .retail-footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .retail-header-main { grid-template-columns: auto 1fr auto; min-height: 74px; }
  .retail-header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; margin: -.25rem 0 .75rem; }
  .retail-main-nav { gap: .88rem; }
  .retail-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .retail-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .retail-footer-grid { grid-template-columns: repeat(2,1fr); }
  .retail-footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .retail-top-strip-inner { justify-content: center; text-align: center; }
  .retail-top-links { display: none; }
  .retail-header-main { min-height: 64px; }
  .retail-brand-copy strong { max-width: 145px; }
  .retail-nav-shell { position: relative; }
  .retail-main-nav { position: absolute; top: 0; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: .45rem .58rem .68rem; border-top: 1px solid #dce5e1; border-bottom: 1px solid #dce5e1; background: #fff; box-shadow: 0 16px 28px rgba(7,42,34,.14); }
  .retail-main-nav.open { display: flex; }
  .retail-main-nav > a, .retail-main-nav > .inline-form .link-button { display: block; width: 100%; padding: .68rem .52rem; text-align: left; }
  .product-menu summary { min-height: 43px; padding: 0 .52rem; }
  .mega-menu { position: static; width: auto; padding: .65rem; border: 0; box-shadow: none; }
  .mega-menu-grid { grid-template-columns: 1fr; gap: .18rem; }
  .mega-menu-grid a { padding: .45rem; }
  .mega-menu-grid small { display: none; }
  .retail-home-hero { padding-top: .8rem; }
  .retail-promo-main { min-height: 375px; align-items: flex-start; }
  .retail-promo-copy { max-width: none; padding: 1.5rem; }
  .retail-promo h1 { max-width: 90%; font-size: clamp(2.45rem, 10vw, 3.75rem); }
  .retail-promo-main img { width: min(58%, 380px); height: 52%; }
  .retail-promo-stack { grid-template-columns: 1fr; }
  .retail-promo-small { min-height: 178px; }
  .retail-service-banner-inner { grid-template-columns: auto 1fr; min-height: 86px; }
  .retail-service-banner a { grid-column: 2; margin-top: -.4rem; }
  .retail-section-heading { align-items: flex-start; flex-direction: column; }
  .retail-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .retail-feature-strip { grid-template-columns: 1fr; }
  .retail-feature-strip > div { border-right: 0; border-bottom: 1px solid #e1e7e4; }
  .retail-feature-strip > div:last-child { border-bottom: 0; }
  .retail-project-grid { grid-template-columns: 1fr; }
  .retail-account-callout { grid-template-columns: 1fr; }
  .retail-account-actions { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
  .retail-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .retail-brand-copy strong { max-width: 104px; font-size: .82rem; }
  .retail-header-search input { font-size: .8rem; }
  .retail-header-search button { padding-inline: .58rem; font-size: .75rem; }
  .retail-promo-main { min-height: 365px; }
  .retail-promo-main img { width: 65%; height: 46%; }
  .retail-promo-copy { padding: 1.2rem; }
  .retail-promo-copy p { max-width: 96%; font-size: .88rem; }
  .retail-promo-small { min-height: 154px; padding: 1rem; }
  .retail-promo-small h2 { font-size: 1.38rem; }
  .retail-category-grid { gap: .56rem; }
  .retail-category-card { min-height: 172px; padding: .78rem; }
  .retail-category-card small { display: none; }
  .retail-category-icon { width: 45px; height: 45px; font-size: 1.4rem; }
  .retail-product-grid { gap: .55rem; }
  .retail-product-card-body { padding: .68rem; }
  .retail-product-sku { display: none; }
  .retail-project-card { min-height: 245px; padding: 1.2rem; }
  .retail-project-card > div { max-width: 72%; }
  .retail-project-card p:not(.retail-eyebrow) { display: none; }
  .retail-account-actions { grid-template-columns: 1fr; }
}

/* Sahay Brothers header logo */
.company-brand-link {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.company-logo {
  display: block;
  width: 230px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Keep the branded header compact */
.retail-header-main {
  min-height: 82px;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 980px) {
  .company-logo {
    width: 200px;
    height: 64px;
  }
}

@media (max-width: 760px) {
  .company-logo {
    width: 165px;
    height: 54px;
  }

  .retail-header-main {
    min-height: 68px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 500px) {
  .company-logo {
    width: 145px;
    height: 48px;
  }
}

/* M-PAiSA checkout QR code */
.mpaisa-qr {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  margin: 16px auto;
  border: 1px solid #d6ddd9;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
}

.mpaisa-payment-panel {
  max-width: 520px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d6ddd9;
  border-radius: 14px;
  background: #f8faf9;
}

@media (max-width: 600px) {
  .mpaisa-qr {
    width: 180px;
  }
}

/* Wider M-PAiSA payment fields */
.mpaisa-payment-panel {
  width: 100%;
  max-width: 760px;
}

.mpaisa-payment-panel .form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mpaisa-payment-panel input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .mpaisa-payment-panel .form-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Admin order sidebar: stack cards without overlap */
.order-detail-layout > aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}

.order-detail-layout > aside > .summary-card,
.order-detail-layout > aside > .form-card {
  position: static;
  top: auto;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.order-detail-layout .status-form {
  clear: both;
}