/* ================================================
   PLANTSHUB CUSTOM CSS
   ================================================ */

/* Hide reCAPTCHA badge everywhere except checkout */
.grecaptcha-badge {
    visibility: hidden !important;
}
body.woocommerce-checkout .grecaptcha-badge {
    visibility: visible !important;
}

/* ================================================
   VIDEO - Fix square aspect ratio
   ================================================ */
.rsfv-has-video video.rsfv-video,
.rsfv-has-video iframe.rsfv-video {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    width: 100% !important;
    object-fit: cover !important;
}
.rsfv-variation-active .rsfv-wrap,
.rsfv-variation-active .rsfv-video-container {
    display: none !important;
}

/* ================================================
   CUSTOM LIGHTBOX
   ================================================ */
#ph-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 999999;
}
#ph-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
#ph-lb-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 999998;
}
#ph-lb-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#ph-lb-img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: fadeIn 0.2s ease;
    position: relative;
    z-index: 1000000;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#ph-lb-close {
    position: fixed;
    top: 20px; right: 20px;
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999999;
}
#ph-lb-prev, #ph-lb-next {
    position: fixed;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999999;
}
#ph-lb-prev { left: 20px; }
#ph-lb-next { right: 20px; }
#ph-lb-counter {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 1000001;
}
#ph-lb-close:hover,
#ph-lb-prev:hover,
#ph-lb-next:hover {
    background: rgba(0,0,0,0.85) !important;
}

/* ================================================
   BUY BOX - Desktop Border
   ================================================ */
.wd-rs-637cfdb726b95 .vc_col-sm-1\/5 .vc_column-inner .wpb_wrapper {
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    padding: 18px 16px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

/* Ensure footer columns are NOT styled as cards */
.main-footer .vc_col-sm-1\/5 .vc_column-inner .wpb_wrapper {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ================================================
   VARIATIONS - Climate Zone / Height Labels
   ================================================ */
table.variations label {
    white-space: normal !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
}

table.variations tr {
    display: block !important;
}

table.variations th.label,
table.variations td.value {
    display: block !important;
    width: 100% !important;
}

table.variations th.label {
    padding-bottom: 4px !important;
}

table.variations td.value select {
    width: 100% !important;
}

/* ================================================
   QUANTITY BOX
   ================================================ */
.quantity input[type=number] {
    border: 1px solid #d5d9d9 !important;
    border-radius: 6px !important;
    padding: 4px 6px !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    font-size: 13px !important;
    height: 32px !important;
    min-height: unset !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.quantity {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

form.cart {
    justify-content: center !important;
}

.quantity .minus,
.quantity .plus {
    height: 32px !important;
    min-height: unset !important;
    width: 28px !important;
    line-height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ================================================
   BUTTONS
   ================================================ */
.single_add_to_cart_button {
    border-radius: 20px !important;
    width: 100% !important;
}

.wd-buy-now-btn {
    border-radius: 20px !important;
}

.single_add_to_cart_button,
.wd-buy-now-btn {
    font-size: 12.5px !important;
    padding: 6px 16px !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.5 !important;
}

.wd-single-wishlist-btn a {
    display: block !important;
    text-align: center !important;
    margin-top: 10px !important;
}

/* ================================================
   COLUMN WIDTHS - Desktop
   ================================================ */
.wd-rs-637cfdb726b95 .vc_col-sm-1\/5 {
    width: 22% !important;
}

.main-footer .vc_col-sm-1\/5 {
    width: 20% !important;
}

.wd-rs-63c9620cba425 {
    width: 38% !important;
}

/* ================================================
   SIMPLE PRODUCT ATTRIBUTES
   ================================================ */
.ph-simple-attributes {
    margin: 10px 0 15px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ph-attribute-row {
    margin-bottom: 5px;
    font-size: 14px;
}

/* ================================================
   PRODUCT PAGE WHITE BACKGROUND
   ================================================ */
.single-product .site-content,
.single-product #content,
.single-product .content-area,
.woocommerce.single-product .site-main,
.single-product .vc_row,
.single-product .wpb_column,
.single-product .vc_column-inner {
    background-color: #ffffff !important;
}

/* ================================================
   MOBILE FIXES
   ================================================ */
@media (max-width: 991px) {

    /* Force all columns full width */
    .vc_col-sm-2\/5,
    .vc_col-sm-1\/5,
    .vc_col-xs-12 {
        width: 100% !important;
        float: none !important;
        clear: both !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
    }

    /* Fix sticky column */
    .woodmart-sticky-column {
        position: static !important;
        width: 100% !important;
        float: none !important;
    }

    /* Fix variations full width */
    .variations_form,
    .variations,
    .variations td,
    .variations th {
        width: 100% !important;
        display: block !important;
    }

    table.variations {
        width: 100% !important;
    }

    table.variations label {
        white-space: normal !important;
        width: 100% !important;
        font-size: 14px !important;
        display: block !important;
    }

    table.variations select {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix buttons full width */
    .single_add_to_cart_button,
    .wd-buy-now-btn,
    .button.alt {
        width: 100% !important;
        display: block !important;
    }

    /* Fix product gallery */
    .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
    }

    /* Remove buy box border on mobile */
    .woodmart-sticky-column .vc_column-inner .wpb_wrapper {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Fix row flex wrapping */
    .vc_row.vc_row-flex {
        flex-wrap: wrap !important;
        display: flex !important;
    }

    .vc_row.vc_row-flex > .vc_column_container {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Hide duplicate thumbnail strip on mobile */
@media (max-width: 767px) {
    .wd-gallery-thumbs,
    .wd-carousel-thumbs,
    .woocommerce-product-gallery .wd-gallery-images ~ div,
    .slick-slider ~ .slick-slider {
        display: none !important;
    }
}

