/* BHP Shop — Cart Drawer (slides in from right) */

.bhp-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: system-ui, sans-serif;
}

.bhp-drawer.bhp-drawer--open {
    right: 0;
}

.bhp-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 99998;
    pointer-events: none;
    transition: background 0.35s ease;
}

.bhp-drawer__backdrop.bhp-drawer--open {
    background: rgba(0,0,0,0.5);
    pointer-events: all;
}

/* Header */
.bhp-drawer__header {
    background: #0a0800;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.bhp-drawer__heading {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bhp-drawer__heading .ti {
    color: #D4AF37;
    font-size: 18px;
}

.bhp-drawer__count {
    background: #D4AF37;
    color: #0a0800;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bhp-drawer__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4) !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    flex-shrink: 0;
    box-shadow: none !important;
    padding: 0 !important;
}

.bhp-drawer__close:hover {
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
    background: rgba(255,255,255,0.08) !important;
}

.bhp-drawer__close svg {
    display: block !important;
    color: inherit !important;
    stroke: currentColor !important;
}

/* Added confirmation strip */
.bhp-drawer__added {
    background: #0f0e0a;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-bottom: 1px solid #1a1900;
}

.bhp-drawer__added-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #D4AF37;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bhp-drawer__added-icon .ti {
    font-size: 14px;
    color: #0a0800;
}

.bhp-drawer__added-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}

.bhp-drawer__added-text strong {
    color: #fff;
    display: block;
    font-size: 13px;
}

/* Free shipping bar */
.bhp-drawer__shipping-bar {
    padding: 12px 20px;
    background: #faf8f3;
    border-bottom: 1px solid #f0ede8;
    flex-shrink: 0;
}

.bhp-drawer__shipping-text {
    font-size: 11px;
    color: #555;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bhp-drawer__shipping-text .ti { color: #D4AF37; font-size: 13px; }

.bhp-drawer__shipping-text strong { color: #0a0800; }

.bhp-drawer__shipping-track {
    height: 3px;
    background: #ede9e0;
    border-radius: 2px;
    overflow: hidden;
}

.bhp-drawer__shipping-fill {
    height: 100%;
    background: #D4AF37;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.bhp-drawer__shipping-unlocked {
    font-size: 11px;
    color: #2d7a2d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bhp-drawer__shipping-unlocked .ti { font-size: 13px; }

/* Items list */
.bhp-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bhp-drawer__items::-webkit-scrollbar { width: 4px; }
.bhp-drawer__items::-webkit-scrollbar-track { background: #f7f5f0; }
.bhp-drawer__items::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 2px; }

/* Empty state */
.bhp-drawer__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.bhp-drawer__empty .ti {
    font-size: 40px;
    color: #ddd;
}

.bhp-drawer__empty p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.bhp-drawer__empty a {
    font-size: 12px;
    color: #D4AF37;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Cart item */
.bhp-drawer__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0ede8;
}

.bhp-drawer__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bhp-drawer__item-img {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: #f7f5f0;
    border: 1px solid #ede9e0;
    flex-shrink: 0;
}

.bhp-drawer__item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bhp-drawer__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bhp-drawer__item-name {
    font-size: 13px;
    font-weight: 500;
    color: #0a0800;
    line-height: 1.3;
}

.bhp-drawer__item-price {
    font-size: 12px;
    color: #D4AF37;
    font-weight: 500;
}

.bhp-drawer__item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.bhp-drawer__qty {
    display: flex;
    align-items: center;
    border: 1px solid #ede9e0;
    border-radius: 4px;
    overflow: hidden;
}

.bhp-drawer__qty-btn {
    width: 28px;
    height: 28px;
    background: #f7f5f0;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.bhp-drawer__qty-btn:hover { background: #ede9e0; color: #0a0800; }

.bhp-drawer__qty-val {
    width: 32px;
    text-align: center;
    font-size: 13px;
    color: #0a0800;
    font-weight: 500;
    border-left: 1px solid #f0ede8;
    border-right: 1px solid #f0ede8;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bhp-drawer__item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    transition: color 0.15s;
}

.bhp-drawer__item-remove:hover { color: #c0392b; }
.bhp-drawer__item-remove .ti { font-size: 13px; }

/* Footer */
.bhp-drawer__footer {
    padding: 16px 20px;
    border-top: 1px solid #f0ede8;
    background: #fff;
    flex-shrink: 0;
}

.bhp-drawer__totals {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.bhp-drawer__total-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #888;
}

.bhp-drawer__total-line--grand {
    font-size: 16px;
    font-weight: 600;
    color: #0a0800;
    padding-top: 8px;
    border-top: 1px solid #f0ede8;
    margin-top: 4px;
}

.bhp-drawer__free { color: #2d7a2d; font-weight: 500; }

.bhp-drawer__checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #D4AF37;
    color: #0a0800;
    border: 2px solid #D4AF37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    margin-bottom: 8px;
}

.bhp-drawer__checkout-btn:hover {
    background: #0a0800;
    color: #D4AF37;
    border-color: #0a0800;
}

.bhp-drawer__checkout-btn .ti { font-size: 15px; }

.bhp-drawer__view-cart {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.15s;
    padding: 4px;
}

.bhp-drawer__view-cart:hover { color: #0a0800; }

/* Mobile */
@media (max-width: 480px) {
    .bhp-drawer {
        max-width: 88vw;
        right: -88vw;
        box-shadow: -8px 0 32px rgba(0,0,0,0.35);
    }
    .bhp-drawer.bhp-drawer--open {
        right: 0;
    }
}

/* Variation label inside cart drawer item */
.bhp-drawer__item-variant {
    font-size: 11px;
    color: #D4AF37;
    font-weight: 500;
    margin-top: 1px;
}
