/* ============================================================
   AOG Off Grid — Main Stylesheet
   ============================================================ */

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

:root {
    --bark:    #2C1F0E;
    --soil:    #3D2B10;
    --moss:    #3A4A2A;
    --sage:    #6B7C52;
    --straw:   #C4A96A;
    --cream:   #EDE5D0;
    --offwhite:#F7F3EA;
    --white:   #ffffff;
    --dark:    #1a1a1a;
    --border:  #e0d8c8;
    --shadow:  0 2px 12px rgba(44,31,14,0.08);
    --radius:  6px;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --font-display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--offwhite);
    color: var(--bark);
    line-height: 1.6;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--straw); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--bark);
    color: var(--cream);
    font-size: 0.78rem;
    padding: 0.4rem 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: var(--straw); }
.topbar a:hover { color: var(--cream); }

/* ── HEADER ── */
.site-header {
    background: var(--white);
    border-bottom: 2px solid var(--straw);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    text-decoration: none;
}
.logo-aog {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--bark);
    letter-spacing: 0.05em;
    line-height: 1;
}
.logo-offgrid {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--straw);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
/* Header brand logos — sized in CSS (not inline) so they scale by breakpoint
   and never flex-wrap onto a second line. */
.brand-logo { height: 60px; width: auto; display: block; }

/* Nav */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}
.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bark);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    background: var(--offwhite);
    color: var(--moss);
}

/* Dropdown */
.nav-dropdown { position: relative; }
/* Invisible hover-bridge covering the gap between "Tools ▾" and the menu, so the
   dropdown stays open while the mouse travels down into it. */
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.75rem;
}
.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 200;
    transition: opacity 0.15s ease, visibility 0.15s;
    transition-delay: 0.3s;   /* short grace period before it closes */
}
.nav-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;     /* open instantly on hover */
}
.dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    color: var(--bark);
    transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--offwhite); color: var(--moss); }

/* Cart + mobile */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-btn {
    position: relative;
    font-size: 1.3rem;
    padding: 0.4rem;
    color: var(--bark);
    text-decoration: none;
}
.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--moss);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--bark);
}

/* ── HERO ── */
.hero {
    background: var(--bark);
    color: var(--cream);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        92deg, transparent, transparent 3px,
        rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px
    );
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.hero-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--straw);
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 8vw, 6rem);
    line-height: 0.92;
    color: var(--offwhite);
    margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--straw); }
.hero-sub {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sage);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary { background: var(--straw); color: var(--bark); }
.btn-outline-light { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: var(--cream); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--bark); }
.btn-moss { background: var(--moss); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── SECTION ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--bark); color: var(--cream); }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--bark);
    margin-bottom: 0.5rem;
}
.section-dark .section-title { color: var(--offwhite); }
.section-sub {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--sage);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── CATEGORY GRID ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.cat-card {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--bark);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cat-card:hover {
    border-color: var(--straw);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: var(--bark);
}
.cat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.cat-name { font-size: 0.85rem; font-weight: 600; }
.cat-count { font-size: 0.75rem; color: var(--sage); margin-top: 0.2rem; }

/* ── PRODUCT GRID ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(44,31,14,0.12);
    transform: translateY(-2px);
}
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--offwhite);
}
.product-img-placeholder {
    width: 100%;
    height: 200px;
    background: var(--offwhite);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--border);
}
.product-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-cat {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}
.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bark);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.product-desc {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 0.75rem;
    flex: 1;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bark);
}
.product-uom {
    font-size: 0.72rem;
    color: var(--sage);
}

/* ── TOOLS SECTION ── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.tool-card {
    background: var(--soil);
    border: 1px solid rgba(196,169,106,0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--cream);
    transition: border-color 0.2s, transform 0.15s;
    display: block;
}
.tool-card:hover {
    border-color: var(--straw);
    transform: translateY(-2px);
    color: var(--cream);
}
.tool-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.tool-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--straw);
    margin-bottom: 0.4rem;
}
.tool-desc { font-size: 0.82rem; color: var(--sage); line-height: 1.5; }
.tool-badge {
    display: inline-block;
    background: var(--moss);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── WHY US ── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}
.why-item { text-align: center; }
.why-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.why-title { font-weight: 700; margin-bottom: 0.4rem; color: var(--offwhite); }
.why-desc { font-size: 0.85rem; color: var(--sage); line-height: 1.6; }

/* ── ABOUT STRIP ── */
.about-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-strip img {
    border-radius: var(--radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.about-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--straw);
    margin-bottom: 1rem;
}

/* ── SHOP FILTERS ── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
}
.filter-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    /* Cap to the viewport and scroll internally so a tall filter list
       (categories + sort + spec filters) never hides its lower controls
       below the fold. */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.filter-title {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--bark);
}
.filter-group { margin-bottom: 1.5rem; }
.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0;
    color: var(--bark);
}
.filter-group label:hover { color: var(--moss); }
.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--bark);
    background: var(--offwhite);
}
.filter-input:focus { outline: none; border-color: var(--straw); }

/* ── PRODUCT DETAIL ── */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.product-gallery { position: sticky; top: 80px; }
.gallery-main {
    width: 100%;
    height: 480px;
    object-fit: contain;   /* show the WHOLE image (photos + tall infographics) — never crop mid-image */
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--offwhite);
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    box-sizing: border-box;
}
.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--straw); }
.product-info-title {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
    color: var(--bark);
    margin-bottom: 0.5rem;
}
.product-info-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bark);
    margin-bottom: 1rem;
}
.product-info-price span { font-size: 1rem; color: var(--sage); font-weight: 400; }
.product-info-desc {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.qty-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.qty-input {
    width: 70px;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    text-align: center;
    color: var(--bark);
}
.stock-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.in-stock { background: #e8f5e9; color: #2e7d32; }
.out-stock { background: #fce4e4; color: #c62828; }

/* ── TOOLS PAGES ── */
.tool-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.tool-page h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--bark);
    margin-bottom: 0.5rem;
}
.tool-page .sub {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--sage);
    margin-bottom: 2rem;
}
.tool-card-white {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.tool-field { margin-bottom: 1.2rem; }
.tool-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bark);
    margin-bottom: 0.4rem;
}
.tool-field input, .tool-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--bark);
    background: var(--offwhite);
}
.tool-field input:focus, .tool-field select:focus {
    outline: none;
    border-color: var(--straw);
}
.tool-result {
    background: var(--bark);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1.5rem;
    display: none;
}
.tool-result.show { display: block; }
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.result-item .label { font-size: 0.72rem; color: var(--sage); text-transform: uppercase; letter-spacing: 0.08em; }
.result-item .value { font-size: 1.4rem; font-weight: 700; color: var(--straw); }
.result-item .unit { font-size: 0.78rem; color: var(--sage); }

/* ── MEMBER PAGES ── */
.member-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}
.member-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.member-nav-link {
    display: block;
    padding: 0.75rem 1.2rem;
    font-size: 0.88rem;
    color: var(--bark);
    border-left: 3px solid transparent;
    transition: background 0.15s;
    text-decoration: none;
}
.member-nav-link:hover, .member-nav-link.active {
    background: var(--offwhite);
    border-left-color: var(--straw);
    color: var(--moss);
}
.member-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* ── CONTACT ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--bark);
    background: var(--offwhite);
    font-family: var(--font-sans);
    margin-bottom: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--straw);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); }
.contact-info-val { font-weight: 600; color: var(--bark); }

/* ── ABOUT ── */
.about-hero {
    background: var(--bark);
    color: var(--cream);
    padding: 4rem 0;
    text-align: center;
}
.about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--offwhite);
    margin-bottom: 1rem;
}
.about-hero p {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--sage);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.value-card {
    background: var(--offwhite);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}
.value-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.value-title { font-weight: 700; margin-bottom: 0.4rem; }
.value-desc { font-size: 0.85rem; color: #666; line-height: 1.6; }

/* ── FOOTER ── */
.site-footer {
    background: var(--bark);
    color: var(--cream);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1rem; }
.footer-logo .logo-aog { font-family: var(--font-display); font-size: 1.8rem; color: var(--offwhite); }
.footer-logo .logo-offgrid { font-size: 0.7rem; font-weight: 600; color: var(--straw); text-transform: uppercase; letter-spacing: 0.15em; }
.footer-tagline { font-size: 0.85rem; color: var(--sage); line-height: 1.6; margin-bottom: 0.75rem; }
.footer-loc { font-size: 0.8rem; color: var(--sage); }
.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--straw); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--sage); padding: 0.2rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding: 1.2rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--sage); }

/* ── ALERTS ── */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 1.5rem; }
.alert-success { background: #e8f5e9; border: 1px solid #a5d6a7; color: #2e7d32; }
.alert-error   { background: #fce4e4; border: 1px solid #ef9a9a; color: #c62828; }
.alert-info    { background: #e3f2fd; border: 1px solid #90caf9; color: #1565c0; }

/* ── BREADCRUMB ── */
.breadcrumb {
    font-size: 0.8rem;
    color: var(--sage);
    padding: 0.75rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.breadcrumb a { color: var(--sage); }
.breadcrumb a:hover { color: var(--moss); }
.breadcrumb span { color: var(--border); }

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-new { background: var(--moss); color: white; }
.badge-sale { background: #c62828; color: white; }

/* ── FORMS ── */
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bark); margin-bottom: 0.35rem; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.65rem 0.85rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.9rem; color: var(--bark); background: var(--offwhite);
    font-family: var(--font-sans);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--straw); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.75rem; color: var(--sage); margin-top: 0.3rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; max-height: none; overflow: visible; }
    .product-detail { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .about-strip { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .member-layout { grid-template-columns: 1fr; }
    .member-sidebar { position: static; }
}

@media (max-width: 600px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--straw); padding: 1rem; z-index: 200; }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .header-inner { position: relative; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0; }
    /* Single column on mobile — gives each card the full width, so
       price/buttons/variant dropdown never fight for cramped space
       the way they did at 2 columns. */
    .product-grid { grid-template-columns: 1fr; }
    /* The quick-add button and variant dropdown added later never
       got checked against this narrow card width — side-by-side
       with the price, there simply isn't room, and everything
       overlapped. Stacking price above the button row gives both
       the full card width instead of fighting over half each. */
    .product-footer { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .product-footer > div:first-child { display: flex; justify-content: space-between; align-items: baseline; }
    .variant-select-inline { max-width: none !important; flex: 1; }
    .tools-grid { grid-template-columns: 1fr 1fr; }
    .topbar-inner { flex-direction: column; gap: 0.25rem; text-align: center; }
}

/* ── Header/nav responsiveness: tablets, phones & small laptops ──
   The nav now collapses to a hamburger at ≤900px (was 600), so iPads and small
   laptop windows stop cramming the full nav next to the logos (which used to wrap
   the second logo onto its own line — the "double-logo stacked" look). Logos scale
   down by breakpoint, and the parent mark drops on phones. */
@media (max-width: 1024px) { .brand-logo { height: 52px; } }
@media (max-width: 900px) {
    .main-nav { display: none; flex-direction: column; align-items: stretch; justify-content: flex-start;
                position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
                border-bottom: 2px solid var(--straw); box-shadow: var(--shadow); padding: 0.6rem 1rem; z-index: 200; }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: block; }
    .header-inner { position: relative; gap: 1rem; }
    .nav-link { text-align: left; padding: 0.6rem 0.5rem; }
    /* Hover dropdowns don't open on touch — show the Tools submenu inline instead. */
    .nav-dropdown { position: static; }
    .nav-dropdown::after { display: none; }
    .dropdown-menu { visibility: visible; opacity: 1; position: static; min-width: 0; border: none;
                     border-left: 2px solid var(--straw); border-radius: 0; box-shadow: none;
                     margin: 0.1rem 0 0.4rem 0.75rem; padding: 0; transition: none; }
    .dropdown-menu a { padding: 0.5rem 0.75rem; }
}
@media (max-width: 600px) {
    .brand-logo { height: 40px; }   /* both logos stay side by side (they're square, ~40px wide each) */
    .header-inner { gap: 0.5rem; }
}
@media (max-width: 380px) { .brand-logo { height: 36px; } }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}