/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: #f8f9fa; color: #1f2937; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

/* HEADER & NAVBAR */
.top-promo-bar { background-color: #111827; color: #fff; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
header { background-color: #fff; padding: 15px 0; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px;}
.logo-group { display: flex; align-items: center; gap: 20px; }
.header-logo { height: 45px; width: auto; object-fit: contain; display: block; transition: 0.3s; }
.header-logo:hover { transform: scale(1.05); }

.kataloq-btn { background: #22c55e; color: white; border: none; padding: 12px 20px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.3s;}
.kataloq-btn:hover { background: #16a34a; }

/* KATALOQ SIDEBAR */
#catalogOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; display: none; }
#catalogSidebar { position: fixed; top: 0; left: -350px; width: 320px; height: 100%; background: #fff; z-index: 2001; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 10px 0 30px rgba(0,0,0,0.1); padding: 20px; overflow-y: auto; }
#catalogSidebar.open { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #f3f4f6; padding-bottom: 15px; margin-bottom: 20px; }
.sidebar-header h2 { font-size: 20px; font-weight: 800; color: #111827; }
.close-sidebar { font-size: 24px; cursor: pointer; color: #9ca3af; transition: 0.2s;}
.close-sidebar:hover { color: #ef4444; }

.cat-list { list-style: none; }
.cat-item { margin-bottom: 5px; }
.cat-main-link { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; border-radius: 8px; font-weight: 600; color: #374151; transition: 0.2s; cursor: pointer;}
.cat-main-link:hover { background: #eff6ff; color: #2563eb; }
.sub-cat-list { display: none; padding-left: 20px; margin-top: 5px; }
.sub-cat-list a { display: block; padding: 8px 15px; font-size: 14px; color: #6b7280; font-weight: 500; border-left: 2px solid #e5e7eb; transition: 0.2s;}
.sub-cat-list a:hover { color: #2563eb; border-left-color: #2563eb; }

/* AXTARIŞ ÇUBUĞU */
.search-bar { flex: 1; min-width: 250px; margin: 0 40px; position: relative; }
.search-bar input { width: 100%; padding: 12px 20px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 14px; font-weight:500; outline: none; transition: 0.3s; background: #f9fafb; color: #111827; }
.search-bar input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.search-bar button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 18px; color: #6b7280; cursor: pointer; transition: 0.2s;}
.search-bar button:hover { color: #2563eb; }
.live-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); margin-top: 8px; z-index: 1000; display: none; overflow: hidden; border: 1px solid #e5e7eb; }
.live-search-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; border-bottom: 1px solid #f3f4f6; transition: 0.2s; cursor: pointer; }
.live-search-item:hover { background: #f9fafb; }
.live-search-img { width: 45px; height: 45px; object-fit: contain; }
.live-search-title { font-weight: 600; font-size: 14px; color: #1f2937; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* HEADER İKONLAR */
.header-actions { display: flex; gap: 25px; }
.action-btn { display: flex; flex-direction: column; align-items: center; color: #111827; font-weight: 600; font-size: 13px; position: relative; cursor: pointer; transition: 0.2s;}
.action-btn i { font-size: 22px; margin-bottom: 6px; color: #4b5563; transition: 0.3s; }
.action-btn:hover i { color: #2563eb; transform: translateY(-2px);}
.badge { position: absolute; top: -6px; right: -8px; background: #ef4444; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 10px; font-weight: 700; border: 2px solid #fff;}

/* HERO BÖLMƏSİ */
.hero-section { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; margin-top: 30px; }
.main-slider { background: #111827; border-radius: 16px; height: 420px; overflow: hidden; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.05);}
.hero-slide { width: 100%; height: 100%; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: center; justify-content: center; }
.hero-slide.active { opacity: 1; z-index: 10;}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85;}
.hero-slide h2 { position: absolute; bottom: 40px; left: 40px; font-size: 38px; color: white; text-shadow: 0 4px 10px rgba(0,0,0,0.6); z-index: 20; font-weight: 800;}

.side-banner { border-radius: 16px; height: 420px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(239, 68, 68, 0.2); transition: background 1s ease-in-out; background: linear-gradient(135deg, #ef4444, #b91c1c); }
.deal-slide { padding: 30px 25px; display: none; flex-direction: column; justify-content: space-between; height: 100%; animation: fade 0.5s; color: white; }
.deal-slide.active { display: flex; }
.deal-slide:hover img { transform: scale(1.08) translateY(-5px); } 
@keyframes fade { from { opacity: 0.4; } to { opacity: 1; } }
.deal-header-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;}
.deal-badge-main { background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight:700; text-transform:uppercase;}
.deal-badge-disc { background: #fff; color: #ef4444; padding: 4px 8px; border-radius: 10px; font-size: 12px; font-weight: 800; white-space: nowrap;}
.side-banner h3 { font-size: 20px; font-weight: 800; margin-top:15px; margin-bottom:5px; line-height:1.4; overflow: hidden;}
.deal-info-text { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px;}
.side-banner .price { font-size: 30px; font-weight: 800; margin: 10px 0 15px 0; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2);}
.side-banner img { width: 100%; max-height: 140px; object-fit: contain; filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.deal-timer { background: rgba(0,0,0,0.25); padding: 8px 15px; border-radius: 8px; font-weight: 700; display: inline-block; font-size: 14px; letter-spacing: 1px; backdrop-filter: blur(5px);}

.features-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; background: #fff; padding: 30px 40px; border-radius: 16px; margin-top: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); border: 1px solid #f3f4f6;}
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; flex: 1; min-width: 120px; }
.feature-item i { font-size: 28px; color: #2563eb; }
.feature-item span { font-weight: 600; font-size: 14px; color: #1f2937; }

/* FİLTR VƏ LAYOUT */
.main-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; margin-top: 40px; }
.filter-sidebar { background: #fff; padding: 25px; border-radius: 16px; border: 1px solid #f3f4f6; height: fit-content; position: sticky; top: 100px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);}
.filter-title { font-size: 18px; font-weight: 800; border-bottom: 2px solid #e5e7eb; padding-bottom: 15px; margin-bottom: 25px; color: #111827;}
.filter-group { margin-bottom: 25px; }
.filter-group h4 { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #4b5563; text-transform: uppercase; letter-spacing: 0.5px;}
.filter-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 500; cursor: pointer; color: #374151; transition: 0.2s;}
.filter-label:hover { color: #2563eb; }
.price-inputs { display: flex; gap: 10px; }
.price-inputs input, .filter-group select { width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 8px; outline: none; font-size: 14px; background: #f9fafb; font-weight: 500;}
.price-inputs input:focus, .filter-group select:focus { border-color: #2563eb; background: #fff;}
.btn-filter { width: 100%; background: #111827; color: white; border: none; padding: 14px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; font-size: 15px;}
.btn-filter:hover { background: #2563eb;}

/* MƏHSUL KARUSELİ VƏ KARTLARI (İRŞAD STİLİ) */
.products-area { display: flex; flex-direction: column; overflow: hidden; width: 100%;}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #e5e7eb; padding-bottom: 10px; margin-top: 30px;}
.section-header h2 { font-size: 24px; font-weight: 800; color: #111827; letter-spacing: -0.5px;}

.carousel-wrapper { position: relative; width: 100%; padding: 10px 0;}
.product-carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; scroll-behavior: smooth; }
.product-carousel::-webkit-scrollbar { display: none; }
.carousel-btn { position: absolute; top: 40%; transform: translateY(-50%); background: #111827; color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; display: flex; align-items: center; justify-content: center;}
.carousel-btn:hover { background: #2563eb; }
.c-prev { left: -15px; } .c-next { right: -15px; }

/* KART DİZAYNI */
.product-card { flex: 0 0 260px; scroll-snap-align: start; background: #fff; border-radius: 12px; padding: 20px; position: relative; transition: 0.3s; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.product-card:hover { border-color: #d1d5db; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

/* Bəyən və Müqayisə ikonları (Sağ yuxarıda) */
.card-actions-top { position: absolute; top: 15px; right: 65px; display: flex; gap: 10px; z-index: 2; }
.card-actions-top button { background: none; border: none; font-size: 18px; color: #9ca3af; cursor: pointer; transition: 0.2s;}
.card-actions-top button:hover { color: #111827; }

/* Endirim Bedge */
.discount-badge { position: absolute; top: 10px; right: 10px; background: #f97316; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; z-index: 2; }

/* Şəkil və Başlıq */
.product-img { width: 100%; height: 170px; object-fit: contain; margin-top: 15px; margin-bottom: 15px; transition: 0.3s;}
.product-card:hover .product-img { transform: scale(1.05); }
.card-cat-name { font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.product-title { font-size: 14px; font-weight: 700; color: #1f2937; line-height: 1.4; height: 40px; overflow: hidden; margin-bottom: 12px; transition: 0.2s;}
.product-card:hover .product-title { color: #2563eb; }

/* Rəng Seçimi Dairələri */
.card-colors { display: flex; gap: 6px; margin-bottom: 10px; height: 20px;}
.color-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e5e7eb; cursor: pointer; transition: 0.2s; }
.color-dot.active { box-shadow: 0 0 0 2px #2563eb; }

/* YENİ: Ulduzlar və Baxış Sayı (Rəy silindi) */
.card-rating { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-rating .stars i { color: #d1d5db; font-size: 13px; cursor: pointer; transition: 0.2s; }
.card-rating .stars i:hover, .card-rating .stars i.active { color: #fbbf24; }
.card-rating .views { font-size: 12px; color: #9ca3af; display: flex; align-items: center; gap: 5px; font-weight: 600; }

/* Stok və Endirim Bedge */
.card-badges { margin-bottom: 10px; height: 25px;}
.badge-stock { color: #2563eb; border: 1px solid #bfdbfe; font-size: 11px; padding: 4px 8px; border-radius: 4px; font-weight: 600; display: inline-block;}
.card-discount-box { color: #f97316; font-size: 12px; font-weight: 700; background: #fff7ed; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 10px; align-self: flex-start;}

/* Qiymət Hissəsi */
.price-box { margin-top: auto; display: flex; flex-direction: column; margin-bottom: 15px;}
.old-price { font-size: 13px; color: #9ca3af; text-decoration: line-through; font-weight: 600; height: 16px;}
.new-price { font-size: 22px; font-weight: 800; color: #111827;}

/* Səbət Düyməsi */
.add-to-cart-btn { width: 100%; background: #22c55e; color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.add-to-cart-btn:hover { background: #16a34a; }
.added-cart-btn { background: #10b981 !important; border: 1px solid #10b981 !important; color: white !important;}
.added-cart-btn:hover { background: #059669 !important; }
.out-of-stock { background: #f3f4f6 !important; color: #9ca3af !important; cursor: not-allowed;}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 20px; margin-bottom: 20px;}
.pagination a { padding: 10px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; font-weight: 600; color: #4b5563; transition: 0.3s; }
.pagination a:hover { background: #f3f4f6; color: #111827; border-color: #d1d5db;}
.pagination a.active { background: #111827; color: #fff; border-color: #111827;}

/* XƏBƏRLƏR */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 50px;}
.news-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #f3f4f6; transition: 0.3s; display: flex; flex-direction: column;}
.news-card:hover { transform: translateY(-8px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); border-color: #d1d5db; }
.news-img { width: 100%; height: 220px; object-fit: cover; }
.news-content { padding: 25px; display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: 13px; color: #6b7280; margin-bottom: 12px; font-weight: 500;}
.news-title { font-size: 18px; font-weight: 700; color: #111827; margin-bottom: 12px; line-height: 1.5; }
.news-desc { font-size: 14px; color: #4b5563; line-height: 1.6; flex: 1; margin-bottom: 20px; }
.news-btn { font-weight: 600; color: #2563eb; background: #eff6ff; padding: 10px 15px; border-radius: 8px; width: fit-content; transition: 0.3s;}
.news-btn:hover { background: #2563eb; color: #fff; }

footer { background: #0f172a; color: #f9fafb; padding: 60px 0 20px 0; font-size: 15px;}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px;}
.footer-col h4 { font-size: 16px; margin-bottom: 25px; color: #fff; font-weight: 700;}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #94a3b8; transition: 0.3s; }
.footer-col ul li a:hover { color: #3b82f6; }

#toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast-msg { background: #111827; color: white; padding: 16px 25px; border-radius: 12px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 12px; animation: slideIn 0.4s forwards; border: 1px solid #374151;}
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; }
    .side-banner { display: none; } 
    .main-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: relative; top: 0; margin-bottom: 20px; }
    .carousel-btn { display: none; } 
}