/* ===================================================================
   Trail Optics Storefront — storefront.css
   Warm nature-tech design system: teal brand, Poppins/Nunito type.
   All colors flow from the :root tokens below — restyle there first.
   =================================================================== */

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

/* Prevent iOS auto-zoom on input focus */
@media (max-width: 768px) {
    input, select, textarea { font-size: 16px !important; }
}

:root {
    /* Brand — Trail Optics teal (from the owl mark) */
    --color-primary:       #108474;
    --color-primary-hover: #0c6a5c;
    --color-primary-light: #e2f2ef;
    --color-primary-dark:  #0a4f45;
    --color-accent:        #e8952a;   /* warm amber — used sparingly */
    --color-accent-light:  #fdf3e3;
    /* Status */
    --color-success:   #2f9e63;
    --color-success-hover: #268352;
    --color-danger:    #dc2626;
    --color-danger-light: #fee2e2;
    --color-warning:   #d97706;
    --color-warning-light: #fef3c7;
    /* Ink & surfaces — green-tinted neutrals on a warm canvas */
    --color-text:      #22312e;
    --color-text-muted:#5c6f6a;
    --color-text-light:#8ba39c;
    --color-border:    #e3e9e6;
    --color-border-strong: #c8d5d0;
    --color-bg:        #ffffff;
    --color-canvas:    #faf9f6;
    --color-bg-subtle: #f5f8f6;
    --color-bg-muted:  #edf2f0;
    --color-footer-bg: #0d2b26;
    --color-footer-text:#a9c6bf;
    /* Shape & depth */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(13, 43, 38, 0.05);
    --shadow-md: 0 4px 14px rgba(13, 43, 38, 0.08);
    --shadow-lg: 0 10px 34px rgba(13, 43, 38, 0.13);
    --focus-ring: 0 0 0 3px rgba(16, 132, 116, 0.15);
    --header-height: 62px;
    /* Type — Fraunces display serif for big headlines, Poppins for UI,
       Nunito for body (all loaded in base.html) */
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-stack: var(--font-body);   /* legacy alias — many rules reference it */
}

html { scroll-behavior: smooth; }

/* Full-bleed sections use 100vw, which includes the scrollbar — clip the
   overflow so the page can never pan sideways. */
html, body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.18;
}
h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.015em;
    line-height: 1.25;
}

::selection { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* Break a section out of the centered .store-main container to span the
   full viewport width (landing-page bands). */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ------------------------------------------------------------------ */
/*  Editorial page header — shared by shop, field guide, info pages,  */
/*  and contact. Breadcrumb, amber kicker, big Fraunces title.        */
/* ------------------------------------------------------------------ */
.page-head {
    padding: 1.25rem 0 1.9rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2.25rem;
}
.page-head-crumb {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 1.1rem;
}
.page-head-crumb a { color: var(--color-text-muted); text-decoration: none; }
.page-head-crumb a:hover { color: var(--color-primary); }
.page-head-crumb span { margin: 0 0.4rem; }
.page-head-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.page-head-kicker::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-accent);
}
.page-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--color-text);
    margin: 0;
}
.page-head-sub {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 580px;
    margin-top: 0.75rem;
}

/* Category / filter pills (shop + field guide) */
.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}
.cat-pills a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.15s;
}
.cat-pills a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}
.cat-pills a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.cat-pills .pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 0.72rem;
    opacity: 0.65;
    font-weight: 400;
    position: relative;
    top: 0.5px;
}

/* On phones the pill row would wrap into a packed block — turn it into a
   single horizontally-scrollable strip instead. */
@media (max-width: 640px) {
    .cat-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.35rem;
    }
    .cat-pills::-webkit-scrollbar { display: none; }
    .cat-pills a { flex: 0 0 auto; white-space: nowrap; }
}

/* Pill-style CTA link (e.g. FAQ "Contact Us") */
.faq-cta { margin-bottom: 2rem; display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.faq-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    background: var(--color-primary);
    color: #fff !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
}
.faq-contact-btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
    box-shadow: 0 6px 18px rgba(16, 132, 116, 0.3);
}

/* FAQ accordion (details/summary — used by the FAQs info page) */
.faq-intro { margin-bottom: 1.75rem; }
.faq-acc details {
    border-bottom: 1px solid var(--color-border);
}
.faq-acc details:first-of-type { border-top: 1px solid var(--color-border); }
.faq-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.15s;
}
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 500;
    transition: transform 0.2s, background 0.2s;
}
.faq-acc summary:hover { color: var(--color-primary); }
.faq-acc details[open] summary { color: var(--color-primary-dark); }
.faq-acc details[open] summary::after {
    content: '\2212';
    background: var(--color-primary);
    color: #fff;
}
.faq-acc .faq-answer {
    padding: 0 2.75rem 1.35rem 0.25rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}
.faq-acc .faq-answer p { margin: 0 0 0.75rem; }
.faq-acc .faq-answer p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

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

/* ------------------------------------------------------------------ */
/*  Header                                                            */
/* ------------------------------------------------------------------ */
.store-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-primary-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.header-logo:hover { color: var(--color-primary); }
.header-logo i { color: var(--color-primary); font-size: 1.2rem; }
.header-logo .wordmark-optics { color: var(--color-primary); }

/* Primary nav — visible editorial links (desktop) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
    margin-left: 1.25rem;
    flex: 1;
}
.header-nav a {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    padding: 0.35rem 0;
    position: relative;
    white-space: nowrap;
}
.header-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: -2px;
    height: 2px;
    background: var(--color-primary);
    transition: right 0.2s ease;
}
.header-nav a:hover { color: var(--color-primary-dark); }
.header-nav a:hover::after { right: 0; }

.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.02rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.header-icon-link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* Search */
.header-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}
.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-stack);
    color: var(--color-text);
    outline: none;
}
.header-search input::placeholder { color: var(--color-text-light); }
.header-search button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}
.header-search button:hover { color: var(--color-primary); }

/* Right actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.header-action-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}
.header-action-link:hover { color: var(--color-primary); }
.header-action-link i { font-size: 1rem; }

/* Make entire product card clickable via stretched title link */
.product-card { position: relative; }
.product-card-title::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.product-card .btn-find-store { position: relative; z-index: 2; }

/* Shop Our Products nav link */
.header-shop-link {
    font-weight: 600;
    white-space: nowrap;
}

/* Cart link with badge */
.header-cart-link {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-size: 1.15rem;
    text-decoration: none;
}
.header-cart-link:hover { color: var(--color-primary); }

#cart-count:not(:empty) {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--color-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 100px;
    padding: 0 4px;
}

/* Account dropdown */
.header-account-menu { position: relative; }

.header-account-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font-stack);
    color: var(--color-text);
    padding: 0.25rem 0;
}
.header-account-toggle:hover { color: var(--color-primary); }
.header-account-toggle i:first-child { font-size: 1.1rem; }

.header-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    z-index: 100;
    overflow: hidden;
}
.header-account-dropdown.show { display: block; }
.header-account-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s;
}
.header-account-dropdown a:hover { background: var(--color-bg-muted); }
.header-account-dropdown a i { width: 16px; text-align: center; color: var(--color-text-muted); font-size: 0.8rem; }
.dropdown-divider { height: 1px; background: var(--color-border); margin: 0.25rem 0; }

/* Support dropdown */
.header-support-menu { position: relative; }
.header-support-toggle { cursor: pointer; }
.header-support-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}
.header-support-dropdown.show { display: block; }
.header-support-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s;
}
.header-support-dropdown a:hover { background: var(--color-bg-muted); }
.header-support-dropdown a i { width: 16px; text-align: center; color: var(--color-text-muted); font-size: 0.8rem; }

/* Hamburger (mobile only) */
.header-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    /* Pin to all four edges below the header so the panel always covers the
       full visible viewport and scrolls internally. Pinning top+bottom (rather
       than a dvh-based height) is robust against mobile browser-chrome resizing,
       which could otherwise leave page content peeking below the menu. */
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    border-top: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.mobile-menu.show { display: block; }

/* Backdrop behind the open menu; tap to close */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.4);
}
.mobile-menu-backdrop.show { display: block; }

/* Lock the page behind the open menu so only the menu scrolls */
body.menu-open { overflow: hidden; }
/* While the menu is open the body is scroll-locked with position:fixed at a
   negative offset — that knocks the *sticky* header out of place (it drifts to
   the top of the shifted body, off-screen), exposing the page in the top band.
   Pin the header as fixed at the viewport top so it always covers that band,
   and make it solid so nothing shows through its translucent/blurred bg. */
body.menu-open .store-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.mobile-search {
    display: flex;
    align-items: center;
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-stack);
    color: var(--color-text);
    outline: none;
}
.mobile-search button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a {
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav-divider { height: 1px; background: var(--color-border); margin: 0.25rem 0; }

/* ------------------------------------------------------------------ */
/*  Main content                                                      */
/* ------------------------------------------------------------------ */
.store-main {
    min-height: calc(100vh - var(--header-height) - 280px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ------------------------------------------------------------------ */
/*  Buttons                                                           */
/* ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1.4;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}
.btn-primary:hover { background: var(--color-primary-hover); color: white; }

.btn-secondary {
    background: var(--color-bg-muted);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-bg-muted); }

.btn-add-cart {
    background: var(--color-primary);
    color: white;
    width: 100%;
}
.btn-add-cart:hover { background: var(--color-primary-hover); color: white; }

.btn-danger {
    background: var(--color-danger-light);
    color: var(--color-danger);
    border-color: #fecaca;
}
.btn-danger:hover { background: #fecaca; }

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; }

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-large {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

/* ------------------------------------------------------------------ */
/*  Product grid                                                      */
/* ------------------------------------------------------------------ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ------------------------------------------------------------------ */
/*  Product card                                                      */
/* ------------------------------------------------------------------ */
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-strong);
    transform: translateY(-3px);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-subtle);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

.product-card-badges {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
    line-height: 1.35;
}
.product-card-name a {
    color: inherit;
    text-decoration: none;
}
.product-card-name a:hover { color: var(--color-primary); }

.product-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.35;
    display: block;
    margin-bottom: 0.25rem;
}
.product-card-title:hover { color: var(--color-primary); }

.product-card-category {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.product-card-price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: auto;
    margin-bottom: 0.75rem;
}
.product-card-price .original-price {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 0.8125rem;
    margin-left: 0.5rem;
}
.product-card-price .sale-price {
    color: var(--color-danger);
}

/* Wishlist toggle on card */
.product-card-wishlist {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    background: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-light);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.product-card-wishlist:hover,
.product-card-wishlist.active { color: var(--color-danger); }

/* ------------------------------------------------------------------ */
/*  Badges                                                            */
/* ------------------------------------------------------------------ */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    line-height: 1.4;
}
.badge-sale { background: var(--color-danger); color: white; }
.badge-new { background: var(--color-primary); color: white; }
.badge-featured { background: var(--color-accent); color: white; }
.badge-out-of-stock { background: var(--color-bg-muted); color: var(--color-text-muted); }

/* ------------------------------------------------------------------ */
/*  Category sidebar                                                  */
/* ------------------------------------------------------------------ */
.category-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.category-sidebar h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.category-list { list-style: none; }

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.category-list li a:hover {
    background: var(--color-bg-muted);
    color: var(--color-primary);
}
.category-list li a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}

.category-count {
    font-size: 0.75rem;
    color: var(--color-text-light);
    background: var(--color-bg-muted);
    padding: 0.1rem 0.4rem;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
}
.category-list li a.active .category-count {
    background: white;
    color: var(--color-primary);
}

/* Layout with sidebar */
.shop-layout {
    display: flex;
    gap: 2rem;
}
.shop-content { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ */
/*  Breadcrumbs                                                       */
/* ------------------------------------------------------------------ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .separator { color: var(--color-text-light); }
.breadcrumbs .current { color: var(--color-text); font-weight: 500; }

/* ------------------------------------------------------------------ */
/*  Forms                                                             */
/* ------------------------------------------------------------------ */
.form-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 520px;
    margin: 0 auto;
}
.form-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-family: var(--font-stack);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--color-text-light); }

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group .form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.form-group .form-error {
    font-size: 0.75rem;
    color: var(--color-danger);
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}
.form-row .form-group { flex: 1; }

/* Styled file upload — looks like a text input with a prefixed button */
.form-group .file-upload {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
}
.form-group .file-upload:hover { border-color: var(--color-border-strong); }
.form-group .file-upload:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
}
.form-group .file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}
.form-group .file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    color: var(--color-text);
    border-right: 1px solid var(--color-border-strong);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.form-group .file-upload:hover .file-upload-button { background: var(--color-bg-muted); }
.form-group .file-upload-filename {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.form-group .file-upload-filename.has-file { color: var(--color-text); }

/* ------------------------------------------------------------------ */
/*  Pagination                                                        */
/* ------------------------------------------------------------------ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.15s;
}
.pagination a:hover {
    background: var(--color-bg-muted);
    border-color: var(--color-text-light);
}
.pagination .active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}
.pagination .ellipsis {
    border: none;
    background: none;
    cursor: default;
}

/* ------------------------------------------------------------------ */
/*  Cart table                                                        */
/* ------------------------------------------------------------------ */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    padding: 0.75rem 0.5rem;
    border-bottom: 2px solid var(--color-border);
}
.cart-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}
.cart-table tr:last-child td { border-bottom: none; }

.cart-item-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cart-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-bg-subtle);
    flex-shrink: 0;
}
.cart-item-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
}
.cart-item-name a {
    color: inherit;
    text-decoration: none;
}
.cart-item-name a:hover { color: var(--color-primary); }
.cart-item-variant {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.15rem;
}

.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.cart-qty-controls button {
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border-strong);
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.cart-qty-controls button:hover { background: var(--color-bg-muted); }
.cart-qty-controls input {
    width: 44px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-family: var(--font-stack);
    color: var(--color-text);
    outline: none;
    -moz-appearance: textfield;
}
.cart-qty-controls input::-webkit-inner-spin-button,
.cart-qty-controls input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.cart-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.15s;
}
.cart-remove-btn:hover { color: var(--color-danger); }

/* Cart summary */
.cart-summary {
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 380px;
    margin-left: auto;
}
.cart-summary h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}
.cart-summary-row.total {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border);
}

/* ------------------------------------------------------------------ */
/*  Footer — deep-forest band with amber accent + brand row on top    */
/* ------------------------------------------------------------------ */
.store-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: 4rem;
    border-top: 3px solid var(--color-accent);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.25rem 1.5rem 1.5rem;
}

/* Brand row: logo + tagline left, social right */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2.25rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    margin-bottom: 0.75rem;
}
.footer-logo:hover { color: white; }
.footer-logo img { filter: brightness(0) invert(1); opacity: 0.95; }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-footer-text);
    line-height: 1.6;
    max-width: 380px;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--color-footer-text);
    text-decoration: none;
    padding: 0.28rem 0;
    transition: color 0.15s, padding-left 0.15s;
}
.footer-links a:hover { color: white; padding-left: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-footer-text);
}
.footer-bottom a { color: var(--color-footer-text); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/*  Toast notifications                                               */
/* ------------------------------------------------------------------ */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 360px;
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.toast-error {
    background: var(--color-danger-light);
    color: var(--color-danger);
    border: 1px solid #fecaca;
}
.toast-info {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid #b8dcd5;
}
/* Payment-term tag shown next to a wholesale price on listing cards */
.term-tag {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #15473c;
    background: #eef4f1;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    vertical-align: middle;
}

/* Optional CTA link inside a toast (e.g. "View cart") */
.toast-action {
    margin-left: auto;
    padding-left: 0.75rem;
    font-weight: 700;
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}
.toast-action:hover { opacity: 0.8; }

/* ------------------------------------------------------------------ */
/*  Account pages layout                                              */
/* ------------------------------------------------------------------ */
.account-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.account-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.account-sidebar-header {
    padding: 1.25rem;
    background: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
}
.account-sidebar-header h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.15rem;
}
.account-sidebar-header p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.account-nav { list-style: none; }
.account-nav li a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.15s, color 0.15s;
}
.account-nav li:last-child a { border-bottom: none; }
.account-nav li a:hover {
    background: var(--color-bg-muted);
    color: var(--color-primary);
}
.account-nav li a.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}
.account-nav li a i {
    width: 18px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}
.account-nav li a.active i { color: var(--color-primary); }

.account-content {
    flex: 1;
    min-width: 0;
}
.account-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------ */
/*  Account: shared shells so every My Account tab matches the         */
/*  Dashboard/Orders look (full-width, bordered, subtle shadow).       */
/*  Do NOT reuse .form-card here — it's a centered 520px form shell    */
/*  that crams tables/panels into the middle of the column.            */
/* ------------------------------------------------------------------ */
/* Page header row: title + optional action button */
.acct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.acct-head h1 { margin: 0; }

/* Standard content card — forms, address cards, profile sections */
.acct-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.acct-card > h2:first-child,
.acct-card > h3:first-child { margin-top: 0; }

/* Panel wrapping a full-bleed table (the table draws its own padding) */
.acct-panel {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

/* Responsive card grid — address book, etc. */
.acct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

/* Small summary line above account lists */
.list-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

/* ------------------------------------------------------------------ */
/*  Utility classes                                                   */
/* ------------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.8125rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.empty-state i {
    font-size: 2.5rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}
.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.empty-state p {
    font-size: 0.875rem;
    max-width: 360px;
    margin: 0 auto 1.5rem;
}

/* ------------------------------------------------------------------ */
/*  Responsive — tablet                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 1000px) {
    .header-nav { display: none; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .header-inner { justify-content: space-between; }
    .header-actions .header-action-link span { display: none; }
    .header-actions .header-shop-link { display: none; }
    .header-hamburger { display: block; }

    .header-account-name { display: none; }
    .header-account-toggle .fa-chevron-down { display: none; }
    .header-support-menu { display: none; }

    .store-main { padding: 1.25rem 1rem; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card-body { padding: 0.75rem; }
    .product-card-name { font-size: 0.8125rem; }
    .product-card-price { font-size: 0.9375rem; }

    .shop-layout { flex-direction: column; }
    .category-sidebar {
        width: 100%;
        order: -1;
    }
    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.375rem;
    }
    .category-list li a {
        padding: 0.375rem 0.75rem;
        border: 1px solid var(--color-border);
        border-radius: 100px;
        font-size: 0.8125rem;
    }
    .category-list li a.active {
        border-color: var(--color-primary);
    }

    .footer-top { flex-direction: column; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom { justify-content: center; text-align: center; }

    .account-layout { flex-direction: column; align-items: center; }
    .account-sidebar { display: none; }
    .account-content { width: 100%; max-width: 540px; margin: 0 auto; }

    .cart-item-cell { gap: 0.625rem; }
    .cart-item-thumb { width: 48px; height: 48px; }

    .form-row { flex-direction: column; gap: 0; }
}

/* ------------------------------------------------------------------ */
/*  Responsive — mobile                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 480px) {
    .header-inner {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    .header-logo span { display: none; }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card { flex-direction: row; height: 120px; }
    .product-card-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        aspect-ratio: unset;
        position: relative;
    }
    .product-card-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .product-card-body { justify-content: center; overflow: hidden; }
    .product-card .btn-add-cart { display: none; }
    .product-card-badges {
        top: 0.375rem;
        left: 0.375rem;
    }
    .product-card-wishlist {
        top: 0.375rem;
        right: 0.375rem;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .badge { font-size: 0.5625rem; padding: 0.15rem 0.375rem; }

    /* Keep the three link columns side by side so the footer stays short. */
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .footer-links h4 { margin-bottom: 0.55rem; }
    .footer-links a { font-size: 0.8125rem; padding: 0.22rem 0; }

    .cart-table thead { display: none; }
    .cart-table tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    .cart-table td {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    .cart-table td:first-child { flex: 1 1 100%; }

    .cart-summary { max-width: 100%; margin: 0 auto; }

    .pagination { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ */
/*  Auth forms (login, register, forgot/reset password)               */
/* ------------------------------------------------------------------ */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    width: 100%;
    max-width: 450px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card-header .auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}
.auth-card-header .auth-logo i { color: var(--color-primary); }

.auth-card-header p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.auth-error {
    background: var(--color-danger-light);
    border: 1px solid #fecaca;
    color: var(--color-danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.auth-error i { margin-top: 2px; flex-shrink: 0; }

.auth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--color-success);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.auth-success i { margin-top: 2px; flex-shrink: 0; }

.auth-form .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
}

.auth-form .remember-me {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.auth-form .remember-me input[type="checkbox"] {
    width: auto;
    accent-color: var(--color-primary);
}

.auth-form .remember-me span {
    color: var(--color-text);
    font-weight: 400;
}

.auth-form .forgot-link {
    color: var(--color-primary);
    font-size: 0.8125rem;
}
.auth-form .forgot-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-form .submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-stack);
    cursor: pointer;
    transition: background 0.15s;
}
.auth-form .submit-btn:hover { background: var(--color-primary-hover); }

.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}
.auth-footer a {
    color: var(--color-primary);
    font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .auth-card { padding: 1.5rem; }
}
