/*
 * Build Your Box - Frontend Styles
 * Version: 1.7.1
 */

/* Main Container */
.byob-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    font-family: sans-serif;
}

/* Header */
.byob-header { 
    text-align: center; 
    margin-bottom: 40px; 
}
.byob-header h1 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: #1c1917; 
}

/* Section Titles */
.byob-pack-selector-wrapper h2, .byob-product-list-wrapper h2 { 
    font-size: 1.25rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    color: #292524;
}

/* Pack Selector */
.byob-pack-selector { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1rem; 
    margin-bottom: 40px; 
}
.byob-pack-option input[type="radio"] { 
    display: none; 
}
.byob-pack-option { 
    position: relative; 
}

.byob-pack-option label { 
    display: block; 
    padding: 1.5rem; 
    border: 2px solid #75DAFF; 
    background-color: #C4EFFF; 
    border-radius: 0.5rem; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.2s ease-in-out; 
}
.byob-pack-option input[type="radio"]:checked + label { 
    border-color: #00A8F3; 
    box-shadow: 0 0 0 3px rgba(117, 218, 255, 0.6); 
}
.byob-pack-option label p:first-child { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: #1c1917;
}
.byob-pack-option label p:last-child { 
    font-weight: 800; 
    font-size: 1.5rem; 
    margin-top: 0.5rem; 
    color: #1c1917;
}

/* Sale Pricing Styles */
.byob-sale-price {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    margin-top: 0.5rem !important;
    color: #dc2626 !important;
}

.byob-regular-price {
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin-top: 0.25rem !important;
    color: #6b7280 !important;
    text-decoration: line-through !important;
}

.byob-sale-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

/* Product List */
.byob-product-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 40px; /* Reduced margin as bar is hidden */
}
.byob-product-card { 
    background-color: #C4EFFF; 
    border: 2px solid #75DAFF; 
    border-radius: 0.5rem; 
    padding: 1rem; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
}
.byob-product-card img { 
    width: 100%; 
    height: 180px; 
    object-fit: contain; /* **IMAGE FIX RE-APPLIED HERE** */
    border-radius: 0.25rem; 
    margin-bottom: 1rem;
}
.byob-product-card h3 { 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    color: #1c1917;
    flex-grow: 1;
}
.byob-product-price {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #3f3f46;
}
.byob-product-controls {
    margin-top: auto;
}
.byob-product-controls button { 
    width: 100%; 
    padding: 0.75rem; 
    border: none; 
    border-radius: 0.5rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: background-color 0.2s; 
}
.byob-product-controls .add-btn { 
    background-color: #75DAFF; 
    color: #1c1917; 
}
.byob-product-controls .add-btn:hover { 
    background-color: #61cffa; 
}
.byob-quantity-controls { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.byob-quantity-controls button { 
    width: 40px; 
    height: 40px; 
    background-color: #1c1917; 
    color: white; 
    font-size: 1.5rem;
    line-height: 1;
}
.byob-quantity-controls span { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #1c1917;
}

/* Bottom Bar */
.byob-bottom-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background-color: rgba(255,255,255,0.9); 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid #e5e7eb; 
    padding: 1rem; 
    z-index: 1000; 
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
}
.byob-bottom-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
}
.byob-progress-wrapper { 
    max-width: 600px; 
    margin: 0 auto 1rem; 
}
.byob-progress-text { 
    text-align: center; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
    color: #292524;
}
.byob-progress-bar-bg { 
    width: 100%; 
    background-color: #e5e7eb; 
    border-radius: 99px; 
    height: 10px; 
    overflow: hidden;
}
.byob-progress-bar-fill { 
    width: 0%; 
    background-color: #75DAFF; 
    height: 10px; 
    border-radius: 99px; 
    transition: width 0.3s ease-in-out; 
}
.byob-summary { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem; 
    margin-bottom: 1rem; 
    min-height: 50px; 
}
.byob-summary-item { 
    position: relative; 
    width: 48px; 
    height: 48px; 
}
.byob-summary-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 0.375rem; 
    border: 2px solid #75DAFF; 
}
.byob-summary-item span { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background-color: #1c1917; 
    color: white; 
    border-radius: 50%; 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.8rem; 
    font-weight: 700; 
    line-height: 1;
}
.byob-footer-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.byob-footer-nav button { 
    padding: 0.75rem 2rem; 
    border-radius: 0.5rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.2s; 
}
.byob-next-btn { 
    background-color: #1c1917; 
    color: white; 
    border: none; 
}
.byob-next-btn.disabled { 
    background-color: #a8a29e; 
    cursor: not-allowed; 
    opacity: 0.7;
}
.byob-total-price-wrapper { 
    text-align: left; 
}
.byob-total-price-wrapper span { 
    font-size: 0.9rem; 
    color: #57534e;
}
.byob-total-price-wrapper p { 
    font-size: 1.75rem; 
    font-weight: 800; 
    color: #1c1917;
    margin: 0;
}
