/* modern — Fusion Filaments storefront (teal accent, layered home, full-width sections) */
:root {
    --color-primary: #2daada;
    --color-primary-d: #1a8fb5;
    --color-accent: #e8f5fb;
    --color-text: #222222;
    --color-muted: #5a5a5a;
    --color-bg: #ffffff;
    --color-white: #ffffff;
    --color-border: #e6e6e6;
    --color-danger: #c62828;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --max-width: 1320px;
    --modern-teal: #2daada;
    --modern-teal-dark: #1a8fb5;
    --modern-purple: #7b2cbf;
}

.theme-modern-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
}

    .theme-modern-body a {
        color: inherit;
    }

        .theme-modern-body a:hover {
            color: var(--modern-teal-dark);
        }

/* —— Alert bar —— */
.theme-modern-alert {
    background: #1e1e1e;
    color: #f2f2f2;
    font-size: 0.8rem;
}

.theme-modern-alert-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.theme-modern-alert-icon {
    opacity: 0.9;
}

.theme-modern-alert-link {
    color: #b8e8f8;
    text-decoration: underline;
    margin-left: 0.25rem;
}

.theme-modern-alert-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-modern-social-inline {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.theme-modern-social-ic {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    opacity: 0.9;
}

    .theme-modern-social-ic:hover {
        opacity: 1;
        color: #b8e8f8;
    }

/* Disclosure / faux dropdowns */
.theme-modern-disclosure {
    position: relative;
}

.theme-modern-disclosure-summary {
    list-style: none;
    cursor: pointer;
    color: #ddd;
    user-select: none;
}

.theme-modern-disclosure summary::-webkit-details-marker {
    display: none;
}

.theme-modern-disclosure-summary::after {
    content: " ▾";
    font-size: 0.7rem;
    opacity: 0.8;
}

.theme-modern-disclosure-panel {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.35rem;
    min-width: 200px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: var(--radius-sm);
    padding: 0.35rem 0;
    list-style: none;
    z-index: 200;
    box-shadow: var(--shadow);
}

    .theme-modern-disclosure-panel a {
        display: block;
        padding: 0.4rem 0.85rem;
        color: #eee;
        text-decoration: none;
    }

        .theme-modern-disclosure-panel a:hover {
            background: #333;
        }

/* —— Header —— */
.theme-modern-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 150;
}

.theme-modern-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Row 1: logo + tools — never wraps */
.theme-modern-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0;
    flex-wrap: nowrap;
    min-width: 0;
}

    .theme-modern-header-top .theme-modern-logo {
        flex-shrink: 0;
    }

/* Row 2: nav — sits below logo/tools row, dropdowns can overflow freely */
.theme-modern-header-nav {
    display: flex;
    align-items: center;
    padding-bottom: 0.35rem;
}

.theme-modern-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--modern-teal);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.theme-modern-logo--img {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.theme-modern-logo-svg {
    display: block;
    object-fit: contain;
    max-width: 100%;
}

.theme-modern-logo-name {
    font-size: 1.15rem;
}

.theme-modern-logo-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
    /* Indent past the logo icon so the text aligns under the wordmark.
       Scales with viewport so it tracks as the logo image shrinks on mobile. */
    padding-left: clamp(1.75rem, 3.5vw, 2.8rem);
}

.theme-modern-nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem 0.1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.theme-modern-nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 8px;
}

    .theme-modern-nav-link:hover {
        background: #f5f5f5;
    }

.theme-modern-nav-hot {
    color: #c62828;
}

.theme-modern-nav-dd {
    position: relative;
}

.theme-modern-nav-dd-sum {
    cursor: default;
    padding: 0.4rem 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 8px;
    user-select: none;
}

a.theme-modern-nav-dd-sum--link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.theme-modern-nav-dd-sum::after {
    content: " ▾";
    font-size: 0.65rem;
    opacity: 0.55;
}

.theme-modern-nav-dd:hover .theme-modern-nav-dd-sum {
    background: #e8f5fb;
}

.theme-modern-nav-dd-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.35rem 0;
    z-index: 180;
}

.theme-modern-nav-dd:hover .theme-modern-nav-dd-panel {
    display: block;
}

.theme-modern-nav-dd-panel a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--color-text);
}

    .theme-modern-nav-dd-panel a:hover {
        background: #f7f7f7;
    }

.theme-modern-header-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
}

.theme-modern-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--color-text);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .theme-modern-icon-btn:hover {
        background: #f3f3f3;
    }

.theme-modern-account-wrap {
    position: relative;
}

.theme-modern-account {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-width: 40px;
    padding: 0.2rem 0.35rem 0.15rem;
    border-radius: 999px;
    color: var(--color-text);
    text-decoration: none;
}

    .theme-modern-account:hover {
        background: #f3f3f3;
    }

.theme-modern-account-icon {
    flex-shrink: 0;
}

.theme-modern-account-name {
    font-size: 0.80rem;
    font-weight: 700;
    line-height: 1;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
}

/* Account dropdown — appears on hover of the wrapper */
.theme-modern-account-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    z-index: 500;
    overflow: hidden;
    padding-top: 4px;
}

.theme-modern-account-wrap:hover .theme-modern-account-dropdown,
.theme-modern-account-wrap:focus-within .theme-modern-account-dropdown,
.theme-modern-account-wrap.is-open .theme-modern-account-dropdown {
    display: block;
}

.theme-modern-account-dd-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s;
}

    .theme-modern-account-dd-item:hover {
        background: #f5f5f5;
        text-decoration: none;
        color: var(--color-text);
    }

    .theme-modern-account-dd-item + .theme-modern-account-dd-item {
        border-top: 1px solid var(--color-border);
    }

.theme-modern-account-dd-item--signout {
    color: #c0392b;
}

    .theme-modern-account-dd-item--signout:hover {
        background: #fff5f5;
        color: #c0392b;
    }

.theme-modern-search-dd {
    position: relative;
}

.theme-modern-search-pop {
    position: absolute;
    right: 0;
    top: 110%;
    display: flex;
    gap: 0.35rem;
    padding: 0.65rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 180;
    min-width: 260px;
}

.theme-modern-cart {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.25rem 0.35rem 0.25rem 0.25rem;
    border-radius: 999px;
}

    .theme-modern-cart:hover {
        background: #f5f5f5;
    }

.theme-modern-cart-icon {
    font-size: 1.1rem;
}

.theme-modern-cart-badge {
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--modern-teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
}

.theme-modern-cart-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.theme-modern-cart-label {
    font-size: 0.65rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.theme-modern-cart-total {
    font-size: 0.8rem;
    font-weight: 700;
}

/* —— Main —— */
.theme-modern-main {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 50vh;
}

    .theme-modern-main.site-main {
        padding-bottom: 2rem;
    }

    /* Inner pages (cart, products, etc.) */
    .theme-modern-main > .page-header,
    .theme-modern-main > .auth-wrap,
    .theme-modern-main > .product-detail,
    .theme-modern-main > .offline-wrap,
    .theme-modern-main > .no-products,
    .theme-modern-main > p {
        max-width: var(--max-width);
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

/* —— Hero —— */
.theme-modern-hero {
    position: relative;
    min-height: min(72vh, 560px);
    background: #0a0a0a;
}

.theme-modern-hero-slides {
    position: relative;
    min-height: inherit;
}

.theme-modern-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    background: linear-gradient(120deg, #0d2535 0%, #081525 45%, #0a0f14 100%);
    background-size: cover;
    background-position: center;
}

    .theme-modern-hero-slide.is-active {
        opacity: 1;
        position: relative;
    }

    .theme-modern-hero-slide[style*="--hero-bg"] {
        background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2)), var(--hero-bg);
    }

/* —— Hero background video (config-driven; see ThemingOptions.HeroVideo) —— */
.theme-modern-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Video mode: slides go transparent so the video shows; keep a scrim for text legibility. */
.theme-modern-hero.has-hero-video .theme-modern-hero-slide,
.theme-modern-hero.has-hero-video .theme-modern-hero-slide[style*="--hero-bg"] {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
}

.theme-modern-hero.has-hero-video .theme-modern-hero-overlay {
    position: relative;
    z-index: 1;
}

/* Respect users who ask for reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .theme-modern-hero-video {
        display: none;
    }
}

.theme-modern-hero-overlay {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    min-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
}

.theme-modern-hero-eyebrow {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.theme-modern-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin-bottom: 0.5rem;
}

.theme-modern-hero-price {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.theme-modern-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.theme-modern-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.theme-modern-badge--muted {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-modern-hero-cta {
    border-radius: 999px !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 700 !important;
    background: var(--modern-teal) !important;
    border-color: var(--modern-teal) !important;
}

    .theme-modern-hero-cta:hover {
        filter: brightness(0.95);
    }

.theme-modern-hero-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.theme-modern-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #bbb;
    cursor: pointer;
    padding: 0;
}

    .theme-modern-hero-dot.is-active {
        background: var(--modern-teal);
        width: 22px;
        border-radius: 999px;
    }

.theme-modern-hero-pause {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.65rem;
    margin-left: 0.25rem;
    color: #555;
}

/* —— Pills —— */
.theme-modern-pills {
    background: #fafafa;
    border-bottom: 1px solid var(--color-border);
}

.theme-modern-pills-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.theme-modern-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: #ececec;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
}

    .theme-modern-pill:hover {
        background: #e0e0e0;
    }

/* —— Category grid (material cards) —— */
.theme-modern-catgrid {
    padding: 2rem 1.25rem;
}

.theme-modern-catgrid-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .theme-modern-catgrid-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .theme-modern-catgrid-inner {
        grid-template-columns: 1fr;
    }
}

.theme-modern-catcard {
    position: relative;
    min-height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff !important;
    box-shadow: var(--shadow);
}

/* Card image + scrim (same gradient treatment as the hero slides). The img is a
   stub until the website editor fills in src; until then it stays hidden and the
   material gradient shows through. */
.theme-modern-catcard-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theme-modern-catcard-img:not([src]),
.theme-modern-catcard-img[src=""] {
    display: none;
}

.theme-modern-catcard::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2));
    opacity: 0;
    pointer-events: none;
}

.theme-modern-catcard:has(.theme-modern-catcard-img[src]:not([src=""]))::after {
    opacity: 1;
}

.theme-modern-catcard-title {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.theme-modern-catcard-sub {
    position: relative;
    z-index: 1;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.theme-modern-catcard--pla {
    background: linear-gradient(135deg, #e8520a 0%, #f5931a 100%);
}

.theme-modern-catcard--earth {
    background: linear-gradient(135deg, #6b4c2a 0%, #9c7a4a 100%);
}

.theme-modern-catcard--abs {
    background: linear-gradient(135deg, #1a2a3a 0%, #2e4a6a 100%);
}

.theme-modern-catcard--pctg {
    background: linear-gradient(135deg, #0d6b8c 0%, #1aa8c4 100%);
}

.theme-modern-catcard--pet {
    background: linear-gradient(135deg, #1a5c3a 0%, #2a8a56 100%);
}

.theme-modern-catcard--asa {
    background: linear-gradient(135deg, #7a2020 0%, #c03a1a 100%);
}

/* —— Section strip (carousels) —— */
.theme-modern-strip {
    padding: 2.25rem 0 2.5rem;
    background: #fff;
}

.theme-modern-section-head {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.theme-modern-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.theme-modern-section-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-modern-text-btn,
.theme-modern-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: #fafafa;
}

    .theme-modern-text-btn:hover,
    .theme-modern-pill-btn:hover {
        border-color: #ccc;
    }

.theme-modern-grid-ic {
    opacity: 0.55;
    font-size: 0.9rem;
}

.theme-modern-carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

    .theme-modern-carousel-arrow:hover {
        background: #f5f5f5;
    }

.theme-modern-rule {
    max-width: var(--max-width);
    margin: 0.75rem auto 0;
    padding: 0 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, var(--color-text) 0 120px, var(--color-border) 120px 100%);
}

.theme-modern-carousel-viewport {
    max-width: var(--max-width);
    margin: 1.25rem auto 0;
    padding: 0 1.25rem;
}

.theme-modern-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
}

    .theme-modern-carousel-track > * {
        scroll-snap-align: start;
        flex: 0 0 min(260px, 78vw);
    }

.theme-modern-pcard {
    background: #f7f7f7;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.theme-modern-pcard-link {
    position: relative;
    z-index: 0;
    text-decoration: none;
    color: inherit;
}

.theme-modern-pcard-img-wrap {
    aspect-ratio: 1;
    background: #eee;
    position: relative;
}

    .theme-modern-pcard-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.theme-modern-pcard-name {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0.65rem 0.85rem 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-modern-pcard-price {
    font-size: 1rem;
    font-weight: 800;
    color: #c2185b;
    margin: 0 0.85rem 0.65rem;
}

.theme-modern-pcard-form {
    padding: 0 0.85rem 0.85rem;
    position: relative;
    z-index: 1;
}

.theme-modern-pcard-btn {
    width: 100%;
    border-radius: 999px !important;
}

.theme-modern-pcard-oos {
    margin: 0 0.85rem 0.85rem;
    padding: 0.45rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-muted);
}

.theme-modern-pcard--oos .theme-modern-pcard-img-wrap,
.theme-modern-pcard--oos .theme-modern-pcard-name,
.theme-modern-pcard--oos .theme-modern-pcard-price {
    opacity: 0.5;
}

.theme-modern-carousel-track--featured > * {
    flex: 0 0 min(340px, 88vw);
}

.theme-modern-fcard {
    background: #f5f5f5;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.theme-modern-fcard-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 180px;
    text-decoration: none;
    color: inherit;
}

@media (max-width: 520px) {
    .theme-modern-fcard-link {
        grid-template-columns: 1fr;
    }
}

.theme-modern-fcard-body {
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme-modern-fcard-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.theme-modern-fcard-desc {
    font-size: 0.82rem;
    color: var(--color-muted);
    line-height: 1.45;
    flex: 1;
}

.theme-modern-fcard-cta {
    align-self: flex-start;
    border-radius: 999px !important;
    margin-top: 0.25rem;
}

.theme-modern-fcard-cta--oos {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px !important;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b2a2a;
    background: #f3e4e4;
    border: 1px solid #e0c4c4;
}

.theme-modern-fcard--oos .theme-modern-fcard-img,
.theme-modern-fcard--oos .theme-modern-fcard-title,
.theme-modern-fcard--oos .theme-modern-fcard-desc {
    opacity: 0.5;
}

.theme-modern-fcard-img {
    background: #e8e8e8;
    position: relative;
}

    .theme-modern-fcard-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* —— FDM block —— */
.theme-modern-fdm {
    padding: 2rem 1.25rem 2.5rem;
    background: #fafafa;
}

    .theme-modern-fdm .theme-modern-section-head,
    .theme-modern-fdm .theme-modern-rule {
        max-width: var(--max-width);
    }

.theme-modern-fdm-banner {
    max-width: var(--max-width);
    margin: 1.25rem auto 0;
    border-radius: var(--radius);
    background: linear-gradient(110deg, #d9eef8 0%, #f7f7f7 55%, #e8f3f8 100%);
    border: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 220px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .theme-modern-fdm-banner {
        grid-template-columns: 1fr;
    }
}

.theme-modern-fdm-copy {
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
}

.theme-modern-fdm-kicker {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--modern-teal-dark);
}

.theme-modern-fdm-headline {
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.theme-modern-fdm-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
    border-radius: 999px !important;
}

.theme-modern-fdm-visual {
    background: linear-gradient(160deg, #b8d9f0 0%, #80b8e0 40%, #5aa5d4 100%);
    min-height: 160px;
}

.theme-modern-subcats {
    max-width: var(--max-width);
    margin: 1.25rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .theme-modern-subcats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-modern-subcat {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

    .theme-modern-subcat span {
        display: block;
        font-weight: 800;
        font-size: 1rem;
    }

    .theme-modern-subcat small {
        color: var(--color-muted);
        font-size: 0.8rem;
    }

/* —— Two banners —— */
.theme-modern-banners2 {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 720px) {
    .theme-modern-banners2 {
        grid-template-columns: 1fr;
    }
}

.theme-modern-banner2 {
    border-radius: var(--radius);
    min-height: 200px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--shadow);
}

.theme-modern-banner2-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.theme-modern-banner2-sub {
    font-size: 0.85rem;
    opacity: 0.95;
}

.theme-modern-banner2--eng {
    background: linear-gradient(125deg, #7eb8ff 0%, #2a2a2a 55%);
}

.theme-modern-banner2--est {
    background: linear-gradient(135deg, #ffd6c9 0%, #f5a8b8 35%, #c8b8ff 100%);
    color: #222;
}

    .theme-modern-banner2--est .theme-modern-banner2-sub {
        color: #333;
    }

/* —— Blog —— */
.theme-modern-blog {
    padding: 2rem 1.25rem 3rem;
    background: #fff;
}

.theme-modern-blog-grid {
    max-width: var(--max-width);
    margin: 1.25rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .theme-modern-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .theme-modern-blog-grid {
        grid-template-columns: 1fr;
    }
}

.theme-modern-blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fafafa;
}

.theme-modern-blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.theme-modern-blog-img,
.theme-modern-blog-ph {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.theme-modern-blog-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0.65rem 0.85rem 0.35rem;
    line-height: 1.35;
}

.theme-modern-blog-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin: 0 0.85rem 0.85rem;
}

.theme-modern-blog-empty {
    max-width: var(--max-width);
    margin: 1rem auto 0;
    padding: 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

    .theme-modern-blog-empty code {
        font-size: 0.85em;
    }

/* —— Footer —— */
.theme-modern-footer {
    position: relative;
    background: linear-gradient(180deg, #2daada 0%, #1a8fb5 55%, #0d6a8a 100%);
    color: #fff;
    margin-top: 2rem;
    padding-top: 2.5rem;
}

.theme-modern-footer-wave {
    position: absolute;
    top: -38px;
    left: 0;
    right: 0;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48'%3E%3Cpath fill='%23ffffff' d='M0 24L60 20C120 16 240 8 360 10C480 12 600 24 720 26C840 28 960 20 1080 16C1200 12 1320 12 1380 12L1440 12V48H0Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
    pointer-events: none;
}

.theme-modern-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem;
}

.theme-modern-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .theme-modern-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.theme-modern-footer-h {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.theme-modern-footer-p,
.theme-modern-footer-ul {
    font-size: 0.88rem;
    line-height: 1.55;
    opacity: 0.95;
}

.theme-modern-footer-address {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.55;
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.theme-modern-footer-address-icon {
    flex-shrink: 0;
    line-height: 1.55;
}

.theme-modern-footer-address-lines {
    display: flex;
    flex-direction: column;
}

.theme-modern-footer-address-line {
    display: block;
}

.theme-modern-footer-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .theme-modern-footer-ul a {
        color: #fff;
        text-decoration: none;
    }

        .theme-modern-footer-ul a:hover {
            text-decoration: underline;
        }

/* ── Customer account portal (/Account) ─────────────────────────────────── */

.portal-account {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.portal-account-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.portal-account-sub {
    color: var(--color-muted);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.portal-account-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .portal-account-layout {
        grid-template-columns: 1fr;
    }
}

.portal-account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: sticky;
    /* Offset below the sticky site header; --fh-header-h is measured by _Layout script. */
    top: calc(var(--fh-header-h, 0px) + 1rem);
    background: var(--color-bg, #fff);
}

@media (max-width: 768px) {
    /* Single-column layout: nav sits above content, so pinning it just
       overlays the page while scrolling. Let it scroll away normally. */
    .portal-account-nav {
        position: static;
    }
}

.portal-account-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

    .portal-account-nav-link:hover {
        background: #f3f3f3;
    }

    .portal-account-nav-link.is-active {
        background: rgba(0, 128, 128, 0.12);
        color: var(--modern-teal);
    }

.portal-account-nav-link--muted {
    margin-top: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
}

.portal-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.portal-tile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow 0.15s, border-color 0.15s;
}

    .portal-tile:hover {
        border-color: var(--modern-teal);
        box-shadow: var(--shadow);
    }

.portal-tile--warn {
    border-color: #e8a317;
    background: #fffbeb;
}

.portal-tile-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.portal-tile-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.portal-section {
    margin-bottom: 2rem;
}

.portal-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.portal-section-h {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.portal-section-head a {
    font-size: 0.88rem;
    font-weight: 600;
}

.portal-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .portal-table th,
    .portal-table td {
        padding: 0.65rem 0.85rem;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
    }

        .portal-table th.text-end,
        .portal-table td.text-end {
            text-align: right;
        }

    .portal-table thead th {
        background: #f8f8f8;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--color-muted);
    }

.portal-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #eef6f6;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Order status badge variants */
.portal-badge--draft,
.portal-badge--sent {
    background: #fff3cd;
    color: #856404;
}

.portal-badge--sale {
    background: #d1e7dd;
    color: #0a5c36;
}

.portal-badge--done {
    background: #cfe2ff;
    color: #084298;
}

.portal-badge--cancel {
    background: #f8d7da;
    color: #842029;
}

.portal-empty {
    color: var(--color-muted);
    margin: 0.5rem 0;
}

.portal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.portal-link-external::after {
    content: " ↗";
    font-size: 0.75em;
}

.portal-alert--ok {
    background: #e9f7ef;
    border-left: 4px solid #27ae60;
    color: #1a7a42;
}

/* —— Account settings form —— */
.portal-settings-form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.portal-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portal-field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.portal-field-required {
    color: #c0392b;
}

.portal-field-input {
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: #fff;
    color: var(--color-text);
    width: 100%;
}

    .portal-field-input:focus {
        outline: none;
        border-color: var(--color-primary, var(--modern-teal));
        box-shadow: 0 0 0 2px rgba(0, 147, 176, 0.15);
    }

.portal-field-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.portal-field-select {
    appearance: auto;
    padding-right: 2rem;
    cursor: pointer;
}

.portal-field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-field--grow {
    flex: 1 1 180px;
    min-width: 0;
}

.portal-field--fixed {
    flex: 0 0 140px;
    min-width: 0;
}

.portal-settings-section-heading {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted, #666);
    margin: 0.5rem 0 -0.25rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--color-border);
}

.portal-alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}

.portal-alert--warn {
    background: #fff8e6;
    border: 1px solid #e8c547;
}

.portal-doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text, #212529);
}

    .portal-pdf-link:hover {
        color: var(--color-primary, #0d6efd);
    }

        .portal-pdf-link:hover .portal-pdf-icon {
            color: var(--color-primary, #0d6efd);
        }

.portal-pdf-icon {
    flex-shrink: 0;
    color: #c0392b;
}

.portal-token-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-token-list--cards {
    gap: 0.75rem;
}

.portal-token-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fafafa;
}

/* —— Payment methods: embedded Odoo validation iframe —— */
/* No border/background: Odoo's payment form inside the iframe draws its own
   card, so a wrapper border would just double it up. */
.portal-addcard-wrap {
    position: relative;
}

.portal-addcard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
    color: var(--color-muted, #6c757d);
    font-size: 0.9rem;
}

.portal-addcard-iframe {
    display: block;
    width: 100%;
    height: 280px; /* initial; JS resizes to content */
    border: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    .portal-addcard-iframe.is-loaded {
        opacity: 1;
    }

.portal-addcard-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--color-muted, #6c757d);
}

/* —— Orders: shipping cell —— */
.portal-shipping-status {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.portal-shipping-meta {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted, #6c757d);
    margin-top: 0.1rem;
}

.portal-shipping-tracking {
    font-family: monospace;
    font-size: 0.76rem;
    word-break: break-all;
}

/* —— Order detail: shipping section dl —— */
.portal-shipping-detail {
    display: grid;
    grid-template-columns: 7rem 1fr;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

    .portal-shipping-detail dt,
    .portal-shipping-detail dd {
        margin: 0;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
        line-height: 1.4;
        border-bottom: 1px solid var(--color-border);
    }

    .portal-shipping-detail > :nth-last-child(-n+2) {
        border-bottom: none;
    }

    .portal-shipping-detail dt {
        font-weight: 600;
        color: var(--color-text);
        background: #f8f9fa;
        white-space: nowrap;
    }

    .portal-shipping-detail dd {
        background: #fff;
        color: var(--color-text);
    }

.portal-shipping-tracking {
    font-family: monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.portal-shipping-pending {
    color: var(--color-muted, #6c757d);
    font-style: italic;
}

/* —— Orders date filter bar —— */
.portal-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.portal-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .portal-filter-group label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--color-muted, #6c757d);
    }

.portal-filter-input {
    height: 2.25rem;
    padding: 0 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: #fff;
    color: var(--color-text);
}

    .portal-filter-input:focus {
        outline: none;
        border-color: var(--color-primary, var(--modern-teal));
        box-shadow: 0 0 0 2px rgba(0, 147, 176, 0.15);
    }

/* —— Orders pagination —— */
.portal-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.portal-page-btn {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    background: #fff;
    transition: background 0.15s;
}

    .portal-page-btn:hover {
        background: #f0f0f0;
        text-decoration: none;
    }

.portal-page-btn--disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: default;
}

.portal-page-info {
    font-size: 0.875rem;
    color: var(--color-muted, #6c757d);
}

.theme-modern-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-modern-disclosure-light .theme-modern-disclosure-summary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
}

.theme-modern-disclosure-light .theme-modern-disclosure-panel {
    background: #0d6a8a;
    border-color: #1a8fb5;
}

.theme-modern-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-left: auto;
}

    .theme-modern-footer-social a {
        color: #fff;
        font-size: 0.82rem;
        text-decoration: none;
    }

        .theme-modern-footer-social a:hover {
            text-decoration: underline;
        }

.theme-modern-follow-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: var(--modern-purple);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
}

.theme-modern-footer-copy {
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.85;
    margin: 1rem 0 0;
}

/* —— Floating buttons —— */
.theme-modern-floats {
    position: fixed;
    z-index: 400;
    left: 1rem;
    bottom: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
}

    .theme-modern-floats > * {
        pointer-events: auto;
    }

.theme-modern-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.theme-modern-fab-crown {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--modern-teal);
    color: #fff;
}

.theme-modern-fab-globe {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.theme-modern-fab-top {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--modern-teal);
    color: #fff;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .theme-modern-fab-top.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

/* Buttons on inner pages */
.theme-modern-body .btn-primary {
    background: var(--modern-teal);
    border-color: var(--modern-teal);
    border-radius: 999px;
}

    .theme-modern-body .btn-primary:hover {
        filter: brightness(0.95);
    }

.theme-modern-body .btn-outline {
    border-radius: 999px;
}

/* —— Products page: catalog filters (Sunlu-style accents on modern theme) —— */
.theme-modern-main .product-catalog-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

.theme-modern-main .catalog-filters {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.theme-modern-main .catalog-filters-toggle {
    border-color: var(--color-border);
}

.theme-modern-main .catalog-filter-summary::after {
    color: var(--modern-teal);
}

.theme-modern-main .catalog-filter-count {
    background: #e8f5fb;
    color: var(--modern-teal-dark);
    font-weight: 600;
}

.theme-modern-main .catalog-filter-block {
    border-color: #eee;
}

/* —— Responsive header / mobile nav ——————————————————————————————————————
   Desktop keeps the two-row header with hover dropdowns. Below 900px the nav
   row collapses behind a hamburger and dropdowns become tap-to-expand
   accordions (hover never fires on touch). */
.theme-modern-nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .theme-modern-nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        flex-shrink: 0;
        margin-left: -0.35rem;
        border: none;
        background: transparent;
        color: var(--color-text);
        border-radius: 999px;
        cursor: pointer;
    }

        .theme-modern-nav-toggle:hover {
            background: #f3f3f3;
        }

    .theme-modern-nav-toggle-close {
        display: none;
    }

    .theme-modern-header.is-nav-open .theme-modern-nav-toggle-open {
        display: none;
    }

    .theme-modern-header.is-nav-open .theme-modern-nav-toggle-close {
        display: inline;
    }

    /* Nav row hidden until the hamburger opens it */
    .theme-modern-header-nav {
        display: none;
        padding-bottom: 0.5rem;
    }

    .theme-modern-header.is-nav-open .theme-modern-header-nav {
        display: block;
        margin-top: 0.35rem;
        padding-top: 0.35rem;
        border-top: 1px solid var(--color-border);
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }

    .theme-modern-nav-main {
        flex-direction: column;
        align-items: stretch;
        white-space: normal;
        gap: 0;
    }

    .theme-modern-nav-link,
    .theme-modern-nav-dd-sum {
        display: block;
        width: 100%;
        padding: 0.7rem 0.5rem;
        font-size: 0.95rem;
        border-radius: 8px;
        border-bottom: 1px solid var(--color-border);
    }

    .theme-modern-nav-dd {
        width: 100%;
    }

    /* Dropdown panel: inline accordion, not a floating box */
    .theme-modern-nav-dd-panel {
        display: none;
        position: static;
        min-width: 0;
        margin-top: 0;
        padding: 0.15rem 0 0.4rem;
        border: none;
        box-shadow: none;
        background: #fafafa;
        border-radius: 8px;
    }

    /* Kill hover-open on touch; only the JS .is-open class reveals the panel */
    .theme-modern-nav-dd:hover .theme-modern-nav-dd-panel {
        display: none;
    }

    .theme-modern-nav-dd.is-open .theme-modern-nav-dd-panel {
        display: block;
    }

    .theme-modern-nav-dd-panel a {
        padding-left: 1.25rem;
    }

    .theme-modern-nav-dd-sum::after {
        float: right;
    }

    .theme-modern-nav-dd.is-open .theme-modern-nav-dd-sum::after {
        display: inline-block;
        transform: rotate(180deg);
    }

    /* Trim row 1 so logo + tools never overflow on phones */
    .theme-modern-cart-meta {
        display: none;
    }

    .theme-modern-cart {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .theme-modern-header-inner {
        padding: 0 0.85rem;
    }

    .theme-modern-header-tools {
        gap: 0.1rem;
    }

    .theme-modern-logo-svg {
        max-width: 150px;
        height: auto;
    }

    .theme-modern-hero-overlay {
        padding: 2.5rem 1.25rem 3.5rem;
    }

    .theme-modern-floats {
        left: 0.65rem;
        bottom: 4.75rem;
    }
}
