/* Merch Store Styles */
.merch-hero {
    text-align: center;
    padding: 14rem 2rem;
    background-color: var(--menu-background);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
}

.merch-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--secondary-color) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.merch-hero h1 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1.1;
    color: #FF2D00;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    -webkit-font-smoothing: antialiased;
}

.merch-hero .description {
    font-size: 1.5rem;
    color: #2C2C2C;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .merch-hero {
        padding: 8rem 1.5rem;
    }

    .merch-hero h1 {
        font-size: 3rem;
    }

    .merch-hero .description {
        font-size: 1.2rem;
    }
}

.merch-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.merch-category {
    margin-bottom: 4rem;
}

.merch-category h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.merch-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.merch-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.merch-item:hover {
    transform: translateY(-5px);
}

.merch-image {
    position: relative;
    padding-top: 100%;
    background: #f5f5f5;
}

.merch-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.merch-item:hover .merch-overlay {
    opacity: 1;
}

.size-selector,
.buy-now {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.size-selector:hover,
.buy-now:hover {
    background: #e63517;
}

.merch-info {
    padding: 1.5rem;
}

.merch-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.merch-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.size-guide {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
}

.size-guide h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

.size-guide h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    text-align: left;
}

.size-guide h3:first-child {
    margin-top: 0;
}

.size-chart {
    overflow-x: auto;
}

.size-chart table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.size-chart table:last-child {
    margin-bottom: 0;
}

.size-chart th,
.size-chart td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #eee;
}

.size-chart th {
    background: var(--menu-background);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.size-chart td {
    font-size: 0.95rem;
    color: #4A4A4A;
}

.cart-popup {
    position: fixed;
    top: 52px; /* Account for notification bar */
    right: -400px;
    width: 400px;
    height: calc(100vh - 52px);
    background: white;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 999; /* Below notification bar */
}

.cart-popup.active {
    right: 0;
}

.cart-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Cart Popup Styles */
.cart-popup {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.cart-popup.active + .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-popup.active {
    right: 0;
}

.cart-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.cart-content .close-cart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.cart-content .close-cart:hover {
    transform: scale(1.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item-info {
    flex: 1;
}

.cart-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.cart-item small {
    color: #666;
    display: block;
    margin-bottom: 0.25rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    transition: color 0.2s;
}

.remove-item:hover {
    color: var(--primary-color);
}

/* Checkout Form Styles */
.checkout-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.checkout-form h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.half {
    flex: 1;
}

.checkout-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-form input::placeholder {
    color: #999;
}

.form-divider {
    height: 1px;
    background: #eee;
    margin: 2rem 0;
}

.submit-order {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1rem;
}

.submit-order:hover {
    background: #e63517;
}

.back-to-cart {
    width: 100%;
    padding: 0.8rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
}

.back-to-cart:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Order Confirmation Styles */
.order-confirmation {
    text-align: center;
    padding: 2rem;
}

.order-confirmation h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-confirmation p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.order-number {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.continue-shopping {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: background 0.2s;
}

.continue-shopping:hover {
    background: #e63517;
}

.cart-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    color: var(--secondary-color);
}

.cart-item small {
    display: block;
    color: #666;
    margin-top: 0.25rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid #eee;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.checkout-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-button:hover {
    background: #e63517;
}

@media (max-width: 480px) {
    .cart-popup {
        width: 100%;
        right: -100%;
    }
}

.cart-content .close-cart {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    line-height: 1;
}

.cart-content .close-cart:hover {
    color: var(--primary-color);
}

.cart-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.2rem;
}

.checkout-button {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-button:hover {
    background: #e63517;
}

.view-product {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-product:hover {
    background-color: #c41329;
}

@media (max-width: 768px) {
    .merch-hero {
        padding: 3rem 1rem;
    }

    .merch-hero h1 {
        font-size: 2.5rem;
    }

    .merch-grid {
        padding: 1rem;
    }

    .cart-popup {
        width: 100%;
        right: -100%;
    }
}
