/* ═══════════════════════════════════════════════════════
   Jacobs Cake World — Homepage CSS
   Uses CSS custom properties from theme-options.php
═══════════════════════════════════════════════════════ */

/* ── Google Font ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Base ────────────────────────────────────────── */
.jcw-homepage-container {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.jcw-main {
    font-family: var(--jcw-body-font, 'Inter', sans-serif);
    color: var(--jcw-text, #2D1A10);
}

.jcw-section {
    padding: 80px 0;
}

.jcw-section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.jcw-section-title {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: clamp(28px, 4vw, 42px);
    color: var(--jcw-primary, #5B3A29);
    margin: 0 0 16px;
}

.jcw-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.jcw-section-divider span {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--jcw-secondary, #C79D60), var(--jcw-accent, #BB5E3C));
    border-radius: 2px;
}

.jcw-section-viewall {
    display: inline-block;
    margin-top: 8px;
    color: var(--jcw-secondary, #C79D60);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

.jcw-section-viewall:hover {
    color: var(--jcw-accent, #BB5E3C);
}

/* ── Buttons ─────────────────────────────────────── */
.jcw-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all .25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.jcw-btn--primary {
    background: var(--jcw-secondary, #C79D60);
    color: #fff;
}

.jcw-btn--primary:hover {
    background: var(--jcw-accent, #BB5E3C);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(187, 94, 60, .35);
}

.jcw-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

.jcw-btn--outline-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.jcw-btn--outline {
    background: transparent;
    color: var(--jcw-primary, #5B3A29);
    border-color: var(--jcw-primary, #5B3A29);
}

.jcw-btn--outline:hover {
    background: var(--jcw-primary, #5B3A29);
    color: #fff;
}

.jcw-btn--gold {
    background: var(--jcw-secondary, #C79D60);
    color: #fff;
    font-size: 16px;
    padding: 15px 36px;
}

.jcw-btn--gold:hover {
    background: #d4aa6e;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ── Badges ──────────────────────────────────────── */
.jcw-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 20px;
}

.jcw-badge--outline {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
}

.jcw-badge--gold {
    background: rgba(199, 157, 96, .2);
    color: var(--jcw-secondary, #C79D60);
    border: 1px solid rgba(199, 157, 96, .4);
}

/* ── Scroll Reveal ───────────────────────────────── */
.jcw-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.jcw-reveal--right {
    transform: translateX(40px);
}

.jcw-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ══════════════════════════════════════════════════
   SECTION 1: HERO
══════════════════════════════════════════════════ */
.jcw-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.jcw-hero__slider {
    position: relative;
    width: 100%;
}

.jcw-hero__track {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
}

.jcw-hero__slide {
    grid-area: 1 / 1 / 2 / 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s ease;
    width: 100%;
    display: flex;
    min-height: 90dvh;
    /* High-end viewport scale */
    box-sizing: border-box;
    position: relative;
}

/* Transparent Header Overlay adjustments */
.jcw-header--transparent~#content .jcw-hero__slide {
    padding-top: calc(var(--header-height, 80px) + 60px);
    padding-bottom: 90px;
}

.jcw-header--solid~#content .jcw-hero__slide {
    padding-top: 60px;
    padding-bottom: 90px;
}

.jcw-hero__slide--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.jcw-hero__inner {
    display: flex;
    width: 100%;
    align-items: center;
}

.jcw-hero__content {
    width: 55%;
    /* Keep content to the left side */
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 3;
}

/* Slide Parallax Entry Animations */
.jcw-hero__slide--active .jcw-hero__heading {
    animation: jcwSlideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.jcw-hero__slide--active .jcw-hero__sub {
    animation: jcwSlideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s forwards;
}

.jcw-hero__slide--active .jcw-hero__actions {
    animation: jcwSlideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
}

.jcw-hero__slide--active .jcw-hero__badges {
    animation: jcwSlideUpFade 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.45s forwards;
}

@keyframes jcwSlideUpFade {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.jcw-hero__heading {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: clamp(38px, 4.8vw, 62px);
    font-weight: 600;
    max-width: 600px;
    color: #FAF6F0;
    /* Soft cream text */
    line-height: 1.15;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.jcw-hero__sub {
    font-family: var(--jcw-body-font, 'Inter', sans-serif);
    font-size: clamp(15px, 1.8vw, 18px);
    color: #EADFD2;
    /* Warm beige text */
    line-height: 1.6;
    margin: 0 0 35px;
    max-width: 520px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

/* Actions: CTA Buttons */
.jcw-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* CTA 1 (Primary - Caramel Tan) */
.jcw-btn--hero.jcw-btn--primary {
    background: var(--jcw-secondary, #D8A24A);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 20px rgba(216, 162, 74, 0.25);
}

.jcw-btn--hero.jcw-btn--primary:hover {
    background: var(--jcw-primary, #3A2418);
    box-shadow: 0 8px 20px rgba(58, 36, 24, 0.25);
    transform: translateY(-2px);
}

/* CTA 2 (Outline - White) */
.jcw-btn--hero.jcw-btn--outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.jcw-btn--hero.jcw-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Specific button structure override */
.jcw-btn--hero {
    padding: 13px 32px;
    font-size: 14px;
    font-family: var(--jcw-body-font, 'Inter', sans-serif);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    /* Crisp luxury rectangle corner */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

/* Horizontal Row of Badges */
.jcw-hero__badges {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 10px;
    opacity: 0;
    /* Animated entry */
}

.jcw-hero__badge-item {
    display: flex;
    align-items: center;
}

.jcw-hero__badge-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jcw-badge-icon {
    color: var(--jcw-secondary, #D8A24A);
    /* Gold/caramel icon */
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.jcw-hero__badge-text {
    font-family: var(--jcw-body-font, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #FAF6F0;
    /* Soft cream text */
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Container Overlay for Dots navigation align */
.jcw-hero__controls-container {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Dots styling */
.jcw-hero__dots {
    position: absolute;
    bottom: 45px;
    left: 24px;
    /* Align to container padding */
    z-index: 10;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

@media (min-width: 1400px) {
    .jcw-hero__dots {
        left: 32px;
    }
}

@media (min-width: 1600px) {
    .jcw-hero__dots {
        left: 40px;
    }
}

@media (min-width: 1920px) {
    .jcw-hero__dots {
        left: 48px;
    }
}

.jcw-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.jcw-hero__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.jcw-hero__dot--active {
    background: var(--jcw-secondary, #D8A24A);
    width: 28px;
    border-radius: 10px;
}

/* Arrow controls */
.jcw-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    /* Hidden by default, show on hover */
}

.jcw-hero__slider:hover .jcw-hero__arrow {
    opacity: 1;
}

.jcw-hero__arrow:hover {
    background: var(--jcw-secondary, #D8A24A);
    color: #ffffff;
    border-color: var(--jcw-secondary, #D8A24A);
    transform: translateY(-50%) scale(1.05);
}

.jcw-hero__arrow--prev {
    left: 24px;
}

.jcw-hero__arrow--next {
    right: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .jcw-hero__slide {
        min-height: 480px;
        background-position: center right 25% !important;
        /* keep main cake in frame */
    }

    .jcw-header--transparent~#content .jcw-hero__slide {
        padding-top: calc(var(--header-height, 80px) + 20px);
        padding-bottom: 60px;
    }

    .jcw-header--solid~#content .jcw-hero__slide {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .jcw-hero__inner {
        padding: 40px 24px;
        background: linear-gradient(0deg, rgba(33, 20, 14, 0.85) 0%, rgba(33, 20, 14, 0.3) 100%);
    }

    .jcw-hero__content {
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .jcw-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .jcw-hero__actions {
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
    }

    .jcw-hero__badges {
        justify-content: center;
        gap: 16px;
    }

    .jcw-hero__dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }

    .jcw-hero__arrow {
        display: none !important;
        /* hide arrows on mobile */
    }
}

/* ══════════════════════════════════════════════════
   SECTION 2: FEATURES STRIP
══════════════════════════════════════════════════ */
.jcw-features {
    background: #FDF9F4;
    padding: 30px 0;
    border-bottom: 1px solid var(--jcw-border, #E8DACE);
    border-top: 1px solid var(--jcw-border, #E8DACE);
}

.jcw-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.jcw-features__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 32px;
    border-right: 1px solid var(--jcw-border, #E8DACE);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease;
}

.jcw-features__item:last-child {
    border-right: none;
}

.jcw-features__item:hover {
    background-color: #FAF5EE;
    transform: translateY(-2px);
}

.jcw-features__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.jcw-features__item:hover .jcw-features__icon {
    transform: scale(1.12) rotate(3deg);
}

.jcw-features__icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--jcw-gold, #A67B5B);
    transition: stroke 0.4s ease;
}

.jcw-features__item:hover .jcw-features__icon svg {
    stroke: var(--jcw-primary, #5B3A29);
}

.jcw-features__title {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--jcw-primary, #5B3A29);
    margin-bottom: 3px;
    letter-spacing: 0.02em;
}

.jcw-features__desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--jcw-text-light, #6B5B52);
}

@media (max-width: 1024px) {
    .jcw-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jcw-features__item {
        border-right: none;
        border-bottom: 1px solid var(--jcw-border, #E8DACE);
        padding: 20px 24px;
    }

    .jcw-features__item:nth-child(even) {
        border-left: 1px solid var(--jcw-border, #E8DACE);
    }

    .jcw-features__item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .jcw-features__grid {
        grid-template-columns: 1fr;
    }

    .jcw-features__item {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--jcw-border, #E8DACE) !important;
        padding: 16px 20px;
    }

    .jcw-features__item:last-child {
        border-bottom: none !important;
    }
}

/* ══════════════════════════════════════════════════
   SECTION 3: CATEGORIES
══════════════════════════════════════════════════ */
.jcw-categories {
    background: #F8F3ED;
    /* Matches Warm Cream */
    padding: 100px 0;
}

.jcw-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 991px) {
    .jcw-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .jcw-categories__grid {
        grid-template-columns: 1fr;
    }
}

.jcw-cat-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #FFF;
    text-decoration: none;
    padding: 16px 16px 24px;
    border: 1px solid rgba(91, 58, 41, 0.05);
    box-shadow: 0 6px 24px rgba(91, 58, 41, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 58, 41, 0.08);
    border-color: rgba(199, 157, 96, 0.32);
}

.jcw-cat-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #FAF6F0;
    margin-bottom: 20px;
}

.jcw-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-cat-card:hover .jcw-cat-card__img {
    transform: scale(1.06);
}

.jcw-cat-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #FAF6F0;
}

.jcw-cat-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 65%, rgba(28, 15, 10, 0.04));
    pointer-events: none;
}

.jcw-cat-card__body {
    text-align: center;
    padding: 4px 8px 8px;
}

.jcw-cat-card__name {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: 21px;
    font-weight: 600;
    color: #3A2418;
    /* Chocolate Brown */
    margin: 0 0 10px;
    transition: color 0.3s ease;
}

.jcw-cat-card:hover .jcw-cat-card__name {
    color: var(--jcw-secondary, #C79D60);
}

.jcw-cat-card__link {
    font-size: 11px;
    color: #6B5B52;
    font-weight: 600;
    letter-spacing: 0.8px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
}

.jcw-cat-card:hover .jcw-cat-card__link {
    color: var(--jcw-secondary, #C79D60);
    transform: translateX(6px);
}

/* ══════════════════════════════════════════════════
   SECTION 4: BEST SELLERS
══════════════════════════════════════════════════ */
.jcw-bestsellers {
    background: #FFF;
    padding: 100px 0;
}

.jcw-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 991px) {
    .jcw-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .jcw-products-grid {
        grid-template-columns: 1fr;
    }
}

.jcw-product-card {
    background: #FFF;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(91, 58, 41, 0.05);
    box-shadow: 0 4px 20px rgba(91, 58, 41, 0.015);
}

.jcw-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 58, 41, 0.08);
    border-color: rgba(199, 157, 96, 0.32);
}

.jcw-product-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #8D6D59;
    /* Premium brown badge */
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.jcw-product-card__img-link {
    display: block;
    width: 100%;
}

.jcw-product-card__img-wrap {
    aspect-ratio: 1.25 / 1;
    overflow: hidden;
    background: #FAF6F0;
}

.jcw-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-product-card:hover .jcw-product-card__img {
    transform: scale(1.06);
}

.jcw-product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    background: #FAF6F0;
}

.jcw-product-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.jcw-product-card__title {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}

.jcw-product-card__title a {
    color: #3A2418;
    text-decoration: none;
    transition: color 0.3s ease;
}

.jcw-product-card__title a:hover {
    color: var(--jcw-secondary, #C79D60);
}

.jcw-product-card__price {
    font-size: 16px;
    font-weight: 700;
    color: #3A2418;
    margin-bottom: 24px;
}

.jcw-product-card__price .woocommerce-Price-amount {
    color: #3A2418;
}

.jcw-product-card__actions {
    margin-top: auto;
    width: 100%;
}

.jcw-btn-cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #FFF;
    color: #5B3A29;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(91, 58, 41, 0.15);
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcw-btn-cart svg {
    color: #5B3A29;
    transition: all 0.3s ease;
}

.jcw-btn-cart:hover {
    background: var(--jcw-primary, #5B3A29);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(91, 58, 41, 0.15);
}

.jcw-btn-cart:hover svg {
    color: #FFF;
    transform: scale(1.05);
}

.jcw-btn-cart--view {
    border: 1px solid rgba(91, 58, 41, 0.15);
    color: #5B3A29;
}

.jcw-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    position: relative;
}

.jcw-section-title {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #3A2418;
    margin: 0;
}

.jcw-section-divider {
    display: none;
    /* Hide default line dividers for clean minimal look */
}

.jcw-section-viewall {
    font-size: 12px;
    font-weight: 700;
    color: var(--jcw-secondary, #C79D60);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.jcw-section-viewall:hover {
    color: var(--jcw-primary, #5B3A29);
    transform: translateX(5px);
}

/* ══════════════════════════════════════════════════
   SECTION 5: CUSTOM CAKES CTA
══════════════════════════════════════════════════ */
.jcw-cta-section {
    background: #FFF;
    padding: 90px 0;
}

.jcw-cta {
    display: flex;
    background: linear-gradient(90deg, #FDF8F4 0%, #FAF2EA 50%, #F5EAE0 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(91, 58, 41, 0.05);
    box-shadow: 0 4px 20px rgba(91, 58, 41, 0.02);
    align-items: stretch;
    height: 380px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.jcw-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(91, 58, 41, 0.06);
}

.jcw-cta__content {
    padding: 32px 48px 32px 64px;
    display: flex;
    width: 40%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
}

.jcw-cta__heading {
    font-family: var(--jcw-heading-font, 'Playfair Display', serif);
    font-size: 34px;
    color: #3A2418;
    /* Chocolate Brown */
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.jcw-cta__text {
    font-size: 14.5px;
    color: #6C5C53;
    /* Soft warm grey/brown */
    line-height: 1.55;
    margin: 0 0 24px;
    max-width: 440px;
}

.jcw-btn-cta-main {
    display: inline-block;
    background: #3A2418;
    /* Chocolate Brown */
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(58, 36, 24, 0.15);
}

.jcw-btn-cta-main:hover {
    background: var(--jcw-gold, #A67B5B);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(166, 123, 91, 0.2);
}

.jcw-cta__image-wrap {
    position: relative;
    width: 60%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.jcw-cta__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-cta:hover .jcw-cta__img {
    transform: scale(1.04);
}

/* ══════════════════════════════════════════════════
   SECTION 6: TESTIMONIALS
══════════════════════════════════════════════════ */
.jcw-testimonials {
    background: #FAF6F0;
    padding: 100px 0;
}

.jcw-trustindex-wrap {
    width: 100%;
    position: relative;
    z-index: 2;
}

.jcw-testimonials .jcw-section-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 56px;
}

.jcw-testimonials .jcw-section-header::before {
    content: "HEARD FROM OUR PATRONS";
    font-size: 11px;
    font-weight: 700;
    color: var(--jcw-gold, #A67B5B);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.jcw-testimonials__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.jcw-test-card {
    background: #FFF;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(91, 58, 41, 0.03);
    border: 1px solid rgba(91, 58, 41, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jcw-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(91, 58, 41, 0.08);
}

.jcw-test-card__stars {
    font-size: 18px;
    color: var(--jcw-gold, #A67B5B);
    letter-spacing: 2px;
}

.jcw-test-card__text {
    font-size: 15px;
    color: #5B4A3E;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    flex: 1;
}

.jcw-test-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(91, 58, 41, 0.06);
    padding-top: 16px;
}

.jcw-test-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(166, 123, 91, 0.2);
}

.jcw-test-card__avatar--initials {
    background: #3A2418;
    color: #FFF;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jcw-test-card__name {
    font-weight: 600;
    font-size: 14px;
    color: var(--jcw-primary, #5B3A29);
}

.jcw-testimonials__nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.jcw-test-nav {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFF;
    border: 1px solid rgba(91, 58, 41, 0.15);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--jcw-primary, #5B3A29);
}

.jcw-test-nav:hover:not(:disabled) {
    background: var(--jcw-primary, #5B3A29);
    color: #FFF;
    border-color: var(--jcw-primary, #5B3A29);
    transform: scale(1.05);
}

.jcw-test-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════
   SECTION 7: INSTAGRAM
══════════════════════════════════════════════════ */
.jcw-instagram {
    background: #fff;
    padding: 100px 0;
}

.jcw-insta-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jcw-secondary, #C79D60);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    margin-top: 8px;
    transition: color .2s;
}

.jcw-insta-handle:hover {
    color: var(--jcw-accent, #BB5E3C);
}

.jcw-instagram__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.jcw-insta-video-card {
    position: relative;
    aspect-ratio: 0.72 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #1C0F0A;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.jcw-insta-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(28, 15, 10, 0.12);
}

.jcw-insta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-insta-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 40%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    z-index: 3;
}

.jcw-video-ctrl {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.jcw-video-ctrl:hover {
    background: rgba(58, 36, 24, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.jcw-video-ctrl svg {
    display: block;
    fill: currentColor;
}

.jcw-instagram__cta {
    text-align: center;
    margin-top: 48px;
}

.jcw-btn-insta-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #3A2418;
    /* Chocolate Brown */
    color: #FFF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(58, 36, 24, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jcw-btn-insta-cta:hover {
    background: var(--jcw-gold, #A67B5B);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(166, 123, 91, 0.25);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .jcw-instagram__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .jcw-hero__float-card {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Custom Cakes CTA Mobile Stacking */
    .jcw-cta-section {
        padding: 50px 0 !important;
    }
    .jcw-cta {
        flex-direction: column-reverse !important; /* Stack vertically (image top, text bottom) */
        height: auto !important;
        align-items: stretch !important;
    }
    .jcw-cta__content {
        width: 100% !important;
        padding: 32px 20px !important;
        align-items: center !important;
        text-align: center !important;
    }
    .jcw-cta__heading {
        font-size: 24px !important;
        text-align: center !important;
    }
    .jcw-cta__text {
        text-align: center !important;
        margin-bottom: 20px !important;
    }
    .jcw-cta__image-wrap {
        width: 100% !important;
        height: 200px !important;
    }
    .jcw-cta__img {
        mask-image: none !important;
        -webkit-mask-image: none !important;
        object-position: center !important;
    }
}

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

    .jcw-hero {
        padding: 0;
        min-height: auto;
    }

    /* Fix overlay gradient cutoff on mobile slide background */
    .jcw-hero__inner {
        height: 100% !important;
        align-self: stretch !important;
        padding: 40px 24px !important;
        text-align: center;
        box-sizing: border-box;
    }

    .jcw-hero__content {
        width: 100% !important;
        text-align: center;
        align-items: center;
    }

    .jcw-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }

    .jcw-hero__actions {
        justify-content: center;
    }

    .jcw-hero__badges {
        justify-content: center;
    }

    .jcw-hero__image {
        order: -1;
    }

    .jcw-hero__img {
        max-width: 280px;
    }

    /* Upgrade features to a clean 2x2 grid of compact cards */
    .jcw-features {
        padding: 24px 0 !important;
    }

    .jcw-features__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .jcw-features__item {
        border: 1px solid var(--jcw-border, #EADFD2) !important;
        border-radius: 8px !important;
        padding: 14px 10px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
    }

    .jcw-features__item:nth-child(even) {
        border-left: 1px solid var(--jcw-border, #EADFD2) !important;
    }

    .jcw-features__item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--jcw-border, #EADFD2) !important;
    }

    .jcw-features__icon {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 6px !important;
    }

    .jcw-features__title {
        font-size: 13px !important;
        text-align: center !important;
    }

    .jcw-features__desc {
        font-size: 11px !important;
        text-align: center !important;
    }

    /* Refine 2-column Product Card typography & touch padding to prevent layout shifts */
    .jcw-product-card__body {
        padding: 12px 14px !important;
    }

    .jcw-product-card__title {
        font-size: 14.5px !important;
        margin-bottom: 4px !important;
        height: 38px !important;
        overflow: hidden;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .jcw-product-card__price {
        font-size: 13.5px !important;
        margin-bottom: 12px !important;
    }

    .jcw-btn-cart {
        padding: 8px 10px !important;
        font-size: 10px !important;
        border-radius: 6px !important;
    }

    .jcw-btn-cart svg {
        width: 13px !important;
        height: 13px !important;
    }

    .jcw-instagram__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jcw-cta__inner {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .jcw-container {
        padding: 0 16px;
    }

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

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

    /* Features grid stays 2-columns (so we delete the 1-column stack override) */

    .jcw-instagram__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jcw-testimonials__track {
        grid-template-columns: 1fr;
    }
}

/* ── Footer styles: MOVED TO css/footer.css (enqueued globally on all pages) ── */



/* ── Wishlist Utilities (toggle btn, bounce animation, badge, catalog): MOVED TO custom-shop.css ── */

/* ══════════════════════════════════════════════════
   SECTION 5.5: FEATURED PRODUCTS GRID
   ══════════════════════════════════════════════════ */
.jcw-featured-section {
    background: #FAF8F5;
    /* Elegant warm off-cream */
    padding: 100px 0;
    border-top: 1px solid rgba(58, 36, 24, 0.04);
    border-bottom: 1px solid rgba(58, 36, 24, 0.04);
}

.jcw-featured-section .jcw-section-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    margin-bottom: 56px;
}

.jcw-featured-section .jcw-section-header::before {
    content: "SIGNATURE DELICACIES";
    font-size: 11px;
    font-weight: 700;
    color: var(--jcw-secondary, #D8A24A);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.jcw-featured-section .jcw-section-subtitle {
    font-size: 15px;
    color: #6C5C53;
    max-width: 580px;
    margin: 4px auto 0;
    line-height: 1.6;
    font-weight: 400;
    font-family: inherit;
}

.jcw-product-card__badge--featured {
    background: var(--jcw-secondary, #D8A24A) !important;
    color: #FFF !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

/* ── Button Hover Text Color Fix (Astra Inheritance Override) ── */
.jcw-btn--primary:hover,
.jcw-btn--gold:hover,
.jcw-btn--hero.jcw-btn--primary:hover,
.jcw-btn-cta-main:hover,
.jcw-btn-insta-cta:hover,
.jcw-enquiry-btn:hover {
    color: #FFFFFF !important;
}