/* =============================================
   SHOP PAGE - Super Bowl Pre-Orders
   Matching Wing It On Wheels Theme
   ============================================= */

.shop-hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-darker) 50%, var(--color-dark) 100%);
    padding: 150px 20px 80px;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(227, 24, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(227, 24, 55, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.shop-hero .hero-content {
    position: relative;
    z-index: 2;
}

.shop-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.shop-hero .tagline {
    font-size: 1.3rem;
    color: var(--color-light-gray);
}

/* Pre-order Closed Section */
.preorder-closed-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: var(--color-black);
}

.closed-message {
    text-align: center;
    background: var(--color-dark);
    padding: 60px 40px;
    border-radius: 20px;
    border: 3px solid var(--color-red);
    max-width: 600px;
    margin: 0 auto;
}

.closed-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.closed-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.closed-message p {
    font-size: 1.3rem;
    color: var(--color-light-gray);
    margin-bottom: 15px;
}

.enjoy-message {
    font-size: 1.5rem !important;
    color: var(--color-red) !important;
    font-weight: 700;
    margin-bottom: 30px !important;
}

/* Shop Content */
.shop-content {
    padding: 80px 0;
    background: var(--color-black);
    min-height: 100vh;
}

.shop-intro {
    text-align: center;
    margin-bottom: 60px;
}

.shop-intro h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.shop-subtitle {
    font-size: 1.2rem;
    color: var(--color-light-gray);
    margin-bottom: 10px;
}

.pickup-info,
.pickup-time,
.pickup-day {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.deadline-notice {
    background: rgba(227, 24, 55, 0.15);
    border: 2px solid var(--color-red);
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 20px;
    display: inline-block;
}

.deadline-notice strong {
    color: var(--color-red);
    font-size: 1.1rem;
}

/* Shop Grid Layout */
.shop-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-align: center;
}

/* Products Section */
.products-section {
    background: var(--color-darker);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(227, 24, 55, 0.3);
}

.product-category {
    margin-bottom: 50px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    color: var(--color-red);
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--color-dark);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(227, 24, 55, 0.2);
    transition: var(--transition);
    position: relative;
}

.product-type-badge {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-red);
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}

.product-type-badge img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.product-card:hover {
    border-color: var(--color-red);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(227, 24, 55, 0.3);
}

.product-header h5 {
    font-size: 1.5rem;
    color: var(--color-white);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-red);
}

.product-description {
    color: var(--color-light-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Sauce Selection */
.sauce-selection {
    margin-bottom: 20px;
}

.sauce-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-white);
    font-size: 0.95rem;
}

.sauce-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.sauce-checkboxes label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sauce-checkboxes label:hover {
    color: var(--color-white);
}

.sauce-checkboxes input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--color-red);
}

.sauce-counter {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gray);
    font-style: italic;
}

.sauce-counter.max-reached {
    color: var(--color-red);
    font-weight: 600;
}

/* Sauce Preference Styling */
.sauce-preference {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(227, 24, 55, 0.2);
}

.preference-label {
    display: block;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.preference-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(227, 24, 55, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: rgba(227, 24, 55, 0.15);
    border-color: rgba(227, 24, 55, 0.3);
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: var(--color-red);
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--color-red);
}

.radio-label span {
    color: var(--color-light-gray);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.radio-label:has(input[type="radio"]:checked) {
    background: rgba(227, 24, 55, 0.2);
    border-color: var(--color-red);
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Cart Section */
.cart-section {
    position: relative;
}

.cart-sticky {
    position: sticky;
    top: 120px;
    background: var(--color-darker);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(227, 24, 55, 0.3);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding-right: 10px;
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--color-dark);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 10px;
}

.empty-cart {
    text-align: center;
    color: var(--color-gray);
    padding: 40px 20px;
    font-style: italic;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-clear-cart {
    background: transparent;
    border: 1px solid var(--color-red);
    color: var(--color-red);
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 600;
}

.btn-clear-cart:hover {
    background: var(--color-red);
    color: var(--color-white);
}

.cart-item {
    background: var(--color-dark);
    padding: 15px;
    padding-top: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(227, 24, 55, 0.2);
    position: relative;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-name {
    font-weight: 600;
    color: var(--color-white);
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--color-red);
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-sauces {
    margin-top: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cart-item-sauces small {
    color: var(--color-gray);
    font-size: 0.85rem;
    line-height: 1.4;
}

.cart-item-sauces small strong {
    color: var(--color-white);
}

.btn-remove {
    position: absolute;
    top: 4px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--color-red);
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
    padding: 0;
}

.btn-remove::before {
    content: '×';
}

.btn-remove:hover {
    background: var(--color-red);
    color: var(--color-white);
    transform: rotate(90deg);
}

/* Cart Summary */
.cart-summary {
    border-top: 2px solid rgba(227, 24, 55, 0.3);
    padding-top: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--color-light-gray);
}

.summary-row.total-row {
    border-top: 2px solid rgba(227, 24, 55, 0.3);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.summary-row.total-row span:last-child {
    color: var(--color-red);
}

.btn-checkout {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
}

.btn-checkout:disabled {
    background: var(--color-gray);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-checkout:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Confirmation Modal */
.modal-confirm {
    max-width: 450px;
    text-align: center;
}

.modal-confirm h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-confirm p {
    color: var(--color-light-gray);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 180px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-gray);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--color-gray);
    border-color: var(--color-light-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-darker);
    margin: 20px;
    padding: 40px;
    border: 3px solid var(--color-red);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    color: var(--color-light-gray);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-red);
}

.modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-dark);
    border: 2px solid rgba(227, 24, 55, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--color-red);
}

.form-group small {
display: block;
margin-top: 5px;
color: var(--color-gray);
font-size: 0.85rem;
}

.form-group textarea {
resize: vertical;
min-height: 80px;
}

/* Checkout Summary */
.checkout-summary {
    background: var(--color-dark);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid rgba(227, 24, 55, 0.3);
}

.checkout-summary h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-red);
    text-transform: uppercase;
}

#checkout-items {
    margin-bottom: 15px;
}

.checkout-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(227, 24, 55, 0.2);
    color: var(--color-light-gray);
    font-size: 0.95rem;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-total {
    text-align: right;
    font-size: 1.5rem;
    color: var(--color-white);
    padding-top: 15px;
    border-top: 2px solid rgba(227, 24, 55, 0.3);
}

.checkout-total span {
    color: var(--color-red);
}

.btn-submit {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    /* Move cart to top on mobile */
    .cart-section {
        order: -1;
        margin-bottom: 30px;
    }
    
    .products-section {
        order: 1;
    }

    .cart-sticky {
        position: static;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .sauce-checkboxes {
        grid-template-columns: 1fr;
    }
    
    /* Show product type badges on mobile */
    .product-type-badge {
        display: block;
    }
    
    /* Hide category titles on mobile since badges show the type */
    .category-title {
        display: none;
    }
    
    /* Add more spacing for badge */
    .product-card {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .shop-hero {
        padding: 120px 20px 60px;
    }

    .shop-hero h1 {
        font-size: 2rem;
    }

    .products-section {
        padding: 25px 20px;
    }

    .cart-sticky {
        padding: 20px;
    }

    .modal-content {
        padding: 50px 20px 100px 20px;
        margin: 10px;
        margin-top: 20px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 2rem;
    }
    
    /* Sticky button for mobile only */
    #checkout-modal .btn-submit {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        z-index: 2001;
        padding: 18px 0;
        font-size: 1.1rem;
        text-align: center;
        display: block;
    }
    
    /* Compact product cards for mobile */
    .product-card {
        padding: 15px;
        min-height: auto;
    }
    
    .product-header h5 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .product-description {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .sauce-label {
        font-size: 0.9rem;
    }
    
    .sauce-checkboxes {
        gap: 6px;
    }
    
    .sauce-checkboxes label {
        font-size: 0.85rem;
    }
    
    .preference-label {
        font-size: 0.9rem;
    }
    
    .radio-label {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .btn-add-to-cart {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        margin: 12px 0 0;
        border-radius: 999px;
        border: 1px solid rgba(227, 24, 55, 0.4);
        background: rgba(227, 24, 55, 0.15);
        color: var(--color-white);
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        cursor: pointer;
    }

    .product-card.mobile-collapsed .product-header {
        margin-bottom: 0;
        padding-bottom: 10px;
    }

    .product-card {
        display: flex;
        flex-direction: column;
    }

    .product-type-badge {
        position: absolute;
        top: 15px;
        left: 15px;
    }

    .product-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-top: 45px;
    }

    .product-header h5 {
        flex: 1;
        margin: 0;
        font-size: 0.95rem;
        text-align: center;
    }

    .product-price {
        flex-shrink: 0;
    }

    .mobile-toggle::after {
        content: "+";
        font-size: 1rem;
    }

    .product-card.mobile-expanded .mobile-toggle::after {
        content: "–";
    }

    .product-card.mobile-collapsed .sauce-selection,
    .product-card.mobile-collapsed .sauce-preference,
    .product-card.mobile-collapsed .product-description,
    .product-card.mobile-collapsed .btn-add-to-cart {
        display: none;
    }

    .product-card.mobile-expanded .sauce-selection,
    .product-card.mobile-expanded .sauce-preference,
    .product-card.mobile-expanded .product-description,
    .product-card.mobile-expanded .btn-add-to-cart {
        display: block;
    }

    .closed-message {
        padding: 40px 25px;
    }

    .closed-icon {
        font-size: 3.5rem;
    }

    .closed-message h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .shop-intro h2 {
        font-size: 1.8rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .product-header h5 {
        font-size: 1.2rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .deadline-notice {
        padding: 12px 15px;
    }

    .deadline-notice strong {
        font-size: 0.95rem;
    }
}
