/* Merchandise Section Styles */

/* Merchandise Section */
#merchandise {
    background: linear-gradient(135deg, 
        var(--marble-white) 0%, 
        var(--marble-gray) 25%, 
        var(--marble-silver) 50%, 
        var(--marble-gray) 75%, 
        var(--marble-white) 100%);
    background-size: 400% 400%;
    animation: marbleShift 20s ease-in-out infinite;
    position: relative;
    padding: 80px 0;
    min-height: 100vh;
}

.merchandise-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.merchandise-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card:hover,
.product-card.hovered {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: var(--accent-gold);
    color: var(--accent-black);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-btn:hover {
    background: #f4d03f;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding: 30px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.shop-now-btn {
    background: var(--accent-black);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    justify-content: center;
}

.shop-now-btn:hover {
    background: var(--accent-gold);
    color: var(--accent-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.shop-now-btn span {
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: var(--text-light);
    grid-column: 1 / -1;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.error-message h3 {
    color: var(--accent-black);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.error-message p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.error-message .store-link {
    background: var(--accent-gold);
    color: var(--accent-black);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.error-message .store-link:hover {
    background: #f4d03f;
    transform: translateY(-2px);
}

/* Merchandise Footer */
.merchandise-footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.merchandise-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.external-store-link {
    margin-top: 20px;
}

.store-link {
    background: var(--accent-gold);
    color: var(--accent-black);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-link:hover {
    background: #f4d03f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.store-link span {
    font-size: 1.2rem;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
    color: var(--accent-black);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--accent-black);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-description {
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 15px;
}

.modal-category {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-actions {
    margin-top: auto;
}

.modal-shop-btn {
    background: var(--accent-black);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    justify-content: center;
}

.modal-shop-btn:hover {
    background: var(--accent-gold);
    color: var(--accent-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-shop-btn span {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-image-container {
        height: 250px;
    }
    
    .product-info {
        padding: 25px;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .merchandise-intro {
        padding: 0 15px;
    }
    
    .merchandise-intro p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #merchandise {
        padding: 60px 0;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .shop-now-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .store-link {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
