/* Store-specific styles */

/* Store Hero */
.store-hero {
    background: linear-gradient(135deg, #DC2626 0%, #000000 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.store-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.store-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #DC2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #DC2626;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Store Navigation */
.store-nav {
    background: #111111;
    padding: 2rem 0;
    border-bottom: 1px solid #374151;
}

.store-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.store-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #ffffff;
    border: 1px solid #374151;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #DC2626;
    border-color: #DC2626;
    color: #ffffff;
}

.store-search {
    position: relative;
    min-width: 300px;
}

.store-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: #1F2937;
    border: 1px solid #374151;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
}

.store-search input:focus {
    outline: none;
    border-color: #DC2626;
}

.store-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: #000000;
    min-height: 60vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: #111111;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #374151;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.product-image-container {
    width: 100%;
    height: 600px;
    background: #1F2937;
    position: relative;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.product-image-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-image-overlay {
    opacity: 1;
}

.view-details-btn {
    background: #DC2626;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.view-details-btn:hover {
    background: #B91C1C;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #DC2626;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-variants {
    margin: 1rem 0;
    padding: 1rem;
    background: #1F2937;
    border-radius: 8px;
    border: 1px solid #374151;
}

.variant-selector {
    margin-bottom: 0.75rem;
}

.variant-selector:last-child {
    margin-bottom: 0;
}

.variant-selector label {
    display: block;
    color: #D1D5DB;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.variant-selector select {
    width: 100%;
    padding: 0.5rem;
    background: #374151;
    border: 1px solid #4B5563;
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.variant-selector select:focus {
    outline: none;
    border-color: #DC2626;
}

.variant-selector select option {
    background: #374151;
    color: #ffffff;
}

.product-category {
    color: #DC2626;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.product-description {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #DC2626;
}

.add-to-cart-btn {
    background: #DC2626;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #B91C1C;
}

.add-to-cart-btn:disabled {
    background: #374151;
    cursor: not-allowed;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #9CA3AF;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #DC2626;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #111111;
    border-left: 1px solid #374151;
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.close-cart {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: #374151;
    color: #ffffff;
}

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

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #374151;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: #1F2937;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #9CA3AF;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #DC2626;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #374151;
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.quantity-btn:hover {
    background: #DC2626;
}

.quantity {
    min-width: 30px;
    text-align: center;
    color: #ffffff;
}

.remove-item {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #374151;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: #ffffff;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #DC2626;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #B91C1C;
}

/* Cart Toggle */
.cart-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #DC2626;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
    transition: transform 0.3s ease;
    z-index: 999;
}

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

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EF4444;
    color: #ffffff;
    border-radius: 50%;
    min-width: 20px;
    min-height: 20px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    z-index: 1000;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.open {
    display: flex;
}

.modal-content {
    background: #111111;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
}

.modal-body {
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-title {
        font-size: 2.5rem;
    }
    
    .store-stats {
        gap: 2rem;
    }
    
    .store-nav .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .store-filters {
        justify-content: center;
    }
    
    .store-search {
        min-width: auto;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .store-hero {
        padding: 100px 0 60px;
    }
    
    .store-title {
        font-size: 2rem;
    }
    
    .store-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .product-card {
        margin: 0 1rem;
    }
}
