/* BHP Shop — Cart Page */

.bhp-cart-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
    font-family: system-ui, sans-serif;
}

/* Empty state */
.bhp-cart-empty {
    text-align: center;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.bhp-cart-empty .ti {
    font-size: 48px;
    color: #ddd;
}

.bhp-cart-empty h2 {
    font-size: 22px;
    font-weight: 500;
    color: #0a0800;
    margin: 0;
}

.bhp-cart-empty p {
    font-size: 15px;
    color: #888;
    margin: 0;
}

/* Layout */
.bhp-cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.bhp-cart-heading {
    font-size: 20px;
    font-weight: 500;
    color: #0a0800;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0ede8;
}

/* Cart items */
.bhp-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0ede8;
}

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

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

.bhp-cart-item__name {
    font-size: 14px;
    font-weight: 500;
    color: #0a0800;
    margin-bottom: 4px;
}

.bhp-cart-item__price {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.bhp-cart-item__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.bhp-cart-qty-btn {
    padding: 4px 10px;
    font-size: 14px;
    color: #888;
    background: #f7f5f0;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
    height: 28px;
}

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

.bhp-cart-qty-val {
    padding: 0 10px;
    font-size: 13px;
    color: #0a0800;
    border-left: 1px solid #f0ede8;
    border-right: 1px solid #f0ede8;
    height: 28px;
    display: flex;
    align-items: center;
    min-width: 32px;
    justify-content: center;
}

.bhp-cart-remove {
    font-size: 12px !important;
    color: #bbb !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transition: color 0.15s;
    width: auto !important;
    height: auto !important;
}

.bhp-cart-remove:hover,
.bhp-cart-remove:focus {
    color: #c0392b !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bhp-cart-remove .ti { font-size: 14px; }

.bhp-cart-item__total {
    font-size: 15px;
    font-weight: 500;
    color: #0a0800;
    text-align: right;
    white-space: nowrap;
}

/* Summary panel */
.bhp-cart-summary {
    background: #faf8f3;
    border: 1px solid #ede9e0;
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 24px;
}

/* Free shipping bar */
.bhp-free-shipping-bar {
    background: #fff;
    border: 1px solid #ede9e0;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 20px;
}

.bhp-free-shipping-bar__text {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bhp-free-shipping-bar__text .ti { color: #D4AF37; font-size: 14px; }

.bhp-free-shipping-bar__track {
    height: 4px;
    background: #f0ede8;
    border-radius: 2px;
    overflow: hidden;
}

.bhp-free-shipping-bar__fill {
    height: 100%;
    background: #D4AF37;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.bhp-free-shipping-achieved {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #2d7a2d;
    background: #eef7ee;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.bhp-free-shipping-achieved .ti { font-size: 16px; }

/* Summary lines */
.bhp-summary-lines {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bhp-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
}

.bhp-summary-line--total {
    font-size: 17px;
    font-weight: 600;
    color: #0a0800;
    padding-top: 12px;
    border-top: 1px solid #ede9e0;
    margin-top: 4px;
}

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

/* Buttons */
.bhp-btn-primary,
.bhp-btn-checkout {
    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: 600;
    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: 12px;
}

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

.bhp-btn-continue {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.15s;
}

.bhp-btn-continue:hover { color: #0a0800; }

.bhp-cart-trust {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #ede9e0;
}

.bhp-cart-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.bhp-cart-trust-item .ti { color: #D4AF37; font-size: 13px; }

/* Product grid */
.bhp-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .bhp-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .bhp-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.bhp-grid-card {
    background: #fff;
    border: 1px solid #ede9e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bhp-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.bhp-grid-card__img {
    aspect-ratio: 1;
    background: #f7f5f0;
    position: relative;
    overflow: hidden;
}

.bhp-grid-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.bhp-grid-card:hover .bhp-grid-card__img img { transform: scale(1.04); }

.bhp-grid-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0a0800;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
}

.bhp-grid-card__info {
    padding: 14px 16px 8px;
    flex: 1;
}

.bhp-grid-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #0a0800;
    margin-bottom: 4px;
    line-height: 1.3;
}

.bhp-grid-card__price {
    font-size: 14px;
    color: #D4AF37;
    font-weight: 500;
}

.bhp-grid-card__btn {
    background: #0a0800;
    color: #D4AF37;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    transition: background 0.2s, color 0.2s;
}

.bhp-grid-card:hover .bhp-grid-card__btn {
    background: #D4AF37;
    color: #0a0800;
}

/* Mobile */
@media (max-width: 767px) {
    .bhp-cart-page { padding: 24px 16px; }
    .bhp-cart-layout { grid-template-columns: 1fr; gap: 24px; }
    .bhp-cart-summary { position: static; }
    .bhp-cart-item { grid-template-columns: 64px 1fr; }
    .bhp-cart-item__total { grid-column: 2; justify-self: start; }
}
