/* Luxury E-Commerce Design */
:root {
    --primary-dark: #8C503A;
    --primary-light: #F2E2CE;
    --primary-white: #FFFFFF;
    --accent-gold: #D99543;
    --accent-light: #D99982;
    --accent-danger: #BF544B;
    --text-dark: #1a1a1a;
    --text-light: #4C4C4C;
    --border-color: #E0E0E0;
    --light-gray: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-white);
    line-height: 1.6;
}

/* Header & Navigation */
.luxury-header {
    background: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-luxury {
    padding: 0;
}

.navbar-brand-luxury {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-brand-luxury:hover {
    opacity: 0.8;
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand-luxury:hover .navbar-logo {
    transform: scale(1.05);
}

.navbar-toggler {
    border-color: var(--primary-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(242, 226, 206, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link-luxury {
    color: var(--primary-light) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link-luxury:hover {
    color: var(--primary-white) !important;
}

.nav-link-luxury:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-gold);
    color: var(--primary-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-light) 100%);
    color: var(--primary-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Bar */
.search-bar-luxury {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-input-luxury {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--primary-white);
}

.search-input-luxury:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(217, 149, 67, 0.2);
}

.search-btn-luxury {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-gold);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn-luxury:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: var(--accent-gold);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--primary-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-link i {
    color: var(--border-color);
    transition: color 0.3s ease;
}

.category-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(5px);
}

.category-link:hover i {
    color: var(--accent-gold);
}

.category-link.active {
    background: var(--primary-dark);
    color: var(--primary-white);
}

.category-link.active i {
    color: var(--accent-gold);
}

/* Price Filter */
.price-inputs {
    margin-top: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-gray);
    margin-bottom: 0.5rem;
}

.price-inputs .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.price-inputs .form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(217, 149, 67, 0.2);
}

.filter-apply-btn {
    width: 100%;
    background: var(--primary-dark);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.filter-apply-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 149, 67, 0.3);
}

/* Stock Filter */
.stock-filter {
    margin-top: 1rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-checkbox:hover {
    background: var(--light-gray);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-dark);
}

.filter-checkbox span {
    font-weight: 500;
    color: var(--text-light);
    user-select: none;
}

.filter-checkbox:hover span {
    color: var(--primary-dark);
}

/* Clear Filters */
.clear-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* Product Grid */
.products-section {
    padding: 3rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Product Card */
.product-card {
    background: var(--primary-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--light-gray);
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--primary-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-stock.in-stock {
    color: #28a745;
}

.product-stock.low-stock {
    color: #ffc107;
}

.product-stock.out-of-stock {
    color: #dc3545;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-dark);
    color: var(--primary-white);
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 149, 67, 0.3);
}

.add-to-cart-btn:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.empty-state-text {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* Category Button (for empty state) */
.category-btn {
    background: var(--primary-dark);
    color: var(--primary-white);
    border: 2px solid var(--primary-dark);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.category-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 149, 67, 0.3);
}

/* Footer */
.luxury-footer {
    background: var(--primary-dark);
    color: var(--primary-white);
    padding: 2rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-bottom {
    text-align: center;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-developer-logo {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-developer-logo:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .navbar-logo {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .filter-sidebar {
        padding: 1rem;
    }

    .filter-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .category-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .navbar-logo {
        height: 35px;
        max-width: 120px;
    }

    .footer-developer {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-developer-logo {
        height: 25px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

