/* A clear storefront rhythm: compact category menus, confident product cards, and richer campaign art. */
.storefront {
    --retail-accent: #276447;
    --retail-accent-deep: #173f2c;
    --retail-highlight: #e89b49;
    --retail-line: #e5e8df;
}

.retail-nav {
    position: relative;
    z-index: 31;
    background: var(--retail-accent-deep);
    border: 0;
}

.retail-nav-inner > a,
.mega-root > a {
    color: #f8fbf7;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .025em;
    transition: color .18s, background-color .18s;
}

.retail-nav-inner > a:hover,
.mega-root:hover > a,
.mega-root:focus-within > a {
    color: #d8edcf;
}

.retail-nav-inner > a::after,
.mega-root > a::after { background: #f2b65f; }
.mega-root { position: relative; }
.mega-root > a { padding-inline: 3px; }
.mega-root > a span { color: #d6e4d7; }

.mega-panel.category-dropdown-panel,
.mega-panel.custom-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    inset: calc(100% + 7px) auto auto 0;
    width: min(350px, calc(100vw - 28px));
    max-height: min(72vh, 540px);
    overflow: auto;
    padding: 10px;
    border: 1px solid #e7e9e2;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(22, 45, 31, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.mega-root--right > .mega-panel { right: 0; left: auto; }
.mega-root:hover > .mega-panel,
.mega-root:focus-within > .mega-panel { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 11px;
    border-bottom: 1px solid #edf0e9;
}

.dropdown-panel-head .eyebrow { color: #818a7f; font-size: 10px; }
.dropdown-panel-head > a { color: var(--retail-accent); font-size: 11px; font-weight: 800; white-space: nowrap; }
.dropdown-category-list { display: flex; flex-direction: column; padding-top: 4px; }
.dropdown-category-row { padding: 2px 0; border-bottom: 1px solid #f0f1ed; }
.dropdown-category-row:last-child { border-bottom: 0; }
.dropdown-category-link {
    min-height: 42px;
    display: grid;
    grid-template-columns: 30px minmax(0,1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #303a32;
    font-size: 13px;
    font-weight: 650;
    transition: background .15s, color .15s;
}

.dropdown-category-link:hover { color: var(--retail-accent-deep); background: #f1f6ef; }
.dropdown-category-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #e4ecdf;
    border-radius: 8px;
    background: #f4f7f1;
    color: var(--retail-accent);
    font-size: 12px;
    font-weight: 800;
}

.dropdown-category-arrow { color: #9ba69a; font-size: 15px; text-align: center; }
.dropdown-leaf-list { display: flex; flex-wrap: wrap; gap: 5px 7px; padding: 0 8px 9px 48px; }
.dropdown-leaf-list a { padding: 3px 7px; border-radius: 20px; background: #f6f6f2; color: #687267; font-size: 10px; line-height: 1.4; }
.dropdown-leaf-list a:hover { background: #e9f1e5; color: var(--retail-accent-deep); }
.custom-menu-panel { padding: 8px !important; }
.custom-menu-panel .mega-columns { display: flex; flex-direction: column; gap: 2px; }
.custom-menu-panel .mega-column-title { width: 100%; min-height: 40px; align-items: center; padding: 7px 10px; border-radius: 8px; color: #354137; font-size: 13px; }
.custom-menu-panel .mega-column-title:hover { background: #f1f6ef; text-decoration: none; }

.product-editorial {
    background: linear-gradient(135deg, #f8f7f2 0%, #f0f4ee 100%);
}

.product-editorial .retail-section-heading { align-items: center; }
.product-editorial .retail-section-heading h2 { color: #24382b; }
.product-editorial .retail-section-heading .eyebrow { color: #53735b; }

/* Keep the category kicker and title together above all eight category tiles. */
.category-editorial .retail-section-heading > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.category-editorial .retail-section-heading .eyebrow {
    display: inline-block;
    white-space: nowrap;
}
.category-editorial .retail-section-heading h2 {
    display: inline-block;
    margin: 0;
    white-space: nowrap;
}

/* Clear hover zoom on product photos without letting them spill outside the card. */
.retail-product-media,
.product-gallery-main { overflow: hidden; }
.retail-product-link img,
.product-gallery-main > img { transition: transform .45s cubic-bezier(.2,.7,.2,1); cursor: zoom-in; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .retail-product-card:hover .retail-product-link > img:first-child,
    .product-gallery-main:hover > img { transform: scale(1.08); }
}

/* Delivery zone choices and live checkout totals. */
.checkout-panel .delivery-zone-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.delivery-zone-field legend { margin-bottom: 9px; color: #35483a; font-size: 15px; font-weight: 600; }
.delivery-zone-field .delivery-zone-choice { display: flex; min-height: 66px; align-items: center; margin: 0; cursor: pointer; }
.delivery-zone-field .delivery-zone-choice + .delivery-zone-choice { margin-top: 9px; }
.delivery-zone-field .delivery-zone-choice:has(input:checked) { border-color: #648264; background: #f4f7f2; }

@media (max-width: 760px) {
    .category-editorial .retail-section-heading { gap: 8px; }
    .category-editorial .retail-section-heading > div:first-child { gap: 7px; }
    .category-editorial .retail-section-heading .eyebrow {
        font-size: 8px;
        letter-spacing: .07em;
    }
    .category-editorial .retail-section-heading h2 {
        font-size: 20px;
        line-height: 1.2;
    }
    .category-editorial .retail-section-heading > .editorial-link {
        font-size: 9px;
        white-space: nowrap;
    }
}
.product-editorial .editorial-link { border-color: #8c9b8b; color: #28543b; font-weight: 700; }

.retail-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e6df;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(35, 46, 36, .035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.retail-product-card:hover {
    transform: translateY(-3px);
    border-color: #d2ddcf;
    box-shadow: 0 12px 26px rgba(35, 46, 36, .11);
}

.retail-product-media { background: #f1f0eb; }
.retail-product-link img { transition: transform .45s ease; }
.retail-product-card:hover .retail-product-link img { transform: scale(1.035); }
.retail-product-copy { padding: 13px 14px 15px; }
.product-card-topline { min-height: 16px; gap: 8px; color: #778176; font-size: 10px; }
.product-rating { color: #9a7949; white-space: nowrap; }
.retail-product-copy h3 { min-height: 48px; margin: 8px 0 11px; color: #29352c; font-size: 15px; font-weight: 650; line-height: 1.55; }
.retail-product-copy h3 a:hover { color: var(--retail-accent); }
.product-card-price { min-height: 30px; flex-wrap: wrap; gap: 7px; font-size: 18px; line-height: 1.35; }
.product-card-price b { color: var(--retail-accent-deep); font-size: 19px; font-weight: 850; letter-spacing: -.015em; }
.product-card-price del { color: #8b9088; font-size: 12px; }
.product-card-price small { padding: 3px 6px; border-radius: 20px; background: #fff1e8; color: #ad512d; font-size: 10px; font-weight: 800; }
.product-label { border-radius: 20px; background: #fff; color: #2a563b; box-shadow: 0 3px 12px #1c2b1d20; font-size: 10px; font-weight: 800; }
.product-wishlist button { border: 1px solid #e5e7df; border-radius: 50%; background: #ffffffed; color: #455348; }
.quick-add-form button { border-radius: 7px; background: var(--retail-accent-deep); color: #fff; font-weight: 750; }
.quick-add-form button:disabled { background: #f0efeb; color: #70766f; }

.campaign-stage { isolation: isolate; }
.campaign-image img { transform: scale(1.025); transition: transform 7s ease; }
.campaign-slide.is-active .campaign-image img { transform: scale(1); }
.campaign-shade {
    background:
        linear-gradient(0deg, rgba(18, 24, 18, .7) 0%, rgba(18, 24, 18, .16) 58%, rgba(18, 24, 18, .02) 100%),
        linear-gradient(90deg, rgba(18, 24, 18, .2), transparent 70%);
}
.campaign-copy h1 { text-shadow: 0 3px 22px rgba(0,0,0,.32); }
.campaign-copy p { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.campaign-cta { border-color: #f0bd6b; background: #f0bd6b; color: #24372a; box-shadow: 0 7px 22px rgba(8,18,11,.2); }
.campaign-cta:hover { border-color: white; background: white; color: #24372a; }
.campaign-pagination { gap: 12px; padding: 8px 13px; border: 1px solid #ffffff54; border-radius: 30px; background: #18231f55; backdrop-filter: blur(10px); }
.campaign-arrow { border-color: #ffffff9c; background: #19251f78; backdrop-filter: blur(8px); }

@media (max-width: 900px) {
    .retail-product-copy { padding: 10px 10px 12px; }
    .retail-product-copy h3 { min-height: 44px; font-size: 14px; }
    .product-card-price b { font-size: 17px; }
}

@media (max-width: 1325px) and (min-width: 761px) {
    .retail-nav { height: auto; min-height: 50px; }
    .storefront .retail-nav-inner {
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 2px clamp(10px, 1.25vw, 16px);
        overflow: visible;
        padding-block: 5px;
        white-space: normal;
    }
    .storefront .retail-nav-inner > a,
    .storefront .retail-nav-inner > .mega-root { flex: 0 0 auto; height: 36px; }
}

@media (max-width: 760px) {
    .retail-product-card { border-radius: 10px; }
    .retail-product-copy { padding: 9px 9px 11px; }
    .product-card-topline { font-size: 9px; }
    .retail-product-copy h3 { min-height: 44px; margin: 5px 0 8px; font-size: 13px; }
    .product-card-price { gap: 5px; font-size: 15px; }
    .product-card-price b { font-size: 16px; }
    .product-card-price del { font-size: 10px; }
    .product-card-price small { font-size: 9px; }
    .campaign-pagination { bottom: 17px; left: 50%; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-image img, .retail-product-card, .retail-product-link img { transition: none; }
}

/* Keep the eight homepage categories together in one compact shelf. */
.category-editorial .visual-category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    min-width: 0;
    gap: 8px;
}
.category-editorial .visual-category-card {
    height: clamp(112px, 11vw, 160px);
}
.category-editorial .visual-cat-copy {
    left: 10px;
    right: 8px;
    bottom: 10px;
    gap: 3px;
}
.category-editorial .visual-cat-copy small { font-size: 7px; }
.category-editorial .visual-cat-copy strong {
    font-size: clamp(12px, 1.15vw, 17px);
    line-height: 1.2;
}
.category-editorial .visual-cat-copy > span { font-size: 9px; }

@media (max-width: 760px) {
    body.storefront .category-editorial .visual-category-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    body.storefront .category-editorial .visual-category-grid::-webkit-scrollbar { display: none; }
    body.storefront .category-editorial .visual-category-card {
        flex: 0 0 118px;
        height: 130px;
        scroll-snap-align: start;
    }
    .category-editorial .visual-cat-copy strong { font-size: 14px; }

    .storefront .retail-header-main { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px; }
    .storefront .retail-header .brand {
        justify-self: start;
        min-width: 0;
        max-width: 100%;
        gap: 6px;
        font-size: clamp(14px, 4.3vw, 19px);
        letter-spacing: -.045em;
        white-space: nowrap;
        overflow: hidden;
    }
    .storefront .retail-header .brand-mark {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        line-height: 25px;
        font-size: 19px;
    }
    .storefront .retail-header .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
}
