* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #000;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #000;
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    transform: scale(1.15);
    opacity: 0.8;
    color: #000;
}

.theme-toggle,
.cart-icon,
.wishlist-icon {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
    position: relative;
}

.theme-toggle:hover,
.cart-icon:hover,
.wishlist-icon:hover {
    background: #f0f0f0;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Main */
.main {
    padding: 60px 0;
}

.page-title {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    text-align: center;
}

.page-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Search and Sort Bar */
.search-sort-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #000;
}

.sort-box select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

.sort-box select:focus {
    outline: none;
    border-color: #000;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.view-btn:hover {
    border-color: #333;
}

.view-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Filters */
.filters {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #333;
    color: #333;
}

.filter-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 20px 30px 20px;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border-bottom: 2px solid #f0f0f0;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 0.1;
}

/* Стилі для реальних фото свічок */
.candle-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.candle-photo.loaded {
    display: block;
    opacity: 1;
}

.product-card:hover .candle-photo.loaded {
    transform: scale(1.05);
}

.product-placeholder {
    z-index: 1;
    position: relative;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Візуалізація банки з гранулами */
.product-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: inherit;
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    box-shadow: inset 0 -20px 40px rgba(0,0,0,0.1);
}

/* Ефект гранул всередині */
.product-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 85%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
    pointer-events: none;
}

/* Реальні кольори банок з фото - градієнти для кожного кольору */
/* Створюємо ефект 3D банки з гранулами */
.color-black .product-placeholder {
    background: linear-gradient(180deg, 
        #3a3a3a 0%, 
        #2a2a2a 15%, 
        #1a1a1a 30%, 
        #0f0f0f 50%, 
        #000000 70%, 
        #0a0a0a 85%, 
        #000000 100%);
    box-shadow: 
        inset 0 0 80px rgba(0,0,0,0.7),
        inset 0 -30px 60px rgba(0,0,0,0.5),
        0 6px 25px rgba(0,0,0,0.4);
    border: 2px solid rgba(0,0,0,0.3);
    position: relative;
}

.color-emerald .product-placeholder {
    background: linear-gradient(180deg, 
        #4ade80 0%, 
        #34d399 20%, 
        #22c55e 40%, 
        #16a34a 60%, 
        #15803d 80%, 
        #166534 100%);
    box-shadow: 
        inset 0 0 80px rgba(34,197,94,0.5),
        inset 0 -30px 60px rgba(16,163,74,0.4),
        0 6px 25px rgba(34,197,94,0.3);
    border: 2px solid rgba(34,197,94,0.4);
}

.color-velvet .product-placeholder {
    background: linear-gradient(180deg, 
        #be123c 0%, 
        #991b1b 20%, 
        #7f1d1d 40%, 
        #6b1a1a 60%, 
        #5a1616 80%, 
        #450a0a 100%);
    box-shadow: 
        inset 0 0 80px rgba(127,29,29,0.6),
        inset 0 -30px 60px rgba(107,26,26,0.5),
        0 6px 25px rgba(127,29,29,0.4);
    border: 2px solid rgba(127,29,29,0.4);
}

.color-ivory .product-placeholder {
    background: linear-gradient(180deg, 
        #fef9e7 0%, 
        #fef3c7 20%, 
        #fde68a 40%, 
        #fcd34d 60%, 
        #fbbf24 80%, 
        #f59e0b 100%);
    box-shadow: 
        inset 0 0 80px rgba(254,243,199,0.4),
        inset 0 -30px 60px rgba(251,191,36,0.3),
        0 6px 25px rgba(254,243,199,0.25);
    border: 2px solid rgba(254,243,199,0.4);
}

.color-white .product-placeholder {
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        #fafafa 20%, 
        #f5f5f5 40%, 
        #f0f0f0 60%, 
        #e5e5e5 80%, 
        #d4d4d4 100%);
    box-shadow: 
        inset 0 0 80px rgba(0,0,0,0.08),
        inset 0 -30px 60px rgba(0,0,0,0.05),
        0 6px 25px rgba(0,0,0,0.15);
    border: 2px solid #e5e7eb;
}

.color-pink .product-placeholder {
    background: linear-gradient(180deg, 
        #fce7f3 0%, 
        #fbcfe8 15%, 
        #f9a8d4 30%, 
        #f472b6 50%, 
        #ec4899 70%, 
        #db2777 85%, 
        #be185d 100%);
    box-shadow: 
        inset 0 0 80px rgba(244,114,182,0.6),
        inset 0 -30px 60px rgba(219,39,119,0.5),
        0 6px 25px rgba(244,114,182,0.35);
    border: 2px solid rgba(244,114,182,0.4);
}

.color-purple .product-placeholder {
    background: linear-gradient(180deg, 
        #e9d5ff 0%, 
        #ddd6fe 15%, 
        #c084fc 30%, 
        #a855f7 50%, 
        #9333ea 70%, 
        #7e22ce 85%, 
        #6b21a8 100%);
    box-shadow: 
        inset 0 0 80px rgba(168,85,247,0.6),
        inset 0 -30px 60px rgba(126,34,206,0.5),
        0 6px 25px rgba(168,85,247,0.35);
    border: 2px solid rgba(168,85,247,0.4);
}

.color-blue .product-placeholder {
    background: linear-gradient(180deg, 
        #dbeafe 0%, 
        #bfdbfe 15%, 
        #93c5fd 30%, 
        #60a5fa 50%, 
        #3b82f6 70%, 
        #2563eb 85%, 
        #1d4ed8 100%);
    box-shadow: 
        inset 0 0 80px rgba(59,130,246,0.5),
        inset 0 -30px 60px rgba(37,99,235,0.4),
        0 6px 25px rgba(59,130,246,0.3);
    border: 2px solid rgba(59,130,246,0.4);
}

.color-green .product-placeholder {
    background: linear-gradient(180deg, 
        #86efac 0%, 
        #6ee7b7 15%, 
        #4ade80 30%, 
        #22c55e 50%, 
        #16a34a 70%, 
        #15803d 85%, 
        #166534 100%);
    box-shadow: 
        inset 0 0 80px rgba(34,197,94,0.6),
        inset 0 -30px 60px rgba(21,128,61,0.5),
        0 6px 25px rgba(34,197,94,0.35);
    border: 2px solid rgba(34,197,94,0.4);
}

.color-orange .product-placeholder {
    background: linear-gradient(180deg, 
        #fed7aa 0%, 
        #fdba74 20%, 
        #fb923c 40%, 
        #f97316 60%, 
        #ea580c 80%, 
        #c2410c 100%);
    box-shadow: 
        inset 0 0 80px rgba(249,115,22,0.5),
        inset 0 -30px 60px rgba(234,88,12,0.4),
        0 6px 25px rgba(249,115,22,0.3);
    border: 2px solid rgba(249,115,22,0.4);
}

.color-yellow .product-placeholder {
    background: linear-gradient(180deg, 
        #fef08a 0%, 
        #fde047 20%, 
        #facc15 40%, 
        #eab308 60%, 
        #ca8a04 80%, 
        #a16207 100%);
    box-shadow: 
        inset 0 0 80px rgba(234,179,8,0.5),
        inset 0 -30px 60px rgba(202,138,4,0.4),
        0 6px 25px rgba(234,179,8,0.3);
    border: 2px solid rgba(234,179,8,0.4);
}

.color-beige .product-placeholder {
    background: linear-gradient(180deg, 
        #fef9e7 0%, 
        #f5f5dc 20%, 
        #e5e5d0 40%, 
        #d4d4c4 60%, 
        #c4c4b4 80%, 
        #b4b4a4 100%);
    box-shadow: 
        inset 0 0 80px rgba(245,245,220,0.4),
        inset 0 -30px 60px rgba(212,212,196,0.3),
        0 6px 25px rgba(245,245,220,0.25);
    border: 2px solid rgba(245,245,220,0.4);
}

.color-grey .product-placeholder {
    background: linear-gradient(180deg, 
        #f3f4f6 0%, 
        #e5e7eb 20%, 
        #d1d5db 40%, 
        #9ca3af 60%, 
        #6b7280 80%, 
        #4b5563 100%);
    box-shadow: 
        inset 0 0 80px rgba(156,163,175,0.4),
        inset 0 -30px 60px rgba(107,114,128,0.4),
        0 6px 25px rgba(156,163,175,0.3);
    border: 2px solid rgba(156,163,175,0.4);
}

.color-gold .product-placeholder {
    background: linear-gradient(180deg, 
        #ffd700 0%, 
        #ffed4e 20%, 
        #fbbf24 40%, 
        #f59e0b 60%, 
        #d97706 80%, 
        #b45309 100%);
    box-shadow: 
        inset 0 0 80px rgba(255,215,0,0.6),
        inset 0 -30px 60px rgba(217,119,6,0.5),
        0 6px 25px rgba(255,215,0,0.4),
        0 0 40px rgba(255,215,0,0.3);
    border: 2px solid rgba(255,215,0,0.5);
}

.color-silver .product-placeholder {
    background: linear-gradient(180deg, 
        #f8f9fa 0%, 
        #e8e8e8 20%, 
        #d0d0d0 40%, 
        #c0c0c0 60%, 
        #a8a8a8 80%, 
        #909090 100%);
    box-shadow: 
        inset 0 0 80px rgba(192,192,192,0.5),
        inset 0 -30px 60px rgba(168,168,168,0.4),
        0 6px 25px rgba(192,192,192,0.4),
        0 0 40px rgba(192,192,192,0.25);
    border: 2px solid rgba(192,192,192,0.5);
}

/* Додаємо ефект свічки всередині */
.product-placeholder::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50% 50% 0 0;
}

/* Візуалізація банки - висота встановлюється через inline style в JS */
.product-placeholder {
    transition: height 0.3s ease;
    min-height: 20%;
}

/* Індикатор кольору (круг) - тепер показує реальний колір гранул */
.color-indicator {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 35px rgba(0,0,0,0.4),
        inset 0 0 40px rgba(255,255,255,0.15),
        inset 0 -10px 30px rgba(0,0,0,0.2);
    border: 5px solid rgba(255,255,255,0.5);
    background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 30%, transparent 60%);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover .color-indicator {
    transform: scale(1.1);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.5),
        inset 0 0 50px rgba(255,255,255,0.2),
        inset 0 -10px 30px rgba(0,0,0,0.3);
}

/* Реальні кольори гранул з фото */
.color-black .color-indicator { 
    background: radial-gradient(circle, #3a3a3a 0%, #2a2a2a 30%, #1a1a1a 60%, #000000 100%);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,0,0,0.3);
}
.color-emerald .color-indicator { 
    background: radial-gradient(circle, #34d399 0%, #22c55e 30%, #16a34a 60%, #15803d 100%);
    box-shadow: 0 6px 30px rgba(34,197,94,0.4), inset 0 0 20px rgba(34,197,94,0.2);
}
.color-velvet .color-indicator { 
    background: radial-gradient(circle, #be123c 0%, #991b1b 30%, #7f1d1d 60%, #6b1a1a 100%);
    box-shadow: 0 6px 30px rgba(127,29,29,0.4), inset 0 0 20px rgba(127,29,29,0.3);
}
.color-ivory .color-indicator { 
    background: radial-gradient(circle, #fef9e7 0%, #fef3c7 30%, #fde68a 60%, #fcd34d 100%);
    box-shadow: 0 6px 30px rgba(254,243,199,0.3), inset 0 0 20px rgba(254,243,199,0.2);
}
.color-white .color-indicator { 
    background: radial-gradient(circle, #ffffff 0%, #f9fafb 30%, #f3f4f6 60%, #e5e7eb 100%);
    border: 4px solid #d1d5db;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1), inset 0 0 20px rgba(255,255,255,0.5);
}
.color-pink .color-indicator { 
    background: radial-gradient(circle, #fce7f3 0%, #f9a8d4 30%, #f472b6 60%, #ec4899 100%);
    box-shadow: 0 6px 30px rgba(244,114,182,0.4), inset 0 0 20px rgba(244,114,182,0.3);
}
.color-purple .color-indicator { 
    background: radial-gradient(circle, #e9d5ff 0%, #c084fc 30%, #a855f7 60%, #9333ea 100%);
    box-shadow: 0 6px 30px rgba(168,85,247,0.4), inset 0 0 20px rgba(168,85,247,0.3);
}
.color-blue .color-indicator { 
    background: radial-gradient(circle, #dbeafe 0%, #93c5fd 30%, #60a5fa 60%, #3b82f6 100%);
    box-shadow: 0 6px 30px rgba(59,130,246,0.4), inset 0 0 20px rgba(59,130,246,0.2);
}
.color-green .color-indicator { 
    background: radial-gradient(circle, #86efac 0%, #4ade80 30%, #22c55e 60%, #16a34a 100%);
    box-shadow: 0 6px 30px rgba(34,197,94,0.4), inset 0 0 20px rgba(34,197,94,0.2);
}
.color-orange .color-indicator { 
    background: radial-gradient(circle, #fed7aa 0%, #fdba74 30%, #fb923c 60%, #f97316 100%);
    box-shadow: 0 6px 30px rgba(249,115,22,0.4), inset 0 0 20px rgba(249,115,22,0.2);
}
.color-yellow .color-indicator { 
    background: radial-gradient(circle, #fef08a 0%, #fde047 30%, #facc15 60%, #eab308 100%);
    box-shadow: 0 6px 30px rgba(234,179,8,0.4), inset 0 0 20px rgba(234,179,8,0.2);
}
.color-beige .color-indicator { 
    background: radial-gradient(circle, #fef9e7 0%, #f5f5dc 30%, #e5e5d0 60%, #d4d4c4 100%);
    box-shadow: 0 6px 30px rgba(245,245,220,0.3), inset 0 0 20px rgba(245,245,220,0.2);
}
.color-grey .color-indicator { 
    background: radial-gradient(circle, #f3f4f6 0%, #e5e7eb 30%, #d1d5db 60%, #9ca3af 100%);
    box-shadow: 0 6px 30px rgba(156,163,175,0.3), inset 0 0 20px rgba(156,163,175,0.2);
}
.color-gold .color-indicator { 
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 30%, #fbbf24 60%, #f59e0b 100%);
    box-shadow: 0 6px 30px rgba(255,215,0,0.5), inset 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.2);
}
.color-silver .color-indicator { 
    background: radial-gradient(circle, #f8f9fa 0%, #e8e8e8 30%, #c0c0c0 60%, #a8a8a8 100%);
    box-shadow: 0 6px 30px rgba(192,192,192,0.4), inset 0 0 20px rgba(192,192,192,0.3), 0 0 40px rgba(192,192,192,0.2);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-color {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.product-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.size-badge {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
}

.price-b2c {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.price-b2b {
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-buy {
    flex: 1;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-quick-view,
.btn-wishlist {
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 45px;
}

.btn-quick-view:hover {
    background: #e0e0e0;
}

.btn-wishlist {
    font-size: 18px;
}

.btn-wishlist.active {
    background: #ff6b6b;
    color: #fff;
}

.btn-wishlist:hover {
    background: #ff5252;
    color: #fff;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social-icon {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-social-icon svg {
    flex-shrink: 0;
}

.footer-social-icon:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* List View */
.catalog-grid.list-view {
    grid-template-columns: 1fr;
}

.catalog-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.catalog-grid.list-view .product-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.catalog-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 20px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

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

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

.cart-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.cart-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.cart-total {
    margin-bottom: 15px;
    font-size: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #000;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s;
    min-width: 300px;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .logo {
    color: #fff;
}

body.dark-mode .nav a {
    color: #ccc;
}

body.dark-mode .nav a:hover,
body.dark-mode .nav a.active {
    color: #fff;
}

body.dark-mode .filters,
body.dark-mode .product-card,
body.dark-mode .search-box input,
body.dark-mode .sort-box select {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #404040;
}

body.dark-mode .filter-btn {
    background: #2a2a2a;
    color: #ccc;
    border-color: #404040;
}

body.dark-mode .filter-btn.active {
    background: #fff;
    color: #000;
}

body.dark-mode .product-card {
    background: #2a2a2a;
}

body.dark-mode .product-name,
body.dark-mode .price-b2c {
    color: #fff;
}

body.dark-mode .cart-sidebar,
body.dark-mode .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .catalog-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .catalog-grid.list-view .product-image {
        width: 100%;
    }
    
    .filters {
        padding: 20px;
    }
    
    .search-sort-bar {
        flex-direction: column;
    }
    
    .search-box,
    .sort-box {
        width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
}

/* Sets Section */
.sets-section {
    margin: 60px 0;
    padding: 40px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

.sets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.set-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.set-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.set-image {
    position: relative;
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.set-preview {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.set-candle-preview {
    height: 80%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.set-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.set-info {
    padding: 25px;
}

.set-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.set-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.set-details {
    margin-bottom: 15px;
}

.set-count {
    color: #999;
    font-size: 13px;
}

.set-price {
    margin-bottom: 20px;
}

.set-price .price-b2c {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    display: block;
    margin-bottom: 5px;
}

.set-price .price-b2b {
    font-size: 14px;
    color: #666;
    display: block;
}

.set-price .price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.set-actions {
    display: flex;
    gap: 10px;
}

.set-actions .btn-buy {
    flex: 1;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.set-actions .btn-buy:hover {
    background: #333;
}

.set-actions .btn-details {
    padding: 12px 20px;
    background: #f0f0f0;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.set-actions .btn-details:hover {
    background: #e0e0e0;
}

.products-section {
    margin-top: 60px;
}

