﻿/* =========================================================
   FRAMES ECOMMERCE - STOREFRONT
   Clean V1 layout + XIMI-style header + category shape system
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ec-text, #151515);
    font-family: var(--ec-font, Arial, sans-serif);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */

.announcement {
    min-height: 38px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--ec-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
}


/* =========================================================
   STORE HEADER
   Reference-style layout:
   large logo left / centered search / actions right
   navigation on its own row
   ========================================================= */

.store-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #ececec;
}

.header-inner {
    width: min(1515px, calc(100% - 48px));
    min-height: 96px;
    margin: 0 auto;
    padding: 8px 0;
    display: grid;
    grid-template-columns: 285px minmax(460px, 650px) minmax(250px, 1fr);
    align-items: center;
    column-gap: 40px;
}

.brand {
    width: 380px;
    height: 140px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.03em;
}

    .brand .store-logo,
    .brand img {
        display: block;
        width: 360px;
        height: 80px;
        max-width: none;
        max-height: none;
        object-fit: contain;
        object-position: left center;
        transform: translate(-42px,14px) scale(1.85);
        transform-origin: left center;
    }

.searchbar {
    width: 100%;
    max-width: 650px;
    height: 46px;
    justify-self: center;
    display: flex;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
}

    .searchbar:focus-within {
        border-color: var(--ec-primary);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec-primary) 10%, transparent);
    }

    .searchbar input {
        width: 100%;
        min-width: 0;
        border: 0;
        background: transparent;
        padding: 0 20px;
        outline: 0;
    }

    .searchbar button {
        min-width: 90px;
        border: 0;
        padding: 0 22px;
        background: var(--ec-primary);
        color: #fff;
        font-weight: 800;
    }

.head-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

    .head-actions a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .head-actions a:hover {
            color: var(--ec-primary);
        }

.cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ec-accent);
    font-size: 11px;
    font-weight: 800;
}


/* =========================================================
   MAIN NAVIGATION ROW
   ========================================================= */

.category-nav {
    width: min(1515px, calc(100% - 48px));
    min-height: 50px;
    margin: 0 auto;
    padding: 2px 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    scrollbar-width: thin;
}

    .category-nav a {
        position: relative;
        padding: 8px 0;
    }

        .category-nav a:hover {
            color: var(--ec-primary);
        }


/* =========================================================
   HOME VISUAL CATEGORY STRIP
   OUTSIDE HEADER / ABOVE HERO
   ========================================================= */
/* =========================================================
   HOME VISUAL CATEGORY STRIP
   Parent and child categories can both be shown.
   ========================================================= */

.home-category-strip {
    width: min(1515px, calc(100% - 48px));
    margin: 28px auto 18px;
    padding: 0 4px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #ffffff;
    scrollbar-width: thin;
}

.home-category-item {
    width: 125px;
    flex: 0 0 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ec-text);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.home-category-image {
    display: block;
    width: 118px;
    height: 118px;
    max-width: none;
    max-height: none;
    background: #f6f6f6;
    border: 1px solid #eeeeee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-category-item:hover .home-category-image {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(0, 0, 0, .08);
}

.home-category-item span {
    display: block;
    max-width: 125px;
    line-height: 1.25;
}


/* Circle - closest to XIMI-V */
.home-category-item.shape-circle .home-category-image {
    border-radius: 50%;
}


/* Rounded square */
.home-category-item.shape-rounded .home-category-image {
    border-radius: 28px;
}


/* Straight square */
.home-category-item.shape-square .home-category-image {
    border-radius: 0;
}


/* Soft square */
.home-category-item.shape-soft-square .home-category-image {
    border-radius: 16px;
}


/* Wide landscape */
.home-category-item.shape-wide {
    width: 180px;
    flex-basis: 180px;
}

    .home-category-item.shape-wide .home-category-image {
        width: 180px;
        height: 118px;
        border-radius: 20px;
    }


/* Image display mode */
.home-category-image.fit-cover {
    object-fit: cover;
}

.home-category-image.fit-contain {
    object-fit: contain;
    padding: 10px;
}


/* Mobile: horizontally scroll like a modern storefront */
@media (max-width: 720px) {

    .home-category-strip {
        width: 100%;
        margin: 18px 0 14px;
        padding: 0 16px 10px;
        gap: 17px;
    }

    .home-category-item {
        width: 94px;
        flex-basis: 94px;
        font-size: 12px;
    }

    .home-category-image {
        width: 88px;
        height: 88px;
    }

    .home-category-item span {
        max-width: 94px;
    }

    .home-category-item.shape-wide {
        width: 145px;
        flex-basis: 145px;
    }

        .home-category-item.shape-wide .home-category-image {
            width: 145px;
            height: 88px;
        }
}

/* =========================================================
   MAIN
   ========================================================= */

.ec-main {
    min-height: 55vh;
    background: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */
/* =========================================================
   HERO / MAIN BANNER
   ========================================================= */

.hero {
    width: min(1515px, calc(100% - 48px));
    height: 560px;
    margin: 20px auto 55px;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f3f3;
}


/* =========================================================
   HERO IMAGE / VIDEO
   Fills the WHOLE hero
   ========================================================= */

.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    z-index: 1;
}

    .hero-media img,
    .hero-media video {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center center;
    }


/* =========================================================
   HERO TEXT OVER IMAGE
   ========================================================= */

.hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 70px 85px;
}


    /* Hide empty fields */
    .hero-copy h1:empty,
    .hero-copy p:empty,
    .hero-copy .eyebrow:empty {
        display: none;
    }


.hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    font-size: clamp(42px, 6vw, 84px);
    line-height: .98;
    letter-spacing: -.055em;
}


.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    font-size: 18px;
    color: inherit;
    opacity: .85;
}


/* =========================================================
   FALLBACK HERO
   Used only when there is no Home Builder hero image
   ========================================================= */

.hero.simple {
    min-height: 500px;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0;
    background: #f3f3f3;
}

    .hero.simple > div {
        position: relative;
        width: 100%;
        padding: 70px 85px;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .hero {
        width: calc(100% - 24px);
        height: 320px;
        margin: 14px auto 35px;
        border-radius: 12px;
    }

    .hero-copy {
        padding: 28px 24px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero.simple {
        min-height: 320px;
    }

        .hero.simple > div {
            padding: 32px 24px;
        }
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn,
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--ec-button-radius);
    padding: 11px 20px;
    font-weight: 800;
    transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}

    .btn.primary {
        background: var(--ec-primary);
        color: #ffffff;
    }

        .btn.primary:hover {
            transform: translateY(-1px);
            filter: brightness(.92);
        }

    .btn.secondary {
        background: #ffffff;
        border-color: #dddddd;
    }

    .btn.large {
        padding: 15px 27px;
    }

    .btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }


/* =========================================================
   COMMON SECTIONS
   ========================================================= */

.section-wrap {
    width: min(1515px, calc(100% - 48px));
    margin: 0 auto 72px;
    background: #ffffff;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

    .section-head h2 {
        margin: 2px 0;
        font-size: clamp(28px, 4vw, 46px);
        letter-spacing: -.04em;
    }

    .section-head p {
        margin: 0;
        color: var(--ec-muted);
    }

.eyebrow {
    color: var(--ec-muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}


/* =========================================================
   HOME CATEGORY DISPLAY
   Default = visual tile
   Supported container classes:
   category-style-circle
   category-style-rounded
   category-style-square
   category-style-soft-square
   category-style-wide
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

/* Default category tile */
.category-card {
    position: relative;
    min-width: 0;
    min-height: 230px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--ec-card-radius);
    background: #f3f3f3;
    transition: transform .22s ease, box-shadow .22s ease;
}

    .category-card:hover {
        transform: translateY(-3px);
    }

    .category-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .category-card::after {
        content: "";
        position: absolute;
        inset: 38% 0 0;
        background: linear-gradient( transparent, rgba(0, 0, 0, .58) );
    }

    .category-card span {
        position: relative;
        z-index: 2;
        padding: 22px;
        color: #ffffff;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.1;
    }


/* ---- CIRCLE STYLE - similar to the reference website ---- */

.category-grid.category-style-circle {
    grid-template-columns: repeat(8, minmax(110px, 1fr));
    gap: 24px;
    align-items: start;
}

    .category-grid.category-style-circle .category-card {
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
        background: transparent;
        border-radius: 0;
    }

        .category-grid.category-style-circle .category-card::after {
            display: none;
        }

        .category-grid.category-style-circle .category-card img {
            position: static;
            width: 124px;
            height: 124px;
            flex: 0 0 124px;
            border-radius: 50%;
            object-fit: cover;
            background: #f4f4f4;
        }

        .category-grid.category-style-circle .category-card span {
            width: 100%;
            padding: 11px 4px 0;
            color: var(--ec-text);
            text-align: center;
            font-size: 14px;
            font-weight: 700;
        }


/* ---- ROUNDED CARD STYLE ---- */

.category-grid.category-style-rounded {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

    .category-grid.category-style-rounded .category-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: 30px;
    }


/* ---- SQUARE STYLE ---- */

.category-grid.category-style-square {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

    .category-grid.category-style-square .category-card {
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: 0;
    }


/* ---- SOFT SQUARE WITH TITLE BELOW ---- */

.category-grid.category-style-soft-square {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

    .category-grid.category-style-soft-square .category-card {
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
        background: transparent;
    }

        .category-grid.category-style-soft-square .category-card::after {
            display: none;
        }

        .category-grid.category-style-soft-square .category-card img {
            position: static;
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 26px;
            object-fit: cover;
            background: #f4f4f4;
        }

        .category-grid.category-style-soft-square .category-card span {
            width: 100%;
            padding: 12px 5px 0;
            color: var(--ec-text);
            text-align: center;
            font-size: 15px;
            font-weight: 750;
        }


/* ---- WIDE IMAGE STYLE ---- */

.category-grid.category-style-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

    .category-grid.category-style-wide .category-card {
        min-height: 240px;
        border-radius: 28px;
    }


/* Per-card aliases, useful if later each category gets its own shape */
.category-card.category-shape-circle {
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    background: transparent;
}

    .category-card.category-shape-circle::after {
        display: none;
    }

    .category-card.category-shape-circle img {
        position: static;
        width: 124px;
        height: 124px;
        border-radius: 50%;
        object-fit: cover;
    }

    .category-card.category-shape-circle span {
        padding: 10px 4px 0;
        color: var(--ec-text);
        text-align: center;
        font-size: 14px;
    }

.category-card.category-shape-square {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 0;
}

.category-card.category-shape-rounded {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 28px;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.product-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ededed;
    border-radius: var(--ec-card-radius);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .035);
    transition: transform .24s ease, box-shadow .24s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
    }

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.06;
    overflow: hidden;
    background: #f7f7f7;
}

    .product-media img,
    .product-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s ease;
    }

.product-card:hover .product-media img,
.product-card:hover .product-media video {
    transform: scale(1.025);
}

.badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ec-accent);
    font-size: 11px;
    font-weight: 850;
}

.product-info {
    padding: 17px;
}

    .product-info h3 {
        margin: 7px 0 10px;
        font-size: 17px;
        line-height: 1.2;
    }

        .product-info h3 a:hover {
            text-decoration: underline;
        }

.variant-text {
    min-height: 20px;
    color: var(--ec-muted);
    font-size: 13px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 12px 0;
}

    .price-row strong {
        font-size: 17px;
    }

    .price-row del,
    .big-price del {
        color: var(--ec-muted);
        font-weight: 400;
    }

.quick-cart .btn {
    width: 100%;
}


/* =========================================================
   MEDIA BANNERS
   ========================================================= */

.media-banner {
    width: min(1440px, calc(100% - 56px));
    min-height: 460px;
    margin: 0 auto 72px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: calc(var(--ec-card-radius) + 6px);
}

    .media-banner > img,
    .media-banner > video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .media-banner > video {
        z-index: 0;
    }

    .media-banner::after {
        content: "";
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient( 90deg, rgba(0, 0, 0, .6), rgba(0, 0, 0, .05) );
    }

    .media-banner > div {
        position: relative;
        z-index: 2;
        max-width: 620px;
        padding: 64px;
        color: #ffffff;
    }

    .media-banner h2 {
        margin: 0 0 15px;
        font-size: 50px;
        line-height: 1;
    }

.text-section {
    max-width: 920px;
    text-align: center;
}


/* =========================================================
   SHOP / FILTERS
   ========================================================= */

.shop-layout {
    width: min(1440px, calc(100% - 56px));
    margin: 35px auto 70px;
}

.shop-top h1,
.search-page h1,
.cart-page h1,
.checkout-page h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -.05em;
}

.toolbar,
.filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 26px;
}

    .toolbar input,
    .filters input,
    .filters select,
    .checkout-form input,
    .checkout-form select,
    .checkout-form textarea,
    .account-card input,
    .add-form input {
        border: 1px solid #dcdcdc;
        border-radius: 12px;
        padding: 11px 12px;
        background: #ffffff;
        outline: 0;
    }

        .toolbar input:focus,
        .filters input:focus,
        .filters select:focus,
        .checkout-form input:focus,
        .checkout-form textarea:focus {
            border-color: var(--ec-primary);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec-primary) 10%, transparent);
        }


/* =========================================================
   PRODUCT DETAIL
   ========================================================= */

.product-detail {
    width: min(1320px, calc(100% - 56px));
    margin: 38px auto 80px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.main-media {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    border-radius: var(--ec-card-radius);
    background: #f6f6f6;
}

.product-buy {
    position: sticky;
    top: 150px;
    align-self: start;
}

    .product-buy h1 {
        margin: 8px 0;
        font-size: clamp(38px, 5vw, 62px);
        line-height: 1;
        letter-spacing: -.05em;
    }

.sku,
.stock-state {
    margin: 10px 0;
    color: var(--ec-muted);
    font-size: 13px;
}

.big-price {
    margin: 22px 0;
    font-size: 28px;
    font-weight: 800;
}

.variants {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.variant-chip {
    display: inline-flex;
    margin: 8px 6px 0 0;
    padding: 8px 12px;
    border: 1px solid #dddddd;
    border-radius: 999px;
}

.add-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin: 18px 0 30px;
}

    .add-form label {
        display: grid;
        gap: 5px;
        font-size: 12px;
    }

.description {
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}


/* =========================================================
   CART / CHECKOUT / ACCOUNT
   ========================================================= */

.cart-page,
.checkout-page,
.search-page,
.account-card {
    width: min(1180px, calc(100% - 56px));
    margin: 42px auto 80px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-table th,
    .cart-table td {
        padding: 14px;
        border-bottom: 1px solid #eeeeee;
        text-align: left;
        vertical-align: middle;
    }

.cart-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .cart-product img {
        width: 70px;
        height: 70px;
        border-radius: 10px;
        object-fit: cover;
    }

.cart-summary {
    max-width: 420px;
    margin: 26px 0 0 auto;
    padding: 24px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: var(--ec-card-radius);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
}

    .summary-row.total {
        margin-top: 8px;
        padding-top: 15px;
        border-top: 1px solid #dddddd;
        font-size: 21px;
        font-weight: 800;
    }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 34px;
}

.checkout-form,
.checkout-summary,
.account-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: var(--ec-card-radius);
}

.checkout-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

    .checkout-form label,
    .account-card label {
        display: grid;
        gap: 6px;
        font-size: 13px;
        font-weight: 700;
    }

    .checkout-form .full {
        grid-column: 1 / -1;
    }

.checkout-summary {
    align-self: start;
    position: sticky;
    top: 150px;
}

.notice {
    margin: 14px 0;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f5f5f5;
}

    .notice.error {
        background: #fff0f0;
        color: #9b1c1c;
    }

    .notice.ok {
        background: #effdf3;
        color: #126b2b;
    }

.empty-state {
    grid-column: 1 / -1;
    padding: 65px;
    border-radius: var(--ec-card-radius);
    background: #fafafa;
    text-align: center;
}


/* =========================================================
   EXTENDED CART / CHECKOUT COMPONENTS
   ========================================================= */

.page-hero {
    width: min(1180px, calc(100% - 56px));
    margin: 42px auto 28px;
}

    .page-hero.compact {
        margin-bottom: 24px;
    }

    .page-hero h1 {
        margin: 0 0 10px;
        font-size: clamp(36px, 5vw, 64px);
        letter-spacing: -.05em;
    }

    .page-hero p {
        max-width: 760px;
        color: var(--ec-muted);
    }

.cart-layout {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 30px;
}

.cart-lines {
    display: grid;
    gap: 14px;
}

.cart-line {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 13px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: var(--ec-card-radius);
}

    .cart-line img {
        width: 92px;
        height: 92px;
        object-fit: cover;
        background: #f7f7f7;
        border-radius: calc(var(--ec-card-radius) - 7px);
    }

    .cart-line h3 {
        margin: 0 0 5px;
        font-size: 17px;
    }

    .cart-line p {
        margin: 0;
        color: var(--ec-muted);
        font-size: 13px;
    }

    .cart-line .qty {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
    }

        .cart-line .qty input {
            width: 84px;
            padding: 9px;
            border: 1px solid #dddddd;
            border-radius: 10px;
        }

.text-btn {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--ec-muted);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.coupon {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

    .coupon input {
        min-width: 0;
        flex: 1;
        padding: 11px;
        border: 1px solid #dddddd;
        border-radius: 12px;
    }

.cart-summary {
    align-self: start;
    position: sticky;
    top: 150px;
}

    .cart-summary .btn.full,
    .full {
        width: 100%;
    }

.small {
    color: var(--ec-muted);
    font-size: 12px;
}

.checkout-layout {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto 80px;
    align-items: start;
}

.checkout-form {
    display: block;
    padding: 0;
    border: 0;
}

.form-card {
    margin-bottom: 15px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: var(--ec-card-radius);
}

    .form-card h2 {
        margin: 0 0 17px;
        font-size: 19px;
    }

    .form-card > label,
    .form-card .two > label {
        display: grid;
        gap: 7px;
        margin-bottom: 12px;
        font-size: 13px;
        font-weight: 700;
    }

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.form-card input,
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 11px 12px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    outline: none;
    font: inherit;
}

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

.choice {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin: 0 0 9px !important;
    padding: 14px !important;
    border: 1px solid #e3e3e3;
    border-radius: 13px;
    cursor: pointer;
}

    .choice:has(input:checked) {
        border-color: var(--ec-primary);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--ec-primary) 9%, transparent);
    }

    .choice input {
        width: auto !important;
        margin: 0;
    }

    .choice span {
        display: grid;
        gap: 2px;
    }

    .choice small {
        color: var(--ec-muted);
        font-weight: 400;
    }

.checkout-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 0;
}

.mini-line {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-summary hr {
    border: 0;
    border-top: 1px solid #dddddd;
    margin: 13px 0;
}


/* =========================================================
   SUCCESS / CONTENT PAGES
   ========================================================= */

.success-card {
    max-width: 720px;
    margin: 65px auto 100px;
    padding: 48px 28px;
    text-align: center;
}

.success-mark {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #effdf3;
    color: #126b2b;
    font-size: 38px;
    font-weight: 900;
}

.success-card h1 {
    margin: 7px 0 15px;
    font-size: clamp(44px, 6vw, 72px);
    letter-spacing: -.055em;
}

.success-card p {
    color: var(--ec-muted);
    line-height: 1.7;
}

.success-total {
    margin: 24px 0;
    font-size: 32px;
    font-weight: 900;
}

.content-page {
    max-width: 920px;
    margin: 55px auto 90px;
    padding: 0 28px;
}

    .content-page h1 {
        font-size: clamp(38px, 5vw, 64px);
        letter-spacing: -.05em;
    }

.prose {
    line-height: 1.8;
}

    .prose img {
        max-width: 100%;
        height: auto;
    }

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    background: #f5f5f5;
}

    .alert.error {
        background: #fff0f0;
        color: #9b1c1c;
    }

.table-scroll {
    overflow: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-top: 80px;
    padding: 50px max(28px, calc((100vw - 1515px) / 2));
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
    border-top: 1px solid #e5e5e5;
    background: #ffffff;
}

    .footer > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .footer strong {
        font-size: 20px;
    }

    .footer span,
    .footer a,
    .footer p {
        color: var(--ec-muted);
        font-size: 14px;
    }

.order-status {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
}

.account-card {
    max-width: 650px;
}

    .account-card form {
        display: grid;
        gap: 14px;
    }

    .account-card h1 {
        margin-top: 0;
    }



/* =========================================================
   REFERENCE-LAYOUT SAFETY
   Keeps the storefront white and aligned even when a tenant
   has a different Theme background color configured.
   ========================================================= */

html,
body,
.store-header,
.header-inner,
.category-nav,
.ec-main,
.section-wrap,
.footer {
    background-color: #ffffff;
}

.hero {
    background-color: #f3f3f3;
}

.home-category-strip {
    background: #ffffff;
}

/* =========================================================
   RESPONSIVE - LARGE TABLET
   ========================================================= */

@media (max-width: 1180px) {

    .header-inner {
        width: calc(100% - 40px);
        grid-template-columns: 230px minmax(300px, 1fr) auto;
        column-gap: 24px;
    }

    .brand {
        width: 230px;
    }

        .brand .store-logo,
        .brand img {
            width: 218px;
        }

    .category-nav {
        width: calc(100% - 40px);
        justify-content: flex-start;
    }

    .category-grid.category-style-circle {
        grid-template-columns: repeat(6, minmax(105px, 1fr));
    }

    .category-grid.category-style-soft-square {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .header-inner {
        grid-template-columns: 220px auto;
        row-gap: 10px;
    }

    .searchbar {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
    }

    .head-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 380px;
        order: -1;
    }

    .hero-copy {
        padding: 42px;
    }

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

    .product-buy {
        position: static;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .category-grid.category-style-circle {
            grid-template-columns: repeat(5, minmax(100px, 1fr));
        }

        .category-grid.category-style-rounded,
        .category-grid.category-style-square {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .category-grid.category-style-wide {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
}


/* =========================================================
   RESPONSIVE - MOBILE / SMALL TABLET
   ========================================================= */

@media (max-width: 720px) {

    .announcement {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .header-inner {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 9px 0 11px;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;
    }

    .brand {
        width: 190px;
        height: 68px;
    }

        .brand .store-logo,
        .brand img {
            width: 180px;
            height: 64px;
            transform: scale(1.2);
        }

    .head-actions {
        gap: 11px;
        font-size: 13px;
    }

    .searchbar {
        height: 44px;
    }

        .searchbar button {
            min-width: 76px;
            padding: 0 14px;
        }

    .category-nav {
        width: 100%;
        padding: 7px 16px 12px;
        justify-content: flex-start;
        gap: 20px;
    }

    .home-category-strip {
        width: 100%;
        margin: 20px 0 14px;
        padding: 0 16px 10px;
        justify-content: flex-start;
        gap: 17px;
    }

    .home-category-item {
        min-width: 92px;
        flex-basis: 92px;
        font-size: 12px;
    }

        .home-category-item .home-category-image,
        .home-category-item img {
            width: 86px;
            height: 86px;
        }

        .home-category-item span {
            max-width: 92px;
        }

    .hero {
        width: calc(100% - 32px);
        margin: 16px auto 45px;
        min-height: auto;
    }

        .hero.simple {
            padding: 25px;
        }

            .hero-copy,
            .hero.simple > div {
                padding: 32px 22px;
            }

        .hero h1 {
            font-size: 44px;
        }

    .hero-media {
        min-height: 300px;
    }

    .section-wrap,
    .shop-layout,
    .product-detail,
    .cart-page,
    .checkout-page,
    .search-page,
    .account-card,
    .page-hero,
    .cart-layout,
    .checkout-layout,
    .content-page {
        width: calc(100% - 32px);
    }

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

    .product-info {
        padding: 12px;
    }

    .category-grid,
    .category-grid.category-style-rounded,
    .category-grid.category-style-square {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .category-grid.category-style-circle {
            display: flex;
            gap: 18px;
            overflow-x: auto;
            padding: 4px 0 12px;
            scrollbar-width: thin;
        }

            .category-grid.category-style-circle .category-card {
                min-width: 108px;
                flex: 0 0 108px;
            }

                .category-grid.category-style-circle .category-card img {
                    width: 96px;
                    height: 96px;
                    flex-basis: 96px;
                }

        .category-grid.category-style-soft-square {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .category-grid.category-style-wide {
            grid-template-columns: 1fr;
        }

    .gallery {
        grid-template-columns: 1fr;
    }

    .main-media:not(:first-child) {
        display: none;
    }

    .checkout-form {
        grid-template-columns: 1fr;
    }

        .checkout-form .full {
            grid-column: auto;
        }

    .footer {
        grid-template-columns: 1fr;
        padding: 35px 20px;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

        .cart-table tr {
            border-bottom: 1px solid #dddddd;
            padding: 14px 0;
        }

        .cart-table td {
            border: 0;
            padding: 5px 0;
        }

    .media-banner {
        width: calc(100% - 32px);
        margin: 0 auto 50px;
    }

        .media-banner > div {
            padding: 35px;
        }

        .media-banner h2 {
            font-size: 38px;
        }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .two {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: start;
    }

        .cart-line img {
            width: 76px;
            height: 76px;
        }

        .cart-line > strong {
            grid-column: 2;
        }

    .choice {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .choice > b {
            grid-column: 2;
        }

    .success-card {
        margin-top: 35px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL PHONE
   ========================================================= */

@media (max-width: 430px) {

    .brand {
        width: 150px;
        height: 58px;
    }

        .brand .store-logo,
        .brand img {
            width: 144px;
            height: 56px;
        }

    .head-actions {
        gap: 8px;
    }

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

    .product-info h3 {
        font-size: 14px;
    }

    .category-card {
        min-height: 160px;
    }

        .category-card span {
            font-size: 18px;
            padding: 14px;
        }

    .category-grid.category-style-circle .category-card {
        min-width: 96px;
        flex-basis: 96px;
    }

        .category-grid.category-style-circle .category-card img {
            width: 86px;
            height: 86px;
            flex-basis: 86px;
        }

        .category-grid.category-style-circle .category-card span {
            font-size: 12px;
        }
}
/* =========================================================
   HOME CATEGORY STRIP - SHAPES
   ========================================================= */

.home-category-strip {
    width: min(1515px, calc(100% - 48px));
    margin: 28px auto 18px;
    padding: 0 4px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
}

.home-category-item {
    flex: 0 0 125px;
    width: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.home-category-image {
    display: block;
    width: 118px;
    height: 118px;
    background: #f6f6f6;
    border: 1px solid #eeeeee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-category-item:hover .home-category-image {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(0, 0, 0, .08);
}

.home-category-item span {
    line-height: 1.25;
}


/* CIRCLE */
.home-category-item.shape-circle .home-category-image {
    border-radius: 50%;
}


/* ROUNDED SQUARE */
.home-category-item.shape-rounded .home-category-image {
    border-radius: 28px;
}


/* SQUARE */
.home-category-item.shape-square .home-category-image {
    border-radius: 0;
}


/* SOFT SQUARE */
.home-category-item.shape-soft-square .home-category-image {
    border-radius: 16px;
}


/* WIDE */
.home-category-item.shape-wide {
    width: 180px;
    flex-basis: 180px;
}

    .home-category-item.shape-wide .home-category-image {
        width: 180px;
        height: 118px;
        border-radius: 20px;
    }


/* IMAGE FIT */
.home-category-image.fit-cover {
    object-fit: cover;
}

.home-category-image.fit-contain {
    object-fit: contain;
    padding: 10px;
}


/* MOBILE */
@media (max-width: 720px) {

    .home-category-strip {
        width: 100%;
        margin-top: 18px;
        padding-left: 16px;
        padding-right: 16px;
        gap: 17px;
    }

    .home-category-item {
        width: 94px;
        flex-basis: 94px;
        font-size: 12px;
    }

    .home-category-image {
        width: 88px;
        height: 88px;
    }
}

/* =========================================================
   DYNAMIC STOREFRONT FOOTER
   Admin > Footer Builder
   ========================================================= */

.site-footer {
    margin-top: 80px;
    background: var(--footer-bg, #ffffff);
    color: var(--footer-text, #111111);
    border-top: 1px solid #eeeeee;
}

.site-footer-inner {
    width: min(1630px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 10px;
}

.site-footer-contact-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.site-footer-contact-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
    padding: 0 38px 30px;
}

    .site-footer-contact-card:first-child {
        padding-left: 0;
    }

    .site-footer-contact-card + .site-footer-contact-card {
        border-left: 1px solid #dddddd;
    }

.site-footer-contact-icon {
    color: var(--footer-accent, var(--ec-accent));
    width: 27px;
    height: 27px;
    margin-top: 1px;
}

    .site-footer-contact-icon svg {
        display: block;
        width: 27px;
        height: 27px;
    }

.site-footer-contact-copy {
    min-width: 0;
    font-size: 15px;
    line-height: 1.55;
}

    .site-footer-contact-copy strong {
        display: block;
        margin: 0 0 5px;
        color: var(--footer-text, #111111);
        font-size: 16px;
        line-height: 1.25;
    }

    .site-footer-contact-copy a,
    .site-footer-contact-value {
        color: var(--footer-text, #111111);
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .site-footer-contact-copy a {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

.site-footer-divider {
    height: 1px;
    background: #dddddd;
}

.site-footer-main {
    display: grid;
    grid-template-columns: minmax(420px, 2fr) .75fr .9fr 1.12fr;
    gap: 68px;
    padding: 41px 0 34px;
    align-items: start;
}

.site-footer-newsletter h2 {
    margin: 0 0 18px;
    color: var(--footer-text, #111111);
    font-size: clamp(27px, 2.2vw, 36px);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.site-footer-newsletter > p {
    margin: 0 0 21px;
    color: var(--footer-muted, #555555);
    font-size: 15px;
    line-height: 1.65;
}

.site-footer-newsletter-form {
    display: flex;
    gap: 8px;
    width: min(100%, 505px);
}

    .site-footer-newsletter-form input[type="email"] {
        min-width: 0;
        flex: 1 1 auto;
        height: 50px;
        padding: 0 20px;
        border: 1px solid #dddddd;
        border-radius: 999px;
        background: #ffffff;
        color: #222222;
        font: inherit;
        outline: none;
    }

        .site-footer-newsletter-form input[type="email"]:focus {
            border-color: var(--footer-accent, var(--ec-accent));
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--footer-accent, var(--ec-accent)) 12%, transparent);
        }

    .site-footer-newsletter-form button {
        flex: 0 0 auto;
        min-width: 122px;
        height: 50px;
        padding: 0 24px;
        border: 0;
        border-radius: 999px;
        background: var(--footer-accent, var(--ec-accent));
        color: #ffffff;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }

        .site-footer-newsletter-form button:hover {
            filter: brightness(.94);
        }

.site-footer-newsletter-message {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
}

    .site-footer-newsletter-message.ok {
        color: #147a32;
    }

    .site-footer-newsletter-message.error {
        color: #a61d24;
    }

.site-footer-column h3 {
    margin: 3px 0 20px;
    color: var(--footer-text, #111111);
    font-size: 16px;
    line-height: 1.3;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

    .site-footer-links a {
        color: var(--footer-muted, #555555);
        font-size: 15px;
        line-height: 1.35;
        text-decoration: none;
    }

        .site-footer-links a:hover {
            color: var(--footer-text, #111111);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 43px;
}

    .site-footer-socials > a {
        width: 48px;
        height: 48px;
        border: 1px solid #dddddd;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        color: var(--footer-text, #111111);
        text-decoration: none;
        transition: border-color .16s ease, transform .16s ease, background .16s ease;
    }

        .site-footer-socials > a:hover {
            border-color: var(--footer-accent, var(--ec-accent));
            background: color-mix(in srgb, var(--footer-accent, var(--ec-accent)) 7%, transparent);
            transform: translateY(-2px);
        }

.site-footer-social-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

    .site-footer-social-glyph.social-instagram {
        font-size: 25px;
        font-weight: 500;
    }

    .site-footer-social-glyph.social-tiktok {
        font-size: 22px;
    }

    .site-footer-social-glyph.social-linkedin,
    .site-footer-social-glyph.social-whatsapp {
        font-size: 13px;
        letter-spacing: -.04em;
    }


@media (max-width: 1100px) {

    .site-footer-contact-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-contact-card {
        padding: 0 28px 27px;
    }

        .site-footer-contact-card:nth-child(odd) {
            padding-left: 0;
            border-left: 0;
        }

        .site-footer-contact-card:nth-child(n+3) {
            padding-top: 27px;
            border-top: 1px solid #eeeeee;
        }

    .site-footer-main {
        grid-template-columns: minmax(360px, 1.7fr) 1fr 1fr;
        gap: 45px;
    }

    .site-footer-categories {
        grid-column: 2 / -1;
    }
}


@media (max-width: 760px) {

    .site-footer {
        margin-top: 55px;
    }

    .site-footer-inner {
        width: calc(100% - 32px);
        padding-top: 24px;
    }

    .site-footer-contact-row {
        grid-template-columns: 1fr;
    }

    .site-footer-contact-card,
    .site-footer-contact-card:first-child,
    .site-footer-contact-card:nth-child(odd) {
        padding: 20px 0;
        border-left: 0;
        border-top: 1px solid #eeeeee;
    }

        .site-footer-contact-card:first-child {
            padding-top: 0;
            border-top: 0;
        }

    .site-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
        padding: 34px 0 30px;
    }

    .site-footer-newsletter {
        grid-column: 1 / -1;
    }

    .site-footer-categories {
        grid-column: 1 / -1;
    }

    .site-footer-socials {
        margin-top: 28px;
    }
}


@media (max-width: 520px) {

    .site-footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-footer-newsletter,
    .site-footer-categories {
        grid-column: auto;
    }

    .site-footer-newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

        .site-footer-newsletter-form button {
            width: 100%;
        }

    .site-footer-socials > a {
        width: 44px;
        height: 44px;
    }
}

.site-footer-hours-line {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px;
    align-items: baseline;
}

    .site-footer-hours-line + .site-footer-hours-line {
        margin-top: 2px;
    }

    .site-footer-hours-line.single {
        grid-template-columns: 1fr;
    }

/* ================================================================
   FRAMES ECOMMERCE - PROFESSIONAL HOMEPAGE EXPERIENCE
   ================================================================ */

.home-hero-slider {
    position: relative;
    width: min(1500px, calc(100% - 48px));
    min-height: clamp(360px, 42vw, 650px);
    margin: 24px auto 64px;
    overflow: hidden;
    border-radius: clamp(18px, 2vw, 30px);
    background: #f4f4f4;
    box-shadow: 0 24px 60px rgba(0,0,0,.08);
}

.home-hero-slide {
    position: absolute;
    color: #ffffff;
    inset: 0;
    display: grid;
    min-height: inherit;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    transition: opacity .45s ease, transform .7s ease, visibility .45s ease;
}

.home-hero-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    z-index: 2;
}

.home-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.home-hero-media img,
.home-hero-media picture,
.home-hero-media video {
    display: block;
    width: 100%;
    height: 100%;
}

.home-hero-media img,
.home-hero-media video {
    object-fit: cover;
}

.home-hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.52) 0%, rgba(0,0,0,.14) 48%, rgba(0,0,0,.02) 78%);
}

.home-hero-content {
    position: relative;
    z-index: 3;
    align-self: center;
    width: min(620px, 48%);
    margin: clamp(36px, 7vw, 100px);
}

.home-hero-content h1 {
    margin: 8px 0 14px;
    font-size: clamp(38px, 5.2vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}

.home-hero-content p {
    max-width: 560px;
    margin: 0 0 24px;
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.55;
    opacity: .92;
}

.home-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-hero-button {
    min-width: 132px;
    justify-content: center;
}

.home-hero-slide.align-center .home-hero-content {
    width: min(780px, 72%);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-hero-slide.align-center .home-hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.home-hero-slide.align-right .home-hero-content {
    margin-left: auto;
    text-align: right;
}

.home-hero-slide.align-right .home-hero-content p {
    margin-left: auto;
}

.home-hero-slider.layout-split .home-hero-slide {
    grid-template-columns: 1fr 1fr;
    background: inherit;
    color: var(--ec-text);
}

.home-hero-slider.layout-split .home-hero-slide::after {
    display: none;
}

.home-hero-slider.layout-split .home-hero-media {
    position: relative;
    grid-column: 2;
    grid-row: 1;
}

.home-hero-slider.layout-split .home-hero-content {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    margin: clamp(40px, 5vw, 84px);
    align-self: center;
}

.home-hero-slider.layout-image-only .home-hero-slide::after,
.home-hero-slider.layout-image-only .home-hero-content:empty {
    display: none;
}

.home-hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    background: rgba(255,255,255,.92);
    color: #111;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    cursor: pointer;
    font-size: 22px;
    transition: transform .18s ease, background .18s ease;
}

.home-hero-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    background: #fff;
}

.home-hero-prev { left: 20px; }
.home-hero-next { right: 20px; }

.home-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 9;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.home-hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.58);
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}

.home-hero-dot.active {
    width: 28px;
    background: #fff;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.home-section-head h2 {
    margin: 5px 0 6px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.home-section-head p {
    max-width: 720px;
    margin: 0;
    color: var(--ec-muted);
    line-height: 1.55;
}

.home-section-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ec-text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.home-section-link span {
    font-size: 21px;
    line-height: 1;
}

.home-product-section {
    position: relative;
    margin-top: 58px;
    margin-bottom: 68px;
}

.home-product-rail {
    position: relative;
}

.home-product-section.layout-rail .product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    grid-template-columns: none;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 2px 14px;
}

.home-product-section.layout-rail .product-grid::-webkit-scrollbar {
    display: none;
}

.home-product-section.layout-rail .product-card {
    scroll-snap-align: start;
    min-width: 0;
}

.home-product-section.layout-grid .product-grid {
    grid-template-columns: repeat(4, minmax(0,1fr));
}

.home-rail-arrow {
    position: absolute;
    top: 42%;
    z-index: 9;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #111;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    cursor: pointer;
    font-size: 19px;
}

.home-rail-prev { left: -18px; }
.home-rail-next { right: -18px; }

.home-rail-arrow[disabled] {
    opacity: .25;
    cursor: default;
}

.home-flash-sale {
    padding-top: 30px;
    padding-bottom: 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,245,245,.95), rgba(255,255,255,1));
}

.home-flash-sale .home-section-head,
.home-flash-sale .home-product-rail,
.home-flash-sale .home-mini-countdown {
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}

.home-mini-countdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: -8px 0 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 11px;
}

.home-mini-countdown strong {
    letter-spacing: .08em;
}

.home-countdown-panel {
    position: relative;
    width: min(1500px, calc(100% - 48px));
    margin: 58px auto 70px;
    min-height: 150px;
    overflow: hidden;
    border-radius: 22px;
    background: #eef9fa;
    color: #111;
}

.home-countdown-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.home-countdown-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(250px,1fr) auto minmax(180px,.65fr);
    gap: 34px;
    align-items: center;
    min-height: 150px;
    padding: 26px 42px;
}

.home-countdown-copy {
    padding-left: 18px;
    border-left: 1px solid currentColor;
}

.home-countdown-copy span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
}

.home-countdown-copy h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -.035em;
}

.home-countdown-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.home-countdown-clock > div {
    display: grid;
    min-width: 54px;
    text-align: center;
}

.home-countdown-clock strong {
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.home-countdown-clock small {
    margin-top: 6px;
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .65;
}

.home-countdown-clock > span {
    align-self: flex-start;
    margin-top: 3px;
    font-size: 28px;
    font-weight: 800;
}

.home-countdown-button {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.home-media-story {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr);
    width: min(1500px, calc(100% - 48px));
    margin: 64px auto 76px;
    overflow: hidden;
    border-radius: 28px;
    background: #f5f5f5;
    color: var(--ec-text);
}

.home-media-story.layout-media-right {
    grid-template-columns: minmax(340px,.85fr) minmax(0,1.15fr);
}

.home-media-story.layout-media-right .home-media-story-visual { order: 2; }
.home-media-story.layout-media-right .home-media-story-copy { order: 1; }

.home-media-story-visual {
    min-height: clamp(360px, 40vw, 620px);
}

.home-media-story-visual img,
.home-media-story-visual picture,
.home-media-story-visual video {
    display: block;
    width: 100%;
    height: 100%;
}

.home-media-story-visual img,
.home-media-story-visual video {
    object-fit: cover;
}

.home-media-story-copy {
    align-self: center;
    padding: clamp(34px, 5vw, 78px);
}

.home-media-story-copy h2 {
    margin: 7px 0 14px;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.home-media-story-copy p {
    margin: 0 0 22px;
    line-height: 1.7;
    opacity: .78;
}

.home-media-story.layout-full-bleed {
    position: relative;
    display: block;
    min-height: clamp(430px, 50vw, 720px);
    color: #fff;
}

.home-media-story.layout-full-bleed .home-media-story-visual {
    position: absolute;
    inset: 0;
    min-height: 100%;
}

.home-media-story.layout-full-bleed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.12));
}

.home-media-story.layout-full-bleed .home-media-story-copy {
    position: relative;
    z-index: 2;
    width: min(620px, 58%);
}

.home-media-story.layout-text-only {
    grid-template-columns: 1fr;
    text-align: center;
}

.home-media-story.layout-text-only .home-media-story-copy {
    max-width: 850px;
    margin: auto;
}

.home-category-grid-section {
    margin-top: 58px;
    margin-bottom: 70px;
}

.home-category-grid .category-card {
    overflow: hidden;
    border-radius: 18px;
}

.home-text-section {
    max-width: 920px;
    text-align: center;
}

@media (max-width: 1100px) {
    .home-product-section.layout-grid .product-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .home-countdown-content {
        grid-template-columns: 1fr auto;
    }

    .home-countdown-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 850px) {
    .home-hero-slider {
        width: calc(100% - 28px);
        min-height: 520px;
        margin-top: 14px;
        margin-bottom: 48px;
    }

    .home-hero-content,
    .home-hero-slide.align-center .home-hero-content,
    .home-hero-slide.align-right .home-hero-content {
        width: auto;
        margin: 34px 34px 56px;
        align-self: end;
        text-align: left;
    }

    .home-hero-content p,
    .home-hero-slide.align-center .home-hero-content p,
    .home-hero-slide.align-right .home-hero-content p {
        margin-left: 0;
        margin-right: 0;
    }

    .home-hero-slide::after {
        background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.08) 72%);
    }

    .home-hero-slider.layout-split .home-hero-slide {
        grid-template-columns: 1fr;
    }

    .home-hero-slider.layout-split .home-hero-media {
        grid-column: 1;
        grid-row: 1;
        position: absolute;
        inset: 0;
    }

    .home-hero-slider.layout-split .home-hero-content {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 2;
        align-self: end;
    }

    .home-hero-slider.layout-split .home-hero-slide::after {
        display: block;
        background: linear-gradient(0deg, rgba(0,0,0,.58), rgba(0,0,0,.05));
    }

    .home-product-section.layout-rail .product-grid {
        grid-auto-columns: minmax(215px, 72vw);
    }

    .home-product-section.layout-grid .product-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .home-rail-arrow {
        display: none;
    }

    .home-countdown-panel,
    .home-media-story {
        width: calc(100% - 28px);
    }

    .home-countdown-content {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 28px;
    }

    .home-countdown-clock {
        justify-content: flex-start;
    }

    .home-countdown-button {
        justify-self: start;
    }

    .home-media-story,
    .home-media-story.layout-media-right {
        grid-template-columns: 1fr;
    }

    .home-media-story.layout-media-right .home-media-story-visual,
    .home-media-story.layout-media-right .home-media-story-copy {
        order: initial;
    }

    .home-media-story-visual {
        min-height: 330px;
    }

    .home-media-story.layout-full-bleed .home-media-story-copy {
        width: auto;
    }
}

@media (max-width: 560px) {
    .home-hero-prev { left: 10px; }
    .home-hero-next { right: 10px; }
    .home-hero-arrow { width: 42px; height: 42px; }

    .home-section-head {
        align-items: flex-start;
    }

    .home-section-link {
        margin-top: 7px;
    }

    .home-product-section.layout-grid .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .home-countdown-clock {
        gap: 6px;
    }

    .home-countdown-clock > div {
        min-width: 46px;
    }

    .home-countdown-copy {
        padding-left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-slide,
    .home-hero-arrow,
    .home-hero-dot {
        transition: none !important;
    }

    .home-product-section .product-grid {
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   HOMEPAGE PRODUCT PANEL PRESENTATION
   Per-section controls from Home Builder.
   Scoped to homepage product sections only.
   ========================================================= */

.home-product-section {
    --home-product-card-width: 205px;
    --home-product-card-radius: var(--ec-card-radius);
}

/* Card sizes */
.home-product-section.product-size-compact {
    --home-product-card-width: 170px;
}

.home-product-section.product-size-small {
    --home-product-card-width: 205px;
}

.home-product-section.product-size-standard {
    --home-product-card-width: 245px;
}

.home-product-section.product-size-large {
    --home-product-card-width: 300px;
}

/* Keep rail cards at the exact selected width.
   This prevents 2-3 products from stretching across the full row. */
.home-product-section.layout-rail .product-grid {
    grid-auto-columns: var(--home-product-card-width);
}

/* Grid layout also respects the selected presentation size. */
.home-product-section.layout-grid .product-grid {
    grid-template-columns: repeat(
        auto-fill,
        minmax(
            min(100%, var(--home-product-card-width)),
            var(--home-product-card-width)
        )
    );
    justify-content: start;
}

/* Per-panel card shapes */
.home-product-section.product-shape-default .product-card {
    border-radius: var(--ec-card-radius);
}

.home-product-section.product-shape-square .product-card {
    border-radius: 0;
}

.home-product-section.product-shape-soft-rounded .product-card {
    border-radius: 12px;
}

.home-product-section.product-shape-rounded .product-card {
    border-radius: 28px;
}

.home-product-section.product-shape-opposite-rounded .product-card {
    border-radius: 30px 5px 30px 5px;
}

/* Compact/small panels should feel intentionally lighter. */
.home-product-section.product-size-compact .product-info {
    padding: 11px 12px 12px;
}

.home-product-section.product-size-small .product-info {
    padding: 13px 14px 14px;
}

.home-product-section.product-size-compact .product-info h3 {
    margin: 5px 0 8px;
    font-size: 14px;
}

.home-product-section.product-size-small .product-info h3 {
    margin: 6px 0 9px;
    font-size: 15px;
}

.home-product-section.product-size-compact .product-info .eyebrow,
.home-product-section.product-size-small .product-info .eyebrow {
    font-size: 10px;
}

.home-product-section.product-size-compact .price-row,
.home-product-section.product-size-small .price-row {
    font-size: 13px;
}

.home-product-section.product-size-compact .quick-cart .btn {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 12px;
}

.home-product-section.product-size-small .quick-cart .btn {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 12px;
}

/* Scale the Quick View icon with smaller homepage cards only. */
.home-product-section.product-size-compact .product-quick-view {
    width: 34px;
    height: 34px;
    top: 9px;
    right: 9px;
}

.home-product-section.product-size-compact .product-quick-view svg {
    width: 17px;
    height: 17px;
}

.home-product-section.product-size-small .product-quick-view {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
}

.home-product-section.product-size-small .product-quick-view svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 720px) {
    .home-product-section.product-size-compact {
        --home-product-card-width: 158px;
    }

    .home-product-section.product-size-small {
        --home-product-card-width: 182px;
    }

    .home-product-section.product-size-standard {
        --home-product-card-width: 215px;
    }

    .home-product-section.product-size-large {
        --home-product-card-width: 250px;
    }
}

/* =========================================================
   CUSTOMER ACCOUNT / AUTHENTICATION
   ========================================================= */

.customer-auth-page,
.customer-account-page,
.customer-simple-auth {
    max-width: 1240px;
    margin: 34px auto 84px;
    padding: 0 28px;
}

.customer-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, .72fr);
    gap: 64px;
    align-items: center;
}

.customer-auth-intro {
    padding: 34px 8px 34px 0;
}

.customer-auth-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ec-muted);
}

.customer-auth-intro h1,
.customer-account-heading h1,
.customer-simple-card h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -.045em;
}

.customer-auth-intro > p,
.customer-account-heading p,
.customer-simple-card > p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--ec-muted);
    line-height: 1.65;
}

.customer-auth-benefits {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

.customer-auth-benefits > div {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
}

.customer-auth-benefits > div > span {
    grid-row: 1 / 3;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ec-primary) 9%, #fff);
    color: var(--ec-primary);
    font-weight: 900;
}

.customer-auth-benefits strong {
    font-size: 14px;
}

.customer-auth-benefits small {
    color: var(--ec-muted);
    line-height: 1.4;
}

.customer-auth-card,
.customer-simple-card {
    border: 1px solid #e7e7e7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0,0,0,.07);
    padding: 28px;
}

.customer-simple-card {
    width: min(520px, 100%);
    margin: 0 auto;
}

.customer-center {
    text-align: center;
}

.customer-google-button {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    color: #1f1f1f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.customer-google-button:hover {
    border-color: #bbb;
    box-shadow: 0 7px 22px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.customer-google-button svg {
    width: 20px;
    height: 20px;
}

.customer-auth-divider {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 22px 0;
    color: var(--ec-muted);
    font-size: 11px;
}

.customer-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e7e7e7;
}

.customer-auth-divider span {
    position: relative;
    padding: 0 12px;
    background: #fff;
}

.customer-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 4px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #f3f3f3;
}

.customer-auth-tabs button {
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--ec-muted);
}

.customer-auth-tabs button.active {
    background: #fff;
    color: var(--ec-text);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.customer-auth-panel {
    display: none;
}

.customer-auth-panel.active {
    display: block;
}

.customer-auth-panel form,
.customer-profile-form,
.customer-simple-card form {
    display: grid;
    gap: 14px;
}

.customer-field {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
}

.customer-field > span {
    display: flex;
    gap: 5px;
    align-items: center;
}

.customer-field em {
    font-style: normal;
    font-weight: 400;
    color: var(--ec-muted);
}

.customer-field input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 11px;
    background: #fff;
    color: var(--ec-text);
    padding: 13px 14px;
    outline: none;
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.customer-field input:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ec-primary) 11%, transparent);
}

.customer-field input:disabled {
    background: #f6f6f6;
    color: #777;
}

.customer-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.customer-password-wrap {
    position: relative;
}

.customer-password-wrap input {
    padding-right: 66px;
}

.customer-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--ec-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.customer-password-meter {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee;
}

.customer-password-meter i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--ec-primary);
    transition: width .18s ease;
}

.customer-password-help,
.customer-auth-terms {
    color: var(--ec-muted);
    font-size: 11px;
    line-height: 1.5;
}

.customer-auth-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    font-size: 12px;
}

.customer-auth-row a,
.customer-back-link,
.customer-account-card a,
.customer-account-heading a,
.customer-order-lookup a {
    color: inherit;
}

.customer-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ec-muted);
    font-size: 12px;
    cursor: pointer;
}

.customer-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--ec-primary);
}

.customer-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 2px;
}

.customer-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 12px;
    line-height: 1.5;
}

.customer-notice.ok {
    border: 1px solid #b9dfc8;
    background: #f2fbf5;
    color: #17653a;
}

.customer-notice.error {
    border: 1px solid #efbcbc;
    background: #fff5f5;
    color: #8e1d1d;
}

.customer-order-lookup {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(360px,.72fr);
    gap: 44px;
    max-width: 1240px;
    margin: 58px auto 0;
    padding-top: 34px;
    border-top: 1px solid #e7e7e7;
}

.customer-order-lookup h2 {
    margin: 4px 0 9px;
    font-size: 24px;
    letter-spacing: -.025em;
}

.customer-order-lookup p {
    margin: 0;
    color: var(--ec-muted);
}

.customer-order-lookup form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.customer-lookup-result {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    padding: 16px;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    background: #fff;
}

.customer-lookup-result > div {
    display: grid;
    gap: 4px;
}

.customer-lookup-result span {
    color: var(--ec-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.customer-account-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.customer-link-button {
    border: 0;
    background: transparent;
    color: var(--ec-text);
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
    font-size: 12px;
}

.customer-verify-banner {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 17px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--ec-accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--ec-accent) 26%, #ddd);
}

.customer-verify-banner > div {
    display: grid;
    gap: 3px;
}

.customer-verify-banner span {
    color: var(--ec-muted);
    font-size: 12px;
}

.customer-verify-banner button {
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: var(--ec-text);
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
}

.customer-account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
    align-items: start;
}

.customer-account-card,
.customer-orders-card {
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fff;
    padding: 20px;
}

.customer-account-card p {
    color: var(--ec-muted);
    line-height: 1.55;
    font-size: 13px;
}

.customer-account-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 16px;
}

.customer-account-card-head > div {
    display: grid;
    gap: 4px;
}

.customer-account-card-head span {
    color: var(--ec-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 9px;
    font-weight: 800;
}

.customer-account-card-head h2 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -.02em;
}

.customer-account-card-head a {
    font-size: 12px;
}

.customer-status {
    padding: 5px 8px;
    border-radius: 999px;
    background: #f1f1f1;
    color: #666;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.customer-status.verified {
    background: #eaf8ef;
    color: #19703f;
}

.customer-mini-cart {
    display: grid;
    gap: 9px;
}

.customer-mini-cart > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
}

.customer-mini-cart span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-orders-card {
    margin-top: 18px;
}

.customer-order-list {
    display: grid;
}

.customer-order-row {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.8fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.customer-order-row:first-child {
    border-top: 0;
}

.customer-order-row > div {
    display: grid;
    gap: 3px;
}

.customer-order-row small {
    color: var(--ec-muted);
    font-size: 11px;
}

.customer-empty-orders {
    padding: 26px 0 8px;
    text-align: center;
}

.customer-success-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf8ef;
    color: #19703f;
    font-size: 26px;
    font-weight: 900;
}

.customer-back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 12px;
}

.customer-auth-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto 18px;
    border: 3px solid #e6e6e6;
    border-top-color: var(--ec-primary);
    border-radius: 50%;
    animation: customerAuthSpin .75s linear infinite;
}

@keyframes customerAuthSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
    .customer-auth-shell {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .customer-auth-intro {
        padding: 0;
    }

    .customer-account-grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-order-lookup {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .customer-auth-page,
    .customer-account-page,
    .customer-simple-auth {
        margin-top: 18px;
        padding: 0 16px;
    }

    .customer-auth-card,
    .customer-simple-card {
        padding: 20px;
        border-radius: 18px;
    }

    .customer-auth-intro h1,
    .customer-account-heading h1,
    .customer-simple-card h1 {
        font-size: 38px;
    }

    .customer-two,
    .customer-account-grid,
    .customer-order-lookup form,
    .customer-lookup-result {
        grid-template-columns: 1fr;
    }

    .customer-account-heading,
    .customer-verify-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-order-row {
        grid-template-columns: 1fr auto;
    }

    .customer-order-row > div:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


/* =========================================================
   CUSTOMER WISHLIST
   Account-only saved products.
   ========================================================= */

.wishlist-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: var(--ec-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.product-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0 30px;
}

.product-action-row .add-form {
    margin: 0;
}

.product-wishlist-form {
    margin: 0;
}

.wishlist-button {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #dedede;
    background: #fff;
    color: var(--ec-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.wishlist-button:hover {
    border-color: var(--ec-primary);
    color: var(--ec-primary);
}

.wishlist-button.saved {
    border-color: #d8c7cc;
    background: #fff8fa;
    color: var(--ec-primary);
}

.wishlist-heart {
    font-size: 22px;
    line-height: 1;
}

.product-wishlist-notice {
    margin: 14px 0 0;
    padding: 11px 13px;
    border-radius: 12px;
    background: #effaf2;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
}

.product-wishlist-notice.muted {
    background: #f7f7f7;
    color: var(--ec-muted);
}

.wishlist-page {
    width: min(1280px, calc(100% - 56px));
    margin: 46px auto 90px;
}

.wishlist-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.wishlist-heading h1 {
    margin: 6px 0 8px;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.045em;
    line-height: 1;
}

.wishlist-heading p {
    margin: 0;
    max-width: 680px;
    color: var(--ec-muted);
}

.wishlist-heading .wishlist-count {
    min-width: auto;
    height: auto;
    padding: 10px 14px;
    background: #f5f5f5;
    color: var(--ec-text);
    font-size: 12px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wishlist-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #ececec;
    border-radius: var(--ec-card-radius);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.035);
}

.wishlist-card-media {
    position: relative;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    background: #f7f7f7;
}

.wishlist-card-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.wishlist-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.wishlist-card:hover .wishlist-card-media img {
    transform: scale(1.025);
}

.wishlist-card-body {
    padding: 16px;
}

.wishlist-card-body h2 {
    margin: 6px 0 10px;
    font-size: 17px;
    line-height: 1.25;
}

.wishlist-card-body h2 a {
    color: inherit;
    text-decoration: none;
}

.wishlist-price {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
}

.wishlist-price del {
    color: var(--ec-muted);
    font-size: 12px;
}

.wishlist-stock {
    display: inline-flex;
    margin: 4px 0 14px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.wishlist-stock.in {
    background: #ecfdf3;
    color: #166534;
}

.wishlist-stock.out {
    background: #fef2f2;
    color: #991b1b;
}

.wishlist-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    align-items: center;
    margin-top: 10px;
}

.wishlist-card-actions form:first-child .btn {
    width: 100%;
}

.wishlist-remove-button {
    border: 0;
    background: transparent;
    color: var(--ec-muted);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.wishlist-empty {
    display: grid;
    justify-items: center;
    padding: 75px 25px;
    border: 1px dashed #d9d9d9;
    border-radius: var(--ec-card-radius);
    background: #fff;
    text-align: center;
}

.wishlist-empty-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff4f7;
    color: var(--ec-primary);
    font-size: 38px;
}

.wishlist-empty h2 {
    margin: 0 0 8px;
}

.wishlist-empty p {
    max-width: 520px;
    margin: 0 0 20px;
    color: var(--ec-muted);
}

.customer-wishlist-card {
    background: linear-gradient(145deg, #fff, #fff9fb);
}

.customer-wishlist-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--ec-text);
    font-weight: 800;
    text-decoration: none;
}

@media(max-width:1050px) {
    .wishlist-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width:760px) {
    .wishlist-page {
        width: min(100% - 32px, 1280px);
        margin-top: 28px;
    }

    .wishlist-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-action-row {
        grid-template-columns: 1fr;
    }

    .product-wishlist-form .wishlist-button {
        width: 100%;
    }
}

@media(max-width:430px) {
    .wishlist-card-body {
        padding: 12px;
    }

    .wishlist-card-body h2 {
        font-size: 14px;
    }

    .wishlist-card-actions {
        grid-template-columns: 1fr;
    }

    .wishlist-remove-button {
        width: 100%;
        padding: 5px 0;
    }
}


/* =========================================================
   HEADER EXPERIENCE + VISUAL SEARCH
   Theme-aware: primary color and button radius come from
   the existing storefront CSS variables.
   ========================================================= */

.announcement {
    min-height: 38px;
    padding: 6px 18px;
    background: var(--ec-primary);
    color: #fff;
}

.announcement-inner {
    width: min(1515px, calc(100% - 48px));
    min-height: 26px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 750;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 9px;
    border-radius: var(--ec-button-radius);
    background: #fff;
    color: var(--ec-primary);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.announcement-message {
    line-height: 1.25;
}

.announcement-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.header-inner {
    grid-template-columns: minmax(280px, 1fr) minmax(440px, 700px) minmax(280px, 1fr);
}

.searchbar {
    position: relative;
    max-width: 700px;
}

.visual-search-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    align-self: center;
    display: grid;
    place-items: center;
    border: 0;
    border-left: 1px solid #e7e7e7;
    background: transparent;
    color: var(--ec-muted);
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.visual-search-button:hover {
    background: #fff;
    color: var(--ec-primary);
}

.visual-search-button svg {
    width: 21px;
    height: 21px;
}

.visual-search-upload-form {
    display: none;
}

.searchbar .search-submit {
    min-width: 92px;
}

.head-action {
    position: relative;
}

.head-action-icon {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    color: currentColor;
}

.head-action-icon svg {
    width: 22px;
    height: 22px;
}

.head-action-label {
    line-height: 1.15;
}

.head-actions .wishlist-count,
.head-actions .cart-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 10px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Photo-search page */

.visual-search-page {
    width: min(1280px, calc(100% - 56px));
    margin: 44px auto 88px;
}

.visual-search-intro {
    max-width: 760px;
    margin-bottom: 22px;
}

.visual-search-intro h1 {
    margin: 7px 0 10px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.045em;
}

.visual-search-intro p {
    margin: 0;
    color: var(--ec-muted);
    font-size: 16px;
}

.visual-search-card {
    max-width: 760px;
    padding: 18px;
    display: grid;
    gap: 12px;
    border: 1px solid #e8e8e8;
    border-radius: var(--ec-card-radius);
    background: #fff;
    box-shadow: 0 16px 44px rgba(0,0,0,.045);
}

.visual-search-drop {
    min-height: 170px;
    padding: 26px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1.5px dashed #d6d6d6;
    border-radius: max(12px, calc(var(--ec-card-radius) - 4px));
    background: #fafafa;
    text-align: center;
    cursor: pointer;
}

.visual-search-drop:hover {
    border-color: var(--ec-primary);
    background: #fff;
}

.visual-search-drop-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 3px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ec-primary);
    color: #fff;
}

.visual-search-drop-icon svg {
    width: 27px;
    height: 27px;
}

.visual-search-drop strong {
    font-size: 16px;
}

.visual-search-drop > span:not(.visual-search-drop-icon) {
    color: var(--ec-muted);
    font-size: 12px;
}

.visual-search-drop input[type="file"] {
    width: min(100%, 360px);
    margin-top: 8px;
    font-size: 12px;
}

.visual-search-card small {
    color: var(--ec-muted);
    font-size: 11px;
    text-align: center;
}

.visual-search-message {
    max-width: 760px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
}

.visual-search-message.error {
    background: #fff1f2;
    color: #9f1239;
}

.visual-search-results-head {
    margin: 46px 0 20px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.visual-search-results-head h2 {
    margin: 5px 0 3px;
    font-size: 32px;
}

.visual-search-results-head p {
    margin: 0;
    color: var(--ec-muted);
}

.visual-search-results-head > span {
    padding: 7px 10px;
    border-radius: var(--ec-button-radius);
    background: #f3f3f3;
    color: var(--ec-muted);
    font-size: 11px;
    font-weight: 800;
}

.visual-search-empty {
    margin-top: 14px;
}


@media (max-width: 1180px) {
    .header-inner {
        grid-template-columns: minmax(220px, 1fr) minmax(360px, 600px) minmax(220px, 1fr);
        column-gap: 20px;
    }

    .head-actions {
        gap: 14px;
    }

    .head-action-label {
        font-size: 12px;
    }
}


@media (max-width: 1050px) {
    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .searchbar {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: 720px;
        justify-self: center;
    }

    .head-actions {
        grid-column: 2;
        grid-row: 1;
    }
}


@media (max-width: 720px) {
    .announcement-inner {
        width: 100%;
        gap: 7px;
        flex-wrap: wrap;
        font-size: 11px;
    }

    .announcement-badge {
        min-height: 20px;
        font-size: 9px;
    }

    .head-action-label {
        display: none;
    }

    .head-actions {
        gap: 9px;
    }

    .head-action-icon {
        width: 25px;
        height: 25px;
    }

    .visual-search-button {
        width: 42px;
        min-width: 42px;
        height: 42px;
    }

    .searchbar .search-submit {
        min-width: 74px;
    }

    .visual-search-page {
        width: calc(100% - 32px);
        margin-top: 28px;
    }

    .visual-search-results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   CATEGORY MEGA MENU + SHOP/CATEGORY BROWSING UPGRADE
   2026-09-28
   ========================================================= */

.category-nav {
    position: relative;
    overflow: visible;
}

.category-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ec-text);
    font-weight: 800;
    text-decoration: none;
}

.category-home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.category-home-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.category-home-link:hover,
.category-home-link:focus-visible {
    color: var(--ec-primary);
}

.all-categories-menu {
    position: static;
    display: inline-flex;
    align-items: center;
}

.all-categories-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ec-text);
    font-weight: 800;
}

.all-categories-trigger svg {
    width: 16px;
    height: 16px;
    transition: transform .18s ease;
}

.all-categories-menu:hover .all-categories-trigger,
.all-categories-menu.open .all-categories-trigger,
.all-categories-trigger:focus-visible {
    color: var(--ec-primary);
}

.all-categories-menu:hover .all-categories-trigger svg,
.all-categories-menu.open .all-categories-trigger svg {
    transform: rotate(180deg);
}

.all-categories-mega {
    position: absolute;
    z-index: 95;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    min-height: 420px;
    padding: 16px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    white-space: normal;
}

.all-categories-menu:hover .all-categories-mega,
.all-categories-menu.open .all-categories-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.mega-parent-list {
    min-width: 0;
    padding: 3px 14px 58px 0;
    border-right: 1px solid #ededed;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mega-parent-item {
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    color: var(--ec-text);
    text-align: left;
    font-size: 14px;
    font-weight: 750;
}

.mega-parent-item:hover,
.mega-parent-item.active,
.mega-parent-item:focus-visible {
    background: #f6f6f6;
    color: var(--ec-primary);
}

.mega-parent-arrow {
    font-size: 21px;
    line-height: 1;
}

.mega-child-area {
    min-width: 0;
    padding: 5px 4px 8px 24px;
}

.mega-child-panel {
    display: none;
}

.mega-child-panel.active {
    display: block;
}

.mega-child-heading {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.mega-child-heading h3 {
    margin: 2px 0 0;
    font-size: 22px;
}

.mega-child-heading > a {
    color: var(--ec-primary);
    font-size: 13px;
    font-weight: 800;
}

.mega-child-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mega-child-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.mega-child-card img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    border-radius: 10px;
    object-fit: cover;
    background: #f5f5f5;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mega-child-card:hover {
    color: var(--ec-primary);
}

.mega-child-card:hover img {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.mega-shop-all {
    position: absolute;
    left: 26px;
    bottom: 20px;
    color: var(--ec-primary);
    font-size: 13px;
    font-weight: 850;
}

.shop-page-hero,
.category-page-hero {
    margin-bottom: 24px;
}

.shop-section-heading {
    margin: 0 0 18px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.shop-section-heading h2 {
    margin: 2px 0 0;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.1;
}

.shop-section-link {
    color: var(--ec-primary);
    font-size: 13px;
    font-weight: 800;
}

.shop-category-section {
    margin-top: 24px;
    margin-bottom: 50px;
}

.shop-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

.shop-category-card {
    min-height: 175px;
    padding: 18px 12px 16px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: background .18s ease, color .18s ease;
}

.shop-category-card:nth-child(6n) {
    border-right: 0;
}

.shop-category-card:hover {
    background: #fafafa;
    color: var(--ec-primary);
}

.shop-category-image-wrap {
    width: 102px;
    height: 102px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
}

.shop-category-image-wrap img {
    width: 100%;
    height: 100%;
}

.shop-category-image-wrap img.fit-cover,
.category-child-image img.fit-cover {
    object-fit: cover;
}

.shop-category-image-wrap img.fit-contain,
.category-child-image img.fit-contain {
    object-fit: contain;
    padding: 9px;
}

.shop-category-card strong {
    font-size: 14px;
    line-height: 1.25;
}

.shop-popular-section {
    margin-bottom: 54px;
}

.shop-popular-products .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.shop-popular-products .product-info {
    padding: 13px;
}

.shop-popular-products .product-info h3 {
    font-size: 14px;
}

.shop-product-count,
.category-result-summary span {
    color: var(--ec-muted);
    font-size: 13px;
}

.shop-all-products {
    padding-top: 8px;
}

.category-child-section {
    margin-top: 10px;
    margin-bottom: 30px;
}

.category-child-strip {
    padding: 2px 0 10px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-child-card {
    width: 118px;
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.category-child-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #f5f5f5;
    border: 1px solid #ededed;
}

.category-child-image img {
    width: 100%;
    height: 100%;
}

.category-child-card strong {
    max-width: 118px;
    font-size: 13px;
    line-height: 1.2;
}

.category-child-card small {
    color: var(--ec-muted);
    font-size: 11px;
}

.category-child-card:hover strong {
    color: var(--ec-primary);
}

.category-catalog-section {
    margin-top: 12px;
}

.category-toolbar {
    min-height: 48px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    border-bottom: 1px solid #ededed;
}

.category-result-summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.category-filter-toggle {
    display: none;
}

.category-catalog-layout {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.category-filter-sidebar {
    position: sticky;
    top: 190px;
    min-width: 0;
}

.category-filter-title {
    padding: 0 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
    font-size: 17px;
}

.category-filter-close {
    display: none;
}

.filter-group {
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #e8e8e8;
}

.filter-group legend {
    width: 100%;
    margin-bottom: 11px;
    padding: 0;
    font-size: 14px;
    font-weight: 850;
}

.filter-check {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ec-text);
    font-size: 13px;
    cursor: pointer;
}

.filter-check > span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ec-primary);
}

.filter-check b {
    color: var(--ec-muted);
    font-size: 12px;
    font-weight: 650;
}

.filter-actions {
    padding-top: 18px;
    display: grid;
    gap: 10px;
}

.filter-actions .btn {
    width: 100%;
}

.filter-actions > a {
    text-align: center;
    color: var(--ec-muted);
    font-size: 13px;
    font-weight: 750;
}

.category-product-results {
    min-width: 0;
}

.category-product-results .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1280px) {
    .mega-child-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shop-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-category-card:nth-child(6n) {
        border-right: 1px solid #e8e8e8;
    }

    .shop-category-card:nth-child(4n) {
        border-right: 0;
    }

    .shop-popular-products .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .category-product-results .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .all-categories-mega {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .mega-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-catalog-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .category-product-results .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .category-nav {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow: visible;
    }

    .all-categories-mega {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: 72vh;
        min-height: 0;
        padding: 10px;
        grid-template-columns: 1fr;
        overflow: auto;
        border-radius: 12px;
    }

    .mega-parent-list {
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid #ededed;
        flex-direction: row;
        overflow-x: auto;
    }

    .mega-parent-item {
        width: auto;
        min-width: max-content;
        min-height: 38px;
        padding: 8px 11px;
    }

    .mega-parent-arrow {
        display: none;
    }

    .mega-child-area {
        padding: 13px 0 0;
    }

    .mega-child-heading {
        align-items: flex-start;
    }

    .mega-child-heading h3 {
        font-size: 19px;
    }

    .mega-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mega-shop-all {
        position: static;
        grid-column: 1;
        margin: 12px 2px 4px;
        display: inline-block;
    }

    .shop-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-category-card,
    .shop-category-card:nth-child(4n),
    .shop-category-card:nth-child(6n) {
        border-right: 1px solid #e8e8e8;
    }

    .shop-category-card:nth-child(2n) {
        border-right: 0;
    }

    .shop-category-image-wrap {
        width: 88px;
        height: 88px;
    }

    .shop-popular-products .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-toolbar {
        justify-content: space-between;
    }

    .category-filter-toggle {
        min-height: 38px;
        padding: 8px 13px;
        border: 1px solid #dedede;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fff;
        font-weight: 800;
    }

    .category-filter-toggle span {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        display: inline-grid;
        place-items: center;
        background: var(--ec-primary);
        color: #fff;
        font-size: 11px;
    }

    .category-catalog-layout {
        display: block;
    }

    .category-filter-sidebar {
        position: fixed;
        z-index: 10020;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 88vw);
        padding: 22px;
        overflow: auto;
        background: #fff;
        box-shadow: -18px 0 50px rgba(0, 0, 0, .18);
        transform: translateX(105%);
        transition: transform .2s ease;
    }

    body.category-filter-open::before {
        content: "";
        position: fixed;
        z-index: 10010;
        inset: 0;
        background: rgba(0, 0, 0, .42);
    }

    body.category-filter-open .category-filter-sidebar {
        transform: none;
    }

    body.category-filter-open {
        overflow: hidden;
    }

    .category-filter-close {
        width: 34px;
        height: 34px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #f3f3f3;
    }

    .category-product-results .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* =========================================================
   PWA INSTALL CTA / DEVICE INSTRUCTIONS
   ========================================================= */

.site-footer-install {
    width: min(100%, 505px);
    margin-top: 20px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #e3e3e3;
    border-radius: 16px;
    background: color-mix(in srgb, var(--footer-accent, var(--ec-accent)) 4%, var(--footer-bg, #ffffff));
}

.site-footer-install-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.site-footer-install-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 11px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.site-footer-install-copy span {
    min-width: 0;
    display: block;
}

.site-footer-install-copy strong {
    display: block;
    color: var(--footer-text, #111111);
    font-size: 14px;
    line-height: 1.25;
}

.site-footer-install-copy small {
    display: block;
    margin-top: 3px;
    color: var(--footer-muted, #555555);
    font-size: 12px;
    line-height: 1.3;
}

.site-footer-install-button,
.pwa-install-done {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--ec-button-radius, 999px);
    background: var(--footer-accent, var(--ec-accent));
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.site-footer-install-button:hover,
.pwa-install-done:hover {
    filter: brightness(.94);
}

.site-footer-install-only {
    min-width: 0;
}

.pwa-install-modal[hidden] {
    display: none !important;
}

.pwa-install-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 20px;
}

.pwa-install-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,15,20,.55);
    backdrop-filter: blur(2px);
}

.pwa-install-dialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    border-radius: 22px;
    background: var(--footer-bg, #ffffff);
    color: var(--footer-text, #111111);
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
}

.pwa-install-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--footer-text, #111111);
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pwa-install-close:hover {
    background: rgba(0,0,0,.05);
}

.pwa-install-app-icon {
    width: 72px;
    height: 72px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 18px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
}

.pwa-install-dialog h2 {
    margin: 0 34px 18px;
    text-align: center;
    color: var(--footer-text, #111111);
    font-size: 23px;
    line-height: 1.2;
}

.pwa-install-dialog p {
    margin: 0 0 16px;
    color: var(--footer-muted, #555555);
    font-size: 14px;
    line-height: 1.55;
}

.pwa-install-dialog ol {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.pwa-install-dialog li {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 10px;
    align-items: center;
    color: var(--footer-text, #111111);
    font-size: 14px;
    line-height: 1.4;
}

.pwa-install-step-icon,
.pwa-install-step-number {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--footer-accent, var(--ec-accent)) 12%, transparent);
    color: var(--footer-accent, var(--ec-accent));
    font-size: 13px;
    font-weight: 900;
}

.pwa-install-step-icon svg {
    width: 19px;
    height: 19px;
}

.pwa-install-note {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.035);
    font-size: 12px !important;
}

.pwa-install-done {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
}

html.pwa-install-lock,
html.pwa-install-lock body {
    overflow: hidden;
}

@media (max-width: 520px) {
    .site-footer-install {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer-install-button {
        width: 100%;
        min-height: 44px;
    }

    .pwa-install-dialog {
        padding: 24px 20px 20px;
        border-radius: 18px;
    }
}
