/* ═══════════════════════════════════════════════
   Bagzelia Premium Cart v2.0 — CSS
   All colors come from CSS variables set via PHP
═══════════════════════════════════════════════ */

/* ── Floating Button ── */
.bz-floating-cart {
    position: fixed;
    background-color: var(--bz-fc-bg, #1a1a1a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bz-floating-cart:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.bz-cart-icon svg {
    fill: none !important;
    stroke: var(--bz-fc-icon, #ffffff) !important;
    color: var(--bz-fc-icon, #ffffff) !important;
}
.bz-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--bz-fc-badge-bg, #c09033);
    color: var(--bz-fc-badge-txt, #ffffff);
    font-size: 12px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    padding: 0 2px;
}

/* ── Overlay ── */
.bz-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 100000;
    display: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ── Drawer ── */
.bz-cart-drawer {
    position: fixed;
    top: 0;
    right: -520px;
    max-width: 95vw;
    height: 100vh;
    background: var(--bz-drawer-bg, #ffffff);
    z-index: 100001;
    transition: right 0.38s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--bz-drawer-text, #111111);
}
.bz-cart-drawer.bz-drawer-left {
    left: -520px;
    right: auto;
    transition: left 0.38s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 8px 0 40px rgba(0,0,0,0.12);
}
.bz-cart-drawer.open {
    right: 0;
}
.bz-cart-drawer.bz-drawer-left.open {
    left: 0;
    right: auto;
}

/* ── Drawer Header ── */
.bz-cart-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bz-drawer-header, #f9f9f9);
    flex-shrink: 0;
}
.bz-cart-header h2 {
    margin: 0;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--bz-drawer-text, #111);
}
#bz-cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
#bz-cart-close:hover { color: #111; }

/* ── Coupon Bar ── */
.bz-coupon-bar {
    display: flex;
    gap: 10px;
    padding: 12px 28px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: #fafafa;
    flex-shrink: 0;
}
.bz-coupon-bar input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 5px;
    padding: 9px 14px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.bz-coupon-bar input:focus {
    border-color: var(--bz-drawer-accent, #c09033);
}
.bz-coupon-bar button {
    background: var(--bz-drawer-accent, #c09033);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Cart Body ── */
.bz-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}
.bz-cart-body::-webkit-scrollbar { width: 5px; }
.bz-cart-body::-webkit-scrollbar-track { background: transparent; }
.bz-cart-body::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

/* ── Empty / Loading ── */
.bz-cart-loading {
    text-align: center;
    padding: 60px 0;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
}
.bz-cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.bz-cart-empty p {
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0 20px;
}

/* ── Cart Items ── */
.bz-cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: relative;
    align-items: flex-start;
}
.bz-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.bz-cart-item-img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.bz-cart-item-details {
    flex: 1;
    padding-right: 28px;
}
.bz-cart-item-name {
    display: block;
    font-weight: 600;
    text-decoration: none;
    color: var(--bz-drawer-text, #111);
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}
.bz-cart-item-name:hover {
    color: var(--bz-drawer-accent, #c09033);
}
.bz-cart-item-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.bz-cart-item-price {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}
.bz-cart-item-qty-wrap {
    display: inline-flex;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}
.bz-qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 17px;
    color: #555;
    transition: background 0.15s;
    line-height: 1;
}
.bz-qty-btn:hover { background: #eaeaea; color: #111; }
.bz-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1.5px solid #e0e0e0;
    border-right: 1.5px solid #e0e0e0;
    font-size: 14px;
    padding: 0;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}
.bz-qty-input::-webkit-inner-spin-button,
.bz-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.bz-cart-item-remove {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0;
}
.bz-cart-item-remove:hover { color: #e00; }

/* ── WC Notices inside drawer ── */
.bz-wc-notices {
    padding: 10px 0;
}
.bz-wc-notices .woocommerce-message,
.bz-wc-notices .woocommerce-error {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 6px;
    margin: 0 0 10px;
}

/* ── Footer ── */
.bz-cart-footer {
    padding: 22px 28px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: var(--bz-drawer-header, #f9f9f9);
    flex-shrink: 0;
}
.bz-cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 4px;
    color: var(--bz-drawer-text, #111);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bz-cart-discount {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #2a7a2a;
    font-weight: 600;
    margin-bottom: 8px;
}
.bz-cart-tax-notice {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin: 8px 0 16px;
}
.bz-btn-primary {
    display: block;
    width: 100%;
    background: var(--bz-drawer-text, #111);
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 14px;
    transition: opacity 0.25s;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.bz-btn-primary:hover { opacity: 0.85; }
.bz-view-cart-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
    transition: color 0.2s;
}
.bz-view-cart-link:hover { color: var(--bz-drawer-accent, #c09033); }

/* ── Checkout Trust Badges ── */
.bz-checkout-banner {
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    border-radius: 6px;
}
.bz-checkout-trust-badges {
    margin: 30px 0;
    padding: 24px;
    background: var(--bz-co-section-bg, #fff);
    border: 1px solid var(--bz-co-border, #e8e8e8);
    border-radius: 10px;
    text-align: center;
}
.bz-secure-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--bz-co-heading, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bz-secure-text svg { color: #2e8b57; flex-shrink: 0; }
.bz-payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.bz-badge {
    background: #f9f9f9;
    border: 1px solid var(--bz-co-border, #e8e8e8);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bz-badge-icon { font-size: 14px; }

/* ── Thank You Page ── */
.bz-ty-banner {
    padding: 14px 24px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    margin: 20px 0;
    letter-spacing: 0.5px;
}
.bz-thankyou-slider-wrap {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: var(--bz-ty-bg, #ffffff);
    font-family: 'Inter', sans-serif;
}
.bz-slider-title {
    text-align: center;
    margin-bottom: 32px;
    font-size: 22px;
    color: var(--bz-ty-title, #1a1a1a);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.bz-thankyou-swiper {
    padding-bottom: 50px;
}
.bz-product-card {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.bz-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.bz-prod-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.bz-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}
.bz-prod-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bz-ty-title, #1a1a1a);
    line-height: 1.4;
}
.bz-prod-price {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
}
.bz-add-to-cart-btn {
    display: inline-block;
    border: 2px solid var(--bz-ty-accent, #c09033);
    background: transparent;
    color: var(--bz-ty-accent, #c09033) !important;
    padding: 9px 22px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    border-radius: 5px;
    letter-spacing: 1px;
}
.bz-add-to-cart-btn:hover {
    background: var(--bz-ty-accent, #c09033);
    color: #fff !important;
}
.bz-nav-btn {
    color: #333 !important;
    background: rgba(255,255,255,0.95) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12) !important;
    top: 40% !important;
}
.bz-nav-btn::after {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #333 !important;
}
.swiper-pagination-bullet-active {
    background: var(--bz-ty-accent, #c09033) !important;
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .bz-cart-drawer {
        width: 100vw !important;
        max-width: 100vw;
    }
    .bz-cart-body, .bz-cart-header, .bz-cart-footer { padding-left: 20px; padding-right: 20px; }
    .bz-payment-icons { gap: 8px; }
    .bz-badge { font-size: 11px; padding: 6px 10px; }
}

/* ══════════════════════════════════════════════════════
   V2.1 — New Feature Styles
   ══════════════════════════════════════════════════════ */

/* ── Variation Tags (WooCommerce Enhancements) ── */
.bz-cart-item-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 6px;
}
.bz-variation-tag {
    display: inline-block;
    font-size: 11px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 2px 7px;
    color: #444;
    line-height: 1.5;
}
.bz-variation-tag strong {
    color: #222;
    font-weight: 600;
}

/* ── Accessibility: Focus visible styles ── */
.bz-cart-drawer:focus-within .bz-qty-btn:focus,
.bz-cart-drawer:focus-within .bz-cart-item-remove:focus,
.bz-cart-drawer:focus-within #bz-cart-close:focus,
.bz-cart-drawer:focus-within .bz-btn-primary:focus,
.bz-cart-drawer:focus-within .bz-view-cart-link:focus,
.bz-cart-drawer:focus-within #bz-apply-coupon:focus,
.bz-cart-drawer:focus-within #bz-coupon-input:focus {
    outline: 2px solid var(--bz-drawer-accent, #c09033);
    outline-offset: 2px;
}

/* Skip-to-content friendly: drawer hidden from AT when closed */
.bz-cart-drawer[aria-hidden="true"] {
    visibility: hidden;
}
.bz-cart-drawer[aria-hidden="false"],
.bz-cart-drawer.open {
    visibility: visible;
}
