/*
Theme Name:   Astra Child - Big Dump Valet
Theme URI:    https://backup.testlinkwebsite.store/Big-Dump-Valet-v2/
Description:  Astra child theme with custom WooCommerce pickup product layout.
Author:       Big Dump Valet
Template:     astra
Version:      1.0.0
Text Domain:  astra-child-bdv
*/

/* ============================================================
   BDV PICKUP PRODUCT LAYOUT
   Only applied on the custom pickup template.
   ============================================================ */

.bdv-product-page {
    padding: 80px 0 80px;
}
.bdv-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Breadcrumb */
.bdv-breadcrumb {
    font-size: 13px;
    letter-spacing: 1px;
    color: #6b6b6b;
    margin-bottom: 28px;
    text-transform: none;
}
.bdv-breadcrumb a { color: #6b6b6b; text-decoration: none; }
.bdv-breadcrumb span { color: #1a1a1a; font-weight: 600; }

/* Two-column flex layout */
.bdv-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}
.bdv-left  { flex: 1 1 45%; min-width: 320px; }
.bdv-right {
    flex: 1 1 50%;
    min-width: 340px;
    position: sticky;
    top: 40px;
}

/* ---------- LEFT COLUMN ---------- */
.bdv-gallery {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    padding: 0px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}
.bdv-gallery img { width: 100%; height: auto; display: block; }
.bdv-gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #1e2b25;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 5;
}

/* Native WooCommerce gallery inside our box */
.bdv-gallery .woocommerce-product-gallery {
    margin: 0; width: 100% !important;
}
.bdv-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.bdv-gallery .woocommerce-product-gallery__image { border-radius: 4px; overflow: hidden; }
.bdv-gallery .woocommerce-product-gallery__trigger {
    top: 16px; right: 16px; z-index: 6;
}
.bdv-gallery .flex-control-thumbs {
    display: flex;
    gap: 15px;
    margin: 14px 0 0;
    padding: 0 20px 15px;
    list-style: none;
}
.bdv-gallery .flex-control-thumbs li {
    width: 72px !important; margin: 0; float: none; list-style: none;
}
.bdv-gallery .flex-control-thumbs img {
    border: 1px solid #e5e2d9; border-radius: 4px; opacity: .65;
    cursor: pointer; transition: opacity .15s, border-color .15s;
}
.bdv-gallery .flex-control-thumbs img.flex-active,
.bdv-gallery .flex-control-thumbs img:hover {
    opacity: 1; border-color: #1e3a2f;
}

.bdv-gallery a.woocommerce-product-gallery__trigger {
    display: none;
}

/* Space gauge */
.bdv-gauge {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 6px;
    padding: 22px;
    margin-top: 22px;
}
.bdv-gauge-label {
    letter-spacing: 1.5px;
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 600;
    margin: 0 0 16px;
}
.bdv-gauge-row { display: flex; gap: 20px; align-items: center; }
.bdv-gauge-box {
    width: 130px; height: 84px; flex-shrink: 0;
    border: 2px solid #1e3a2f;
    background: repeating-linear-gradient(45deg,#f0f0f0,#f0f0f0 6px,#fafafa 6px,#fafafa 12px);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* When a variation image is present, drop the striped background */
.bdv-gauge-box.has-image {
    background: #fff;
}
.bdv-gauge-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bdv-gauge-size { font-size: 26px; font-weight: 800; line-height: 1.1; }
.bdv-gauge-desc { color: #6b6b6b; font-size: 14px; margin-top: 4px; }

/* ---------- RIGHT COLUMN ---------- */
.bdv-eyebrow {
    letter-spacing: 2px; font-size: 12px; color: #6b6b6b;
    font-weight: 600; margin: 0 0 10px;
}
.bdv-title {
    font-size: 46px; font-weight: 800; margin: 0 0 18px;
    letter-spacing: -1px; line-height: 1.05; color: #1a1a1a;
}
.bdv-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.bdv-price-amount {font-size: 35px;font-weight: 700;color: #1a1a1a;}
.bdv-price-note { color: #6b6b6b; font-size: 15px; }

.bdv-blurb {
    border-left: 3px solid var( --e-global-color-accent );
    padding-left: 18px;
    color: #333;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 580px;
}

.bdv-choose-label {
    letter-spacing: 1.5px; font-size: 12px; color: #6b6b6b;
    font-weight: 600; margin: 0 0 14px;
}
.bdv-size-cards { display: flex; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.bdv-size-card {
    border: 1px solid #d9d6cd; background: #fff; border-radius: 8px;
    padding: 15px 20px; min-width: 190px; cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.bdv-size-card:hover { border-color: #b7b3a7; }
.bdv-size-card.is-active {border: 2px solid var( --e-global-color-accent );padding: 14px 19px;}
.bdv-size-top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.bdv-size-name { font-weight: 700; font-size: 16px; color: #1a1a1a; }
.bdv-size-price {font-weight: 700;color: #1a1a1a;font-size: 18px;}
.bdv-size-sub {color: #6b6b6b;font-size: 15px;margin-top: 0;font-weight: 300;}

/* Qty + add to cart */
.bdv-cart-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 18px; flex-wrap: wrap; }
.bdv-cart-row .quantity { display: flex; align-items: center; }
.bdv-add-btn {
    flex: 1; min-width: 260px;
    background: #e0a02a !important; color: #1a1a1a !important;
    font-weight: 800 !important; letter-spacing: .5px;
    border: none !important; border-radius: 6px;
    padding: 16px 24px !important; cursor: pointer;
    text-transform: uppercase; font-size: 15px !important;
    transition: background .15s;
}
.bdv-add-btn:hover { background: #cf9020 !important; }

.bdv-meta { color: #6b6b6b; font-size: 13px; margin-top: 8px; }
.bdv-meta strong { color: #1a1a1a; }

.bdv-divider { border: none; border-top: 1px solid #e0ddd3; margin: 34px 0; }

/* ---------- INFO BOXES ---------- */
.bdv-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bdv-box {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 8px;
    padding: 20px 20px;
}
.bdv-box h3 {
    letter-spacing: 1px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var( --e-global-color-accent );
    text-transform: uppercase;
}
.bdv-box ul { margin: 0; padding-left: 18px; list-style: disc; }
.bdv-box li {margin-bottom: 6px;line-height: 1.5;color: #333;font-size: 15px;}
.bdv-box-danger { background: #fbf3f2; border-color: #f0dcd9; }
.bdv-box-danger h3 { color: #b3392f; }

/* Hide native Woo variation dropdown; we drive it via cards */
.bdv-native-form .variations,
.bdv-native-form .woocommerce-variation-price,
.bdv-native-form .woocommerce-variation-availability,
.bdv-native-form .reset_variations { display: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .bdv-right { position: static; }
    .bdv-left, .bdv-right { flex: 1 1 100%; }
    .bdv-info-grid { grid-template-columns: 1fr; }
    .bdv-title { font-size: 36px; }
}


.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
    display: flex;
    gap: 15px;
    align-items: center;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled .quantity {
    width: 50%;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled .input-text.qty.text {
    width: 100%;
    text-align: left;
    padding-left: 18px;
}

/* =========================================================
 * BDV RICH TEXT FIX
 * ========================================================= */

#bdv-blurb,
.bdv-blurb,
#bdv-info-grid .bdv-box {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}


/* Paragraph spacing */
#bdv-blurb p,
.bdv-blurb p {
    margin: 0 0 12px;
}


/* Last paragraph should not create unnecessary space */
#bdv-blurb p:last-child,
.bdv-blurb p:last-child {
    margin-bottom: 0;
}


/* Info-box item paragraphs */
#bdv-info-grid .bdv-box li p {
    margin: 0 0 8px;
}


/* Last paragraph inside an item */
#bdv-info-grid .bdv-box li p:last-child {
    margin-bottom: 0;
}


/* Nested lists */
#bdv-info-grid .bdv-box ul,
#bdv-info-grid .bdv-box ol {
    margin-top: 6px;
    margin-bottom: 8px;
}


/* Links */
#bdv-info-grid .bdv-box a,
#bdv-blurb a,
.bdv-blurb a {
    text-decoration: underline;
}


/* Don't allow strange inline whitespace */
#bdv-info-grid .bdv-box li {
    white-space: normal;
}


/* =========================================================
 * RESPONSIVE
 * ========================================================= */

/* ---------- Tablet & below (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .bdv-product-page {
        padding: 48px 0 48px;
    }
    .bdv-columns {
        gap: 32px;
    }
    .bdv-title {
        font-size: 38px;
    }
    .bdv-info-grid {
        gap: 16px;
    }
}

/* ---------- Stack columns (≤ 900px) ---------- */
@media (max-width: 900px) {
    .bdv-right {
        position: static;
    }
    .bdv-left,
    .bdv-right {
        flex: 1 1 100%;
        min-width: 0;
    }
    .bdv-columns {
        gap: 28px;
    }
    .bdv-info-grid {
        grid-template-columns: 1fr;
    }
    .bdv-title {
        font-size: 34px;
    }
}

/* ---------- Mobile (≤ 600px) ---------- */
@media (max-width: 600px) {
    .bdv-product-page {
        padding: 28px 0 40px;
    }
    .bdv-container {
        padding: 0 16px;
    }
    .bdv-columns {
        gap: 24px;
    }

    /* Gallery corners softer, thumbnails smaller */
    .bdv-gallery {
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }
    .bdv-gallery .flex-control-thumbs {
        gap: 10px;
        padding: 0 14px 12px;
    }
    .bdv-gallery .flex-control-thumbs li {
        width: 56px !important;
    }

    /* Headings / price scale down */
    .bdv-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    .bdv-price-amount {
        font-size: 30px;
    }
    .bdv-eyebrow {
        font-size: 11px;
    }

    /* Gauge block: image + text wrap comfortably */
    .bdv-gauge {
        padding: 18px;
    }
    .bdv-gauge-box {
        width: 100px;
        height: 72px;
    }
    .bdv-gauge-size {
        font-size: 22px;
    }
    .bdv-gauge-desc {
        font-size: 13px;
    }

    /* Size cards stack full width */
    .bdv-size-cards {
        gap: 12px;
    }
    .bdv-size-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    /* Add-to-cart: qty + button stack neatly */
    .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
        flex-wrap: wrap;
    }
    .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled .quantity {
        width: 100%;
    }
    .bdv-add-btn {
        width: 100%;
        min-width: 0;
    }

    /* Info boxes tighter padding */
    #bdv-info-grid .bdv-box,
    .bdv-box {
        padding: 18px 16px;
    }
    .bdv-box h3 {
        font-size: 13px;
    }
    .bdv-box li {
        font-size: 14px;
    }
}

/* ---------- Small mobile (≤ 400px) ---------- */
@media (max-width: 400px) {
    .bdv-title {
        font-size: 24px;
    }
    .bdv-price-amount {
        font-size: 26px;
    }
    .bdv-gauge-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .bdv-gauge-box {
        width: 100%;
        height: 120px;
    }
}

/* =========================================================
 * BDV QUANTITY RECOMMENDATION NOTICE
 * ========================================================= */
.bdv-reco-notice {
    background: #fbf6e9;
    border: 1px solid #e6d9b8;
    border-left: 4px solid #e0a02a;
    border-radius: 6px;
    padding: 17px 20px;
    margin: 20px 0 25px;
    font-size: 15px;
    line-height: 1.5;
    color: black;
    box-shadow: 0 4px 14px rgba(224, 160, 42, 0.25);
    animation: bdv-reco-blink 1s ease-in-out infinite;
    font-weight: 500;
}
.bdv-reco-notice a {
    color: #b26a00;
    font-weight: 600;
    text-decoration: underline;
}
.bdv-reco-notice a:hover { color: #8a5200; }

.bdv-reco-cart,
.bdv-reco-checkout {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

@keyframes bdv-reco-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}