/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   Festive Offers Page Styling
   ========================================================================== */

.festive-page-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 15px 70px;
    color: #4a382e;
}

/* Hero Banner */
.festive-hero {
    text-align: center;
    padding: 45px 25px 35px;
    background: linear-gradient(135deg, #fdf8f3 0%, #faede1 50%, #f6e3d2 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #ebd7c5;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(109, 66, 35, 0.05);
}
.festive-badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7b4a28;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    border: 1px solid #e2cbba;
    margin-bottom: 12px;
}
.festive-title {
    font-size: 38px;
    font-weight: 700;
    color: #5c3d2e;
    margin: 0 0 12px;
    line-height: 1.2;
}
.festive-subtitle {
    font-size: 16px;
    color: #6b5548;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Sticky Navigation Pills */
.festive-sticky-nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    z-index: 99;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 50px;
    margin-bottom: 40px;
    box-shadow: 0 8px 24px rgba(92, 61, 46, 0.08);
    border: 1px solid #ebd9cb;
    transition: top 0.2s ease;
}
body.admin-bar .festive-sticky-nav-container {
    top: 112px;
}
.festive-pills-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.festive-pills-list::-webkit-scrollbar {
    display: none;
}
.festive-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #5c3d2e !important;
    text-decoration: none !important;
    background: #fbf7f2;
    border: 1.5px solid #e5d4c5;
    border-radius: 50px;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.festive-pill-link:hover {
    background: #eedfd2;
    color: #4a2f21 !important;
    border-color: #d1b7a2;
    transform: translateY(-1px);
}
.festive-pill-link.active {
    background: #5c3d2e !important;
    color: #ffffff !important;
    border-color: #5c3d2e !important;
    box-shadow: 0 4px 14px rgba(92, 61, 46, 0.25);
}
.festive-pill-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    background: #edd5bf;
    color: #5c3d2e;
    line-height: 1.2;
}
.festive-pill-link.active .festive-pill-badge {
    background: #ffffff;
    color: #5c3d2e;
}

/* Category Sections */
.festive-section {
    scroll-margin-top: 170px;
    margin-bottom: 55px;
    padding-top: 10px;
}
body.admin-bar .festive-section {
    scroll-margin-top: 200px;
}
.festive-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid #f0e2d5;
    padding-bottom: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.festive-section-title-wrap {
    flex: 1;
    min-width: 250px;
}
.festive-section-tag {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #b56933;
    display: block;
    margin-bottom: 4px;
}
.festive-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #5c3d2e;
    margin: 0 0 6px;
    line-height: 1.25;
}
.festive-section-desc {
    font-size: 15px;
    color: #7d6b60;
    margin: 0;
}
.festive-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #5c3d2e !important;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 30px;
    background: #fbf5ef;
    border: 1px solid #dfcfc2;
    transition: all 0.2s ease;
}
.festive-view-all-btn:hover {
    background: #5c3d2e;
    color: #ffffff !important;
    border-color: #5c3d2e;
}

/* Ensure Woodmart product grid looks crisp */
.festive-section .products {
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .festive-title {
        font-size: 26px;
    }
    .festive-sticky-nav-container {
        top: 60px;
        border-radius: 16px;
        padding: 8px 10px;
        margin-bottom: 30px;
    }
    body.admin-bar .festive-sticky-nav-container {
        top: 106px;
    }
    .festive-pills-list {
        justify-content: flex-start;
        gap: 8px;
    }
    .festive-pill-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    .festive-section {
        scroll-margin-top: 130px;
        margin-bottom: 40px;
    }
    body.admin-bar .festive-section {
        scroll-margin-top: 175px;
    }
    .festive-section-title {
        font-size: 22px;
    }
}

/* ==========================================================================
   FESTIVE OFFERS PAGE - v2 - Complete redesign with stronger selectors
   ========================================================================== */

/* ---- Hero Section ---- */
.page-festive-offers .festive-hero,
.festive-page-wrapper .festive-hero {
    text-align: center;
    padding: 50px 28px 40px;
    background: linear-gradient(135deg, #fdf5ee 0%, #fbe8d4 55%, #f5dac4 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    border: 1px solid #e8d0bc;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(109, 66, 35, 0.09);
}

.festive-page-wrapper .festive-badge {
    display: inline-block;
    padding: 7px 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7b4a28;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50px;
    border: 1.5px solid #e0c9b6;
    margin-bottom: 16px;
}

.festive-page-wrapper .festive-title {
    font-size: 40px;
    font-weight: 800;
    color: #5c3d2e;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.festive-page-wrapper .festive-subtitle {
    font-size: 16px;
    color: #6b5548;
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- Sticky Pills - Override Woodmart list styles with extreme specificity ---- */
body .festive-sticky-nav-container {
    position: -webkit-sticky;
    position: sticky;
    top: 88px;
    z-index: 200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    padding: 10px 14px;
    border-radius: 60px;
    margin-bottom: 44px;
    box-shadow: 0 4px 20px rgba(92, 61, 46, 0.10), 0 1px 4px rgba(92,61,46,0.06);
    border: 1.5px solid #e9d9cc;
}

body.admin-bar .festive-sticky-nav-container {
    top: 120px;
}

body .festive-sticky-nav-container ul.festive-pills-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

body .festive-sticky-nav-container ul.festive-pills-list::-webkit-scrollbar {
    display: none;
}

body .festive-sticky-nav-container ul.festive-pills-list li {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    flex-shrink: 0;
}

body .festive-sticky-nav-container ul.festive-pills-list li::before,
body .festive-sticky-nav-container ul.festive-pills-list li::after {
    display: none !important;
    content: none !important;
}

body .festive-sticky-nav-container .festive-pill-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #5c3d2e !important;
    text-decoration: none !important;
    background: #f9f4ef !important;
    border: 1.5px solid #ddc9b8 !important;
    border-radius: 50px !important;
    white-space: nowrap !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    box-shadow: none !important;
}

body .festive-sticky-nav-container .festive-pill-link:hover {
    background: #eedfd2 !important;
    color: #3e2516 !important;
    border-color: #c9a98e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(92,61,46,0.12) !important;
}

body .festive-sticky-nav-container .festive-pill-link.active {
    background: #5c3d2e !important;
    color: #ffffff !important;
    border-color: #5c3d2e !important;
    box-shadow: 0 4px 14px rgba(92, 61, 46, 0.3) !important;
    transform: none !important;
}

.festive-pill-badge {
    display: inline-block !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    background: #e8cfbc !important;
    color: #5c3d2e !important;
    line-height: 1.3 !important;
    letter-spacing: 0.3px;
}

body .festive-sticky-nav-container .festive-pill-link.active .festive-pill-badge {
    background: rgba(255,255,255,0.25) !important;
    color: #ffffff !important;
}

/* ---- Section Headings ---- */
.festive-section {
    scroll-margin-top: 180px;
    margin-bottom: 60px;
}

body.admin-bar .festive-section {
    scroll-margin-top: 210px;
}

.festive-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 24px;
    background: linear-gradient(to right, #5c3d2e 0%, #8b5e42 100%);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(92, 61, 46, 0.18);
    position: relative;
    overflow: hidden;
}

.festive-section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}

.festive-section-header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 40%;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.festive-section-title-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    z-index: 1;
}

.festive-section-tag {
    font-size: 11.5px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: rgba(255,255,255,0.65);
    display: block;
    margin-bottom: 5px;
}

.festive-section-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 4px !important;
    line-height: 1.2 !important;
}

.festive-section-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

.festive-view-all-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #5c3d2e !important;
    text-decoration: none !important;
    padding: 9px 20px !important;
    border-radius: 30px !important;
    background: #ffffff !important;
    border: none !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.festive-view-all-btn:hover {
    background: #f5e9df !important;
    color: #3e2516 !important;
    transform: translateX(2px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.16) !important;
}

/* Product grid */
.festive-section .products {
    margin-bottom: 0 !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    body .festive-sticky-nav-container {
        top: 65px;
        border-radius: 20px;
        padding: 8px 10px;
        margin-bottom: 30px;
    }
    body.admin-bar .festive-sticky-nav-container {
        top: 109px;
    }
    body .festive-sticky-nav-container ul.festive-pills-list {
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    body .festive-sticky-nav-container .festive-pill-link {
        padding: 8px 14px !important;
        font-size: 12.5px !important;
    }
    .festive-section {
        scroll-margin-top: 140px;
        margin-bottom: 40px;
    }
    body.admin-bar .festive-section {
        scroll-margin-top: 185px;
    }
    .festive-section-header {
        padding: 16px 18px;
    }
    .festive-section-title {
        font-size: 21px !important;
    }
    .festive-page-wrapper .festive-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .festive-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .festive-view-all-btn {
        align-self: flex-start;
    }
}


/* ==========================================================================
   REMOVE SALE BADGES ONLY - KEEP SOLD OUT BADGES ON PRODUCT IMAGES
   ========================================================================== */
.onsale,
.onsale.product-label,
.featured.product-label,
.new.product-label {
    display: none !important;
}

/* Ensure Sold out badges are visible on product images */
.product-labels .out-of-stock.product-label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==========================================================================
   FESTIVE OFFERS - PRODUCTS GRID (3 per row desktop, 2 per row mobile)
   ========================================================================== */
.festive-section .products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
    margin-bottom: 0 !important;
}
.festive-section .products::before,
.festive-section .products::after {
    display: none !important;
}
.festive-section .products li.product,
.festive-section .products .wd-product {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .festive-section .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}

@media (max-width: 600px) {
    .festive-section .products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* STRICTLY 2 products per row on mobile */
        gap: 10px !important;
    }
    .festive-section .products .product-wrapper {
        padding: 6px !important;
    }
    .festive-section .product-element-bottom .wd-entities-title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        min-height: 34px !important;
    }
    .festive-section .product-element-bottom .price {
        font-size: 13px !important;
    }
}

/* ==========================================================================
   FESTIVE OFFERS - PILLS NAVIGATION (1 line desktop, 2x2 grid mobile)
   ========================================================================== */
.festive-pills-container {
    position: relative !important;
    top: auto !important;
    margin: 28px auto 44px !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-radius: 50px !important;
    border: 1.5px solid #ebdcd0 !important;
    box-shadow: 0 4px 18px rgba(92, 61, 46, 0.08) !important;
    width: fit-content !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.festive-pills-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* 1 line on desktop */
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.festive-pill-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 9px 18px !important;
    border-radius: 30px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #5c3d2e !important;
    background: #fdfaf7 !important;
    border: 1px solid #ebdcd0 !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.festive-pill-link:hover {
    background: #5c3d2e !important;
    color: #ffffff !important;
    border-color: #5c3d2e !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(92, 61, 46, 0.20) !important;
}

.festive-pill-link:hover .festive-pill-badge {
    background: #ffffff !important;
    color: #5c3d2e !important;
}

.festive-pill-link.active {
    background: #5c3d2e !important;
    color: #ffffff !important;
    border-color: #5c3d2e !important;
    box-shadow: 0 3px 10px rgba(92, 61, 46, 0.25) !important;
}

.festive-pill-link.active .festive-pill-badge {
    background: #ffffff !important;
    color: #5c3d2e !important;
}

.festive-pill-badge {
    display: inline-block !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    background: #5c3d2e !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
}

.festive-section {
    scroll-margin-top: 100px;
}

/* Hide sold out / out of stock products on festive page */
.festive-section .product.outofstock,
.festive-section .product.out-of-stock,
.festive-section li.outofstock,
.festive-section li.out-of-stock,
.festive-section .wd-product.outofstock,
.festive-section .wd-product.out-of-stock {
    display: none !important;
}

/* If a section has no products, style the empty notice gracefully */
.festive-section p.woocommerce-info {
    background: #fdfaf7 !important;
    border: 1px solid #ebdcd0 !important;
    border-radius: 8px !important;
    padding: 18px 24px !important;
    color: #6b5548 !important;
    font-size: 15px !important;
    text-align: center !important;
    margin: 20px 0 0 !important;
}

/* Display friendly restocking notice if a festive category has no in-stock products */
.festive-section .woocommerce:empty::after {
    content: '✨ Our festive gift sets and bundles are currently sold out. Restocking soon!';
    display: block;
    text-align: center;
    padding: 30px 20px;
    background: #fdfaf7;
    border-radius: 12px;
    border: 1.5px dashed #ebdcd0;
    color: #7d6b60;
    font-size: 15px;
    margin-top: 20px;
}

/* ==========================================================================
   FESTIVE OFFERS - HIDE VIEW CATEGORY / VIEW ALL BUTTONS GLOBALLY
   ========================================================================== */
.festive-view-all-btn,
a.festive-view-all-btn,
.festive-section-header .festive-view-all-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   SIDECART (MINI-CART) LIST FORMAT & NO QUANTITY CONTROLS
   ========================================================================== */
.b3g1-bundle-border-wrapper {
    border: 2px solid #c9935b !important;
    border-radius: 12px !important;
    background: #fffcf8 !important;
    padding: 10px 10px 6px !important;
    margin: 12px 0 16px !important;
    box-shadow: 0 4px 14px rgba(92,61,46,0.06) !important;
    position: relative !important;
}
.b3g1-bundle-border-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1.5px solid #ecdac8 !important;
    padding-bottom: 7px !important;
    margin-bottom: 8px !important;
}
.b3g1-bundle-border-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: #5c3d2e !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    letter-spacing: 0.3px !important;
}
.b3g1-bundle-tag-sub {
    font-size: 11px !important;
    color: #2e7d32 !important;
    font-weight: 700 !important;
}

/* Force Horizontal LIST Layout for Side-Cart Items */
.woocommerce-mini-cart-item.b3g1-bundled-item,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 8px 4px !important;
    margin: 0 0 6px !important;
    border-bottom: 1px dashed #eedfcb !important;
    position: relative !important;
    text-align: left !important;
    background: transparent !important;
}
.woocommerce-mini-cart-item.b3g1-bundled-item:last-child,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Small thumbnail on left */
.woocommerce-mini-cart-item.b3g1-bundled-item .cart-item-image,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item .cart-item-image {
    flex: 0 0 54px !important;
    width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 2px !important;
    background: #fff !important;
    border: 1px solid #ebdcd0 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.woocommerce-mini-cart-item.b3g1-bundled-item .cart-item-image img,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item .cart-item-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* Details on right */
.woocommerce-mini-cart-item.b3g1-bundled-item .cart-info,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item .cart-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    padding: 0 20px 0 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
.woocommerce-mini-cart-item.b3g1-bundled-item .wd-entities-title,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item .wd-entities-title {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #2b201a !important;
    display: block !important;
    margin-bottom: 3px !important;
}
.woocommerce-mini-cart-item.b3g1-bundled-item .variation,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item .variation {
    font-size: 11px !important;
    color: #7d6b60 !important;
    margin: 0 0 3px !important;
    line-height: 1.3 !important;
}

/* HIDE QUANTITY OPTION IN CART & SIDECART */
.b3g1-bundled-item .quantity,
.b3g1-bundled-item div.quantity,
.b3g1-bundled-item .woodmart-quantity,
.b3g1-bundle-border-wrapper .quantity,
.b3g1-bundle-border-wrapper div.quantity,
.woocommerce-cart-form__cart-item.b3g1-bundled-item .quantity,
.woocommerce-cart-form__cart-item.b3g1-bundled-item .product-quantity input {
    display: none !important;
    visibility: hidden !important;
}

/* Clean price display without quantity prefix */
.woocommerce-mini-cart-item.b3g1-bundled-item span.quantity,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item span.quantity {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #5c3d2e !important;
    margin-top: 2px !important;
}

/* Remove button position in list */
.woocommerce-mini-cart-item.b3g1-bundled-item a.remove,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item a.remove {
    position: absolute !important;
    top: 6px !important;
    right: 2px !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 20px !important;
    font-size: 17px !important;
    color: #ad9e93 !important;
    text-align: center !important;
}
.woocommerce-mini-cart-item.b3g1-bundled-item a.remove:hover,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item a.remove:hover {
    color: #d32f2f !important;
}

/* Fix double cross button: hide WoodMart's :after pseudo-icon on bundled items so only ONE cross renders */
.woocommerce-mini-cart-item.b3g1-bundled-item a.remove:after,
.b3g1-bundle-border-wrapper .woocommerce-mini-cart-item a.remove:after {
    display: none !important;
    content: none !important;
}

/* Homepage Hero Slider - Exact Same Height Across All Slides */
.banners-carousel-wrapper .banners-carousel .wd-carousel-item,
.banners-carousel-wrapper .promo-banner-wrapper,
.banners-carousel-wrapper .promo-banner,
.banners-carousel-wrapper .main-wrapp-img,
.banners-carousel-wrapper .banner-image {
    height: 100% !important;
}
.banners-carousel-wrapper .banner-image img,
.banners-carousel-wrapper .promo-banner img {
    width: 100% !important;
    aspect-ratio: 2172 / 744 !important;
    object-fit: cover !important;
    height: auto !important;
    display: block !important;
}

/* ==========================================================================
   FESTIVE OFFERS - RESPONSIVE NAVIGATION & UNIFORM CARD HEIGHTS
   ========================================================================== */

/* 1. Category Navigation Pills (Responsive 2x2 contained grid) */
@media (max-width: 860px) {
    .festive-pills-container {
        display: block !important;
        position: relative !important;
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        margin: 16px auto 28px !important;
        padding: 10px !important;
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1.5px solid #ebdcd0 !important;
        box-shadow: 0 4px 18px rgba(92, 61, 46, 0.08) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .festive-pills-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .festive-pill-link {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        border-radius: 25px !important;
        font-size: 11.5px !important;
        background: #fdfaf7 !important;
        border: 1px solid #ebdcd0 !important;
        text-decoration: none !important;
        overflow: hidden !important;
        transition: all 0.2s ease !important;
    }

    .festive-pill-link:hover,
    .festive-pill-link.active {
        background: #5c3d2e !important;
        color: #ffffff !important;
        border-color: #5c3d2e !important;
    }

    .festive-pill-link:hover .festive-pill-name,
    .festive-pill-link.active .festive-pill-name {
        color: #ffffff !important;
    }

    .festive-pill-link:hover .festive-pill-badge,
    .festive-pill-link.active .festive-pill-badge {
        background: #ffffff !important;
        color: #5c3d2e !important;
    }

    .festive-pill-name {
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #5c3d2e !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex-shrink: 1 !important;
    }

    .festive-pill-badge {
        font-size: 9px !important;
        font-weight: 700 !important;
        letter-spacing: 0.3px !important;
        padding: 2.5px 6px !important;
        border-radius: 10px !important;
        background: #5c3d2e !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .festive-section {
        scroll-margin-top: 85px;
    }
}

@media (max-width: 400px) {
    .festive-pills-container {
        padding: 8px !important;
        margin: 14px auto 22px !important;
    }
    .festive-pills-list {
        gap: 6px !important;
    }
    .festive-pill-link {
        padding: 7px 6px !important;
        gap: 4px !important;
    }
    .festive-pill-name {
        font-size: 10.5px !important;
    }
    .festive-pill-badge {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
}

/* 2. Strictly Uniform Product Card Heights in Mobile (All festive sections) */
@media (max-width: 768px) {
    /* WooCommerce shortcode product grids */
    .festive-section .products,
    .festive-section .products.wd-grid-g {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px 10px !important;
        align-items: stretch !important;
    }

    .festive-section .products .wd-col,
    .festive-section .products li.product,
    .festive-section .products .wd-product {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .festive-section .products .product-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #ebdcd0 !important;
        padding: 8px !important;
        justify-content: space-between !important;
        overflow: hidden !important;
    }

    .festive-section .product-element-top,
    .festive-section .products .product-element-top {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        background: #fbf7f2 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        margin-bottom: 8px !important;
    }

    .festive-section .product-element-top .product-image-link {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }

    .festive-section .product-element-top img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .festive-section .product-element-bottom {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        justify-content: space-between !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .festive-section .product-element-bottom .wd-entities-title {
        font-size: 12.5px !important;
        line-height: 1.35 !important;
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 0 4px 0 !important;
    }

    .festive-section .product-element-bottom .star-rating {
        display: none !important;
    }

    .festive-section .product-element-bottom .price {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #5c3d2e !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.2 !important;
        height: 18px !important;
    }

    .festive-section .product-element-bottom .wd-add-btn {
        margin-top: auto !important;
        width: 100% !important;
    }

    .festive-section .product-element-bottom .wd-add-btn a.button {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
        border-radius: 5px !important;
        background: #7a9e7e !important;
        color: #ffffff !important;
        min-height: 34px !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ==========================================================================
   FESTIVE OFFERS - BOOTSTRAP CONTAINER WIDTH SPECIFICATION
   Matches standard Bootstrap 5 container breakpoints and behavior:
   xs: 100%, sm (>=576px): 540px, md (>=768px): 720px, lg (>=992px): 960px,
   xl (>=1200px): 1140px, xxl (>=1400px): 1320px
   ========================================================================== */

/* Full-width content wrapper inside generic page */
.generic-page-content--full,
article.generic-page-content.generic-page-content--full {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto 60px !important;
    padding: 0 !important;
}

/* Container rules for Festive Offers page */
body.page-festive-offers .container,
body.page-id-31749 .container,
.festive-page-wrapper {
    width: 100% !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    box-sizing: border-box !important;
}

/* Reset inner festive-page-wrapper padding when inside .container to avoid nested double-gutters */
body.page-festive-offers .container .festive-page-wrapper,
body.page-id-31749 .container .festive-page-wrapper {
    padding-right: 0 !important;
    padding-left: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 60px !important;
    max-width: 100% !important;
}

/* Bootstrap Container Breakpoints */
@media (min-width: 576px) {
    body.page-festive-offers .container,
    body.page-id-31749 .container,
    .festive-page-wrapper {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    body.page-festive-offers .container,
    body.page-id-31749 .container,
    .festive-page-wrapper {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    body.page-festive-offers .container,
    body.page-id-31749 .container,
    .festive-page-wrapper {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    body.page-festive-offers .container,
    body.page-id-31749 .container,
    .festive-page-wrapper {
        max-width: 1140px !important;
    }
}

@media (min-width: 1400px) {
    body.page-festive-offers .container,
    body.page-id-31749 .container,
    .festive-page-wrapper {
        max-width: 1320px !important;
    }
}

/* Ensure hero, pills, and sections fill the full container width */
.festive-hero,
.festive-pills-container,
.festive-section,
.generic-page-content--full .festive-hero,
.generic-page-content--full .festive-pills-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}


/* ==========================================================================
   FESTIVE OFFERS - MIDDLE ALIGNED CARDS, COMPACT BUTTON & TEXT (2026-10-31)
   ========================================================================== */
.festive-section ul.products li.product,
.festive-section .products li.product {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 18px 14px 20px !important;
    box-sizing: border-box !important;
}

.festive-section ul.products li.product a.woocommerce-LoopProduct-link,
.festive-section .products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    text-decoration: none !important;
}

.festive-section ul.products li.product img,
.festive-section .products li.product img {
    margin: 0 auto 12px !important;
    display: block !important;
}

/* Title: middle aligned, compact font */
.festive-section ul.products li.product .woocommerce-loop-product__title,
.festive-section ul.products li.product h2,
.festive-section ul.products li.product h3 {
    text-align: center !important;
    font-size: 14.5px !important;
    line-height: 1.35 !important;
    min-height: 38px !important;
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
    color: var(--ink, #241B14) !important;
    width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Price: middle aligned, smaller font */
.festive-section ul.products li.product .price,
.festive-section .products li.product .price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    width: 100% !important;
}
.festive-section ul.products li.product .price del,
.festive-section .products li.product .price del {
    font-size: 12px !important;
    opacity: 0.6 !important;
}
.festive-section ul.products li.product .price ins,
.festive-section .products li.product .price ins {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--brown-dark, #54301A) !important;
    text-decoration: none !important;
}

/* Star rating centered if present */
.festive-section ul.products li.product .star-rating,
.festive-section .products li.product .star-rating {
    margin: 0 auto 6px !important;
}

/* Button: middle aligned, compact width, smaller text */
.festive-section ul.products li.product .button,
.festive-section .products li.product .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: auto auto 0 auto !important;
    width: auto !important;
    min-width: 110px !important;
    max-width: 80% !important;
    padding: 8px 18px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border-radius: 6px !important;
    border: 1px solid var(--brown-dark, #54301A) !important;
    background: #ffffff !important;
    color: var(--brown-dark, #54301A) !important;
    box-shadow: 0 2px 6px rgba(84, 48, 26, 0.06) !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}
.festive-section ul.products li.product .button:hover,
.festive-section .products li.product .button:hover {
    background: var(--brown-dark, #54301A) !important;
    color: #ffffff !important;
}

@media (max-width: 600px) {
    .festive-section ul.products li.product,
    .festive-section .products li.product {
        padding: 14px 10px 16px !important;
    }
    .festive-section ul.products li.product .woocommerce-loop-product__title,
    .festive-section ul.products li.product h2,
    .festive-section ul.products li.product h3 {
        font-size: 13px !important;
        min-height: 34px !important;
    }
    .festive-section ul.products li.product .price,
    .festive-section .products li.product .price {
        font-size: 13px !important;
        gap: 6px !important;
    }
    .festive-section ul.products li.product .price del,
    .festive-section .products li.product .price del {
        font-size: 11.5px !important;
    }
    .festive-section ul.products li.product .price ins,
    .festive-section .products li.product .price ins {
        font-size: 13.5px !important;
    }
    .festive-section ul.products li.product .button,
    .festive-section .products li.product .button {
        padding: 6px 12px !important;
        font-size: 10.5px !important;
        min-width: 100px !important;
    }
}
