/* =============================================
   QUICK VIEW MODAL — rebuilt from scratch
   ============================================= */

/* Overlay */
/*#flower-quickview-modal {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    position: fixed;*/
/*    inset: 0;*/
/*    background: rgba(30, 20, 40, 0.65);*/
/*    backdrop-filter: blur(4px);*/
/*    -webkit-backdrop-filter: blur(4px);*/
/*    z-index: 999999;*/
/*    padding: 30px 20px;*/
/*    overflow-y: auto;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*    pointer-events: none;*/
/*    transition: opacity 0.25s ease, visibility 0.25s ease;*/
/*}*/

#flower-quickview-modal {
    display: flex;
    justify-content: center;
    /* align-items: center;  <-- remove this line */
    position: fixed;
    inset: 0;
    background: rgba(30, 20, 40, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    padding: 30px 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#flower-quickview-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent body scroll while modal is open */
body.fqv-open {
    overflow: hidden !important;
}

/* Modal box */
/*.fqv-box {*/
/*    background: #fff;*/
/*    border-radius: 20px;*/
/*    max-width: 1000px;*/
/*    width: 100%;*/
/*    position: relative;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);*/
/*    animation: fqvSlideUp 0.3s ease forwards;*/
/*}*/

.fqv-box {
    background: #fff;
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    margin: auto;   /* ← this line replaces align-items:center for reliable scrolling */
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    animation: fqvSlideUp 0.3s ease forwards;
}

@keyframes fqvSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
/*.fqv-close {*/
/*    position: absolute;*/
/*    top: 18px;*/
/*    right: 22px;*/
/*    width: 36px;*/
/*    height: 36px;*/
/*    border-radius: 50%;*/
/*    background: #4d424b;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    font-size: 20px;*/
/*    color: #fefefe;*/
/*    z-index: 10;*/
/*    transition: background 0.2s;*/
/*}*/
/*.fqv-close:hover {*/
/*    background: #332b32;*/
/*}*/

.fqv-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    line-height: 1;
    border-radius: 50%;
    background: #4d424b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    color: #fefefe;
    z-index: 10;
    box-sizing: border-box;
    transition: background 0.2s;
}
.fqv-close:hover {
    background: #332b32;
}

/* Two-column inner layout */
.fqv-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Left: product image */
.fqv-image {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    background: #f9f5f2;
}
.fqv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: product details */
.fqv-details {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

/* Typography */
.fqv-name {
    font-size: 28px;
    font-weight: 700;
    color: #332b32;
    margin: 0 0 6px;
    line-height: 1.2;
}
.fqv-sku {
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.fqv-desc {
    font-size: 14px;
    color: #000;
    line-height: 1.7;
    margin-bottom: 20px;
}
.fqv-price {
    font-size: 24px;
    font-weight: 700;
    color: #332b32;
    margin-bottom: 24px;
}

/* Field label */
.fqv-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #332b32;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* Date input */
.fqv-date-input {
    width: 100%;
    padding: 13px 16px;
    border: 0px solid #332b32;
    border-radius: 0px;
    font-size: 14px;
    color: #332b32;
    background: #e1dce1;
    outline: none;
    margin-bottom: 18px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
    display: block;
    height: auto;
}
.fqv-date-input:focus {
    border-color: #332b32;
    background: #fff;
}

/* Quantity stepper */
/* Row: quantity stepper + cart button side by side */
.fqv-qty-cart-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
}

.fqv-qty-wrap {
    display: flex !important;
    align-items: stretch !important;
    flex: 0 0 auto !important;
    width: auto !important;
    border: 0px solid #332b32;
    border-radius: 0px;
    overflow: hidden;
    background: #e1dce1;
}

.fqv-qty-btn {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    flex: 0 0 34px !important;
    height: 46px !important;
    box-sizing: border-box !important;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    color: #4d424b;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.fqv-qty-btn:hover {
    background: #332b32;
    color: #fefefe;
}

.fqv-qty-input {
    width: 40px !important;
    flex: 0 0 40px !important;
    height: 46px !important;
    box-sizing: border-box !important;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #332b32;
    background: #fff;
    outline: none;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}
.fqv-qty-input::-webkit-inner-spin-button,
.fqv-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.fqv-cart-btn {
    flex: 1 1 auto !important;
    width: auto !important;
    padding: 16px 14px;
    border: none;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0;
    font-family: inherit;
}


.fqv-cart-btn:not(.fqv-view-cart):not(.fqv-disabled) {
    background: #4d424b;
    color: #fff;
}
.fqv-cart-btn:not(.fqv-view-cart):not(.fqv-disabled):hover {
    background: #332b32;
}
.fqv-cart-btn.fqv-disabled {
    background: #4d424b;
    color: #fefefe;
    cursor: not-allowed;
}
.fqv-cart-btn.fqv-view-cart {
    background: #332b32;
    color: #fff;
}
.fqv-cart-btn.fqv-view-cart:hover {
    background: #4d424b;
}
.fqv-cart-btn.fqv-loading-btn {
    background: #332b32;
    color: #fff;
    cursor: wait;
}

/* Loading dots */
.fqv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 10px;
}
.fqv-loading span {
    width: 10px;
    height: 10px;
    border-radius: 0%;
    background: #332b32;
    animation: fqvDot 1.2s infinite ease-in-out;
}
.fqv-loading span:nth-child(2) { animation-delay: 0.2s; }
.fqv-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fqvDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1;   }
}

/* =============================================
   ATTRIBUTES
   ============================================= */
.fqv-attributes {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    padding: 4px 0;
}

/*.fqv-attr-row {*/
/*    display: grid;*/
/*    grid-template-columns: 110px 1fr;*/
/*    align-items: baseline;*/
/*    gap: 8px;*/
/*    padding: 8px 0;*/
/*}*/

.fqv-attr-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: baseline;
    gap: 8px;
    padding: 8px 0;
}

.fqv-attr-row:last-child {
    border-bottom: none;
}

.fqv-attr-label {
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

.fqv-attr-values {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fqv-attr-tag {
    font-size: 13px;
    color: #2d2140;
    font-weight: 500;
    line-height: 1.4;
}

.fqv-attr-tag:not(:last-child)::after {
    content: ",";
    margin-right: 3px;
    color: #bbb;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 768px) {

    /* Modal — scrollable from top */
    #flower-quickview-modal {
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Body scroll — allow modal overlay to scroll */
    body.fqv-open {
        overflow: hidden !important;
    }

    /* Box — full width, no rounded corners, no animation */
    .fqv-box {
        border-radius: 0 !important;
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        margin: 0 !important;
        animation: none !important;
        box-shadow: none !important;
    }

    /* Stack image on top, details below */
    .fqv-inner {
        grid-template-columns: 1fr !important;
    }

/* Image - natural/original aspect ratio, no forced height */
    body .fqv-inner .fqv-image {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        background: #f9f5f2 !important;
        display: block !important;
        overflow: hidden !important;
    }

    body .fqv-inner .fqv-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Details */
    .fqv-details {
        padding: 20px 16px 40px !important;
    }

    .fqv-name {
        font-size: 22px !important;
        padding-right: 44px !important;
    }

    .fqv-price {
        font-size: 20px !important;
    }

    /* Date input — fixed height issue on mobile */
    .fqv-date-input {
        font-size: 16px !important;
        padding: 12px 14px !important;
        height: 48px !important;
        line-height: 1.4 !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    /* Qty */
    .fqv-qty-btn {
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
    }

    .fqv-qty-input {
        width: 50px !important;
        height: 42px !important;
        font-size: 16px !important;
    }

    /* Cart button */
    .fqv-cart-btn {
        padding: 16px !important;
        font-size: 15px !important;
    }

    /* Close button — fixed so visible while scrolling */
    .fqv-close {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        z-index: 9999999 !important;
        width: 34px !important;
        height: 34px !important;
    }

    /* Attributes */
    .fqv-attr-row {
        grid-template-columns: 100px 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .fqv-box {
        max-width: 95vw;
    }
    .fqv-image {
        min-height: 380px;
    }
}


/* =============================================
   BESTSELLER SLIDER SECTION
============================================= */

.best-seller-section {
    position: relative;
    width: 100%;
    padding: 10px 0 40px;
}

.bestSellerSwiper {
    overflow: hidden;
    width: 100%;
    /*padding-bottom: 20px !important;*/
}

.bestSellerSwiper .swiper-slide {
    height: auto;
    display: flex;
    padding: 6px 4px 10px;
}

.bestSellerSwiper .swiper-slide li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    flex: 1;
    background: #fff;
    border-radius: 0px;
    overflow: visible !important;
    border: 1px solid #eee;
    position: relative;
    padding-bottom: 16px !important;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.bestSellerSwiper .swiper-slide li.product:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.bestSellerSwiper .product-image-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.bestSellerSwiper .product-image-wrap img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    transition: transform 0.4s ease;
}

.bestSellerSwiper .swiper-slide li.product:hover .product-image-wrap img {
    transform: scale(1.05);
}

.bestSellerSwiper .swiper-slide li.product::after {
    display: none !important;
}

.bestSellerSwiper .product-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
    z-index: 5;
}

.bestSellerSwiper .swiper-slide li.product:hover .product-image-wrap::after {
    opacity: 1;
    visibility: visible;
}

.bestSellerSwiper .custom-quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: auto;
}

.bestSellerSwiper .swiper-slide li.product:hover .custom-quick-view-btn {
    opacity: 1;
    visibility: visible;
}

.bestSellerSwiper .swiper-button-next,
.bestSellerSwiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff !important;
    border: 0px solid #332b32;
    color: #332b32 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.14);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    top: 35%;
}

.bestSellerSwiper .swiper-button-next:hover,
.bestSellerSwiper .swiper-button-prev:hover {
    background: #4d424b !important;
    color: #fff !important;
    border-color: #4d424b;
}

.bestSellerSwiper .swiper-button-next::after,
.bestSellerSwiper .swiper-button-prev::after {
    font-size: 15px;
    font-weight: 700;
    color: inherit;
}

.bestSellerSwiper .swiper-pagination {
    position: relative;
    display: block;
    bottom: auto;
    margin-top: 16px;
    text-align: center;
}

.bestSellerSwiper .swiper-pagination-bullet {
    background: #332b32;
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: background 0.2s, transform 0.2s;
}

.bestSellerSwiper .swiper-pagination-bullet-active {
    background: #4d424b;
    transform: scale(1.3);
}

.bestSellerSwiper .custom-shop-content {
    padding: 14px 16px 4px !important;
}

.bestSellerSwiper .custom-product-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
}

.bestSellerSwiper .custom-short-desc {
    font-size: 13px !important;
    margin-bottom: 10px !important;
    min-height: 16px !important;
}

.bestSellerSwiper .custom-price {
    font-size: 18px !important;
    margin-bottom: 12px !important;
}

.bestSellerSwiper .custom-view-product-btn {
    height: 44px !important;
    font-size: 14px !important;
    border-radius: 0px !important;
    margin-bottom: 0 !important;
}

.bestSellerSwiper .swiper-slide li.product {
    padding-bottom: 16px !important;
}


/* ── Cart Table General ── */
.woocommerce table.shop_table {
    border: none !important;
    border-radius: 0px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06) !important;
}

.woocommerce table.shop_table th {
    background: #e1dce1 !important;
    color: #332b32 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 14px 20px !important;
    border: none !important;
}

.woocommerce table.shop_table td {
    border-color: #332b32 !important;
    padding: 10px !important;
    vertical-align: top !important;
}

/* ── Message Box Label ── */
.custom-messages-container label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #aaa !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 8px !important;
    margin-top: 14px !important;
}

/* ── Message Textarea ── */
.custom-messages-container textarea {
    width: 100% !important;
    max-width: 420px !important;
    padding: 10px 14px !important;
    border: 0px solid #332b32 !important;
    border-radius: 0px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: #332b32 !important;
    background: #e1dce1 !important;
    resize: vertical !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    display: block !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
}

.custom-messages-container textarea:focus {
    border-color: #332b32 !important;
    background: #fff !important;
}

.custom-messages-container textarea::placeholder {
    color: #332b32 !important;
    font-style: italic !important;
}

/* ── Update Cart Button ── */
.woocommerce .actions .button[name="update_cart"] {
    background: #332b32 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.woocommerce .actions .button[name="update_cart"]:hover {
    background: #4d424b !important;
}

/* ── Coupon row ── */
.woocommerce .coupon input[type="text"] {
    border: 0px solid #332b32 !important;
    border-radius: 0px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    color: #332b32 !important;
}

.woocommerce .coupon .button {
    background: #4d424b !important;
    color: #fff !important;
    border-radius: 10px !important;
    border: none !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.woocommerce .coupon .button:hover {
    background: #332b32 !important;
}

/* Hide Apply Coupon on Cart page */
.woocommerce-cart .coupon {
    display: none !important;
}