/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f9fafb;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #6b7280;
}

.search-container {
    flex: 1;
    max-width: 32rem;
    margin: 0 2rem;
    display: none;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 1px #1f2937;
}

.header-actions {
    display: none;
    gap: 1rem;
}

.action-btn {
    position: relative;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.action-btn:hover {
    color: #1f2937;
}

.badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.mobile-search {
    display: block;
    padding-bottom: 1rem;
}

.mobile-nav {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-content {
    padding: 0.75rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f9fafb;
}

.mobile-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.mobile-action-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #6b7280;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mobile-action-btn:hover {
    background-color: #f9fafb;
}

.mobile-action-btn i {
    margin-right: 0.5rem;
}

/* Desktop Header */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .search-container {
        display: block;
    }
    
    .header-actions {
        display: flex;
    }
    
    .mobile-menu-btn,
    .mobile-search {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    overflow: hidden;
    padding: 6rem 0 8rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: bold;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero shimmer effect */
.hero-title-gradient.shimmer {
    position: relative;
}
.hero-title-gradient.shimmer:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 25%, transparent 50%);
    transform: translateX(-150%);
    animation: heroShimmer 3.2s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes heroShimmer {
    0% { transform: translateX(-150%); }
    60% { transform: translateX(150%); }
    100% { transform: translateX(150%); }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Micro-animations: buttons and CTAs */
.btn-primary,
.btn-secondary,
.btn-quick-view,
.btn-add-cart,
.btn-add-to-cart,
.btn-wishlist,
.action-button,
.view-btn,
.btn-filter,
.btn-load-more {
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
    will-change: transform;
}

.btn-primary:active,
.btn-secondary:active,
.btn-quick-view:active,
.btn-add-cart:active,
.btn-add-to-cart:active,
.btn-wishlist:active,
.action-button:active,
.view-btn:active,
.btn-filter:active,
.btn-load-more:active {
    transform: translateY(1px) scale(0.99);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    opacity: 0.2;
}

.hero-decoration-1 {
    width: 5rem;
    height: 5rem;
    top: 5rem;
    left: 2.5rem;
    animation: pulse 3s ease-in-out infinite;
}

.hero-decoration-2 {
    width: 8rem;
    height: 8rem;
    bottom: 5rem;
    right: 2.5rem;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite 1s;
}

.hero-decoration-3 {
    width: 2rem;
    height: 2rem;
    top: 50%;
    left: 5rem;
    opacity: 0.3;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite 0.5s;
}

/* Parallax targets will use transform only; JS will update with rAF */
.hero-decoration {
    will-change: transform;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Desktop Hero */
@media (min-width: 640px) {
    .hero {
        padding: 8rem 0 10rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
    background: #f9fafb;
}

.featured-carousel {
    position: relative;
}

.swiper {
    overflow: hidden;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.featured-slide {
    display: grid;
    grid-template-columns: 1fr;
}

.featured-image {
    position: relative;
    background: #f3f4f6;
    aspect-ratio: 4/3;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.featured-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.star.empty {
    color: #d1d5db;
}

.featured-description {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
}

.original-price {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
}

.featured-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-quick-view {
    background: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-quick-view:hover {
    background: #374151;
}

.btn-add-cart {
    background: transparent;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border: 1px solid #1f2937;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: #1f2937;
    color: white;
}

/* Header nav underline hover effect */
.nav-link {
    position: relative;
}
.nav-link:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #1f2937, #6b7280);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms ease;
}
.nav-link:hover:after {
    transform: scaleX(1);
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
    transform: scale(1.25);
}

@media (min-width: 1024px) {
    .featured-slide {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-image {
        aspect-ratio: 4/4;
    }
    
    .featured-details {
        padding: 3rem;
    }
    
    .featured-name {
        font-size: 1.875rem;
    }
    
    .featured-actions {
        flex-direction: row;
    }
}

/* Products Section */
.products-section {
    padding: 4rem 0;
}

.products-layout {
    display: flex;
    gap: 2rem;
}

.filters-sidebar {
    display: none;
    width: 16rem;
    flex-shrink: 0;
}

.filters-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    position: sticky;
    top: 6rem;
}

.filters-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filters-header i {
    color: #6b7280;
}

.filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.filter-count {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.clear-filters {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.clear-filters:hover {
    color: #1f2937;
}

.filter-section {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
}

.filter-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.filter-header i {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.filter-header.collapsed i {
    transform: rotate(-90deg);
}

.filter-content {
    margin-top: 0.75rem;
    display: block;
}

.filter-content.hidden {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.filter-option input {
    margin-right: 0.75rem;
}

.filter-option span {
    font-size: 0.875rem;
    color: #374151;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.price-input:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 1px #1f2937;
}

.price-ranges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

/* Products Content */
.products-content {
    flex: 1;
}

.products-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-count-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.view-toggle {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    overflow: hidden;
}

.view-btn {
    padding: 0.5rem;
    background: white;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: #1f2937;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f9fafb;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
}

.sort-select:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 1px #1f2937;
}

.mobile-filter-btn {
    display: block;
    margin-bottom: 1rem;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #f9fafb;
}

@media (min-width: 640px) {
    .products-toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .filters-sidebar {
        display: block;
    }
    
    .mobile-filter-btn {
        display: none;
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    background: #f3f4f6;
    overflow: hidden;
}

/* Product image hover glare (performant, transform-only) */
.product-image-container:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 120%;
    height: 200%;
    pointer-events: none;
    background: linear-gradient(60deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 35%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%) rotate(10deg);
    opacity: 0;
    transition: transform 600ms ease, opacity 300ms ease;
    will-change: transform, opacity;
}

.product-card:hover .product-image-container:after {
    transform: translateX(120%) rotate(10deg);
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    transition: all 0.7s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Reveal-on-scroll base state */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    will-change: transform, opacity;
    transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Limit hover styles on touch devices */
@media (hover: none) {
    .nav-link:after { display: none; }
    .action-button:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-quick-view:hover,
    .btn-add-cart:hover,
    .btn-add-to-cart:hover,
    .btn-wishlist:hover,
    .view-btn:hover,
    .btn-filter:hover,
    .btn-load-more:hover {
        background: inherit;
        color: inherit;
        transform: none;
        box-shadow: none;
    }
}

.product-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-badge {
    background: #fbbf24;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.action-button {
    background: white;
    color: #1f2937;
    padding: 0.75rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.action-button:hover {
    background: #f9fafb;
    transform: scale(1.1);
}

.action-button.wishlist.active {
    background: #ef4444;
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.product-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.product-category {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: capitalize;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.product-card:hover .product-name {
    color: #6b7280;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.product-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
}

.original-price {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: line-through;
}

.stock-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.product-colors {
    margin-top: 1rem;
}

.colors-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: block;
}

.color-dots {
    display: flex;
    gap: 0.25rem;
}

.color-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-dot:hover {
    border-color: #9ca3af;
}

.color-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image-container {
    width: 20rem;
    flex-shrink: 0;
}

.products-grid.list-view .product-image {
    height: 15rem;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Load More */
.load-more {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: #e5e7eb;
}

/* Product Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Drawers */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
    z-index: 9998;
}

/* Checkout Page */
.checkout-page {
    padding: 2rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.checkout-section {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.checkout-summary {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: fit-content;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 600;
}

.form-field input {
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.form-field input:focus {
    outline: none;
    border-color: #1f2937;
    box-shadow: 0 0 0 1px #1f2937;
}

.form-field.error input {
    border-color: #ef4444;
}

.field-error {
    color: #ef4444;
    font-size: 0.75rem;
}

.btn-primary.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading:after {
    content: "";
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-span-2 { grid-column: span 2; }

.summary-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.summary-item-title { font-weight: 600; }
.summary-item-meta { font-size: 0.75rem; color: #6b7280; }
.summary-item-price { font-weight: 700; }

.summary-row,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-total { font-size: 1.125rem; font-weight: 700; }

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(420px, 100%);
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 260ms ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.drawer-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.drawer-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.drawer-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.drawer-item-title {
    font-weight: 600;
    color: #1f2937;
}

.drawer-item-meta {
    font-size: 0.75rem;
    color: #6b7280;
}

.drawer-item-price {
    font-weight: 700;
    color: #1f2937;
}

.drawer-footer {
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.25rem;
}

.drawer-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.drawer-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-checkout {
    flex: 1;
    background: #1f2937;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-clear {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: none;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 64rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: transform 250ms ease, opacity 250ms ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f9fafb;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    background: #f3f4f6;
    border-radius: 0.75rem;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-nav:hover {
    background: rgba(255, 255, 255, 0.95);
}

.image-nav.prev {
    left: 1rem;
}

.image-nav.next {
    right: 1rem;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.thumbnail {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail.active {
    border-color: #1f2937;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-brand {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.product-category {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: capitalize;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 0.25rem;
}

.product-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
}

.original-price {
    font-size: 1.25rem;
    color: #6b7280;
    text-decoration: line-through;
}

.product-description {
    color: #6b7280;
    line-height: 1.6;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.color-selection,
.size-selection,
.quantity-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.color-selection label,
.size-selection label,
.quantity-selection label {
    font-weight: 500;
    color: #1f2937;
}

.color-options {
    display: flex;
    gap: 0.75rem;
}

.color-option {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option.selected {
    border-color: #1f2937;
    transform: scale(1.1);
}

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.size-option {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: #9ca3af;
}

.size-option.selected {
    border-color: #1f2937;
    background: #1f2937;
    color: white;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    width: fit-content;
}

.quantity-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
}

.quantity-value {
    padding: 0.5rem 1rem;
    font-weight: 500;
    min-width: 3rem;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

.btn-add-to-cart {
    flex: 1;
    background: #1f2937;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    background: #374151;
}

.btn-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-wishlist {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #f9fafb;
}

.btn-wishlist.active {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.stock-status {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

@media (min-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-image img {
        height: 31.25rem;
    }
    
    .product-title {
        font-size: 2.25rem;
    }
}

/* Mobile Filters Modal */
.mobile-filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-filters-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-filters-content {
    background: white;
    width: 100%;
    max-width: 24rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.mobile-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-filters-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.mobile-filters-close {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.mobile-filters-body {
    padding: 1rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
}

.mobile-filters-overlay .filters-content {
    box-shadow: none;
    border: none;
    position: static;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-text {
    color: #d1d5db;
    line-height: 1.6;
}

.social-links h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: white;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-item i {
    color: #9ca3af;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-item span {
    color: #d1d5db;
}

.newsletter h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem 0 0 0.5rem;
    color: white;
}

.newsletter-input::placeholder {
    color: #9ca3af;
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
}

.newsletter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #1f2937;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-btn:hover {
    background: #f9fafb;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid #374151;
    padding-top: 2rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #9ca3af;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: white;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 20rem;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-icon.success {
    color: #10b981;
}

.toast-icon.error {
    color: #ef4444;
}

.toast-message {
    flex: 1;
    font-weight: 500;
    color: #1f2937;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #6b7280;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.empty-message {
    color: #6b7280;
    max-width: 24rem;
    margin: 0 auto;
}

/* Responsive Utilities */
@media (max-width: 639px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.product-card.loading .product-image {
    background: #f0f0f0;
}

.product-card.loading .product-name,
.product-card.loading .product-brand,
.product-card.loading .current-price {
    background: #f0f0f0;
    color: transparent;
    border-radius: 0.25rem;
}