@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Jost:wght@300;400;500;600&display=swap');

/* ============================================
   site.css - TheWoodShop global styles
   Purpose: Wood-themed palette, responsive layout, shared components.
   Views: _Layout (navbar, footer, modals), Home, Store, Cart, Checkout, Order, Address.
   Breakpoint: 1024px (screens < 1024px = mobile). Section comments below indicate which view/class each block styles.
   ============================================ */

:root {
    /* Wood-inspired color palette */
    --ws-wood-dark: #2d1f14;
    --ws-wood-primary: #3d2c1e;
    --ws-wood-medium: #5c4033;
    --ws-wood-warm: #8b6914;
    --ws-wood-accent: #a67c52;
    --ws-wood-tan: #c4a77d;
    --ws-wood-light: #d4c4b0;
    --ws-wood-cream: #f5f0e8;
    --ws-wood-bg: #ebe5dc;
    --ws-wood-surface: #fffbf7;
    --ws-wood-card: #faf6f0;
    --ws-auth-wood: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'><rect width='800' height='600' fill='%23f4eadb'/><path d='M0 80 C120 60 240 100 360 80 C480 60 600 100 800 80' fill='none' stroke='%23dcc7ad' stroke-width='4' opacity='0.6'/><path d='M0 160 C140 140 260 180 400 160 C540 140 660 180 800 160' fill='none' stroke='%23d5bfa3' stroke-width='3' opacity='0.55'/><path d='M0 260 C150 240 300 280 450 260 C600 240 700 280 800 260' fill='none' stroke='%23d1b69a' stroke-width='2.5' opacity='0.45'/><path d='M0 360 C120 340 260 380 420 360 C580 340 700 380 800 360' fill='none' stroke='%23dcc7ad' stroke-width='3' opacity='0.4'/><path d='M0 460 C110 440 260 480 430 460 C600 440 720 480 800 460' fill='none' stroke='%23d3baa0' stroke-width='2' opacity='0.35'/><circle cx='140' cy='300' r='34' fill='none' stroke='%23c9ad8f' stroke-width='2' opacity='0.35'/><circle cx='140' cy='300' r='18' fill='none' stroke='%23c9ad8f' stroke-width='1.5' opacity='0.35'/></svg>");
    /* Text */
    --ws-text-primary: #2d1f14;
    --ws-text-muted: #5c4033;
    --ws-text-on-dark: #f5f0e8;
    /* Borders & shadows */
    --ws-border: #d4c4b0;
    --ws-shadow-sm: 0 1px 3px rgba(45, 31, 20, 0.08);
    --ws-shadow: 0 4px 12px rgba(45, 31, 20, 0.1);
    --ws-shadow-lg: 0 8px 24px rgba(45, 31, 20, 0.12);
    /* Transitions */
    --ws-transition: 0.2s ease;
}

/* Page body */
.ws-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--ws-wood-cream) 0%, var(--ws-wood-bg) 100%);
    color: var(--ws-text-primary);
}

/* Navbar */
.ws-navbar {
    background-color: var(--ws-wood-surface);
    box-shadow: var(--ws-shadow-sm);
    border-bottom: 1px solid var(--ws-border);
}

.ws-navbar .navbar-toggler {
    border-color: var(--ws-wood-light);
    color: var(--ws-wood-primary);
}

.ws-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(61, 44, 30, 0.25);
}

/* Brand */
.ws-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--ws-wood-primary);
    text-decoration: none;
    transition: color var(--ws-transition);
}

.ws-brand:hover {
    color: var(--ws-wood-medium);
}

.ws-brand-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Nav links - use theme color */
.ws-navbar .nav-link {
    color: var(--ws-text-primary) !important;
    font-weight: 500;
    transition: color var(--ws-transition);
}

.ws-navbar .nav-link:hover {
    color: var(--ws-wood-medium) !important;
}

.ws-navbar .nav-link:focus-visible {
    outline: 2px solid var(--ws-wood-accent);
    outline-offset: 2px;
}

/* Profile dropdown */
.ws-profile-nav .dropdown-toggle {
    color: var(--ws-text-primary) !important;
}

.ws-profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ws-wood-light);
    border: 2px solid var(--ws-border);
}

.ws-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ws-profile-name {
    font-size: 0.95rem;
}

/* Dropdown menu - wood theme */
.ws-navbar .dropdown-menu {
    background-color: var(--ws-wood-surface);
    border: 1px solid var(--ws-border);
    box-shadow: var(--ws-shadow);
    border-radius: 8px;
}

.ws-navbar .dropdown-item {
    color: var(--ws-text-primary);
    transition: background-color var(--ws-transition);
}

.ws-navbar .dropdown-item:hover {
    background-color: var(--ws-wood-cream);
    color: var(--ws-wood-primary);
}

.ws-navbar .dropdown-divider {
    border-color: var(--ws-border);
}

/* Primary button */
.ws-btn-primary {
    background-color: var(--ws-wood-primary);
    border-color: var(--ws-wood-primary);
    color: var(--ws-text-on-dark);
    font-weight: 600;
    border-radius: 8px;
    transition: background-color var(--ws-transition), border-color var(--ws-transition), transform 0.15s ease;
}

.ws-btn-primary:hover {
    background-color: var(--ws-wood-medium);
    border-color: var(--ws-wood-medium);
    color: var(--ws-text-on-dark);
}

.ws-btn-primary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(61, 44, 30, 0.4);
}

.ws-btn-primary:active {
    transform: scale(0.98);
}

/* Outline button */
.ws-btn-outline {
    border: 2px solid var(--ws-wood-primary);
    color: var(--ws-wood-primary);
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: background-color var(--ws-transition), color var(--ws-transition), transform 0.15s ease;
}

.ws-btn-outline:hover {
    background-color: var(--ws-wood-primary);
    color: var(--ws-text-on-dark);
    border-color: var(--ws-wood-primary);
}

.ws-btn-outline:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(61, 44, 30, 0.25);
}

.ws-btn-outline:active {
    transform: scale(0.98);
}

/* Alerts */
.ws-autodismiss {
    margin-bottom: 0;
    border-radius: 8px;
}

/* Status badges */
.ws-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.25em 0.5em;
    font-size: 0.75rem;
    line-height: 1;
}

.ws-status-badge i {
    font-size: 0.7rem;
}

.ws-status-pending {
    background-color: #f0ad4e;
    color: #1f1f1f;
}

.ws-status-quoted {
    background-color: #5bc0de;
    color: #ffffff;
}

.ws-status-accepted {
    background-color: #28a745;
    color: #ffffff;
}

.ws-status-production {
    background-color: #fd7e14;
    color: #ffffff;
}

.ws-status-completed {
    background-color: #1e7e34;
    color: #ffffff;
}

.ws-status-rejected {
    background-color: #dc3545;
    color: #ffffff;
}

.ws-status-cancelled {
    background-color: #6c757d;
    color: #ffffff;
}

/* Footer */
.ws-footer {
    margin-top: auto;
    background-color: var(--ws-wood-surface);
    border-top: 1px solid var(--ws-border);
    color: var(--ws-text-muted);
}

.ws-footer a {
    color: var(--ws-wood-medium);
    transition: color var(--ws-transition);
}

.ws-footer a:hover {
    color: var(--ws-wood-primary);
}

.iw-footer {
    margin-top: auto;
    background: linear-gradient(140deg, #2a1c12 0%, #3a2a1d 45%, #1b120c 100%);
    color: #f5f0e8;
    position: relative;
    overflow: hidden;
    --iw-footer-logo-size: 78px;
    --iw-footer-logo-radius: 22px;
    --iw-footer-title-size: 2rem;
    --iw-footer-tagline-size: 0.78rem;
    --iw-footer-underline: rgba(212, 175, 106, 0.75);
}

.iw-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.07), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(212, 175, 106, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%);
    pointer-events: none;
}

.iw-footer-top {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0 2.5rem;
}

.iw-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.iw-footer-span-2 {
    grid-column: span 2;
}

.iw-footer-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iw-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
}

.iw-footer-logo-mark {
    position: relative;
    width: var(--iw-footer-logo-size);
    height: var(--iw-footer-logo-size);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iw-footer-logo-badge {
    position: absolute;
    inset: 0;
    border-radius: var(--iw-footer-logo-radius);
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 60%),
        linear-gradient(140deg, rgba(212, 175, 106, 0.28), rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(245, 240, 232, 0.2);
    z-index: 0;
}

.iw-footer-logo-svg {
    width: calc(var(--iw-footer-logo-size) - 14px);
    height: calc(var(--iw-footer-logo-size) - 14px);
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
    position: relative;
    z-index: 1;
}

.iw-footer-name {
    font-family: 'Playfair Display', serif;
    font-size: var(--iw-footer-title-size);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.iw-footer-brand-text {
    display: flex;
    flex-direction: column;
}

.iw-footer-rule {
    display: block;
    height: 1px;
    width: min(280px, 100%);
    margin: 0.3rem 0 0.45rem;
    background: linear-gradient(90deg, var(--iw-footer-underline), transparent);
}

.iw-footer-tagline {
    font-size: var(--iw-footer-tagline-size);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.75);
}

.iw-footer-text {
    margin-bottom: 1.2rem;
    color: rgba(245, 240, 232, 0.72);
    line-height: 1.7;
    font-size: 0.9rem;
}

.iw-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.iw-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(245, 240, 232, 0.12);
    border: 1px solid rgba(245, 240, 232, 0.2);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.iw-footer-badge i {
    font-size: 0.85rem;
    color: var(--iw-gold-light);
}

.iw-footer-title {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: rgba(245, 240, 232, 0.78);
}

.iw-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.iw-footer-list a {
    color: rgba(245, 240, 232, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--iw-transition), transform var(--iw-transition);
}

.iw-footer-list a:hover {
    color: #fff;
    transform: translateX(3px);
}

.iw-footer-meta {
    display: grid;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.78);
}

.iw-footer-meta-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.iw-footer-meta-item i {
    color: var(--iw-gold-light);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.iw-footer-meta a {
    color: rgba(245, 240, 232, 0.78);
    text-decoration: none;
    transition: color var(--iw-transition);
}

.iw-footer-meta a:hover {
    color: #fff;
}

.iw-footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.iw-footer-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transition: transform var(--iw-transition), background var(--iw-transition), border-color var(--iw-transition);
}

.iw-footer-social:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.iw-footer-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(245, 240, 232, 0.15);
    background: rgba(0, 0, 0, 0.12);
}

.iw-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 0.82rem;
    color: rgba(245, 240, 232, 0.7);
}

.iw-footer-bottom-links {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.iw-footer-bottom-links a {
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    transition: color var(--iw-transition);
}

.iw-footer-bottom-links a:hover {
    color: #fff;
}

.iw-footer-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(245, 240, 232, 0.4);
}

.iw-footer-newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.iw-footer-input {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 240, 232, 0.2);
    color: #fff;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: border-color var(--iw-transition), box-shadow var(--iw-transition);
}

.iw-footer-input::placeholder {
    color: rgba(245, 240, 232, 0.6);
}

.iw-footer-input:focus {
    outline: none;
    border-color: var(--iw-gold-light);
    box-shadow: 0 0 0 0.15rem rgba(212, 175, 106, 0.35);
}

.iw-footer-btn {
    background: var(--iw-gold);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: transform var(--iw-transition), background var(--iw-transition);
}

.iw-footer-btn:hover {
    background: var(--iw-gold-light);
    transform: translateY(-1px);
}

.iw-footer-note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.6);
}

/* Form wrapper */
.ws-form-wrap {
    max-width: 540px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Card */
.ws-card {
    background: var(--ws-wood-card);
    border-radius: 12px;
    box-shadow: var(--ws-shadow);
    border: 1px solid var(--ws-border);
}

/* Form header */
.ws-form-header {
    margin-bottom: 1.5rem;
}

.ws-form-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--ws-wood-primary);
}

.ws-muted {
    color: var(--ws-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form controls - subtle wood theme */
.ws-card .form-control {
    border-color: var(--ws-border);
    border-radius: 8px;
    background-color: var(--ws-wood-surface);
}

.ws-card .form-control:focus {
    border-color: var(--ws-wood-accent);
    box-shadow: 0 0 0 0.2rem rgba(166, 124, 82, 0.2);
}

.ws-card .form-label {
    color: var(--ws-text-primary);
    font-weight: 500;
}

/* Floating labels - wood theme */
.ws-card .form-floating > .form-control {
    border-color: var(--ws-border);
    border-radius: 8px;
    background-color: var(--ws-wood-surface);
}

.ws-card .form-floating > label {
    color: var(--ws-text-muted);
    font-weight: 500;
}

.ws-card .form-floating > .form-control:focus ~ label,
.ws-card .form-floating > .form-control:not(:placeholder-shown) ~ label,
.ws-card .form-floating > .form-control-plaintext ~ label,
.ws-card .form-floating > .form-select ~ label {
    color: var(--ws-wood-accent);
    opacity: 1;
}

/* Links inside forms/cards */
.ws-card a {
    color: var(--ws-wood-medium);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--ws-transition);
}

.ws-card a:hover {
    color: var(--ws-wood-primary);
    text-decoration: underline;
}

/* Alert danger (validation) */
.ws-card .alert-danger {
    background-color: #f8e8e8;
    border-color: #e8c4c4;
    color: #5c3030;
    border-radius: 8px;
}

/* Auth modals - wood theme */
.ws-modal-content {
    background-color: var(--ws-wood-card);
    background-image:
        linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(255, 251, 247, 0.98)),
        var(--ws-auth-wood);
    background-size: cover, 480px 340px;
    background-repeat: no-repeat, repeat;
    border: 1px solid var(--ws-border);
    border-radius: 12px;
    box-shadow: var(--ws-shadow-lg);
}

.ws-modal-content .modal-header .btn-close {
    filter: none;
    opacity: 0.7;
}

.ws-modal-content .ws-modal-body {
    padding-top: 0;
}

.ws-modal-form .ws-form-header h2 {
    color: var(--ws-wood-primary);
}

.ws-modal-form .form-control,
.ws-modal-form .form-floating > .form-control {
    border-color: var(--ws-border);
    background-color: var(--ws-wood-surface);
    border-radius: 8px;
}

.ws-modal-form .form-floating > label {
    color: var(--ws-text-muted);
}

.ws-modal-form .form-control:focus ~ label,
.ws-modal-form .form-control:not(:placeholder-shown) ~ label {
    color: var(--ws-wood-accent);
}

.ws-modal-form a:not(.ws-switch-modal):not(.btn-link) {
    color: var(--ws-wood-medium);
    font-weight: 500;
}

.ws-modal-form a:not(.ws-switch-modal):not(.btn-link):hover {
    color: var(--ws-wood-primary);
}

.ws-modal-form .ws-switch-modal {
    color: var(--ws-wood-medium);
    font-weight: 600;
    text-decoration: none;
}


.ws-modal-form .ws-switch-modal:hover {
    color: var(--ws-wood-primary);
    text-decoration: underline;
}

.ws-modal-loading {
    color: var(--ws-text-muted);
}

/* Display headings on home etc */
.ws-page .display-6,
.ws-page h1.text-dark {
    color: var(--ws-wood-primary) !important;
}

.ws-page .lead.text-muted {
    color: var(--ws-text-muted) !important;
}

/* ============================================
   Mobile: screens with max-width 1023px
   (i.e. < 1024px = mobile + landscape)
   ============================================ */
@media (max-width: 1023px) {
    :root {
        --ws-nav-padding-y: 0.75rem;
    }

    .ws-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    /* Navbar: full-width, stacked items */
    .ws-navbar .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .ws-navbar .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .ws-navbar .navbar-nav.me-auto {
        margin-bottom: 0.75rem;
    }

    .ws-navbar .navbar-nav.me-auto .nav-item {
        border-bottom: 1px solid var(--ws-border);
    }

    .ws-navbar .navbar-nav.me-auto .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .ws-navbar .navbar-nav.ms-auto {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .ws-navbar .navbar-nav.ms-auto .nav-item {
        margin-left: 0 !important;
        margin-bottom: 0;
    }

    .ws-navbar .navbar-nav.ms-auto .btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .ws-profile-nav .dropdown-toggle {
        justify-content: center;
        padding: 0.75rem;
    }

    .ws-brand-logo {
        height: 30px;
    }

    .ws-brand span {
        font-size: 1.1rem;
    }

    /* Main content */
    main {
        padding-bottom: 2rem !important;
    }

    /* Form wrap: full width with padding */
    .ws-form-wrap {
        padding: 1rem 0;
        max-width: 100%;
    }

    .ws-card {
        padding: 1.25rem 1rem !important;
        border-radius: 10px;
    }

    .ws-form-header h1 {
        font-size: 1.35rem;
    }

    /* Home hero section */
    .ws-page section.py-4.py-md-5,
    .ws-page section.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .ws-page .display-6 {
        font-size: 1.75rem;
    }

    .ws-page .lead {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }

    .ws-page .d-flex.flex-wrap.gap-2 {
        flex-direction: column;
    }

    .ws-page .d-flex.flex-wrap.gap-2 .btn {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .ws-page .img-fluid.rounded {
        max-height: 200px !important;
        margin-top: 0.5rem;
    }

    /* Footer: stacked on mobile */
    .ws-footer .container {
        flex-direction: column;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 0.5rem;
    }

    .ws-footer .d-flex {
        flex-direction: column;
    }

    .iw-footer-top {
        padding: 2.5rem 0 2rem;
    }

    .iw-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .iw-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Alerts */
    .alert {
        border-radius: 8px;
        font-size: 0.95rem;
    }
}

/* Optional: extra small screens (portrait phones) */
@media (max-width: 479px) {
    .ws-navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .ws-card {
        padding: 1rem 0.75rem !important;
    }

    .ws-page .display-6 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Interwood-inspired Header + Home
   ============================================ */
:root {
    --iw-black: #1a1a1a;
    --iw-dark: #2c2c2c;
    --iw-gold: #b8963e;
    --iw-gold-light: #d4af6a;
    --iw-cream: #f7f3ee;
    --iw-warm: #ede8e0;
    --iw-red: #9b2335;
    --iw-text: #3a3a3a;
    --iw-muted: #888;
    --iw-border: #e0d9d0;
    --iw-white: #ffffff;
    --iw-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.iw-topbar {
    background: var(--iw-white);
    border-bottom: 1px solid var(--iw-border);
    position: sticky;
    top: 0;
    z-index: 1050;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.iw-topbar-inner {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 74px;
}

.iw-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.55rem 1.1rem 0.55rem 0;
    border-right: 1px solid var(--iw-border);
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.iw-logo-image {
    display: block;
    height: 58px;
    width: auto;
    object-fit: contain;
}

.iw-nav-shell {
    display: flex;
    flex: 1;
    min-width: 0;
}

.iw-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.iw-nav-admin {
    flex: 0;
}

.iw-nav > li {
    position: relative;
}

.iw-nav > li > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1.1rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--iw-text);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color var(--iw-transition), border-color var(--iw-transition);
    white-space: nowrap;
}

.iw-nav > li > a:hover,
.iw-nav > li.active > a {
    color: var(--iw-black);
    border-bottom-color: var(--iw-gold);
}

.iw-nav > li > a:focus-visible,
.iw-nav-icons a:focus-visible,
.iw-mobile-toggle:focus-visible,
.iw-sub-toggle:focus-visible {
    outline: 2px solid var(--iw-gold);
    outline-offset: 2px;
}

.iw-nav > li > a .iw-caret {
    font-size: 0.6rem;
    transition: transform var(--iw-transition);
    opacity: 0.6;
}

.iw-nav > li:hover > a .iw-caret {
    transform: rotate(180deg);
}

.iw-sub-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--iw-muted);
    width: 36px;
    height: 36px;
    margin-right: 0.35rem;
}

.iw-mega {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 800px;
    background: var(--iw-white);
    border: 1px solid var(--iw-border);
    border-top: 3px solid var(--iw-gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 1.8rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

.iw-mega.iw-mega--sm {
    min-width: 240px;
    grid-template-columns: 1fr;
    left: 0;
    transform: translateY(-8px);
}

.iw-nav > li:hover .iw-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.iw-nav > li:hover .iw-mega.iw-mega--sm {
    transform: translateY(0);
}

.iw-mega-group-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--iw-red);
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--iw-border);
}

.iw-mega-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iw-mega-group ul li a {
    display: block;
    font-size: 0.87rem;
    color: var(--iw-text);
    text-decoration: none;
    padding: 0.28rem 0;
    transition: color var(--iw-transition), padding-left var(--iw-transition);
}

.iw-mega-group ul li a:hover {
    color: var(--iw-gold);
    padding-left: 0.4rem;
}

.iw-nav-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1rem;
}

.iw-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--iw-border);
    background: #fff;
    color: var(--iw-black);
    transition: background var(--iw-transition), color var(--iw-transition), border-color var(--iw-transition);
    margin-right: 0.4rem;
}

.iw-hamburger:hover {
    background: var(--iw-warm);
    border-color: var(--iw-gold-light);
    color: var(--iw-black);
}

.iw-utility-menu {
    display: flex;
    align-items: center;
    margin-right: 0.35rem;
}

.iw-utility-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--iw-border);
    background: #fff;
    color: var(--iw-black);
    transition: background var(--iw-transition), color var(--iw-transition), border-color var(--iw-transition);
}

.iw-utility-toggle:hover {
    background: var(--iw-warm);
    border-color: var(--iw-gold-light);
    color: var(--iw-black);
}

.iw-utility-dropdown {
    min-width: 240px;
    border-radius: 12px;
    border: 1px solid var(--iw-border);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0;
}

.iw-utility-dropdown .dropdown-header {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--iw-muted);
    padding: 0.4rem 1rem 0.2rem;
}

.iw-sidebar {
    --bs-offcanvas-transition: transform 0.35s ease;
    background: #fff;
    width: 320px;
    max-width: 86vw;
    border-right: 1px solid var(--iw-border);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    color: var(--iw-text);
}

.iw-sidebar-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--iw-border);
}

.iw-sidebar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--iw-black);
    letter-spacing: 0.02em;
}

.iw-sidebar-welcome {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: var(--iw-muted);
    font-weight: 500;
}

.iw-sidebar-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.4rem 1.4rem;
}

.iw-sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.iw-sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(224, 217, 208, 0.7);
}

.iw-sidebar-products {
    display: none;
}

.iw-sidebar-product-row {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.iw-sidebar-product-panels {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.iw-sidebar-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.iw-sidebar-section-title {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--iw-muted);
    font-weight: 600;
}

.iw-sidebar-link,
.iw-sidebar-sublink,
.iw-sidebar-collapse {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.45rem 0.35rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--iw-text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background var(--iw-transition), color var(--iw-transition);
}

.iw-sidebar-link:hover,
.iw-sidebar-sublink:hover,
.iw-sidebar-collapse:hover {
    background: var(--iw-warm);
    color: var(--iw-black);
}

.iw-sidebar-link.active,
.iw-sidebar-sublink.active,
.iw-sidebar-collapse.active {
    background: rgba(184, 150, 62, 0.18);
    color: var(--iw-black);
    font-weight: 600;
}

.iw-sidebar-collapse {
    border: none;
    background: transparent;
    width: 100%;
    justify-content: space-between;
}

.iw-sidebar-collapse span {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.iw-sidebar-collapse::after {
    content: "v";
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--iw-muted);
    transition: transform var(--iw-transition);
}

.iw-sidebar-collapse[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.iw-sidebar-sublist {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 1.6rem;
}

.iw-sidebar-sublink {
    font-size: 0.88rem;
    color: var(--iw-muted);
    padding: 0.35rem 0.4rem;
}

.iw-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--iw-border);
}

.iw-sidebar-auth {
    display: grid;
    gap: 0.6rem;
}

/* Payment flow */
.iw-pay-wrapper {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0 2.5rem;
    font-family: 'Jost', sans-serif;
}

.iw-pay-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.35rem;
    color: var(--iw-black);
}

.iw-pay-header p {
    margin-bottom: 0;
    color: var(--iw-muted);
}

.iw-pay-card {
    background: #fff;
    border: 1px solid var(--iw-border);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
    padding: 1.4rem;
}

.iw-pay-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.iw-pay-summary-card {
    display: grid;
    gap: 0.4rem;
}

.iw-pay-summary-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--iw-muted);
    font-weight: 600;
}

.iw-pay-summary-value {
    font-size: 1rem;
    color: var(--iw-black);
    font-weight: 600;
}

.iw-pay-summary-amount {
    font-size: 1.4rem;
    color: var(--iw-black);
    font-weight: 700;
}

.iw-pay-step {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--iw-muted);
    margin-bottom: 0.8rem;
}

.iw-pay-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.iw-pay-method-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--iw-border);
    padding: 1rem;
    cursor: pointer;
    background: #fff;
    transition: border-color var(--iw-transition), box-shadow var(--iw-transition), transform var(--iw-transition);
}

.iw-pay-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.iw-pay-method-card.is-selected {
    border-color: var(--iw-gold);
    background: var(--iw-warm);
    box-shadow: 0 16px 30px rgba(184, 150, 62, 0.2);
}

.iw-pay-method-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.iw-pay-method-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--iw-black);
    margin-bottom: 0.25rem;
}

.iw-pay-method-meta {
    font-size: 0.85rem;
    color: var(--iw-muted);
}

.iw-pay-method-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.iw-pay-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f3f0ea;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--iw-black);
}

.iw-pay-logo--mc {
    background: #ffe7d6;
    color: #8a2d1f;
}

.iw-pay-logo--wallet {
    background: #e6f5ee;
    color: #1b6b42;
}

.iw-pay-logo--wallet-alt {
    background: #e8efff;
    color: #1d3f8f;
}

.iw-pay-logo--cod {
    background: #f1ede6;
    color: #5a4a3a;
}

.iw-pay-details {
    display: none;
}

.iw-pay-details.is-active {
    display: block;
    animation: iw-pay-fade 0.25s ease;
}

.iw-pay-info {
    font-size: 0.92rem;
    color: var(--iw-text);
    line-height: 1.6;
}

.iw-pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.iw-pay-field .form-label {
    font-weight: 600;
    color: var(--iw-text);
}

.iw-pay-input {
    border-radius: 10px;
    border: 1px solid var(--iw-border);
    padding: 0.6rem 0.75rem;
}

.iw-pay-input:focus {
    border-color: var(--iw-gold-light);
    box-shadow: 0 0 0 0.15rem rgba(184, 150, 62, 0.2);
}

.ws-field-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #b00020;
}

.iw-pay-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.iw-pay-submit {
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.iw-pay-processing {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--iw-muted);
    font-size: 0.9rem;
}

.iw-pay-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--iw-border);
    border-top-color: var(--iw-gold);
    border-radius: 50%;
    animation: iw-pay-spin 0.9s linear infinite;
}

.iw-pay-result {
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--iw-border);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.iw-pay-result--success {
    border-left: 4px solid #2f9e44;
    background: #f2fbf5;
}

.iw-pay-result--error {
    border-left: 4px solid #d9480f;
    background: #fff4f0;
}

.iw-pay-result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--iw-black);
}

.iw-pay-result-text {
    margin-bottom: 0;
    color: var(--iw-text);
}

@keyframes iw-pay-spin {
    to { transform: rotate(360deg); }
}

@keyframes iw-pay-fade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.iw-welcome {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--iw-text);
    font-weight: 600;
    white-space: nowrap;
}

.iw-nav-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--iw-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: background var(--iw-transition), color var(--iw-transition);
    padding: 0 0.65rem;
}

.iw-nav-icons a:hover {
    background: var(--iw-warm);
    color: var(--iw-black);
}

.iw-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--iw-text);
    font-size: 1.1rem;
    transition: background var(--iw-transition), color var(--iw-transition);
    padding: 0 0.65rem;
}

.iw-search-toggle:hover {
    background: var(--iw-warm);
    color: var(--iw-black);
}

.iw-search-toggle:focus-visible {
    outline: 2px solid var(--iw-gold);
    outline-offset: 2px;
}

.iw-search-panel {
    border-top: 1px solid var(--iw-border);
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
}

.iw-search-panel.is-open {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.iw-search-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem 1rem;
}

.iw-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.iw-search-field {
    flex: 1;
}

.iw-search-input {
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--iw-border);
    background: #fff;
}

.iw-search-input:focus {
    border-color: var(--iw-gold-light);
    box-shadow: 0 0 0 0.15rem rgba(184, 150, 62, 0.2);
}

.iw-search-submit {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
}

.iw-auth-link {
    border-radius: 4px !important;
    width: auto !important;
    font-size: 0.74rem !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.iw-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--iw-border);
    border-radius: 6px;
    font-size: 1.4rem;
    color: var(--iw-black);
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 0;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════
   HERO — Full-width banner, CSS-only slideshow
   ══════════════════════════════════════ */
.iw-hero {
    position: relative;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: 'Jost', sans-serif;
}

/* Slides container */
.iw-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.iw-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
}

/* ── Set your 3 images here ── */
.iw-slide-1 { background-image: url('/hero-1.webp'); }
.iw-slide-2 { background-image: url('/hero-2.webp'); }
.iw-slide-3 { background-image: url('/hero-3.jfif'); }

.iw-slide-1 {
    animation: iw-slide-fade 15s ease-in-out infinite 0s;
}
.iw-slide-2 {
    animation: iw-slide-fade 15s ease-in-out infinite 5s;
}
.iw-slide-3 {
    animation: iw-slide-fade 15s ease-in-out infinite 10s;
}

@keyframes iw-slide-fade {
    0%   { opacity: 0; }
    6%   { opacity: 1; }
    33%  { opacity: 1; }
    40%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Dark gradient overlay */
.iw-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        100deg,
        rgba(20, 12, 5, 0.78) 0%,
        rgba(20, 12, 5, 0.45) 55%,
        rgba(20, 12, 5, 0.10) 100%
    );
}

/* Content */
.iw-hero-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88vh;
}

.iw-banner-text {
    max-width: 580px;
}

.iw-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--iw-gold-light);
    margin-bottom: 1.2rem;
}

.iw-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 1.4rem;
    letter-spacing: -0.02em;
}

.iw-hero-title em {
    font-style: italic;
    color: var(--iw-gold-light);
}

.iw-hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    margin-bottom: 2.2rem;
    max-width: 460px;
}

.iw-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.iw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 2px;
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
}

.iw-btn-primary {
    background: var(--iw-gold);
    color: #fff;
    border-color: var(--iw-gold);
}

.iw-btn-primary:hover {
    background: var(--iw-gold-light);
    border-color: var(--iw-gold-light);
    color: #fff;
    transform: translateY(-2px);
}

.iw-btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.iw-btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* Section layout */
.iw-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    font-family: 'Jost', sans-serif;
}

.iw-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--iw-border);
    padding-bottom: 1rem;
}

.iw-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--iw-black);
    margin: 0;
}

.iw-section-link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--iw-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s ease;
}

.iw-section-link:hover {
    color: var(--iw-black);
}

.ws-product-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.ws-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f5efe6;
}

.ws-product-thumb-fallback {
    position: absolute;
    inset: 0;
    background: #f4efe8;
}

.iw-features {
    background: var(--iw-warm);
    border-top: 1px solid var(--iw-border);
    border-bottom: 1px solid var(--iw-border);
}

.iw-features-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    font-family: 'Jost', sans-serif;
}

.iw-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.iw-feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--iw-white);
    border: 1px solid var(--iw-border);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--iw-gold);
    flex-shrink: 0;
}

.iw-feature-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--iw-black);
    margin-bottom: 0.2rem;
}

.iw-feature-desc {
    font-size: 0.78rem;
    color: var(--iw-muted);
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .iw-topbar-inner {
        padding: 0 1rem;
        min-height: 62px;
        gap: 0.45rem;
    }

    .iw-logo {
        border-right: 0;
        margin-right: auto;
        padding-right: 0;
    }

    .iw-logo-image {
        height: 46px;
    }

    .iw-mobile-toggle {
        display: inline-flex;
    }

    .iw-nav-shell {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e0d9d0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        z-index: 1200;
        padding: 0.6rem 1rem 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .iw-nav-shell.is-open {
        display: block !important;
    }

    .iw-nav {
        flex-direction: column;
    }

    .iw-nav > li {
        border-bottom: 1px solid #eee2d2;
    }

    .iw-nav > li > a {
        padding: 0.85rem 0.25rem;
    }

    .iw-nav-item.has-children {
        position: relative;
    }

    .iw-sub-toggle {
        display: inline-flex;
        position: absolute;
        right: 0;
        top: 0.45rem;
        align-items: center;
        justify-content: center;
    }

    .iw-mega,
    .iw-mega.iw-mega--sm {
        position: static;
        min-width: 0;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        border-top: 1px solid var(--iw-border);
        box-shadow: none;
        display: none;
        grid-template-columns: 1fr;
        padding: 0.8rem 0.6rem;
    }

    .iw-nav-item.has-children.is-open > .iw-mega {
        display: grid;
    }

    .iw-nav > li:hover .iw-mega {
        transform: none;
    }

    .iw-nav-icons {
        margin-left: auto;
        padding-left: 0.2rem;
        gap: 0.2rem;
    }

    .iw-nav-icons a {
        min-width: 32px;
        height: 32px;
        font-size: 0.98rem;
        padding: 0 0.45rem;
    }

    .iw-search-toggle {
        min-width: 32px;
        height: 32px;
        font-size: 0.98rem;
        padding: 0 0.45rem;
    }

    .iw-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .iw-search-inner {
        padding: 0.75rem 1rem 0.9rem;
    }

    .iw-hamburger {
        display: inline-flex;
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

    .iw-sidebar-products {
        display: flex;
    }

    .iw-sidebar-product-row {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        gap: 0.6rem;
        padding-bottom: 0.4rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .iw-sidebar-product-row > a,
    .iw-sidebar-product-row > button {
        flex: 0 0 auto;
        border: 1px solid var(--iw-border);
        background: #fff;
        border-radius: 999px;
        padding: 0.4rem 0.9rem;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .iw-sidebar-product-row > button {
        width: auto;
        justify-content: center;
    }

    .iw-sidebar-product-row > button::after {
        display: none;
    }

    .iw-sidebar-product-panels {
        padding-top: 0.4rem;
    }

    .iw-sidebar-product-row > a.active,
    .iw-sidebar-product-row > button.active {
        background: rgba(184, 150, 62, 0.18);
        border-color: rgba(184, 150, 62, 0.4);
    }

    .iw-sidebar-product-row::-webkit-scrollbar {
        height: 6px;
    }

    .iw-sidebar-product-row::-webkit-scrollbar-thumb {
        background: rgba(136, 136, 136, 0.4);
        border-radius: 999px;
    }

    .iw-welcome {
        font-size: 0.72rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .iw-hero {
        min-height: 70vh;
    }

    .iw-hero-banner-content {
        padding: 3.5rem 1.5rem 2.5rem;
        min-height: 70vh;
    }

    .iw-hero-title {
        font-size: 2.4rem;
    }

    .iw-hero-sub {
        font-size: 0.92rem;
    }

    .iw-btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.78rem;
    }

    .iw-pay-wrapper {
        padding: 1.2rem 0 2rem;
        gap: 1.1rem;
    }

    .iw-pay-header h2 {
        font-size: 1.6rem;
    }

    .iw-pay-card {
        padding: 1.1rem;
    }

    .iw-features-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .iw-section {
        padding: 2.5rem 1rem;
    }

    .iw-section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 560px) {
    .iw-logo-image {
        height: 40px;
    }

    .iw-footer {
        --iw-footer-logo-size: 64px;
        --iw-footer-logo-radius: 18px;
        --iw-footer-title-size: 1.6rem;
        --iw-footer-tagline-size: 0.7rem;
    }

    .iw-features-inner {
        grid-template-columns: 1fr;
    }

    .iw-hero-title {
        font-size: 2rem;
    }

    .iw-hero-actions {
        flex-direction: column;
    }

    .iw-btn {
        width: 100%;
        justify-content: center;
    }

    .iw-nav-icons .iw-auth-link {
        display: none;
    }

    .iw-footer-grid {
        grid-template-columns: 1fr;
    }

    .iw-footer-span-2 {
        grid-column: span 1;
    }

    .iw-footer-bottom-inner {
        align-items: flex-start;
    }
}

@media (min-width: 1200px) {
    .iw-footer-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Account dropdown + cart badge refinements */
.iw-topbar .iw-dropdown-menu {
    min-width: 220px;
    padding: 0.35rem 0;
    border: 1px solid var(--iw-border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.iw-topbar .iw-dropdown-menu .iw-dropdown-header {
    padding: 0.6rem 1rem 0.5rem;
    line-height: 1.2;
}

.iw-topbar .iw-dropdown-menu .dropdown-item {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
}

.iw-topbar .iw-dropdown-menu .dropdown-divider {
    margin: 0.35rem 0;
}

.iw-topbar .iw-dropdown-menu .iw-dropdown-footer {
    padding: 0.4rem 1rem 0.6rem;
}

.iw-topbar .iw-cart-link {
    position: relative;
}

.iw-topbar .iw-cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--iw-red);
    color: var(--iw-white);
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--iw-white);
}

.iw-topbar .iw-cart-badge.is-empty {
    background: #b9b0a5;
    color: #fff;
}

@media (max-width: 576px) {
    .iw-topbar .iw-dropdown-menu {
        min-width: 0;
        width: min(92vw, 360px);
    }

    .iw-topbar .iw-dropdown-menu .dropdown-item {
        font-size: 0.92rem;
    }
}
