﻿:root {
    --hgg-red: #9E0007;
    --hgg-green-tile: #254123;
    --hgg-green-btn: #004311;
    --hgg-green-dark: #1D3D25;
    --hgg-chip: #F5F4EF;
    --hgg-img-bg: #F6F6F4;
    --hgg-gold-dot: #E5D0A1;
    --hgg-cream: #F8E6BF;
    --hgg-text: #000000;
    --hgg-label: #333333;
    --hgg-muted: #999999;
    --hgg-border: #D9D9D9;
    --hgg-white: #FFFFFF;
    --hgg-font-serif: 'Playfair Display', Georgia, serif;
    --hgg-font-mono: 'Ubuntu Mono', 'Courier New', monospace;
    --hgg-font-sans: 'Manrope', Arial, sans-serif;
    --hgg-font-display: 'Anton', Impact, sans-serif;
    --hgg-mono-size: 18px;
}

:is(.hero-slider-area, .intro-section, .tiles-section, .budget-section, .collections-section, .bottom-cta) {
    font-family: var(--hgg-font-sans);
    color: var(--hgg-text);
}

:is(.hero-slider-area, .tiles-section, .budget-section, .collections-section) a {
    text-decoration: none;
    color: inherit;
}

:is(.hero-slider-area, .tiles-section, .collections-section, .promo-banner) img {
    max-width: 100%;
    display: block;
}

:is(.intro-section, .budget-section, .collections-section, .shop-gifts-section) > .container {
    max-width: 1240px;
}

.section-heading {
    font-family: var(--hgg-font-serif);
    font-weight: 400;
    font-size: 35.5px;
    line-height: 1.09;
    letter-spacing: .04em;
    color: var(--hgg-text);
    margin: 0;
}

.mono-text {
    font-family: var(--hgg-font-mono);
    font-size: var(--hgg-mono-size);
    line-height: 1.4;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--hgg-text);
    margin: 0;
}

/* ================= INTRO ================= */
.intro-section {
    padding: 38px 0;
}

    .intro-section .section-heading {
        margin-bottom: 17px;
    }

    .intro-section .mono-text {
        margin: 0;
    }

/* ================= TILES (317px squares) ================= */
.tiles-section {
    padding: 0 0 50px;
}
    /* Equal-size tiles: a 4-column grid (2 columns on mobile) */
    .tiles-section .row {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.7vw;
        margin: 0;
    }

        .tiles-section .row > * {
            width: auto;
            max-width: none;
            padding: 0;
            margin: 0;
        }

@media (min-width: 992px) {
    .tiles-container {
        max-width: none;
        padding: 0 3.5vw;
    }
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-align: center;
    transition: transform .3s ease;
}

    .tile:hover {
        transform: translateY(-4px);
    }

    .tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tile span {
        font-family: var(--hgg-font-serif);
        color: var(--hgg-white);
        text-transform: uppercase;
        font-size: clamp(26px, 2.4vw, 46px);
        line-height: 1.09;
        letter-spacing: .04em;
    }

.tile-red {
    background: var(--hgg-red);
}

.tile-green {
    background: var(--hgg-green-tile);
}

/* ================= BUDGET ================= */
.budget-section {
    padding: 0 0 45px;
}

.budget-wrap {
    display: flex;
    align-items: center;
    gap: 55px;
    max-width: 1149px;
    margin: 0 auto;
}

.budget-title {
    font-family: var(--hgg-font-serif);
    color: var(--hgg-red);
    font-size: 30px;
    line-height: 36px;
    letter-spacing: .04em;
    font-weight: 400;
    text-align: center;
    width: 200px;
    flex-shrink: 0;
    margin: 0;
}

.budget-box {
    flex: 1;
    height: 130px;
    border: 1px solid var(--hgg-border);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    background: #FCF8EA;
}

.budget-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--hgg-font-mono);
    color: #000;
    text-transform: uppercase;
    text-align: center;
    border-right: 1px solid var(--hgg-border);
    padding: 7px 0;
    transition: color .2s;
}

    .budget-item .b-under {
        font-size: 14px;
        font-weight: 400;
        line-height: 17px;
        letter-spacing: .12em;
    }

    .budget-item .b-price {
        font-size: 35px;
        font-weight: 700;
        line-height: 42px;
        letter-spacing: .02em;
    }

    .budget-item:last-child {
        border-right: 0;
    }

    .budget-item:hover {
        color: var(--hgg-red);
    }

/* ================= SHOP GIFTS BY CATEGORY =================*/
.collections-section {
    padding: 0 0 50px;
}

    .collections-section > .container {
        max-width: none;
        width: 100%;
        padding: 0 3.5vw;
    }

.collections-heading {
    text-align: left;
    margin: 0 0 24px;
    padding: 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
}

.collection-card {
    display: block;
}

    .collection-card .img-wrap {
        overflow: hidden;
        aspect-ratio: 2 / 3;
        background: var(--hgg-border);
    }

    .collection-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .collection-card:hover img {
        transform: scale(1.05);
    }

.explore-link {
    display: block;
    margin-top: 14px;
    padding: 0 14px;
    font-family: var(--hgg-font-serif);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #2B2230;
    text-align: center;
}

.collection-card:hover .explore-link {
    color: var(--hgg-red);
}

/* ================= SHOP ALL GIFTS ================= */
.shop-gifts-section {
    --hgg-shop-gap: 8px; /* space between all cards (and between the red card and the cards) */
    --hgg-hdr-h: 108px; /* fixed timer bar + header */
    --hgg-title-h: 84px; /* height of the sticky "The Holiday Collection" title */
    background: var(--hgg-red);
    padding: 49px 0 45px;
}

.shop-heading {
    color: var(--hgg-white);
    text-align: left;
    margin-bottom: 26px;
}

    .shop-heading a {
        color: inherit;
        text-decoration: none;
    }

.shop-layout {
    display: grid;
    grid-template-columns: 370fr 823fr;
    gap: 18px;
}

/* Promo banner */
.promo-banner {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 420px;
    text-decoration: none;
}

    .promo-banner picture, .promo-banner img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .promo-banner img {
        transition: transform .6s ease;
    }

    .promo-banner:hover img {
        transform: scale(1.04);
    }

/* "UP TO / 75 % OFF / SITEWIDE" - at the bottom */
.promo-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2%;
    text-align: center;
    color: var(--hgg-cream);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

    .promo-text .promo-upto,
    .promo-text .promo-sitewide {
        display: block;
        font-family: var(--hgg-font-sans);
        font-weight: 600;
        text-transform: uppercase;
        color: #fff;
    }

    .promo-text .promo-upto {
        font-size: 20px;
        letter-spacing: .3em;
        margin-bottom: 4px;
    }

    .promo-text h3 {
        font-family: var(--hgg-font-display);
        font-weight: 400;
        font-size: 60px;
        line-height: 1;
        letter-spacing: .01em;
        text-transform: uppercase;
        white-space: nowrap;
        color: var(--hgg-cream);
        margin: 0 0 8px;
    }

    .promo-text .promo-sitewide {
        font-size: 18px;
        letter-spacing: .32em;
    }

/* Red gradient at the bottom of the 75% OFF image (behind the text) */
.shop-gifts-section .promo-banner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(158, 0, 7, .65) 0%, rgba(158, 0, 7, .35) 45%, rgba(158, 0, 7, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.shop-gifts-section .promo-text {
    z-index: 2;
}

/* Product grid */
.shop-gifts-section .shop-layout {
    align-items: start;
}

.shop-gifts-section .promo-banner {
    position: sticky;
    top: calc(var(--hgg-hdr-h) + var(--hgg-title-h)); /* stays below the fixed header and the sticky title */
    aspect-ratio: 370 / 867;
    min-height: 0;
}

.shop-gifts-section .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 300px;
}

    .shop-gifts-section .product-grid > .listingProductsSlider-slide {
        width: auto;
        height: auto;
        margin: 0;
    }

        /* Safari 17 (iPadOS 17) counts an aspect-ratio box as 0px tall when it sizes grid rows,
           so rows came out 127px and the photo, title and Buy Now were cut off.
           Make the image box square with padding instead, which every browser measures. */
        .shop-gifts-section .product-grid > .listingProductsSlider-slide .listing-slide-content .media-box {
            aspect-ratio: auto;
            height: 0;
            padding-bottom: 100%;
        }

            .shop-gifts-section .product-grid > .listingProductsSlider-slide .listing-slide-content .media-box .media-img {
                position: absolute;
                inset: 0;
            }

/* Last card: "There's More - Keep Looking / View all" -> /shop */
#hggProductGrid .hgg-viewall-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 300px;
    background: #C4283A;
}

    #hggProductGrid .hgg-viewall-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform .6s ease;
    }

    #hggProductGrid .hgg-viewall-card:hover img {
        transform: scale(1.04);
    }

/* ONLY these cards (#hggProductGrid): green Buy Now + red badge.
   Cards anywhere else on the site are not affected. */
#hggProductGrid .listing-slide-cardContent-button:not(.is-soldout) {
    background: var(--hgg-green-btn) !important;
    border-color: var(--hgg-green-btn) !important;
    color: #fff !important;
}

    #hggProductGrid .listing-slide-cardContent-button:not(.is-soldout):hover {
        background: #00330d !important;
        border-color: #00330d !important;
    }

#hggProductGrid .product-card-badge,
#hggProductGrid .product-card-badge-closeout {
    background: var(--hgg-red) !important;
    border-color: var(--hgg-red) !important;
    color: #fff !important;
}

/* Loading placeholders (shown while the real cards load) */
#hggProductGrid .hgg-card-placeholder {
    background: #fff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 420px;
}

    #hggProductGrid .hgg-card-placeholder span,
    #hggProductGrid .hgg-card-placeholder i,
    #hggProductGrid .hgg-card-placeholder b {
        display: block;
        background: linear-gradient(90deg, #f1efea 0%, #faf9f6 50%, #f1efea 100%);
        background-size: 200% 100%;
        animation: hggShimmer 1.4s ease-in-out infinite;
    }

    #hggProductGrid .hgg-card-placeholder span {
        aspect-ratio: 1 / 1;
    }

    #hggProductGrid .hgg-card-placeholder i {
        height: 14px;
    }

        #hggProductGrid .hgg-card-placeholder i:nth-of-type(2) {
            width: 70%;
        }

        #hggProductGrid .hgg-card-placeholder i:nth-of-type(3) {
            width: 45%;
        }

    #hggProductGrid .hgg-card-placeholder b {
        height: 36px;
        margin-top: auto;
    }

@keyframes hggShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Desktop: red card + 4 cards per row, all 5 the SAME width.
   12 cards (11 products + View all) = 3 rows of 4. */
@media (min-width: 1200px) {
    .shop-gifts-section .shop-layout {
        /* first column = exactly one card wide */
        grid-template-columns: calc((100% - 4 * var(--hgg-shop-gap)) / 5) minmax(0, 1fr);
        gap: var(--hgg-shop-gap);
    }

    .shop-gifts-section .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--hgg-shop-gap);
    }
}

/* ================= BOTTOM CTA ================= */
.bottom-cta {
    position: relative;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--hgg-green-dark) url('/v2/images/Holiday-Gift-Guide/pattern-green-tile.webp') repeat;
    background-size: 226px 169px;
}

    .bottom-cta::before {
        content: "";
        position: absolute;
        width: 845px;
        height: 146px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: var(--hgg-green-dark);
        border-radius: 50%;
        filter: blur(89px);
        opacity: .85;
    }

.cta-inner {
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.bottom-cta h2 {
    font-family: var(--hgg-font-serif);
    color: var(--hgg-white);
    font-weight: 400;
    font-size: 35.5px;
    line-height: 39px;
    letter-spacing: .04em;
    margin: 0 0 14px;
}

.bottom-cta .mono-text {
    color: var(--hgg-white);
    line-height: 1.4;
}

/* ================= TABLET ================= */
@media (max-width: 1199.98px) {
    .tile span {
        font-size: 26px;
    }

    .explore-link {
        font-size: 20px;
    }

    .budget-item .b-price {
        font-size: 32px;
        line-height: 36px;
    }
}

@media (max-width: 600px) {
    .mono-text {
        font-size: 15px;
    }

    .section-heading {
        font-size: 20px;
        line-height: 27px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 991.98px) {

    /* Intro */
    .intro-section {
        padding: 24px 0;
    }

        .intro-section .mono-text {
            max-width: 330px;
            margin: 0 auto;
            line-height: 19px;
        }

    /* Tiles 2 x 2 */
    .tiles-section {
        padding: 0 0 32px;
    }

    .tiles-container {
        padding: 0 22px;
    }

    .tiles-section .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .tile span {
        font-size: 18.4px;
        line-height: 20px;
    }

    /* Budget 2 x 2 box */
    .budget-section {
        padding: 0 0 38px;
    }

    .budget-wrap {
        flex-direction: column;
        gap: 14px;
    }

    .budget-title {
        font-size: 25px;
        line-height: 30px;
        width: auto;
        max-width: 240px;
    }

        .budget-title br {
            display: none;
        }

    .budget-box {
        width: 100%;
        max-width: 352px;
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        border: 1px solid var(--hgg-border);
        position: relative;
    }

        .budget-box::before, .budget-box::after {
            content: "";
            position: absolute;
            background: var(--hgg-border);
        }

        .budget-box::before {
            left: 50%;
            top: 0;
            bottom: 0;
            width: 1px;
        }

        .budget-box::after {
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
        }

    .budget-item {
        border: 0;
        padding: 20px 8px;
        gap: 6px;
    }

        .budget-item .b-under {
            font-size: 13px;
            line-height: 16px;
        }

        .budget-item .b-price {
            font-size: 28px;
            line-height: 34px;
        }

    /* Categories: 3 per row x 2 rows, no gaps, tall cards */
    .collections-section {
        padding: 0 0 36px;
    }

        .collections-section > .container {
            padding: 0 22px;
        }

    .collections-heading {
        font-size: 25px;
        text-align: center;
        margin-bottom: 20px;
    }

    .collections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3px;
    }

    .explore-link {
        font-size: 18px;
        line-height: 1.2;
        margin: 8px 0 14px;
        padding: 0 0px;
        text-align:center;
    }

    /* Shop all gifts */
    .shop-gifts-section {
        padding: 29px 0 32px;
    }

    .shop-heading {
        font-size: 25px;
        text-align: center;
        margin-bottom: 20px;
    }

    .shop-gifts-section .shop-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 19px;
    }

    .shop-gifts-section .product-grid {
        order: 1;
        gap: 8px;
    }

    .shop-gifts-section .promo-banner {
        order: 2;
        position: relative;
        top: auto;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .promo-text {
        bottom: 3%;
    }

        .promo-text .promo-upto {
            font-size: 17px;
        }

        .promo-text h3 {
            font-size: 52px;
        }

        .promo-text .promo-sitewide {
            font-size: 15px;
        }

    #hggProductGrid .hgg-viewall-card {
        min-height: 260px;
    }

    /* Bottom CTA */
    .bottom-cta {
        height: 145px;
        background-size: 226px 169px; /* same as desktop: native tile size, no stretching */
    }

        .bottom-cta::before {
            width: 392px;
            height: 102px;
            filter: blur(67px);
        }

        .bottom-cta h2 {
            font-size: 25px;
            line-height: 23px;
            margin: 0 auto 20px;
        }

        .bottom-cta .mono-text {
            max-width: 310px;
            margin: 0 auto;
            line-height: 18px;
        }
}

/* Side-by-side layout (992px and up): "The Holiday Collection" title stays pinned under the header
   together with the sticky promo banner. Below 992px the banner is stacked, so nothing sticks. */
@media (min-width: 992px) {
    .shop-gifts-section .shop-heading {
        position: sticky;
        top: var(--hgg-hdr-h);
        z-index: 5;
        height: var(--hgg-title-h);
        margin: 0;
        display: flex;
        align-items: center;
        background: var(--hgg-red); /* hides the cards scrolling underneath */
    }
}

/* ================= WIDE SECTIONS (desktop) =================
   Budget, collections and "The Holiday Collection" grow with the screen. */
@media (min-width: 1200px) {
    .budget-section > .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        width: min(80vw, calc((1149px + 80vw) / 2));
    }

    .shop-gifts-section > .container {
        max-width: none;
        width: 100%;
        padding-left: 3.5vw;
        padding-right: 3.5vw;
    }

    .budget-wrap {
        max-width: none;
        gap: min(3.8vw, calc((55px + 3.8vw) / 2));
    }
}
