/* ═══════════════════════════════════════════════════════════════════════════
   UKWEBB.NET — Main Stylesheet
   Colour palette:
     Background dark  : #1a1a1a
     Surface          : #2a2a2a
     Surface light    : #333333
     Border           : #444444
     Text primary     : #e8e8e8
     Text secondary   : #aaaaaa
     Accent (teal)    : #1bacd1
     Accent hover     : #14869e
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #1a1a1a;
    --surface:     #2a2a2a;
    --surface-lt:  #333333;
    --border:      #444444;
    --text:        #e8e8e8;
    --text-muted:  #aaaaaa;
    --accent:      #1bacd1;
    --accent-h:    #14869e;
    --danger:      #c0392b;
    --success:     #27ae60;
    --radius:      4px;
    --shadow:      0 2px 8px rgba(0,0,0,.5);
    --header-h:    260px;
    --nav-h:       48px;
    --sidebar-w:   280px;
    --content-max: 1140px;
    --font-body:   'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono:   'Courier New', Courier, monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Accessibility ────────────────────────────────────────────────────────── */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 9999;
    background: var(--accent); color: #fff; padding: .4rem .8rem;
    border-radius: var(--radius); text-decoration: none; font-size: .875rem;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--text);
    margin-bottom: .5em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p  { margin-bottom: 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); text-decoration: underline; }

strong, b { font-weight: 700; }
em, i     { font-style: italic; }
code      { font-family: var(--font-mono); background: var(--surface-lt); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
pre       { background: var(--surface-lt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
pre code  { background: none; padding: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li     { margin-bottom: .25rem; }

blockquote {
    border-left: 4px solid var(--accent);
    padding: .5rem 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-style: italic;
}

hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

img { max-width: 100%; height: auto; display: block; }

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
    background-color: #111;
    background-image: url('../images/owlbanner.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Dark gradient over the banner so text is always readable */
.site-header::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(17,17,17,.95) 40%, rgba(17,17,17,.45) 75%, rgba(17,17,17,.1) 100%);
    pointer-events: none;
}

.header-inner {
    position: relative;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-title-link { text-decoration: none; }
.site-title-link:hover .site-title { color: var(--accent); }

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.8);
    margin-bottom: .2rem;
    transition: color .2s;
}

.site-tagline {
    font-size: .95rem;
    color: var(--text-muted);
    letter-spacing: .04em;
    text-shadow: 0 1px 6px rgba(0,0,0,.8);
}

/* ── Navigation bar ──────────────────────────────────────────────────────── */
.site-nav {
    background-color: #222;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
}

.nav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    height: var(--nav-h);
}

.nav-menu {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.nav-item a {
    display: block;
    padding: 0 1.1rem;
    height: var(--nav-h);
    line-height: var(--nav-h);
    color: var(--text-muted);
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s, background .2s;
    white-space: nowrap;
}

.nav-item a:hover,
.nav-item.active a {
    color: #fff;
    background-color: rgba(27,172,209,.15);
}

.nav-item.active a {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none; border: none;
    cursor: pointer;
    padding: .5rem;
    margin-left: auto;
}
.hamburger {
    display: block; width: 24px; height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: background .2s;
}
.nav-toggle:hover .hamburger { background: var(--accent); }

/* ── Page wrapper & layout ────────────────────────────────────────────────── */
.page-wrapper {
    flex: 1;
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Two-column layout: main content + sidebar */
.content-area {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 2rem;
    align-items: start;
}

/* Full-width variant (no sidebar) */
.content-area.no-sidebar {
    grid-template-columns: 1fr;
}

/* Main content column */
.main-content {
    min-width: 0;  /* prevent grid blowout */
}

/* ── Content panels / cards ───────────────────────────────────────────────── */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.panel-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { min-width: 0; }

.widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}

/* Search widget */
.search-input-group {
    display: flex;
    gap: 0;
}
.search-input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--text);
    padding: .45rem .7rem;
    font-size: .9rem;
    outline: none;
    transition: border-color .2s;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff;
    padding: .45rem .65rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.search-btn:hover { background: var(--accent-h); }

/* Recent list */
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-item  { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.recent-item:last-child { border-bottom: none; }
.recent-item a { color: var(--text); font-size: .9rem; }
.recent-item a:hover { color: var(--accent); }
.recent-date { display: block; font-size: .75rem; color: var(--text-muted); margin-top: .1rem; }

/* Quick links */
.quick-links { list-style: none; padding: 0; margin: 0; }
.quick-links li { padding: .3rem 0; }
.quick-links a { color: var(--text); font-size: .9rem; }
.quick-links a:hover { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.2rem;
    border-radius: var(--radius);
    font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    border: 2px solid transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; text-decoration: none; }
.btn-outline   { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--surface-lt); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); color: #fff; text-decoration: none; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-muted); }
.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: .55rem .8rem;
    font-size: .9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color .2s;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }

/* Honeypot — always hidden */
.hp-field { display: none !important; visibility: hidden; }

/* ── Alerts / messages ────────────────────────────────────────────────────── */
.alert {
    padding: .85rem 1.1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .95rem;
    border: 1px solid transparent;
}
.alert-success { background: rgba(39,174,96,.15); border-color: var(--success); color: #6fcf97; }
.alert-error   { background: rgba(192,57,43,.15); border-color: var(--danger); color: #eb5757; }
.alert-info    { background: rgba(27,172,209,.12); border-color: var(--accent); color: var(--accent); }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .15em .55em;
    font-size: .75rem; font-weight: 700;
    border-radius: 20px;
    line-height: 1.4;
}
.badge-accent   { background: var(--accent); color: #fff; }
.badge-surface  { background: var(--surface-lt); color: var(--text-muted); }
.badge-success  { background: var(--success); color: #fff; }

/* ── Product grid & cards ────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(27,172,209,.18); }
.product-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-lt); display: block; }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.product-card-title a { color: var(--text); }
.product-card-title a:hover { color: var(--accent); }
.product-card-price { color: var(--accent); font-size: .95rem; font-weight: 700; }
.product-card-enquiry { color: var(--text-muted); font-size: .85rem; }
.product-card-body .btn { margin-top: auto; }

/* Image placeholder (when no photo uploaded yet) */
.product-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface-lt);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .8rem;
}
.product-img-placeholder span { font-size: 2.5rem; line-height: 1; }
.product-img-placeholder--large {
    aspect-ratio: 16/7;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    font-size: .85rem;
}
.product-img-placeholder--large span { font-size: 3.5rem; }

/* ── Product image gallery ───────────────────────────────────────────────── */
.product-gallery { margin-bottom: 1.5rem; }

/* Hero / primary image */
.pg-hero {
    position: relative;
    background: var(--surface-lt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: .5rem;
}
.pg-main {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius);
}
.pg-main--clickable { cursor: zoom-in; }

/* Prev/next arrows on hero */
.pg-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    padding: .3rem .65rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background .15s;
    z-index: 2;
}
.pg-arrow:hover { background: rgba(0,0,0,.8); }
.pg-arrow--prev { left: .5rem; }
.pg-arrow--next { right: .5rem; }

/* Thumbnail strip */
.pg-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.pg-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--surface-lt);
    flex-shrink: 0;
    transition: border-color .15s;
}
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-thumb:hover  { border-color: var(--accent-h); }
.pg-thumb--active { border-color: var(--accent); }

/* Lightbox overlay */
.pg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    outline: none;
}
.pg-lightbox--open { display: flex; }

.pg-lb-img-wrap {
    max-width: 92vw;
    max-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-lb-img-wrap img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
    box-shadow: 0 4px 32px rgba(0,0,0,.8);
}

.pg-lb-close {
    position: absolute;
    top: .75rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    opacity: .75;
}
.pg-lb-close:hover { opacity: 1; }

.pg-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    padding: .2rem .6rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: background .15s;
}
.pg-lb-arrow:hover { background: rgba(255,255,255,.25); }
.pg-lb-arrow--prev { left: .75rem; }
.pg-lb-arrow--next { right: .75rem; }

.pg-lb-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.65);
    font-size: .875rem;
    pointer-events: none;
}

/* Product detail page price block */
.product-price-block {
    background: var(--surface-lt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
}
.product-price-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.product-price-note {
    font-size: .9rem;
    color: var(--text-muted);
}
.product-enquiry-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}
.product-cta { margin-top: 1rem; }

/* Shop filter bar */
.shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; }

/* ── Wiki table of contents ───────────────────────────────────────────────── */
.widget-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.widget-toc .toc-list li {
    counter-increment: toc-counter;
    padding: .3rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
}
.widget-toc .toc-list li:last-child { border-bottom: none; }
.widget-toc .toc-list a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.widget-toc .toc-list a::before {
    content: counter(toc-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em;
    height: 1.3em;
    background: var(--surface-lt);
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.widget-toc .toc-list a:hover { color: var(--accent); text-decoration: none; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
    list-style: none; padding: 0; margin: 0 0 1.25rem;
    display: flex; flex-wrap: wrap; gap: .35rem;
    font-size: .85rem; color: var(--text-muted);
}
.breadcrumb li + li::before { content: '/'; margin-right: .35rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Coming-soon / placeholder ───────────────────────────────────────────── */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}
.coming-soon .cs-icon { font-size: 4rem; margin-bottom: 1rem; line-height: 1; }
.coming-soon h2 { font-size: 1.8rem; margin-bottom: .5rem; }
.coming-soon p  { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.5rem; }

/* ── Homepage feature grid ───────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .15s;
    display: block;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
}
.feature-card .fc-icon  { font-size: 2.2rem; margin-bottom: .6rem; }
.feature-card .fc-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.feature-card .fc-desc  { font-size: .85rem; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: #111;
    border-top: 2px solid var(--border);
    margin-top: auto;
    padding: 2.5rem 0 1rem;
}
.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a  { color: var(--text-muted); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p  { font-size: .9rem; color: var(--text-muted); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Search results ──────────────────────────────────────────────────────── */
.search-results-header { margin-bottom: 1.25rem; }
.search-result-item {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-type {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.search-result-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.search-result-excerpt { font-size: .9rem; color: var(--text-muted); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
table   { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
th, td  { padding: .6rem .9rem; text-align: left; border: 1px solid var(--border); }
th      { background: var(--surface-lt); color: var(--text-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:nth-child(even) td { background: rgba(255,255,255,.02); }

/* ── Utility classes ─────────────────────────────────────────────────────── */
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mb-1 { margin-bottom: .5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 800px) {
    :root {
        --header-h: 180px;
        --sidebar-w: 100%;
    }

    .site-title { font-size: 1.8rem; }

    .content-area {
        grid-template-columns: 1fr;
    }

    /* Stack sidebar below main content on mobile */
    .sidebar { order: 2; }
    .main-content { order: 1; }

    /* Mobile nav */
    .nav-toggle { display: flex; }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #222;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        border-top: 1px solid var(--border);
        padding: .5rem 0;
    }
    .nav-menu.open { display: flex; }

    .nav-item a {
        height: auto;
        line-height: 1.5;
        padding: .65rem 1.5rem;
    }

    .nav-item.active a { border-bottom: none; border-left: 3px solid var(--accent); }

    .site-nav { position: relative; }
}

@media (max-width: 480px) {
    .page-wrapper { padding: 1rem .9rem; }
    .panel { padding: 1rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}
