/* ============================================================
   Bespoke Product Fields — Quick View + Cart Drawer
   Light elegant theme — Nexa Webdesign CC
   Palette: warm white / charcoal / antique gold
   ============================================================ */

:root {
    --bpf-bg:          #ffffff;
    --bpf-bg-soft:     #faf8f5;
    --bpf-bg-hover:    #f3ede4;
    --bpf-border:      rgba(0, 0, 0, 0.10);
    --bpf-border-soft: rgba(0, 0, 0, 0.06);
    --bpf-text:        #1c1917;
    --bpf-text-muted:  #6b6560;
    --bpf-text-light:  #a09890;
    --bpf-gold:        #C9A84C;
    --bpf-gold-dark:   #b8943c;
    --bpf-gold-soft:   rgba(201, 168, 76, 0.10);
    --bpf-success:     #15803d;
    --bpf-success-bg:  #f0fdf4;
    --bpf-error:       #b91c1c;
    --bpf-error-bg:    #fef2f2;
    --bpf-radius:      12px;
    --bpf-radius-sm:   7px;
    --bpf-shadow:      0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Overlay ──────────────────────────────────────────────── */
.bpf-overlay {
    position: fixed; inset: 0;
    background: rgba(28, 25, 23, 0.50);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0; transition: opacity .25s ease;
    pointer-events: none;
}
.bpf-overlay.bpf-visible { opacity: 1; pointer-events: all; }


/* ═══════════════════════════════════════════════════════════
   QUICK VIEW
   ═══════════════════════════════════════════════════════════ */

.bpf-quickview {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(.97);
    width: calc(100% - 32px); max-width: 880px; max-height: 90vh;
    background: var(--bpf-bg);
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius);
    box-shadow: var(--bpf-shadow);
    z-index: 99999;
    display: flex; flex-direction: column;
    opacity: 0;
    pointer-events: none; /* invisible modal must not intercept clicks */
    transition: opacity .22s ease, transform .26s cubic-bezier(.32,0,.15,1);
    overflow: hidden;
}
.bpf-quickview.bpf-visible {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.bpf-qv-close {
    position: absolute; top: 14px; right: 14px;
    width: 32px; height: 32px;
    background: var(--bpf-bg-soft); border: 1px solid var(--bpf-border);
    border-radius: 50%; color: var(--bpf-text-muted);
    font-size: 16px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s, border-color .15s;
    z-index: 1; padding: 0;
}
.bpf-qv-close:hover { background: var(--bpf-bg-hover); color: var(--bpf-text); border-color: var(--bpf-gold); }

.bpf-qv-body { display: grid; grid-template-columns: 2fr 3fr; overflow: hidden; flex: 1; }

/* Gallery */
.bpf-qv-gallery {
    background: var(--bpf-bg-soft);
    display: flex; flex-direction: column;
    border-right: 1px solid var(--bpf-border-soft); overflow: hidden;
}
.bpf-qv-main-img {
    flex: 1; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; min-height: 0;
}
.bpf-qv-main-img img {
    max-width: 100%; max-height: 360px; object-fit: contain;
    border-radius: var(--bpf-radius-sm);
    transition: opacity .18s ease;
}
.bpf-qv-thumbs {
    display: flex; gap: 8px; padding: 10px 14px;
    overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
    border-top: 1px solid var(--bpf-border-soft);
}
.bpf-qv-thumbs::-webkit-scrollbar { display: none; }
.bpf-qv-thumb {
    width: 50px; height: 50px; flex-shrink: 0;
    border: 1.5px solid var(--bpf-border); border-radius: var(--bpf-radius-sm);
    overflow: hidden; cursor: pointer; transition: border-color .15s;
}
.bpf-qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpf-qv-thumb:hover,
.bpf-qv-thumb.bpf-thumb-active { border-color: var(--bpf-gold); }

/* Info panel */
.bpf-qv-info { display: flex; flex-direction: column; overflow: hidden; }
.bpf-qv-info-scroll {
    flex: 1; overflow-y: auto; padding: 28px 26px 16px;
    scrollbar-width: thin; scrollbar-color: var(--bpf-border) transparent;
}
.bpf-qv-info-scroll::-webkit-scrollbar { width: 4px; }
.bpf-qv-info-scroll::-webkit-scrollbar-thumb { background: var(--bpf-border); border-radius: 2px; }

.bpf-qv-cats { font-size: 11px; color: var(--bpf-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.bpf-qv-name { font-size: 22px; font-weight: 700; color: var(--bpf-text); margin: 0 0 8px; line-height: 1.25; }
.bpf-qv-price { font-size: 18px; color: var(--bpf-gold); font-weight: 600; margin: 0 0 8px; }
.bpf-qv-price .woocommerce-Price-amount { color: var(--bpf-gold); }
.bpf-qv-stock { font-size: 12px; font-weight: 500; margin: 0 0 16px; }
.bpf-qv-stock.instock  { color: var(--bpf-success); }
.bpf-qv-stock.outstock { color: var(--bpf-error); }
.bpf-qv-desc { font-size: 13px; color: var(--bpf-text-muted); line-height: 1.7; margin: 0 0 20px; padding-top: 16px; border-top: 1px solid var(--bpf-border-soft); }
.bpf-qv-desc p { margin: 0 0 8px; } .bpf-qv-desc p:last-child { margin: 0; }

/* Variation selects */
.bpf-qv-info-scroll .bpf-variations-wrap { margin-bottom: 18px; }
.bpf-qv-info-scroll .variations { width: 100%; border-collapse: collapse; }
.bpf-qv-info-scroll .variations td { padding: 4px 0 8px; vertical-align: middle; }
.bpf-qv-info-scroll .variations .label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--bpf-text-light);
    padding-right: 12px; white-space: nowrap; width: 1%;
}
.bpf-qv-info-scroll .variations select {
    width: 100%; padding: 9px 32px 9px 12px;
    background: var(--bpf-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--bpf-border); border-radius: var(--bpf-radius-sm);
    color: var(--bpf-text); font-size: 14px; font-family: inherit;
    -webkit-appearance: none; appearance: none; cursor: pointer;
    transition: border-color .15s;
}
.bpf-qv-info-scroll .variations select:focus {
    outline: none; border-color: var(--bpf-gold);
    box-shadow: 0 0 0 3px var(--bpf-gold-soft);
}
.bpf-qv-info-scroll .woocommerce-variation-price { font-size: 16px; font-weight: 600; color: var(--bpf-gold); margin-top: 4px; }

/* Section label */
.bpf-qv-section-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--bpf-text-light);
    margin: 16px 0 10px; padding-bottom: 8px;
    border-bottom: 1px solid var(--bpf-border-soft);
}

/* Quantity */
.bpf-qv-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.bpf-qty-control {
    display: inline-flex; align-items: center;
    border: 1px solid var(--bpf-border); border-radius: var(--bpf-radius-sm);
    overflow: hidden;
}
.bpf-qty-btn {
    width: 36px; height: 36px;
    background: var(--bpf-bg-soft); border: none;
    color: var(--bpf-text-muted); font-size: 18px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s; padding: 0; line-height: 1;
}
.bpf-qty-btn:hover { background: var(--bpf-bg-hover); color: var(--bpf-gold); }
.bpf-qty-input {
    width: 48px; text-align: center;
    background: var(--bpf-bg);
    border: none; border-left: 1px solid var(--bpf-border); border-right: 1px solid var(--bpf-border);
    color: var(--bpf-text); font-size: 15px; font-weight: 500;
    padding: 0; height: 36px; -moz-appearance: textfield;
}
.bpf-qty-input::-webkit-inner-spin-button,
.bpf-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Footer */
.bpf-qv-footer {
    padding: 14px 26px;
    background: var(--bpf-bg);
    border-top: 1px solid var(--bpf-border-soft); flex-shrink: 0;
}
.bpf-qv-atc {
    width: 100%; padding: 14px;
    background: var(--bpf-gold); color: #fff;
    border: none; border-radius: var(--bpf-radius-sm);
    font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
    cursor: pointer; transition: background .18s, transform .12s;
}
.bpf-qv-atc:hover:not(:disabled) { background: var(--bpf-gold-dark); }
.bpf-qv-atc:active:not(:disabled) { transform: scale(.99); }
.bpf-qv-atc:disabled { background: var(--bpf-bg-hover); color: var(--bpf-text-light); cursor: not-allowed; }

/* Messages */
.bpf-qv-message { margin-top: 10px; padding: 9px 13px; border-radius: var(--bpf-radius-sm); font-size: 13px; }
.bpf-qv-message.bpf-msg-error   { background: var(--bpf-error-bg);   color: var(--bpf-error);   border: 1px solid #fca5a5; }
.bpf-qv-message.bpf-msg-success { background: var(--bpf-success-bg); color: var(--bpf-success); border: 1px solid #86efac; }
.bpf-qv-message.bpf-msg-inquiry { background: var(--bpf-gold-soft);  color: #8a6c1e;            border: 1px solid var(--bpf-gold); }

/* Skeleton */
.bpf-qv-loading { display: grid; grid-template-columns: 1fr 1fr; height: 480px; }
.bpf-qv-loading-left  { padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--bpf-bg-soft); border-right: 1px solid var(--bpf-border-soft); }
.bpf-qv-loading-right { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.bpf-skel {
    background: linear-gradient(90deg, #ede9e3 25%, #e5dfd8 50%, #ede9e3 75%);
    background-size: 200% 100%; animation: bpfSkel 1.4s infinite; border-radius: var(--bpf-radius-sm);
}
.bpf-skel-img   { flex: 1; }
.bpf-skel-h1    { height: 24px; width: 65%; }
.bpf-skel-h2    { height: 18px; width: 35%; }
.bpf-skel-p     { height: 13px; width: 100%; }
.bpf-skel-p2    { height: 13px; width: 75%; }
.bpf-skel-field { height: 42px; }
@keyframes bpfSkel { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Inquiry */
.bpf-quickview .bpf-inquiry-notice { background: var(--bpf-gold-soft); border: 1px solid var(--bpf-gold); border-radius: var(--bpf-radius-sm); padding: 14px 16px; }
.bpf-quickview .bpf-inquiry-message { color: #8a6c1e; margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.bpf-quickview .bpf-inquiry-btn { background: var(--bpf-gold) !important; color: #fff !important; border: none !important; }

/* Field overrides — light mode */
.bpf-quickview .bpf-label { color: var(--bpf-text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.bpf-quickview .bpf-required { color: var(--bpf-gold); }
.bpf-quickview .bpf-help { color: var(--bpf-text-light); }
.bpf-quickview .bpf-fields input[type="text"],
.bpf-quickview .bpf-fields input[type="date"],
.bpf-quickview .bpf-fields input[type="number"],
.bpf-quickview .bpf-fields select,
.bpf-quickview .bpf-fields textarea { background: var(--bpf-bg-soft); color: var(--bpf-text); border-color: var(--bpf-border); }
.bpf-quickview .bpf-fields input:focus,
.bpf-quickview .bpf-fields select:focus,
.bpf-quickview .bpf-fields textarea:focus { border-color: var(--bpf-gold); box-shadow: 0 0 0 3px var(--bpf-gold-soft); }

/* Force clean dropdown — overrides Divi theme OS appearance */
.bpf-quickview .bpf-fields select,
.bpf-quickview .bpf-variations-wrap select,
.bpf-qv-info-scroll select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: var(--bpf-bg-soft) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px 8px !important;
    padding-right: 36px !important;
    border: 1px solid var(--bpf-border) !important;
    border-radius: var(--bpf-radius-sm) !important;
    cursor: pointer !important;
}
.bpf-quickview .bpf-check-label,
.bpf-quickview .bpf-radio-label { color: var(--bpf-text); }
.bpf-quickview .bpf-check-label input,
.bpf-quickview .bpf-radio-label input { accent-color: var(--bpf-gold); }
.bpf-quickview .bpf-upload-ui { background: var(--bpf-bg-soft); border-color: var(--bpf-border); color: var(--bpf-text-muted); }
.bpf-quickview .bpf-upload-ui:hover { background: var(--bpf-bg-hover); border-color: var(--bpf-gold); }
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-ui { border-color: var(--bpf-gold); background: var(--bpf-gold-soft); }
.bpf-quickview .bpf-upload-name { color: var(--bpf-gold); }
.bpf-quickview .bpf-tile-label { background: var(--bpf-bg-soft); border-color: var(--bpf-border); color: var(--bpf-text); }
.bpf-quickview .bpf-tile-label:hover,
.bpf-quickview .bpf-tile-label:has(input:checked) { border-color: var(--bpf-gold); background: var(--bpf-gold-soft); }
.bpf-quickview .bpf-notice-block { background: var(--bpf-gold-soft); border-left-color: var(--bpf-gold); }
.bpf-quickview .bpf-notice-label,
.bpf-quickview .bpf-notice-text { color: #8a6c1e; }
.bpf-quickview .bpf-conditional { border-left-color: var(--bpf-border-soft); }

/* ── Mobile — full redesign for touch usability ─────────────
   Bottom sheet layout, larger tap targets, generous spacing.
   ──────────────────────────────────────────────────────── */
@media (max-width: 680px) {

    /* ── Modal becomes a bottom sheet ─────────────────────── */
    .bpf-quickview {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important; right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: translateY(100%) !important;
        border-radius: 18px 18px 0 0 !important;
        max-height: 94vh !important;
    }
    .bpf-quickview.bpf-visible { transform: translateY(0) !important; }

    /* Drag handle hint at top of sheet */
    .bpf-quickview::before {
        content: '';
        display: block;
        width: 40px; height: 4px;
        background: var(--bpf-border);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }

    /* ── Stack to single column ────────────────────────────── */
    .bpf-qv-body { grid-template-columns: 1fr !important; }

    /* ── Gallery — compact image strip ────────────────────── */
    .bpf-qv-gallery {
        border-right: none !important;
        border-bottom: 1px solid var(--bpf-border-soft) !important;
        max-height: 220px !important;
        flex-direction: row !important;
        align-items: stretch !important;
    }
    .bpf-qv-main-img {
        flex: 1 !important;
        padding: 12px !important;
    }
    .bpf-qv-main-img img { max-height: 170px !important; }

    /* Thumbnails row — hide on very small screens to save space */
    .bpf-qv-thumbs { padding: 8px 12px !important; gap: 6px !important; }
    .bpf-qv-thumb  { width: 42px !important; height: 42px !important; }

    /* ── Info panel — generous padding ────────────────────── */
    .bpf-qv-info-scroll { padding: 20px 20px 16px !important; }

    /* ── Product name + price — readable size ──────────────── */
    .bpf-qv-name  { font-size: 18px !important; margin-bottom: 6px !important; }
    .bpf-qv-price { font-size: 16px !important; margin-bottom: 10px !important; }
    .bpf-qv-desc  { font-size: 13px !important; line-height: 1.65 !important; }
    .bpf-qv-cats  { font-size: 10px !important; margin-bottom: 6px !important; }

    /* ── Section divider labels ────────────────────────────── */
    .bpf-qv-section-label {
        font-size: 10px !important;
        margin: 20px 0 12px !important;
    }

    /* ── Bespoke fields — mobile-sized ────────────────────── */
    .bpf-quickview .bpf-label {
        font-size: 11px !important;
        margin-bottom: 6px !important;
    }
    .bpf-quickview .bpf-help {
        font-size: 12px !important;
        margin-top: 5px !important;
        line-height: 1.5 !important;
    }
    .bpf-quickview .bpf-fields input[type="text"],
    .bpf-quickview .bpf-fields input[type="date"],
    .bpf-quickview .bpf-fields input[type="number"],
    .bpf-quickview .bpf-fields select,
    .bpf-quickview .bpf-fields textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 13px 14px !important;
    }

    /* ── Date input — full width, clearly tappable ─────────── */
    .bpf-quickview input[type="date"] {
        font-size: 16px !important; /* iOS zoom prevention */
        padding: 13px 14px !important;
        min-height: 48px !important; /* Apple HIG minimum tap target */
        width: 100% !important;
        color: var(--bpf-text) !important;
        background: var(--bpf-bg-soft) !important;
        border: 1px solid var(--bpf-border) !important;
        border-radius: var(--bpf-radius-sm) !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }
    .bpf-quickview input[type="date"]::-webkit-date-and-time-value {
        text-align: left !important;
    }

    /* ── Checkboxes + radio — large tap targets ────────────── */
    .bpf-quickview .bpf-check-label,
    .bpf-quickview .bpf-radio-label {
        font-size: 15px !important;
        padding: 10px 0 !important;   /* taller row = easier to tap */
        line-height: 1.4 !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    .bpf-quickview .bpf-check-label input[type="checkbox"],
    .bpf-quickview .bpf-radio-label  input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        margin-top: 2px !important;
    }

    /* ── Checkbox group spacing ────────────────────────────── */
    .bpf-quickview .bpf-checks-wrap,
    .bpf-quickview .bpf-radio-wrap {
        gap: 2px !important;
    }

    /* ── Quantity control ──────────────────────────────────── */
    .bpf-qty-control { border-radius: var(--bpf-radius-sm) !important; }
    .bpf-qty-btn   { width: 44px !important; height: 44px !important; font-size: 20px !important; }
    .bpf-qty-input { width: 60px !important; height: 44px !important; font-size: 16px !important; }

    /* ── Footer ATC button ─────────────────────────────────── */
    .bpf-qv-footer { padding: 14px 20px 20px !important; }
    .bpf-qv-atc {
        font-size: 14px !important;
        padding: 16px !important;
        min-height: 52px !important;
    }

    /* ── Cart drawer — full width on mobile ────────────────── */
    .bpf-cart-drawer { max-width: 100% !important; }
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
    .bpf-quickview { max-height: 96vh !important; }
    .bpf-qv-gallery { max-height: 180px !important; }
    .bpf-qv-main-img img { max-height: 140px !important; }
    .bpf-qv-thumbs { display: none !important; } /* hide thumbs, save space */
    .bpf-qv-info-scroll { padding: 16px 16px 12px !important; }
    .bpf-qv-footer { padding: 12px 16px 18px !important; }
}


/* ═══════════════════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════════════════ */

.bpf-cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 400px;
    background: var(--bpf-bg);
    border-left: 1px solid var(--bpf-border);
    box-shadow: -4px 0 30px rgba(0,0,0,0.08);
    z-index: 99999;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    pointer-events: none; /* off-screen drawer must not intercept clicks */
    transition: transform .30s cubic-bezier(.32,0,.15,1);
}
.bpf-cart-drawer.bpf-visible { transform: translateX(0); pointer-events: all; }

.bpf-cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--bpf-border-soft); flex-shrink: 0; }
.bpf-cart-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bpf-text); margin: 0; }
.bpf-cart-count-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bpf-gold); color: #fff; font-size: 10px; font-weight: 700; margin-left: 8px; }
.bpf-cart-close { width: 30px; height: 30px; background: var(--bpf-bg-soft); border: 1px solid var(--bpf-border); border-radius: 50%; color: var(--bpf-text-muted); font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; padding: 0; }
.bpf-cart-close:hover { background: var(--bpf-bg-hover); color: var(--bpf-text); border-color: var(--bpf-gold); }

.bpf-cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; scrollbar-width: thin; scrollbar-color: var(--bpf-border) transparent; }
.bpf-cart-items::-webkit-scrollbar { width: 4px; }
.bpf-cart-items::-webkit-scrollbar-thumb { background: var(--bpf-border); border-radius: 2px; }

.bpf-cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--bpf-text-light); font-size: 14px; gap: 10px; text-align: center; }
.bpf-cart-empty-icon { font-size: 36px; opacity: .25; }

.bpf-cart-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--bpf-border-soft); }
.bpf-cart-item:last-child { border-bottom: none; }
.bpf-cart-item-img { width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--bpf-radius-sm); overflow: hidden; border: 1px solid var(--bpf-border); }
.bpf-cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpf-cart-item-info { flex: 1; min-width: 0; }
.bpf-cart-item-name { font-size: 13px; font-weight: 600; color: var(--bpf-text); margin: 0 0 3px; line-height: 1.35; }
.bpf-cart-item-variation { font-size: 11px; color: var(--bpf-text-light); margin: 0 0 3px; }
.bpf-cart-item-meta { font-size: 11px; color: var(--bpf-text-muted); margin: 0 0 6px; line-height: 1.5; }
.bpf-cart-item-price { display: flex; align-items: center; gap: 10px; }
.bpf-cart-item-qty { font-size: 12px; color: var(--bpf-text-light); }
.bpf-cart-item-subtotal { font-size: 13px; color: var(--bpf-gold); font-weight: 600; }
.bpf-cart-item-remove { background: none; border: none; color: var(--bpf-text-light); font-size: 13px; cursor: pointer; padding: 0; flex-shrink: 0; margin-top: 2px; transition: color .15s; }
.bpf-cart-item-remove:hover { color: var(--bpf-error); }

.bpf-cart-footer { padding: 14px 20px; border-top: 1px solid var(--bpf-border-soft); background: var(--bpf-bg-soft); flex-shrink: 0; }
.bpf-cart-totals { margin-bottom: 14px; }
.bpf-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--bpf-text-muted); margin-bottom: 6px; }
.bpf-cart-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: var(--bpf-text); padding-top: 10px; border-top: 1px solid var(--bpf-border-soft); }
.bpf-cart-total-row .bpf-total-amount { color: var(--bpf-gold); }

.bpf-cart-checkout-btn { display: block; width: 100%; padding: 13px; background: var(--bpf-gold); color: #fff; border: none; border-radius: var(--bpf-radius-sm); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s; margin-bottom: 8px; }
.bpf-cart-checkout-btn:hover { background: var(--bpf-gold-dark); color: #fff; }

.bpf-cart-continue-btn { display: block; width: 100%; padding: 10px; background: transparent; color: var(--bpf-text-muted); border: 1px solid var(--bpf-border); border-radius: var(--bpf-radius-sm); font-size: 12px; text-align: center; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.bpf-cart-continue-btn:hover { color: var(--bpf-text); border-color: var(--bpf-text-muted); background: var(--bpf-bg-hover); }

@media (max-width: 480px) { .bpf-cart-drawer { max-width: 100%; } }

/* Cart badge pulse */
@keyframes bpfCartPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }
.bpf-cart-pulse { animation: bpfCartPulse .35s ease; }


/* ═══════════════════════════════════════════════════════════
   FILE UPLOAD — custom styled, hides native Browse button
   These rules must be in modal.css because bpf-frontend.css
   is only enqueued on single product pages, not on the shop.
   ═══════════════════════════════════════════════════════════ */

/* Hide the native browser file input completely */
.bpf-quickview .bpf-file-input,
.bpf-quickview input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Custom upload zone */
.bpf-quickview .bpf-upload-wrap {
    position: relative;
}
.bpf-quickview .bpf-upload-ui {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border: 1.5px dashed var(--bpf-border);
    border-radius: var(--bpf-radius-sm);
    background: var(--bpf-bg-soft);
    cursor: pointer;
    font-size: 13px;
    color: var(--bpf-text-muted);
    transition: border-color .18s, background .18s, color .18s;
    user-select: none;
}
.bpf-quickview .bpf-upload-ui:hover {
    border-color: var(--bpf-gold);
    background: var(--bpf-gold-soft);
    color: var(--bpf-text);
}
.bpf-quickview .bpf-upload-ui svg {
    flex-shrink: 0;
    color: var(--bpf-text-light);
    transition: color .18s;
}
.bpf-quickview .bpf-upload-ui:hover svg { color: var(--bpf-gold); }

/* Upload button label inside the zone */
.bpf-quickview .bpf-upload-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bpf-quickview .bpf-upload-text::before {
    content: 'Click to upload';
    font-size: 13px;
    color: inherit;
}

/* Styled pill button inside the zone */
.bpf-quickview .bpf-upload-ui::after {
    content: 'Browse';
    flex-shrink: 0;
    padding: 5px 14px;
    background: var(--bpf-bg);
    border: 1px solid var(--bpf-border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bpf-text-muted);
    transition: background .15s, border-color .15s, color .15s;
}
.bpf-quickview .bpf-upload-ui:hover::after {
    background: var(--bpf-gold);
    border-color: var(--bpf-gold);
    color: #fff;
}

/* Filename display */
.bpf-quickview .bpf-upload-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--bpf-gold);
    word-break: break-all;
    max-width: 100%;
    display: none;
}

/* State: file selected */
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-ui {
    border-style: solid;
    border-color: var(--bpf-gold);
    background: var(--bpf-gold-soft);
    color: var(--bpf-text);
}
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-ui::after {
    content: '✓ Uploaded';
    background: var(--bpf-gold);
    border-color: var(--bpf-gold);
    color: #fff;
}
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-text::before {
    display: none;
}
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-name {
    display: block;
}
.bpf-quickview .bpf-upload-wrap.bpf-has-file .bpf-upload-ui svg {
    color: var(--bpf-gold);
}


/* ═══════════════════════════════════════════════════════════
   FLOATING CART BUTTON
   Fixed to bottom-right, hidden when cart is empty,
   slides in when items are added
   ═══════════════════════════════════════════════════════════ */

.bpf-float-cart {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9990;

    display: flex;
    align-items: center;
    gap: 10px;

    /* Hidden by default — shown only when cart has items */
    opacity: 0;
    transform: translateY(16px) scale(0.92);
    pointer-events: none;
    transition:
        opacity .28s cubic-bezier(.32, 0, .15, 1),
        transform .28s cubic-bezier(.32, 0, .15, 1);

    /* Style */
    background: var(--bpf-text);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 18px 12px 14px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.10);
    white-space: nowrap;
    font-family: inherit;
}

/* Visible state — cart has items */
.bpf-float-cart.bpf-float-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Hover */
.bpf-float-cart:hover {
    background: var(--bpf-gold);
    transform: translateY(-2px) scale(1);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.35), 0 2px 6px rgba(0, 0, 0, 0.10);
}
.bpf-float-cart:active {
    transform: translateY(0) scale(0.97);
}

/* Cart icon */
.bpf-float-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

/* Item count badge */
.bpf-float-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--bpf-gold);
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    transition: background .15s;
}
.bpf-float-cart:hover .bpf-float-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* Cart total text */
.bpf-float-total {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: inherit;
}

/* Badge pulse on update */
@keyframes bpfFloatPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.bpf-float-badge.bpf-float-pulse {
    animation: bpfFloatPulse .4s cubic-bezier(.36, .07, .19, .97);
}

/* Mobile — smaller, sits above any bottom nav bars */
@media (max-width: 680px) {
    .bpf-float-cart {
        bottom: 20px;
        right: 16px;
        padding: 11px 16px 11px 12px;
        gap: 8px;
    }
    .bpf-float-total {
        font-size: 12px;
    }
}


/* ═══════════════════════════════════════════════════════════
   INQUIRY FORM — inside the quick-view modal
   ═══════════════════════════════════════════════════════════ */

.bpf-inq-intro {
    font-size: 13px;
    color: var(--bpf-text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}
.bpf-inq-opt { font-weight: 400; color: var(--bpf-text-light); }

/* Two-column name + email row */
.bpf-inq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 480px) { .bpf-inq-row { grid-template-columns: 1fr; } }

/* Individual field */
.bpf-inq-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}
.bpf-inq-row .bpf-inq-field { margin-bottom: 0; }

.bpf-inq-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--bpf-text-muted) !important;
}

/* Inputs — match the site's existing contact form style */
.bpf-inq-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d4d0cb;
    border-radius: 3px;
    color: var(--bpf-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.bpf-inq-input::placeholder {
    color: #b0aaa3;
    font-size: 14px;
}
.bpf-inq-input:focus {
    border-color: var(--bpf-gold);
    box-shadow: none;
}
.bpf-inq-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Validation message */
.bpf-inq-message {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--bpf-radius-sm);
    display: none;
}
.bpf-inq-msg-error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}

/* ── Success state ───────────────────────────────────────── */
.bpf-inq-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 20px;
    gap: 12px;
}
.bpf-inq-success-icon {
    width: 52px; height: 52px;
    background: var(--bpf-gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.bpf-inq-success-icon svg { width: 26px; height: 26px; }
.bpf-inq-success-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--bpf-text) !important;
    margin: 0 !important;
}
.bpf-inq-success-msg {
    font-size: 14px;
    color: var(--bpf-text-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 300px;
}


/* ═══════════════════════════════════════════════════════════
   NAME LIST — qty-driven children's name inputs
   ═══════════════════════════════════════════════════════════ */

.bpf-namelist-wrap { display: flex; flex-direction: column; gap: 8px; }

/* Count input — narrower than full width */
.bpf-namelist-count-label { margin-bottom: 2px; }
.bpf-namelist-count {
    width: 130px;
    padding: 10px 13px;
    background: var(--bpf-bg-soft);
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius-sm);
    color: var(--bpf-text);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    -moz-appearance: textfield;
}
.bpf-namelist-count::-webkit-inner-spin-button,
.bpf-namelist-count::-webkit-outer-spin-button { -webkit-appearance: none; }
.bpf-namelist-count:focus { border-color: var(--bpf-gold); box-shadow: 0 0 0 3px var(--bpf-gold-soft); }

/* Container for generated name inputs */
.bpf-namelist-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

/* Each individual name field */
.bpf-namelist-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bpf-namelist-name {
    width: 100%;
    padding: 9px 13px;
    background: var(--bpf-bg);
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius-sm);
    color: var(--bpf-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.bpf-namelist-name:focus {
    border-color: var(--bpf-gold);
    box-shadow: 0 0 0 3px var(--bpf-gold-soft);
}


/* ── Variation availability message ─────────────────────────── */
.bpf-variation-availability {
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
    padding: 4px 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-height: 20px;
}
.bpf-variation-availability.instock  { color: #1D6A3F; }
.bpf-variation-availability.outstock { color: #C0392B; }

/* ── Variation select table ──────────────────────────────────── */
.bpf-variations-wrap .variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 4px;
}
.bpf-variations-wrap .variations td {
    padding: 5px 0;
    vertical-align: middle;
}
.bpf-variations-wrap .variations td.label {
    width: 90px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bpf-text-muted);
    padding-right: 12px;
}
.bpf-variations-wrap .variations select {
    width: 100%;
    padding: 9px 12px;
    background: var(--bpf-bg-soft);
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius-sm);
    color: var(--bpf-text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
}
.bpf-variations-wrap .variations select:focus {
    border-color: var(--bpf-gold);
    box-shadow: 0 0 0 3px var(--bpf-gold-soft);
}


/* ── Option price modifier badges ───────────────────────────── */
.bpf-opt-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--bpf-gold);
    margin-left: 6px;
    white-space: nowrap;
}
.bpf-opt-price bdi { font-style: normal; }


/* ── Inquiry slide-down form ─────────────────────────────────── */

.bpf-inquiry-notice {
    border-top: 1px solid var(--bpf-border);
    margin-top: 16px;
    padding-top: 16px;
}
.bpf-inquiry-message {
    font-size: 14px;
    color: var(--bpf-text-muted);
    margin: 0 0 14px;
    line-height: 1.55;
}

/* Slide-down wrapper — animates via max-height */
.bpf-inq-form-wrap {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
/* inquiry_only products: form always visible from the start */
.bpf-inquiry-notice.bpf-inq-open .bpf-inq-form-wrap {
    max-height: 1200px;
}

.bpf-inq-form-inner {
    background: var(--bpf-bg-soft, #f8f6f3);
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius);
    padding: 20px;
    margin-top: 4px;
}

.bpf-inq-form-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bpf-text);
    margin: 0 0 6px;
}

.bpf-inq-form-msg {
    font-size: 13px;
    color: var(--bpf-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.bpf-inq-row {
    display: block !important;  /* force stack — prevent flex inheritance from modal rows */
    margin-bottom: 12px;
}
.bpf-inq-row:last-of-type { margin-bottom: 16px; }

.bpf-inq-row .bpf-label {
    display: block !important;
    width: 100% !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--bpf-text-muted);
    margin-bottom: 5px;
}

.bpf-inq-row .bpf-input {
    display: block !important;
    width: 100% !important;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    border: 1px solid var(--bpf-border);
    border-radius: var(--bpf-radius-sm);
    color: var(--bpf-text);
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.bpf-inq-row .bpf-input:focus {
    outline: none;
    border-color: var(--bpf-gold);
    box-shadow: 0 0 0 3px var(--bpf-gold-soft);
}
/* Textarea needs explicit dimensions — flex context collapses it to label height */
.bpf-inq-row textarea.bpf-input {
    display: block !important;
    width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    resize: vertical;
}

.bpf-inq-submit {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    background: var(--bpf-gold);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    border-radius: var(--bpf-radius-sm);
    cursor: pointer;
    transition: opacity 0.18s, background 0.18s;
}
.bpf-inq-submit:hover:not(:disabled) { opacity: 0.88; }
.bpf-inq-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.bpf-inq-result {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: var(--bpf-radius-sm);
    padding: 0;
}
.bpf-inq-result:not(:empty) { padding: 10px 12px; }
.bpf-inq-error  { background: #fef2f2; color: #c0392b; }

/* Success state — replaces the form */
.bpf-inq-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    text-align: center;
}
.bpf-inq-success svg  { color: var(--bpf-gold); }
.bpf-inq-success p    { font-size: 14px; color: var(--bpf-text); margin: 0; line-height: 1.55; }

/* Mobile — full comfortable inputs */
@media (max-width: 767px) {
    .bpf-inq-row .bpf-input { font-size: 16px; } /* prevent iOS zoom */
    .bpf-inq-form-inner { padding: 16px; }
}


/* ── Inquiry side drawer ────────────────────────────────────────────────── */

/* Dim overlay behind drawer */
.bpf-inq-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99998;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
}
.bpf-inq-overlay.bpf-inq-overlay-open {
    opacity: 1; pointer-events: auto;
}

/* Drawer panel */
.bpf-inq-drawer {
    position: fixed; top: 0; right: -480px;
    width: 440px; max-width: 100vw;
    height: 100%; height: 100dvh;
    background: #fff;
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    z-index: 99999;
    display: flex; flex-direction: column;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.bpf-inq-drawer.bpf-inq-drawer-open { right: 0; }

/* Header */
.bpf-inq-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--bpf-border);
    flex-shrink: 0;
}
.bpf-inq-drawer-title {
    font-size: 16px; font-weight: 700;
    color: var(--bpf-text); letter-spacing: .02em;
}
.bpf-inq-drawer-close {
    all: unset; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--bpf-text-muted);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background .15s;
}
.bpf-inq-drawer-close:hover { background: var(--bpf-bg-soft); }

/* Scrollable body */
.bpf-inq-drawer-body {
    flex: 1; overflow-y: auto;
    padding: 20px 24px 32px;
    -webkit-overflow-scrolling: touch;
}
.bpf-inq-drawer-product {
    font-size: 13px; font-weight: 600; color: var(--bpf-text);
    margin: 0 0 4px;
}
.bpf-inq-drawer-msg {
    font-size: 13px; color: var(--bpf-text-muted);
    margin: 0 0 18px; line-height: 1.55;
}

/* "Open drawer" button inside the quick-view modal */
.bpf-inq-open-drawer {
    all: unset;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px;
    background: var(--bpf-gold);
    color: #fff; border-radius: var(--bpf-radius-sm);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .10em;
    cursor: pointer; transition: opacity .15s;
    margin-top: 10px;
}
.bpf-inq-open-drawer:hover { opacity: .88; }
/* Full-width when used as the primary CTA */
.bpf-qv-atc.bpf-inq-open-drawer { width: 100%; box-sizing: border-box; }

/* Mobile — full screen drawer */
@media (max-width: 600px) {
    .bpf-inq-drawer { width: 100vw; right: -100vw; }
    .bpf-inq-drawer-body { padding: 16px 18px 28px; }
    .bpf-inq-row .bpf-input { font-size: 16px; } /* prevent iOS zoom */
}
