/*
Theme Name: Bishop Broncos Style
Author: Your Name
Description: Custom theme for Bishop Broncos Shop.
Version: 1.0
*/

:root {
    --primary-color: #8b0000; /* Bronco Maroon */
    --accent-color: #d4af37;  /* Gold accent */
    --text-color: #222222;
    --bg-light: #f8f9fa;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    background: #333;
    color: #fff;
    margin-top: 4rem;
}

/* ========================================================= */
/* --- SHOP PAGE, SLIDE-OUT CART & CHECKOUT FLOW STYLES ---- */
/* ========================================================= */

.shop-container, .checkout-container { 
    max-width: 1200px; 
    margin: 40px auto; 
    padding: 0 20px; 
}

/* Step 1: Single Product Layout */
.product-page-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
}

.main-image-wrap img { 
    width: 100%; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
}

.breadcrumb { 
    font-size: 14px; 
    color: #666; 
    margin-bottom: 15px; 
}

.breadcrumb a { 
    color: var(--primary-color); 
    text-decoration: none; 
}

.product-title { 
    font-size: 28px; 
    font-weight: bold; 
    margin: 5px 0; 
}

.product-sku { 
    font-size: 14px; 
    color: #777; 
    margin-bottom: 15px; 
}

.product-price-section { 
    font-size: 24px; 
    color: var(--primary-color); 
    font-weight: bold; 
    margin: 15px 0; 
}

.fitment-badge { 
    background: #e9ecef; 
    padding: 6px 12px; 
    display: inline-block; 
    border-radius: 4px; 
    margin-bottom: 15px; 
    font-size: 14px; 
}

.qty-controls { 
    display: flex; 
    gap: 5px; 
    align-items: center; 
    margin: 10px 0 20px 0; 
}

.qty-controls button { 
    width: 32px; 
    height: 32px; 
    border: 1px solid #ccc; 
    background: #fff; 
    cursor: pointer; 
    font-size: 16px; 
}

.qty-controls input { 
    width: 45px; 
    height: 32px; 
    text-align: center; 
    border: 1px solid #ccc; 
}

.btn-primary { 
    background: var(--primary-color); 
    color: #fff; 
    border: none; 
    padding: 14px 28px; 
    font-size: 16px; 
    font-weight: bold; 
    border-radius: 4px; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.btn-primary:hover { 
    background: #660000; 
}

.btn-primary.full-width { 
    width: 100%; 
    margin-top: 15px; 
}

/* Step 2: Slide-Out Cart Drawer */
.cart-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0, 0, 0, 0.5); 
    display: none; 
    z-index: 999; 
}

.cart-overlay.open { 
    display: block; 
}

.cart-drawer { 
    position: fixed; 
    top: 0; 
    right: -420px; 
    width: 400px; 
    height: 100vh; 
    background: #fff; 
    z-index: 1000; 
    transition: right 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    box-sizing: border-box; 
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
}

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

.cart-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
}

.cart-header .close-btn { 
    background: none; 
    border: none; 
    font-size: 28px; 
    cursor: pointer; 
}

.cart-body { 
    flex: 1; 
    padding: 20px 0; 
}

.cart-item { 
    display: flex; 
    gap: 15px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px; 
}

.cart-item img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.cart-footer { 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
}

.total-row { 
    display: flex; 
    justify-content: space-between; 
    font-weight: bold; 
    font-size: 18px; 
}

.subtext { 
    font-size: 12px; 
    color: #666; 
    margin: 8px 0 15px 0; 
}

.btn-checkout { 
    width: 100%; 
    background: #e02b20; 
    color: #fff; 
    border: none; 
    padding: 14px; 
    font-weight: bold; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
}

/* Step 3: Order / Checkout Form */
.checkout-grid { 
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
}

.back-link { 
    background: none; 
    border: none; 
    color: var(--primary-color); 
    cursor: pointer; 
    margin-bottom: 15px; 
    padding: 0; 
    font-weight: 600; 
}

.express-buttons { 
    display: flex; 
    gap: 10px; 
    margin: 10px 0; 
}

.btn-pay { 
    flex: 1; 
    padding: 12px; 
    border-radius: 4px; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
}

.shop-pay { background: #5a31f4; color: #fff; }
.paypal { background: #ffc439; color: #000; }
.gpay { background: #000; color: #fff; }

.divider { 
    text-align: center; 
    border-bottom: 1px solid #ddd; 
    line-height: 0.1em; 
    margin: 20px 0; 
}

.divider span { 
    background: var(--bg-light); 
    padding: 0 10px; 
    color: #777; 
    font-size: 12px; 
}

.form-section { 
    margin-bottom: 25px; 
}

.form-input { 
    width: 100%; 
    padding: 12px; 
    margin-bottom: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
}

.input-row { 
    display: flex; 
    gap: 10px; 
}

.shipping-toggle { 
    display: flex; 
    margin-bottom: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    overflow: hidden; 
}

.toggle-btn { 
    flex: 1; 
    padding: 10px; 
    border: none; 
    background: #f9f9f9; 
    cursor: pointer; 
}

.toggle-btn.active { 
    background: #fff; 
    font-weight: bold; 
}

.checkout-sidebar { 
    background: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    height: fit-content; 
}

.summary-item { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    border-bottom: 1px solid #e5e5e5; 
    padding-bottom: 15px; 
}

.summary-item img { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 4px; 
}

.summary-info { 
    flex: 1; 
}

.summary-totals { 
    margin-top: 15px; 
}

.summary-totals .line { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
    font-size: 14px; 
}

.summary-totals .line.total { 
    font-weight: bold; 
    font-size: 18px; 
    border-top: 1px solid #ddd; 
    padding-top: 10px; 
}

@media (max-width: 768px) {
    .product-page-grid, .checkout-grid { 
        grid-template-columns: 1fr; 
    }
    .cart-drawer { 
        width: 100%; 
        right: -100%; 
    }
}
