/* ============================================
   L'AMOUR BRIDAL - Custom Styles v3
   ============================================ */

/* -------------------------------------------
   1. SALE BADGE
   ------------------------------------------- */
.woocommerce ul.products li.product .lamour-sale-badge,
.woocommerce-page ul.products li.product .lamour-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 10px;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    pointer-events: none;
}

.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale {
    display: none !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    position: relative;
    overflow: visible;
}


/* -------------------------------------------
   2. HERO BOOK NOW - CĂN GIỮA
   Nút #dynamicButton nằm trong UAGB container
   ------------------------------------------- */
.uagb-block-5a6f09cc {
    position: relative !important;
}

#dynamicButton,
a#dynamicButton,
a.custom-button {
    position: absolute !important;
    bottom: 30px !important; /* Cách mép dưới banner 30px */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 99 !important;
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    padding: 14px 38px !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: 1.5px solid #000000 !important;
    border-radius: 30px !important; /* Capsule style */
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    width: max-content !important;
    max-width: fit-content !important;
    margin: 0 !important;
}

#dynamicButton:hover,
a#dynamicButton:hover,
a.custom-button:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    transform: translateX(-50%) scale(1.02) !important; /* Giữ căn giữa khi scale */
}

/* Đảm bảo container cha không tạo positioning context phụ để nút định vị chuẩn theo banner */
.uagb-block-5a6f09cc .uagb-container-inner-blocks-wrap,
.uagb-block-99e26d42 {
    position: static !important;
    display: block !important;
    width: 100% !important;
}

/* Fallback: căn giữa cho mọi .custom-button trong UAGB container */
.wp-block-uagb-container .custom-button {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* -------------------------------------------
   3. BEST SELLER - Horizontal Scroll (Gọn đẹp)
   ------------------------------------------- */
.lamour-bestseller-section {
    padding: 50px 0 40px;
    background: #faf9f7;
    overflow: hidden;
}

.lamour-bestseller-section .lamour-section-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.lamour-bestseller-section .lamour-section-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #000;
    margin: 0 0 8px;
    display: inline-block;
}

.lamour-bestseller-section .lamour-section-header h2::after {
    content: '';
    display: block;
    width: 35px;
    height: 2.5px;
    background: #4a90d9;
    margin: 10px auto 0;
    border-radius: 2px;
}

.lamour-bestseller-section .lamour-section-header p {
    color: #aaa;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 10px 0 0;
}

/* Scroll wrapper */
.lamour-scroll-wrapper {
    position: relative;
    padding: 0 50px;
    max-width: 1300px;
    margin: 0 auto;
}

.lamour-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 5px 0 15px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.lamour-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Product Card - Gọn đẹp giống ảnh mẫu */
.lamour-product-card {
    flex: 0 0 210px;
    min-width: 210px;
    scroll-snap-align: start;
    background: transparent !important;
    border-radius: 0px !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    transition: opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.lamour-product-card:hover {
    opacity: 0.95;
}

/* Card image - tỉ lệ 3:4 cho váy cưới */
.lamour-product-card .lamour-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
}

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

/* Sale badge trên card - trắng viền đen như hình mẫu */
.lamour-product-card .lamour-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Card info */
.lamour-product-card .lamour-card-info {
    padding: 14px 10px 18px;
    text-align: center;
}

.lamour-product-card .lamour-card-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 6px;
    line-height: 1.3;
}

.lamour-product-card .lamour-card-title a {
    text-decoration: none;
    color: inherit;
}

.lamour-product-card .lamour-card-excerpt {
    font-family: 'Quicksand', sans-serif;
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
    margin-bottom: 8px;
    text-align: center;
}

.lamour-product-card .lamour-card-price {
    font-size: 14px;
    color: #888888;
    margin: 0 0 12px;
}

.lamour-product-card .lamour-card-price del {
    color: #cccccc;
    margin-right: 6px;
    font-size: 12px;
}

.lamour-product-card .lamour-card-price ins {
    text-decoration: none;
    color: #e74c3c;
    font-weight: 600;
}

.lamour-product-card .lamour-card-book-btn {
    display: inline-block;
    padding: 8px 24px;
    background: #ffffff;
    color: #000000;
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1.2px solid #000000;
    border-radius: 30px; /* Capsule shape */
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.lamour-product-card .lamour-card-book-btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Scroll arrows */
.lamour-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    font-size: 20px;
    color: #555;
    line-height: 1;
}

.lamour-scroll-arrow:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.lamour-scroll-arrow.left { left: 5px; }
.lamour-scroll-arrow.right { right: 5px; }


/* -------------------------------------------
   4. % OFF TEXT - Màu đỏ
   ------------------------------------------- */
.lamour-sale-text {
    color: #e74c3c !important;
    font-weight: 700 !important;
    font-size: 0.8em;
    background: rgba(231,76,60,0.07);
    padding: 2px 5px;
    border-radius: 3px;
    display: inline;
    white-space: nowrap;
}

.single-product .product_title .lamour-sale-text,
.single-product .entry-title .lamour-sale-text {
    font-size: 0.55em;
    vertical-align: middle;
}


/* -------------------------------------------
   5. BOOK NOW - Thay thế Add to Cart
   ------------------------------------------- */
/* Ẩn Add to Cart + quantity trên trang chi tiết */
.single-product .cart .single_add_to_cart_button,
.single-product .cart button.button.alt,
.single-product .cart .quantity {
    display: none !important;
}

/* Nút Book Appointment trên trang chi tiết */
.lamour-book-now-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 12px;
    clear: both;
}

.lamour-book-now-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 38px !important;
    background: linear-gradient(135deg, #fb4b7a, #fa2d64) !important;
    color: #fff !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.lamour-book-now-btn:hover {
    background: linear-gradient(135deg, #fa2d64, #e01f54) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251,75,122,0.4);
    color: #fff !important;
}

/* Ẩn Add to Cart trong loop sản phẩm, hiện Book Now */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product a.button.product_type_variable,
.woocommerce ul.products li.product a.button.product_type_simple {
    display: none !important;
}

.woocommerce ul.products li.product .lamour-loop-book-btn {
    display: block !important;
    text-align: center;
    padding: 9px 16px;
    background: #000;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 1px solid #000;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.woocommerce ul.products li.product .lamour-loop-book-btn:hover {
    background: transparent;
    color: #000;
}


/* -------------------------------------------
   6. VEILS & ACCESSORIES SECTIONS
   ------------------------------------------- */
.lamour-category-section {
    padding: 45px 0;
}

.lamour-category-section .lamour-section-header {
    text-align: center;
    margin-bottom: 30px;
}

.lamour-category-section .lamour-section-header h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #000;
    margin: 0 0 8px;
    display: inline-block;
}

.lamour-category-section .lamour-section-header h2::after {
    content: '';
    display: block;
    width: 35px;
    height: 2.5px;
    background: #4a90d9;
    margin: 10px auto 0;
    border-radius: 2px;
}

.lamour-view-all {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 36px;
    font-family: 'Quicksand', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    border: 1px solid #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lamour-view-all:hover {
    background: #000;
    color: #fff;
}


/* -------------------------------------------
   7. RESPONSIVE
   ------------------------------------------- */
@media (max-width: 768px) {
    .lamour-bestseller-section .lamour-section-header h2,
    .lamour-category-section .lamour-section-header h2 {
        font-size: 1.7rem;
    }
    .lamour-product-card {
        flex: 0 0 160px;
        min-width: 160px;
    }
    .lamour-product-card .lamour-card-title {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .lamour-product-card .lamour-card-excerpt {
        font-size: 10px;
        margin-bottom: 5px;
    }
    .lamour-product-card .lamour-card-price {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .lamour-product-card .lamour-card-book-btn {
        padding: 5px 14px;
        font-size: 8px;
    }
    .lamour-product-card .lamour-card-badge {
        top: 8px;
        left: 8px;
        font-size: 8px;
        padding: 3px 6px;
    }
    .lamour-scroll-wrapper { padding: 0 15px; }
    .lamour-scroll-arrow { display: none; }
    .lamour-book-now-btn { padding: 13px 28px !important; }
    #dynamicButton, a#dynamicButton, a.custom-button {
        padding: 12px 28px !important;
        font-size: 11px !important;
        bottom: 20px !important; /* Gần sát mép dưới trên di động */
    }
}

@media (max-width: 480px) {
    .lamour-product-card {
        flex: 0 0 140px;
        min-width: 140px;
    }
    .lamour-scroll-wrapper {
    }
    .lamour-scroll-container {
        gap: 12px;
    }
}

/* -------------------------------------------
   8. TABS LAYOUT IN SCROLL SECTION
   ------------------------------------------- */
.lamour-tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.lamour-tab-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666666;
    padding: 8px 22px;
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lamour-tab-btn:hover {
    border-color: #000000;
    color: #000000;
}

.lamour-tab-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.lamour-no-products {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-family: 'Quicksand', sans-serif;
    color: #888888;
    font-size: 14px;
}

@media (max-width: 480px) {
    .lamour-tabs-header {
        gap: 8px;
        margin-bottom: 20px;
    }
    .lamour-tab-btn {
        padding: 6px 14px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

/* -------------------------------------------
   9. VARIABLE PRICES STYLING
   ------------------------------------------- */
/* Default style: inline with separator (e.g., on single product page) */
.lamour-variable-prices {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
}

.lamour-price-part {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lamour-price-label {
    font-weight: 600;
    color: #555555;
    text-transform: capitalize;
}

.lamour-price-sep {
    display: inline;
    color: #cccccc;
    margin: 0 2px;
}

/* Custom styling inside our product cards (tabs) to look stacked and neat */
.lamour-product-card .lamour-card-price {
    min-height: 38px; /* reserve space for up to 2 lines to align buttons */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.lamour-product-card .lamour-variable-prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
}

.lamour-product-card .lamour-variable-prices .lamour-price-sep {
    display: none; /* Hide pipe separator when stacked */
}

@media (max-width: 768px) {
    .lamour-product-card .lamour-card-price {
        min-height: 32px;
    }
    .lamour-product-card .lamour-variable-prices {
        font-size: 11px;
        gap: 1px;
    }
}

/* -------------------------------------------
   10. SOCIAL MEDIA LINKS CENTERING & STYLING
   ------------------------------------------- */
/* Center parent block */
.uagb-block-a8c338dd {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Center heading block just in case */
.uagb-block-f0e328ab {
    text-align: center !important;
    width: 100% !important;
}

/* Style the buttons */
.insta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 8px auto !important;
    padding: 6px 12px !important;
    text-decoration: none !important;
    color: #333333 !important;
    font-family: 'Quicksand', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    border-radius: 4px;
}

.insta-btn img {
    margin-right: 8px !important;
    transition: transform 0.2s ease !important;
}

.insta-btn:hover {
    color: #000000 !important;
    transform: translateY(-1px);
}

.insta-btn:hover img {
    transform: scale(1.1);
}

/* -------------------------------------------
   11. NAVIGATION MENU HOVER & SALE HIGHLIGHT
   ------------------------------------------- */
/* Fix submenu hover disappearing on gap crossing */
.main-header-menu .sub-menu {
    margin-top: 0 !important;
    top: 100% !important;
    overflow: visible !important;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.main-header-menu .sub-menu::before {
    content: '' !important;
    position: absolute !important;
    top: -30px !important; /* Spans the visual gap to the parent item */
    left: 0 !important;
    width: 100% !important;
    height: 30px !important;
    background: transparent !important;
    display: block !important;
    z-index: 99999 !important;
}

/* Make Sale menu item stand out (Pill Badge style) */
.main-header-menu .lamour-menu-sale-highlight > a,
.ast-mobile-popup-inner .lamour-menu-sale-highlight > a {
    color: #e74c3c !important; /* Vibrant Red */
    font-weight: 700 !important;
    background: rgba(231, 76, 60, 0.08) !important; /* Soft Red Background */
    padding: 6px 16px !important;
    border-radius: 30px !important; /* Capsule style pill shape */
    border: 1px solid rgba(231, 76, 60, 0.2) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center;
}

.main-header-menu .lamour-menu-sale-highlight > a:hover,
.ast-mobile-popup-inner .lamour-menu-sale-highlight > a:hover {
    background: #e74c3c !important;
    color: #ffffff !important;
    border-color: #e74c3c !important;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.2) !important;
}



