/* Self-hosted fonts (Latin subset only — covers Spanish accents, U+00C0-00FF).
   Replaces the Google Fonts CSS round-trip: previously the browser had to
   fetch this stylesheet, parse it, discover @font-face, THEN fetch the font
   file — by the time it arrived, headings had already painted in the
   fallback font and reflowed on swap, causing CLS. The font files themselves
   are preloaded directly in layout.php's <head>, so they're already
   downloading before this stylesheet is even requested. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: optional;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 500 800;
    font-display: optional;
    src: url('/assets/fonts/baloo2-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback faces: same glyphs as the system sans (via local())
   but with ascent/descent/line-gap overridden to match Inter/Baloo 2's own
   metrics (read directly from the woff2 files with fontkit). This is what
   actually makes CLS zero regardless of network timing — font-display:optional
   only reduces the *chance* of a swap-triggered reflow, it doesn't guarantee
   zero, which is why the same page scored CLS 0 on one PageSpeed run and
   0.354 on another. With matched metrics, the fallback already occupies the
   exact box size the real font needs, so there's nothing to reflow into. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    ascent-override: 96.875%;
    descent-override: 24.1211%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Baloo 2 Fallback';
    src: local('Arial');
    ascent-override: 107.8%;
    descent-override: 52.4%;
    line-gap-override: 0%;
}

/* Pomelli-aligned CSS Design System Tokens — bold sans, neutral gray, muted gold */
:root {
    --bg-color: #F1F0EA;
    --text-color: #1A1714;
    --text-muted: #66615A;
    --neutral-dark: #423E38;
    --accent-color: #A9791E;
    --accent-hover: #8C6419;
    --secondary-color: #6E7350;
    --secondary-hover: #575B40;
    --neutral-light: #E2DFD3;
    --neutral-lighter: #F7F6F1;
    --white: #FFFFFF;
    --dark-bg: #16140F;
    --dark-panel: #211E18;
    --shadow-sm: 0 4px 14px rgba(20, 18, 14, 0.06);
    --shadow-md: 0 14px 34px rgba(20, 18, 14, 0.10);
    --shadow-lg: 0 22px 50px rgba(20, 18, 14, 0.14);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 8px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, .font-serif {
    font-family: 'Baloo 2', 'Baloo 2 Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

h2, h3, h4 {
    font-family: 'Baloo 2', 'Baloo 2 Fallback', 'Inter', 'Inter Fallback', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Eyebrow badge — bordered uppercase label, used above headlines */
.eyebrow-badge {
    display: inline-block;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

/* Uppercase tracked link with arrow, e.g. "VIEW ON AMAZON →" */
.link-uppercase {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.link-uppercase:hover {
    color: var(--accent-hover);
}

/* Nav-style uppercase tracked label */
.tracked-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Offset accent frame — signature gold block layered behind imagery */
.accent-frame {
    position: relative;
}

.accent-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: var(--radius-sm);
    z-index: 0;
}

.accent-frame > img,
.accent-frame > div {
    position: relative;
    z-index: 1;
}

/* Full-bleed dark textured band for value props */
.dark-band {
    position: relative;
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.dark-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.dark-band > * {
    position: relative;
    z-index: 1;
}

.dark-band h2 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 40px;
}

.dark-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .dark-band-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.dark-band-item {
    border-top: 2px solid var(--accent-color);
    padding-top: 16px;
    font-weight: 700;
    font-size: 17px;
}

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

/* Grid & Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-padding {
    padding: 44px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 32px 0;
    }
}

.bg-warm {
    background-color: var(--neutral-lighter) !important;
}

/* Header */
header {
    background-color: var(--neutral-lighter);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--neutral-light);
    transition: var(--transition);
}

.header-container {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05) rotate(-2deg);
}

/* Modern navigation links underbar animation */
.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
}

.nav-link {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 992px) {
    .header-actions {
        display: none;
    }
}

/* Lang buttons */
.lang-btn {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 14px;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--neutral-lighter);
}

/* Buttons visual design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white) !important;
    box-shadow: 0 6px 20px rgba(20, 18, 14, 0.12);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(20, 18, 14, 0.18);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(122, 75, 43, 0.02);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 75, 43, 0.1);
}

/* Editorial Hero Styling */
.hero {
    position: relative;
    padding: 52px 0 40px 0;
    text-align: center;
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1.5px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 32px auto;
    font-weight: 400;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero {
        padding: 36px 0 28px 0;
    }
    .hero-title {
        font-size: 40px;
        letter-spacing: -0.5px;
    }
    .hero-sub {
        font-size: 16px;
    }
}

/* Cards grids with gap and elegant spacing */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.service-card {
    background: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.service-title {
    font-size: 26px;
    margin-bottom: 12px;
    font-family: 'Baloo 2', 'Baloo 2 Fallback', sans-serif;
}

.service-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    flex-grow: 1;
    line-height: 1.7;
}

/* Image wrappers */
.card-img-wrapper {
    height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 32px;
    background-color: var(--neutral-lighter);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .card-img {
    transform: scale(1.06);
}

/* Section Header layouts */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 32px auto;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 32px;
    }
}

/* Story hook bar */
.story-hook-strip {
    background-color: var(--neutral-lighter);
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(122, 75, 43, 0.05);
    border-bottom: 1px solid rgba(122, 75, 43, 0.05);
}

.story-hook-text {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-color);
}

.story-hook-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.story-hook-link:hover {
    color: var(--accent-hover);
}

/* Review widget / social proof layout */
.reviews-container {
    max-width: 850px;
    margin: 40px auto 0 auto;
    background-color: var(--neutral-lighter);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--neutral-light);
    box-shadow: var(--shadow-md);
}

.reviews-summary {
    text-align: center;
    margin-bottom: 18px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.google-badge svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.google-badge-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.google-badge-rating strong {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Baloo 2', 'Baloo 2 Fallback', sans-serif;
}

.google-badge-rating .stars {
    color: #FFB400;
    font-size: 18px;
}

.reviews-tagline {
    font-size: 17px;
    font-weight: 600;
    color: var(--neutral-dark);
    margin: 0;
}

/* Carousel */
.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 8px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-light);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .review-card {
        flex-basis: calc(50% - 10px);
    }
}

.review-stars {
    color: #FFB400;
    margin-bottom: 6px;
    font-size: 14px;
}

.review-text {
    font-style: italic;
    color: var(--neutral-dark);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-name {
    font-size: 14px;
    display: block;
    color: var(--accent-color);
}

.review-role {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--neutral-light);
    background: #ffffff;
    color: var(--accent-color);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.reviews-nav:hover {
    background: var(--accent-color);
    color: var(--white);
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neutral-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.reviews-dot.active {
    background: var(--accent-color);
    width: 20px;
    border-radius: 4px;
}

@media (max-width: 576px) {
    .reviews-container {
        padding: 24px 16px;
    }

    .reviews-nav {
        display: none;
    }
}

/* Product grid for store */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.product-card {
    background-color: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(122, 75, 43, 0.2);
}

.product-img-wrapper {
    height: 340px;
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper {
    transform: scale(1.03);
}

.product-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.product-name {
    font-size: 28px;
    margin-bottom: 16px;
    font-family: 'Baloo 2', 'Baloo 2 Fallback', sans-serif;
}

.product-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.8;
}

/* Premium Form Elements */
.form-card {
    background-color: var(--neutral-lighter);
    border: 2px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 56px;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .form-card {
        padding: 32px 20px;
    }
}

.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    background-color: var(--neutral-lighter);
    box-shadow: 0 0 0 4px rgba(233, 156, 106, 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* Timeline/How it works joining connector line */
.timeline-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

@media (min-width: 992px) {
    .timeline-grid::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 15%;
        right: 15%;
        height: 2px;
        background-color: var(--neutral-light);
        z-index: 0;
    }
}

@media (max-width: 992px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* FAQ accordion visual styling */
.faq-sec-title {
    font-size: 30px;
    margin: 56px 0 28px 0;
    border-bottom: 1px solid var(--neutral-light);
    padding-bottom: 16px;
    color: var(--accent-color);
}

details.faq-item {
    background-color: var(--neutral-lighter);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    list-style: none;
    outline: none;
}

.faq-header::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 22px;
    transition: var(--transition);
    color: var(--accent-color);
}

.faq-body {
    padding: 8px 32px 28px 32px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
}

details.faq-item[open] {
    border-color: rgba(122, 75, 43, 0.25);
    box-shadow: var(--shadow-md);
}

details.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

/* Mobile Menu overlays */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--text-color);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--neutral-light);
    padding: 32px;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop Dropdown Submenu */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--white);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 20px 24px;
    min-width: 280px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    padding: 4px 8px;
    margin-bottom: 4px;
}

.dropdown-item {
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 8px;
    border-radius: 6px;
    transition: var(--transition);
    display: block;
}

.dropdown-item:hover {
    background-color: var(--neutral-lighter);
    color: var(--text-color);
}

/* Mobile Dropdown */
.mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown-btn {
    background: transparent;
    border: 1px solid var(--neutral-light);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.mobile-dropdown-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 8px;
}

.mobile-dropdown.open .mobile-dropdown-content {
    max-height: 500px;
    padding: 12px 8px;
}

.mobile-dropdown.open .mobile-dropdown-btn {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .dropdown-menu {
        display: none !important;
    }
}

/* Footer styling */
footer {
    background-color: var(--dark-bg);
    color: #C8C4BB;
    padding: 48px 0 32px 0;
    margin-top: auto;
    font-size: 14px;
    border-top: 1px solid #2C2920;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-family: 'Baloo 2', 'Baloo 2 Fallback', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-color);
}

.footer-desc {
    color: #B0ACA2;
    max-width: 300px;
    line-height: 1.7;
}

.footer-title {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 14px;
}

.footer-links-list a {
    color: #B0ACA2;
}

.footer-links-list a:hover {
    color: var(--accent-color);
}

.footer-contact-info li {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #B0ACA2;
}

.footer-bottom {
    border-top: 1px solid #2C2920;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #7D796F;
}

@media (max-width: 576px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Admin Panel Table visual styling */
.admin-card {
    background-color: var(--white);
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-light);
}

.admin-table th {
    background-color: var(--neutral-lighter);
    font-weight: 600;
    color: var(--text-color);
}

/* Responsive Grid & Layout Helper Classes */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.thread-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.cart-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive Media Queries (Mobile & Tablet Breakpoints) */
@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .grid-3col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .thread-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .accent-frame::before {
        top: -8px;
        right: -8px;
    }
    .cart-category-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .cart-category-grid > div {
        order: unset !important; /* Reset visual order on mobile so image is always on top */
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 28px; /* Align to standard vertical form spacing */
    }
}