/*
 Theme Name:   Blocksy Child
 Theme URI:    https://bejoyi.com
 Description:  BeJoyi Child Theme for Blocksy
 Author:       BeJoyi Studio
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* ============================================
   MOBILE OFF-CANVAS MENU
   ============================================ */

/* Overlay background */
/* Values below are taken from the live site's mobile-menu popup (Elementor
   template 4764), so the drawer matches it once Elementor Pro is switched off:
   panel #FFF8EE, overlay #8A18186B, items Raleway Medium 400 14px/1px on #000,
   hover #8A1818 on #FFF, no separator lines, buttons #8A1818. */

.bejoyi-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(138, 24, 24, 0.42);
    z-index: 99998;
    transition: opacity 0.3s ease;
}

.bejoyi-menu-overlay.active {
    display: block;
}

/* Off-canvas drawer. Live centres the panel vertically rather than running it
   full height, so the panel sizes to its content up to 92vh. */
.bejoyi-mobile-drawer {
    position: fixed;
    top: 50%;
    left: -440px;
    transform: translateY(-50%);
    width: min(394px, 86vw);
    height: auto;
    max-height: 92vh;
    background: #FFF8EE;
    z-index: 99999;
    transition: left 0.35s ease;
    overflow-y: auto;
    box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.bejoyi-mobile-drawer.open {
    left: 0;
}

/* Drawer header */
.bejoyi-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 22px 0;
    border-bottom: 0;
    background: transparent;
}

.bejoyi-drawer-logo {
    font-family: "Roxborough Regular Font", "Roxborough Medium Font", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: #8A1818;
    text-decoration: none;
    letter-spacing: 0;
}

.bejoyi-drawer-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #8A1818;
    padding: 5px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bejoyi-drawer-close:hover {
    color: #6b1212;
}

/* Dotted rule under the logo (live uses a rhombus divider, 1.1px / 6.1px). */
.bejoyi-drawer-divider {
    display: block;
    height: 1.1px;
    margin: 15px 22px;
    background-image: radial-gradient(circle, #8A1818 0.8px, transparent 0.9px);
    background-size: 6.1px 6.1px;
    background-repeat: repeat-x;
    background-position: left center;
}

/* Navigation links */
.bejoyi-drawer-nav {
    padding: 10px 0;
}

.bejoyi-drawer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bejoyi-drawer-nav ul li a {
    display: block;
    padding: 14px 22px;
    color: #000000;
    text-decoration: none;
    font-family: "Raleway Medium", "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    /* Live sets border-style:none on these items - no separator lines. */
    border-bottom: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bejoyi-drawer-nav ul li a:hover,
.bejoyi-drawer-nav ul li a:focus,
.bejoyi-drawer-nav ul li a.is-active {
    background: #8A1818;
    color: #ffffff;
    /* No left shift on hover - live keeps the text in place. */
    padding-left: 22px;
}

/* "Shop Now" and "Track Your Order" */
.bejoyi-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px 6px;
}

.bejoyi-drawer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    background: #8A1818;
    color: #ffffff;
    font-family: "Raleway Medium", "Raleway", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.25s ease;
}

.bejoyi-drawer-btn:hover,
.bejoyi-drawer-btn:focus {
    background: #6b1212;
    color: #ffffff;
}

.bejoyi-drawer-btn-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Social icons in drawer */
.bejoyi-drawer-social {
    padding: 16px 22px 24px;
    display: flex;
    gap: 5px;
    border-top: 0;
    margin-top: auto;
}

.bejoyi-drawer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #1a1a1a;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

.bejoyi-drawer-social a:hover {
    color: #8A1818;
}

/* Contact info in drawer */
.bejoyi-drawer-contact {
    padding: 15px 22px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f0f0f0;
}

.bejoyi-drawer-contact a {
    color: #555;
    text-decoration: none;
}

/* Make hamburger icon clickable */
.elementor-element-dbcb695 .elementor-icon {
    cursor: pointer !important;
}


/* ============================================
   GENERAL FIXES
   ============================================ */

/* Sticky header */
#masthead {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

/* Ensure scrolling text section doesn't break */
.text_carousel_section {
    overflow: hidden;
}

/* ============================================
   PRIORITY 3 — SINGLE PRODUCT PAGE ENHANCEMENTS
   ============================================ */

/* NOTE: every rule in this block is scoped to body:not(.bejoyi-live-single) so it
   stands down on the single product page, which inc/bejoyi-single-product.php now
   styles to match the live Elementor template. They still apply if that module is
   removed. */

/* Product Title */
body:not(.bejoyi-live-single).single-product .product_title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.3px !important;
}

@media (max-width: 768px) {
    body.bejoyi-live-single .entry-summary .product_title {
        font-size: 22px;
    }
}

/* Price Display */
body:not(.bejoyi-live-single).single-product p.price {
    font-size: 22px !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

body:not(.bejoyi-live-single).single-product p.price ins,
body:not(.bejoyi-live-single).single-product p.price ins span bdi {
    color: #8A1818 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body:not(.bejoyi-live-single).single-product p.price del,
body:not(.bejoyi-live-single).single-product p.price del span bdi {
    color: #999999 !important;
    font-size: 17px !important;
    font-weight: 400 !important;
}

/* Short Description Box */
body:not(.bejoyi-live-single).single-product .woocommerce-product-details__short-description {
    background: #faf8f5 !important;
    border: 1px solid #ebd9c4 !important;
    border-radius: 8px !important;
    padding: 18px 22px !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
}

body:not(.bejoyi-live-single).single-product .woocommerce-product-details__short-description ul {
    padding-left: 18px !important;
    margin-bottom: 0 !important;
}

body:not(.bejoyi-live-single).single-product .woocommerce-product-details__short-description li {
    margin-bottom: 6px !important;
}

/* Cart & Buy Now Action Buttons */
body:not(.bejoyi-live-single).single-product .ct-cart-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    align-items: center !important;
    margin-bottom: 20px !important;
}

body:not(.bejoyi-live-single).single-product .single_add_to_cart_button {
    background-color: #8A1818 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    flex: 1 1 auto;
    min-width: 180px;
    text-align: center;
}

body:not(.bejoyi-live-single).single-product .single_add_to_cart_button:hover {
    background-color: #6b1212 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 24, 24, 0.25);
}

body:not(.bejoyi-live-single).single-product .buy-now-button {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 14px 32px !important;
    border-radius: 6px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    flex: 1 1 auto;
    min-width: 180px;
}

body:not(.bejoyi-live-single).single-product .buy-now-button:hover {
    background-color: #33334d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.25);
}

/* Trust Badges Container */
.bejoyi-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.bejoyi-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fcfcfc;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.bejoyi-trust-icon {
    font-size: 20px;
    line-height: 1;
}

.bejoyi-trust-text {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}

@media (max-width: 480px) {
    .bejoyi-trust-badges {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRIORITY 4 — SHOP & CATEGORY PAGES
   ============================================ */

/* Category Page Header Banner / Title */
.woocommerce-products-header__title,
.page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.3px !important;
}

/* Category Grid & Product Cards */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 30px 0 !important;
}

@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

.woocommerce ul.products li.product {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #f2f2f2 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding-bottom: 15px !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #e5e5e5 !important;
}

/* Product Card Images */
.woocommerce ul.products li.product img {
    border-radius: 8px 8px 0 0 !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.03);
}

/* Product Title in Grid */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    margin: 12px 14px 6px 14px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price in Grid */
.woocommerce ul.products li.product .price {
    font-size: 15px !important;
    margin: 0 14px 10px 14px !important;
}

.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins span bdi {
    color: #8A1818 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del span bdi {
    color: #999999 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}

/* Sale Badge */
span.onsale,
.woocommerce ul.products li.product .onsale {
    background-color: #8A1818 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    line-height: 1 !important;
    min-height: auto !important;
    min-width: auto !important;
}

/* Add to Cart Button in Grid */
.woocommerce ul.products li.product .button {
    background-color: #1a1a2e !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 10px 16px !important;
    margin: 0 14px !important;
    border-radius: 6px !important;
    text-align: center !important;
    transition: background 0.3s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #8A1818 !important;
}

/* ============================================
   PRIORITY 5 — FINAL CSS POLISH ACROSS ALL PAGES
   ============================================ */

/* Global Brand Palette */
:root {
    --bejoyi-primary: #8A1818;
    --bejoyi-dark: #1a1a2e;
    --bejoyi-light-bg: #faf8f5;
    --bejoyi-border: #ebd9c4;
}

/* Global Button Fixes */
button, input[type="submit"], .button {
    transition: all 0.3s ease !important;
}

/* Mobile responsive padding & spacing */
@media (max-width: 768px) {
    .site-main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ============================================
   SHOPLENTOR / SHOPBUILDER (RTSB) CUSTOM STYLING
   Matching Live Site Trending Collection
   ============================================ */

.rtsb-elementor-container .category-title,
.rtsb-elementor-container .category-title a {
    font-family: "Raleway", sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
    color: #8A1818 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    display: block !important;
    margin-top: 8px !important;
}

.rtsb-elementor-container .product-title,
.rtsb-elementor-container .product-title a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.rtsb-elementor-container .product-title a:hover {
    color: #8A1818 !important;
}

.rtsb-elementor-container .price-wrapper ins,
.rtsb-elementor-container .price-wrapper ins span bdi {
    color: #8A1818 !important;
    font-weight: 700 !important;
}

.rtsb-elementor-container .price-wrapper del,
.rtsb-elementor-container .price-wrapper del span bdi {
    color: #999999 !important;
}

/* Product Cards Only */
.rtsb-elementor-container .rtsb-product .rtsb-product-img figure {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* ============================================================
   CIRCULAR CATEGORY THUMBNAILS (MATCHING LIVE WEBSITE)
   ============================================================ */

/* ============================================================
   TOP CATEGORY SECTION ONLY: CIRCULAR THUMBNAILS
   (Strictly scoped to .elementor-widget-rtsb-product-categories-general
    to ensure lower banner sections are NOT affected)
   ============================================================ */

/* Shared Base */
.elementor-widget-rtsb-product-categories-general .rtsb-category-layout1 .rtsb-category-grid {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.elementor-widget-rtsb-product-categories-general .category-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
}

.elementor-widget-rtsb-product-categories-general .rtsb-product-img {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.elementor-widget-rtsb-product-categories-general .rtsb-product-img figure {
    border-radius: 50% !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto !important;
    display: block !important;
}

.elementor-widget-rtsb-product-categories-general .rtsb-product-img img {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
}

.elementor-widget-rtsb-product-categories-general .rtsb-category-layout1:hover img,
.elementor-widget-rtsb-product-categories-general .rtsb-category-grid:hover img {
    transform: scale(1.06) !important;
}

.elementor-widget-rtsb-product-categories-general .category-title,
.elementor-widget-rtsb-product-categories-general .category-title a {
    font-family: "Raleway", sans-serif !important;
    font-weight: 500 !important;
    color: #8A1818 !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
    text-transform: capitalize !important;
}

/* Desktop View (>= 768px): 140px circles with 51px spacing */
@media (min-width: 768px) {
    .elementor-widget-rtsb-product-categories-general .rtsb-category-layout1 .rtsb-category-grid {
        padding-left: calc(51px / 2) !important;
        padding-right: calc(51px / 2) !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img {
        margin: 0 auto 12px auto !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img figure {
        width: 140px !important;
        height: 140px !important;
        max-width: 100% !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img img {
        width: 100% !important;
        height: 100% !important;
    }

    .elementor-widget-rtsb-product-categories-general .category-title,
    .elementor-widget-rtsb-product-categories-general .category-title a {
        font-size: 15px !important;
        margin-top: 8px !important;
        letter-spacing: 0.3px !important;
    }
}

/* Mobile View (<= 767px): Symmetrical 58px Circles & Clean 2-Line Titles */
@media (max-width: 767px) {
    .elementor-widget-rtsb-product-categories-general .rtsb-category-layout1 .rtsb-category-grid {
        padding-left: 4px !important;
        padding-right: 4px !important;
        margin-bottom: 12px !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img {
        margin: 0 auto 6px auto !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img figure {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        margin: 0 auto !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-product-img img {
        width: 58px !important;
        height: 58px !important;
        max-width: 58px !important;
        max-height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }

    .elementor-widget-rtsb-product-categories-general .category-title,
    .elementor-widget-rtsb-product-categories-general .category-title a {
        font-size: 11px !important;
        line-height: 1.25 !important;
        margin-top: 4px !important;
        margin-bottom: 0 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        white-space: normal !important;
        text-align: center !important;
        letter-spacing: 0 !important;
    }

    .elementor-widget-rtsb-product-categories-general .category-title.rtsb-text-limit {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
    }

    .elementor-widget-rtsb-product-categories-general .rtsb-category-content,
    .elementor-widget-rtsb-product-categories-general .category-inner,
    .elementor-widget-rtsb-product-categories-general .category-title-with-count {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}

/* ============================================================
   LOWER "SHOP BY CATEGORIES" BANNER GRID
   (Rectangular Banners with Overlay - Matching Live Website)
   ============================================================ */
.elementor-widget-rtsb-products-single-category .single-category-area {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 5px !important;
    width: 100% !important;
    display: block !important;
    text-align: left !important;
}

.elementor-widget-rtsb-products-single-category .rtsb-category-grid {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.elementor-widget-rtsb-products-single-category .rtsb-product-img {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

.elementor-widget-rtsb-products-single-category .rtsb-product-img figure {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
    display: block !important;
}

.elementor-widget-rtsb-products-single-category .rtsb-product-img img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 5px !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1) !important;
}

.elementor-widget-rtsb-products-single-category .rtsb-category-single-layout1:hover .rtsb-product-img img,
.elementor-widget-rtsb-products-single-category .rtsb-category-single-layout1 .rtsb-category-grid:hover img {
    transform: scale(1.08) !important;
}

.elementor-widget-rtsb-products-single-category .category-overlay {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    position: absolute !important;
    z-index: 3 !important;
    transform: translateY(0) !important;
}

.elementor-widget-rtsb-products-single-category .category-title-with-count {
    padding: 15px 25px !important;
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
    display: flex !important;
}

.elementor-widget-rtsb-products-single-category .category-title,
.elementor-widget-rtsb-products-single-category .category-title a {
    font-family: "Raleway Medium", "Raleway", sans-serif !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
    text-align: left !important;
    margin: 0 !important;
    letter-spacing: 1px !important;
    display: inline-block !important;
    text-transform: capitalize !important;
    font-size: inherit !important;
}

/* Preserve ShopBuilder hover image centering & smooth transition */
.rtsb-elementor-container .rtsb-product.rtsb-double-img .rtsb-product-img .rtsb-img-hover {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    position: absolute !important;
}

.rtsb-elementor-container.gallery-hover-fade.img-hover-zoom_in .rtsb-product.rtsb-double-img:hover .rtsb-img-hover {
    transform: translate(-50%, -50%) scale3d(1.1, 1.1, 1) !important;
    opacity: 1 !important;
}

/* ============================================
   COLLECTION HERO BANNERS — MISSING BACKGROUND IMAGES FIX
   ============================================ */

/* Trending Collection Header Banner (Container 8d348a6) */
.elementor-element-8d348a6,
.elementor-8044 .elementor-element-8d348a6 {
    background-image: url("https://staging.bejoyi.com/wp-content/uploads/2026/05/Trending-Collection-Banner-Image.jpg") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    min-height: 280px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Dark overlay so text is readable over image */
.elementor-element-8d348a6::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 1 !important;
}

/* Ensure banner text & dividers are above overlay */
.elementor-element-8d348a6 > * {
    position: relative !important;
    z-index: 2 !important;
}

.elementor-element-8d348a6 .elementor-heading-title,
.elementor-element-8d348a6 h1,
.elementor-element-8d348a6 h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    letter-spacing: 2px !important;
}

/* ============================================
   EXACT LIVE STYLE PRODUCT GRID & CARDS
   Features:
   - 3 Column Grid
   - Multi-image slider with prev/next arrows & dots
   - Floating hover action pill (Wishlist Heart + Add to Cart Bag)
   - Clean Raleway typography & maroon prices
   ============================================ */

.bejoyi-custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .bejoyi-custom-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

.bejoyi-card-item {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    transition: transform 0.3s ease !important;
}

/* Card Image Area */
.bejoyi-card-media {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3 / 4.4 !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
}

/* Sale Badge */
.bejoyi-card-sale-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #8A1818 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 3px 9px !important;
    border-radius: 3px !important;
    z-index: 8 !important;
    line-height: 1 !important;
}

/* Gallery Slider Inside Card */
.bejoyi-gallery-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.bejoyi-slide-img {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    text-decoration: none !important;
}

.bejoyi-slide-img.active {
    display: block !important;
}

.bejoyi-slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.bejoyi-card-item:hover .bejoyi-slide-img.active img {
    transform: scale(1.04) !important;
}

/* Slider Nav Arrows (< >) */
.bejoyi-slide-nav {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    width: 36px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 7 !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.bejoyi-card-item:hover .bejoyi-slide-nav {
    opacity: 1 !important;
}

.bejoyi-slide-nav:hover,
.bejoyi-slide-nav:focus {
    background: transparent !important;
    color: #ffffff !important;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
    outline: none !important;
}

.bejoyi-slide-nav.prev { left: 6px !important; }
.bejoyi-slide-nav.next { right: 6px !important; }

/* Slide Indicator Dots (Positioned above Title) */
.bejoyi-slide-dots {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 14px auto 8px auto !important;
    padding: 0 !important;
    width: 100% !important;
    z-index: 5 !important;
}

.bejoyi-dot-pill {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #f4d3c4 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
    border: none !important;
}

.bejoyi-dot-pill.active {
    background: #8A1818 !important;
    transform: scale(1.2) !important;
}

/* ============================================
   FLOATING HOVER ACTION PILL (Wishlist + Cart)
   ============================================ */

.bejoyi-hover-action-bar {
    position: absolute !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(12px) !important;
    background: #ffffff !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18) !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    gap: 12px !important;
    z-index: 9 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.bejoyi-card-item:hover .bejoyi-hover-action-bar {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.bejoyi-bar-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    line-height: 1 !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.bejoyi-bar-action-btn:hover {
    color: #8A1818 !important;
    transform: scale(1.15) !important;
}

.bejoyi-bar-action-btn:hover svg {
    stroke: #8A1818 !important;
}

.bejoyi-bar-separator {
    width: 1px !important;
    height: 16px !important;
    background: #e2e2e2 !important;
}

/* ============================================================
   RESPONSIVE DISPLAY FIX (TABLET & DESKTOP COLLECTION ROWS)
   ============================================================ */

@media (min-width: 768px) {
    .elementor-element-2b71dd5c,
    .elementor-element-1e2cbb8c,
    .elementor-element-3ddcdbd6,
    .elementor-element-2ba9f110,
    .elementor-element-6565cfd5,
    .elementor-element-402ec273,
    .elementor-element-5024add4,
    .elementor-element-3fc68161,
    .elementor-element-4a5477e5,
    .elementor-element-153004da,
    .elementor-element-31e5d46 {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
    .elementor-element-499e45ee,
    .elementor-element-328273bc,
    .elementor-element-4eb63f0f,
    .elementor-element-450d8c41 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.elementor-element-5024add4,
.elementor-element-499e45ee,
.elementor-element-3fc68161,
.elementor-element-328273bc,
.elementor-element-4a5477e5,
.elementor-element-4eb63f0f,
.elementor-element-450d8c41 {
    display: block !important;
    width: 100% !important;
    min-height: 400px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bejoyi-custom-product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .bejoyi-custom-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

.bejoyi-card-item {
    background: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: none !important;
}

/* Media Box (Portrait 3:4 aspect ratio) */
.bejoyi-card-media {
    position: relative !important;
    width: 100% !important;
    padding-top: 138% !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    border-radius: 0px !important;
    margin: 0 !important;
}

/* Sale Badge */
.bejoyi-card-sale-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #8A1818 !important;
    color: #ffffff !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 3px 8px !important;
    border-radius: 2px !important;
    z-index: 8 !important;
    line-height: 1.2 !important;
}

/* Gallery Slider Container */
.bejoyi-gallery-wrapper {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bejoyi-slide-img {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bejoyi-slide-img.active {
    display: block !important;
    z-index: 2 !important;
}

.bejoyi-slide-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bejoyi-card-item:hover .bejoyi-slide-img.active img {
    transform: scale(1.03) !important;
}

/* ============================================================
   OTHER COLLECTIONS 4-COLUMN HORIZONTAL GRID (MATCHING LIVE)
   ============================================================ */

.elementor-element-5c28d0c {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 15px !important;
    margin-bottom: 40px !important;
}

.elementor-element-5c28d0c > .elementor-child,
.elementor-element-75c7757,
.elementor-element-5c34533,
.elementor-element-3b1e32d,
.elementor-element-3a1ef9a {
    width: 25% !important;
    max-width: 25% !important;
    flex: 1 1 25% !important;
    box-sizing: border-box !important;
}

.elementor-element-5c28d0c img {
    max-height: 280px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
}

.rtsb-categories-container .rtsb-sale-badge,
.rtsb-categories-container .badge-top {
    display: none !important;
}
.elementor-element-5d8e3b70 {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.bejoyi-hero-slider-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 8 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #faf8f5 !important;
}
@supports not (aspect-ratio: 16 / 8) {
    .bejoyi-hero-slider-wrap {
        height: 50vw !important;
    }
}
.bejoyi-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
}
.bejoyi-slider-dots {
    position: absolute !important;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
}
@media (max-width: 767px) {
    .bejoyi-slider-dots {
        bottom: 8px !important;
        gap: 5px !important;
    }
    .bejoyi-dot {
        width: 7px !important;
        height: 7px !important;
    }
    .bejoyi-slider-prev,
    .bejoyi-slider-next {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }
    .bejoyi-slider-prev { left: 8px !important; }
    .bejoyi-slider-next { right: 8px !important; }
}

/* ============================================================
   SAREES PAGE RIGHT PRODUCT SECTION
   ============================================================ */
.elementor-element-3596d335 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.elementor-element-3596d335 .bejoyi-custom-product-grid {
    margin-top: 15px !important;
    width: 100% !important;
}

.bejoyi-sarees-pagination .page-numbers:hover {
    background: #8A1818 !important;
    color: #ffffff !important;
    border-color: #8A1818 !important;
}

/* ============================================================
   EMBROIDERY COLLECTION RIGHT PRODUCT SECTION
   ============================================================ */
.elementor-element-7e1f94cb,
.elementor-element-6f8ce48c,
.elementor-element-f2f3daa {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 400px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.elementor-element-7e1f94cb .bejoyi-custom-product-grid,
.elementor-element-6f8ce48c .bejoyi-custom-product-grid,
.elementor-element-f2f3daa .bejoyi-custom-product-grid {
    margin-top: 15px !important;
    width: 100% !important;
}

/* ============================================================
   SCROLL TO TOP ARROW BUTTON (Matching Live Website bejoyi.com)
   ============================================================ */
.bejoyi-back-to-top {
    position: fixed !important;
    bottom: 93px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    color: #8a1818 !important;
    border: 1px solid rgba(138, 24, 24, 0.15) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 99999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(16px) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    padding: 0 !important;
    outline: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bejoyi-back-to-top.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.bejoyi-back-to-top:hover,
.bejoyi-back-to-top:focus {
    background-color: #8a1818 !important;
    color: #ffffff !important;
    border-color: #8a1818 !important;
    box-shadow: 0 6px 20px rgba(138, 24, 24, 0.35) !important;
    transform: translateY(-3px) !important;
}

.bejoyi-back-to-top svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    fill: currentColor !important;
    transition: fill 0.25s ease !important;
}

.bejoyi-back-to-top:hover svg,
.bejoyi-back-to-top:focus svg {
    fill: #ffffff !important;
}

@media (max-width: 767px) {
    .bejoyi-back-to-top {
        bottom: 80px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
    }
    .bejoyi-back-to-top svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* =============================================
   Footer Mobile Visibility — elementor-1458
   Ensure first (desktop) footer is hidden on mobile with !important
============================================= */
@media (max-width: 767px) {
    .elementor-1458 .elementor-element-d36657d,
    .elementor-element.elementor-hidden-mobile,
    .elementor-element.elementor-hidden-phone,
    .elementor .elementor-hidden-mobile,
    .elementor .elementor-hidden-phone {
        display: none !important;
    }

    /* Copyright row — center */
    .elementor-1458 .elementor-element-f7f3ce2,
    .elementor-1458 .elementor-element-01a88c8 {
        text-align: center !important;
        width: 100% !important;
    }
}

/* =============================================
   Add To Cart Button Icon Styling
   Normal: icon color #8A1818
   Hover: button bg #8A1818, icon & text #fff
   ============================================= */
.rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon,
.rtsb-elementor-container .rtsb-cart .rtsb-action-btn .icon i,
.rtsb-elementor-container .rtsb-cart .rtsb-action-btn .cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8A1818 !important;
    transition: color 0.3s ease !important;
}

.rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover {
    background-color: #8A1818 !important;
    border-color: #8A1818 !important;
}

.rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .icon,
.rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .icon i,
.rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .cart-icon {
    color: #fff !important;
}

.rtsb-elementor-container .rtsb-cart .rtsb-action-btn:hover .text {
    color: #fff !important;
}

/* Hide Theme Footer globally */
#footer.ct-footer { display: none !important; }


/* ============================================
   WISHLIST PAGE — MOBILE CARD LAYOUT
   ============================================

   On mobile the YITH wishlist renders its desktop table (YITH picks the
   template by user agent, and phone-width browsing keeps a desktop UA), so
   the row stayed a 5-column table: an 80px thumbnail beside a product name
   squeezed into a narrow cell, wrapping one word per line.

   Below 768px each row becomes a stacked card instead - image, then name,
   then price, stock and the button - which is the DOM order already, so the
   cells only need to be full-width blocks.

   The plugin caps the thumbnail link at max-width:80px
   (.wishlist_table tr td.product-thumbnail a); the rules here are more
   specific, so no !important is needed to widen it.
   ============================================ */

@media (max-width: 767px) {

    /* Column headings are meaningless once the row is a card. */
    body.woocommerce-wishlist .wishlist_table thead {
        display: none;
    }

    body.woocommerce-wishlist .wishlist_table,
    body.woocommerce-wishlist .wishlist_table tbody,
    body.woocommerce-wishlist .wishlist_table tbody tr,
    body.woocommerce-wishlist .wishlist_table tbody td {
        display: block;
        width: 100%;
    }

    body.woocommerce-wishlist .wishlist_table tbody tr {
        background: #ffffff;
        border: 1px solid #ececec;
        border-radius: 10px;
        padding: 16px;
        margin: 0 0 20px;
        text-align: center;
    }

    body.woocommerce-wishlist .wishlist_table tbody td {
        border: 0;
        padding: 0 0 10px;
        text-align: center;
    }

    body.woocommerce-wishlist .wishlist_table tbody td:last-child {
        padding-bottom: 0;
    }

    /* The responsive table styling prefixes cells with a "Price:" / "Stock:"
       label. Each value now sits on its own line, so the labels only add noise. */
    body.woocommerce-wishlist .wishlist_table tbody td::before {
        display: none !important;
    }

    /* 1 — product image, full card width */
    body.woocommerce-wishlist .wishlist_table tbody td.product-thumbnail {
        padding-bottom: 14px;
    }

    body.woocommerce-wishlist .wishlist_table tbody td.product-thumbnail a {
        display: block;
        max-width: 100%;
        margin: 0 auto;
    }

    body.woocommerce-wishlist .wishlist_table tbody td.product-thumbnail img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    /* 2 — product name */
    body.woocommerce-wishlist .wishlist_table tbody td.product-name a {
        display: block;
        font-size: 16px;
        line-height: 1.45;
        font-weight: 500;
        color: #292929;
        text-decoration: none;
    }

    /* 3 — price */
    body.woocommerce-wishlist .wishlist_table tbody td.product-price {
        font-size: 17px;
        font-weight: 600;
        color: #8A1818;
    }

    body.woocommerce-wishlist .wishlist_table tbody td.product-price del,
    body.woocommerce-wishlist .wishlist_table tbody td.product-price del span {
        font-size: 14px;
        font-weight: 400;
        color: #999999;
        margin-left: 6px;
    }

    body.woocommerce-wishlist .wishlist_table tbody td.product-price ins {
        text-decoration: none;
    }

    /* 4 — stock status */
    body.woocommerce-wishlist .wishlist_table tbody td.product-stock-status {
        font-size: 14px;
    }

    /* 5 — add to cart, full width and on-brand.
       YITH renders WooCommerce's standard loop button here. The brand button
       styling elsewhere on the site is scoped to the collection-grid cards
       (.bejoyi-card-item ...), so on this page the button fell back to the
       default blue - hence the explicit colours below. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart a.button,
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart a.add_to_cart_button {
        display: block;
        width: 100%;
        margin: 4px 0 0;
        padding: 13px 18px;
        background: #8A1818;
        color: #ffffff;
        border: 0;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        text-decoration: none;
        text-align: center;
    }

    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart a.button:hover,
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart a.add_to_cart_button:hover {
        background: #6b1212;
        color: #ffffff;
    }

    /* "View cart" link the AJAX button appends after a successful add. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart a.added_to_cart {
        display: inline-block;
        margin-top: 8px;
        font-size: 13px;
        color: #8A1818;
    }

    /* Date-added note, when the plugin is set to show it. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-add-to-cart span.dateadded {
        font-size: 12px;
        color: #888888;
        margin-bottom: 8px;
    }

    /* Remove button, if that column is enabled, sits under the button. */
    body.woocommerce-wishlist .wishlist_table tbody td.product-remove {
        padding-top: 10px;
    }
}

/* ==========================================================================
   SINGLE PRODUCT UPSELLS - MOBILE & TABLET VISIBILITY
   ========================================================================== */
body.single-product section.up-sells.ct-hidden-sm,
body.single-product section.up-sells.ct-hidden-md,
body.bejoyi-live-single section.up-sells.ct-hidden-sm,
body.bejoyi-live-single section.up-sells.ct-hidden-md {
    display: block !important;
}

