/* ==================== CSS VARIABLES ==================== */
:root {
    /* Colors */
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-accent: #d4a574;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-border: #e5e5e5;
    --color-bg: #ffffff;
    --color-bg-light: #f8f8f8;
    --color-hover: #f5f5f5;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.announcement-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--color-secondary);
    text-align: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

/* ==================== HEADER ==================== */
.header {
    background: var(--color-secondary);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--color-hover);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-btn {
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--color-hover);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: var(--color-secondary);
    font-size: 0.625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

/* ==================== SIDEBAR FILTERS ==================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.filter-close {
    display: none;
    font-size: 1.5rem;
    padding: 0.25rem;
}

.filter-section {
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 0;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    cursor: pointer;
}

.filter-toggle svg {
    transition: transform var(--transition-normal);
}

.filter-toggle.active svg {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding-top: 0;
}

.filter-content.show {
    max-height: 500px;
    padding-top: 1rem;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.size-btn {
    padding: 0.625rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--color-secondary);
    transition: all var(--transition-fast);
}

.size-btn:hover,
.size-btn.active {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--color-accent);
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.checkbox-label:hover {
    color: var(--color-accent);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.clear-filters {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.clear-filters:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== PRODUCT AREA ==================== */
.product-area {
    width: 100%;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.collection-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1a1a1a 0%, #d4a574 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.collection-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-toggle-mobile {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.sort-select {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--color-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-select:hover {
    border-color: var(--color-accent);
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* ==================== PRODUCT GRID ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-secondary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--color-bg-light);
    border-radius: 12px 12px 0 0;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-secondary);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 1;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-action-btn:hover {
    background: var(--color-accent);
    color: var(--color-secondary);
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    font-size: 1rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: var(--color-accent);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.stars {
    color: var(--color-accent);
}

.quick-add-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-add-btn:hover {
    background: var(--color-accent);
}

/* ==================== LOAD MORE ==================== */
.load-more-container {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1rem 3rem;
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.load-more-btn:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--color-secondary);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--color-accent);
}

.newsletter p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-secondary);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.newsletter-form button:hover {
    background: #c89563;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        height: 100vh;
        max-height: 100vh;
        z-index: 2000;
        border-radius: 0;
        transition: left var(--transition-normal);
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .filter-close {
        display: block;
    }
    
    .filter-toggle-mobile {
        display: flex;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        padding: 2rem;
        transition: left var(--transition-normal);
        z-index: 1500;
        box-shadow: var(--shadow-lg);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1rem;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .collection-title {
        font-size: 2rem;
    }
    
    .collection-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .collection-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-title {
        font-size: 1.75rem;
    }
}
