/* Global smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Giveaway-Style Banner */
.christmas-bundles-banner {
    background: #f7f7f7;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
}

.christmas-bundles-banner .giveaway-header {
    text-align: center;
}

.christmas-bundles-banner .header-image {
    width: 70%;
    max-width: 1400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.christmas-bundles-banner .header-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Main Container */
.christmas-bundles-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    overflow-x: visible;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Left Sidebar */
.christmas-bundles-sidebar {
    margin-left: -25px;
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 12px;
}

.sidebar-list-divider {
    font-weight: 700;
    font-size: 13px;
    color: #444;
    margin-top: 25px;
    margin-bottom: 15px !important;
    text-transform: uppercase;
    padding-left: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    letter-spacing: 1px;
    list-style: none;
}

.sidebar-link {
    color: #006633;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: block;
    transition: color 0.2s ease;
}

.sidebar-link:hover {
    color: #004d26;
    text-decoration: underline;
}

/* Main Content Area */
.christmas-bundles-main {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

/* Section 1: Intro Text */
.section-1 {
    margin-top: 20px;
    text-align: center;
}

.section-1 .intro-text {
    font-size: 17px;
    font-style: italic;
    line-height: 1.7;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.ornamental-divider {
    text-align: center;
}

.ornamental-divider span {
    font-size: 32px;
    color: #999;
    font-family: Georgia, serif;
    letter-spacing: 8px;
}

/* Section 2: Product Carousel */
.section-2 {
    margin-bottom: 50px;
    overflow: visible;
    position: relative;
}

/* Slider Heading Modifier (to support left-aligned title + right link) */
.banner-heading-wrapper.slider-heading::before {
    display: none;
    /* Hide left line */
}

.banner-heading-wrapper.slider-heading .banner-heading {
    text-align: left;
    order: 1;
}

.banner-heading-wrapper.slider-heading::after {
    order: 2;
    margin: 0 20px;
    background: #e0e0e0;
    /* Lighter line override */
}

.banner-heading-wrapper.slider-heading .show-more-link {
    color: #006633;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease;
    order: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-heading-wrapper.slider-heading .show-more-link:hover {
    color: #004d26;
    text-decoration: underline;
}

/* Carousel Wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 50px;
    /* Reserve space for arrows */
    overflow: visible;
    box-sizing: border-box;
}

.carousel-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Product Cards - 6 visible per row */
.product-card {
    flex: 0 0 calc((100% - (20px * 5)) / 6);
    min-width: 0;
    max-width: calc((100% - (20px * 5)) / 6);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ddd;
    transition: opacity 0.2s ease;
}

.product-image-link:hover .product-image {
    opacity: 0.9;
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder span {
    color: #999;
    font-size: 12px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    z-index: 5;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #e74c3c;
    transform: scale(1.1);
}

.wishlist-btn.in-wishlist {
    color: #e74c3c;
}

.wishlist-btn.in-wishlist:hover {}

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

.product-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: #006633;
    text-decoration: underline;
}

.product-brand {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.product-rating {
    display: flex;
    gap: 1px;
    margin-bottom: 4px;
}

.product-rating span {
    color: #ddd;
    font-size: 14px;
}

.product-rating span.active {
    color: #f5a623;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* Price display classes */
.price-head-font {
    font-size: 13px;
    margin-top: 15px;
}

.dollar-font {
    font-size: 15px;
    margin-bottom: 3px;
    top: -2px !important;
    position: relative;
}

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

.price-font.font-21 {
    font-size: 21px;
    font-weight: 600;
    color: #c53700;
}

.cut-price-font {
    font-size: 15px;
    text-decoration-line: line-through;
    margin-left: 5px;
    color: #7b8bb7;
}

.featured-product-price {
    margin-top: 10px;
}

/* Checkout Button/Link Styles */
.checkout-btn,
.add-to-cart-btn {
    transition: all 0.3s ease;
}

.checkout-btn:hover,
.add-to-cart-btn:hover {
    opacity: 0.9;
}

.checkout-btn:not(a):hover,
.add-to-cart-btn:not(a):hover {
    transform: translateY(-1px);
}

.checkout-btn:disabled,
.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Make checkout links look clickable */
a.checkout-btn,
a.add-to-cart-btn {
    cursor: pointer;
    text-decoration: none;
}

a.checkout-btn:hover,
a.add-to-cart-btn:hover {
    text-decoration: underline;
}

/* Simple and Elegant Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #555;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Quick Add Button */
.quick-add-btn {
    margin-top: 15px;
    padding: 8px 20px;
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.quick-add-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.quick-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error Display */
.checkout_disp_errors {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.checkout_disp_errors .alert {
    margin-bottom: 0;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.carousel-arrow-left {
    left: 0;
}

.carousel-arrow-right {
    right: 0;
}

.carousel-arrow:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-arrow.disabled:hover {
    background: #fff;
    border-color: #ddd;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s;
}

/* Section 3: Featured Product */
.section-3 {
    margin-bottom: 40px;
    margin-top: 26px
}

/* Banner Heading (with horizontal lines) */
.banner-heading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
}

.banner-heading-wrapper::before,
.banner-heading-wrapper::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd;
}

.banner-heading {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}

.banner-heading-link {
    color: #006633;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.banner-heading-link:hover {
    text-decoration: underline;
}

/* Quick Add Button */
.quick-add-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.quick-add-btn:hover {
    background: #333;
    color: #fff;
}

.featured-product-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    max-width: 800px;
    margin: 0 auto;
}

.featured-product-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.featured-product-image-link {
    display: block;
    text-decoration: none;
}

.featured-product-image {
    width: 300px;
    height: 300px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: opacity 0.2s ease;
    position: relative;
}

.featured-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    z-index: 5;
    transition: all 0.2s ease;
}

.featured-wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    color: #e74c3c;
    transform: scale(1.1);
}

.featured-wishlist-btn.in-wishlist {
    color: #e74c3c;
}

.featured-wishlist-btn.in-wishlist:hover {
    background: rgba(231, 76, 60, 0.2);
}

.featured-wishlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.featured-product-image-link:hover .featured-product-image {
    opacity: 0.9;
}

.featured-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-product-image span {
    color: #999;
}

.featured-product-details {
    flex: 1;
}

.featured-product-price {
    margin-bottom: 10px;
}

.featured-product-price .price-note {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.featured-product-price .order-link {
    margin-left: 15px;
    color: #006633;
    text-decoration: none;
    font-weight: 600;
}

.featured-product-details h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.featured-product-title-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-product-title-link:hover {
    color: #006633;
    text-decoration: underline;
}

.featured-product-brand {
    color: #006633;
    font-size: 14px;
    margin-bottom: 15px;
}

.featured-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.featured-product-description .details-link {
    color: #006633;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc((100% - (20px * 5)) / 6);
        max-width: calc((100% - (20px * 5)) / 6);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc((100% - (20px * 3)) / 4);
        max-width: calc((100% - (20px * 3)) / 4);
    }
}


/* Mobile Sidebar Dropdown */
.mobile-sidebar-dropdown-wrapper {
    display: none;
}

/* Hide dropdown icon on desktop */
.dropdown-icon {
    display: none;
}

@media (max-width: 768px) {
    .christmas-bundles-banner {
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    .christmas-bundles-banner .header-image,
    .section-1 .intro-text {
        max-width: 90%;
    }

    .christmas-bundles-container {
        padding-top: 5px;
        flex-direction: column;
        gap: 65px;
    }

    .christmas-bundles-sidebar {
        width: 100%;
        order: 1;
        padding: 0;
        margin-left: 0;
        margin-bottom: 20px;
        position: relative;
        /* Reset sticky */
        top: auto;
        max-height: none;
        overflow: visible;
        height: auto;
        min-height: 0;
    }

    /* Mobile Sidebar as Dropdown */
    .sidebar-section {
        border: 1px solid #ddd;
        border-radius: 4px;
        margin-bottom: 20px;
        background: #fff;
    }

    .sidebar-heading {
        margin: 0;
        padding: 15px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        /* Removed default border */
        background-color: #f9f9f9;
        font-size: 16px;
    }

    .sidebar-heading.active {
        border-bottom: 1px solid #ddd;
    }

    .dropdown-icon {
        display: inline-block;
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .sidebar-heading.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .sidebar-content-wrapper {
        display: none;
        padding: 15px;
        background: #fff;
    }

    .sidebar-content-wrapper.show {
        display: block;
    }

    .christmas-bundles-main {
        order: 2;
        width: 100%;
    }

    .product-card {
        flex: 0 0 calc((100% - (20px * 2)) / 3);
        max-width: calc((100% - (20px * 2)) / 3);
    }

    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-arrow-left {
        left: 0;
    }

    .carousel-arrow-right {
        right: 0;
    }

    .featured-product-section {
        flex-direction: column;
    }

    .featured-product-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .product-card {
        flex: 0 0 calc((100% - 20px) / 2);
        max-width: calc((100% - 20px) / 2);
    }

    .banner-heading-wrapper.slider-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
        /* Reduce gap on mobile */
    }

    .banner-heading-wrapper.slider-heading .banner-heading {
        white-space: normal;
        /* Allow text wrap */
        width: 100%;
        line-height: 1.3;
    }

    .banner-heading-wrapper.slider-heading .show-more-link {
        align-self: flex-end;
        /* Keep link on right or adjust as needed */
        font-size: 12px;
    }
}

/* ============================================
   Social Proof Notification Toast
   ============================================ */
.social-proof-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 360px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #4CAF50;
}

.social-proof-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.social-proof-toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.social-proof-toast .toast-icon {
    width: 60px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-proof-toast .toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-proof-toast .toast-icon .placeholder-icon {
    font-size: 28px;
}

.social-proof-toast .toast-content {
    flex: 1;
    min-width: 240px;
    width: 240px;
}

.social-proof-toast .toast-title {
    font-size: 14px;
    color: #222;
    margin: 0 0 6px 0;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-proof-toast .toast-title .buyer-name {
    color: #1b5e20;
    font-weight: 700;
}

.social-proof-toast .toast-title .buyer-location {
    color: #555;
    font-weight: 500;
}

.social-proof-toast .toast-book {
    font-size: 13px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-proof-toast .toast-time {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.social-proof-toast .toast-time::before {
    content: "🕐";
    font-size: 11px;
}

.social-proof-toast .toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.social-proof-toast .toast-close:hover {
    color: #333;
}

.social-proof-toast .verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #4CAF50;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
    font-weight: 600;
}

.social-proof-toast .verified-badge::before {
    content: "✓";
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .social-proof-toast {
        width: auto;
        left: 10px;
        right: 10px;
        bottom: 15px;
        padding: 12px;
        border-radius: 8px;
        flex-direction: row;
        align-items: center;
        max-width: none;
    }

    .social-proof-toast .toast-content {
        min-width: 0;
        width: auto;
    }

    .social-proof-toast .toast-icon {
        width: 50px;
        height: 65px;
    }

    .social-proof-toast .toast-title {
        font-size: 13px;
    }

    .social-proof-toast .toast-book {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
}