/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Yeni renk sistemi: Beyaz / Açık Gri / Orta Gri ── */
  --primary:       #6b7280;
  --primary-dark:  #374151;
  --primary-light: #f3f4f6;
  --accent:        #e5e7eb;
  --dark:          #111827;
  --dark2:         #1f2937;
  --mid:           #4b5563;
  --light:         #f9fafb;
  --white:         #ffffff;
  --gray:          #9ca3af;
  --gray-light:    #f3f4f6;
  --success:       #22c55e;
  --error:         #ef4444;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.10);
  --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', system-ui, sans-serif;
  --border-color:  rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ===== LAYOUT ===== */
.container { max-width: 1600px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  overflow: visible;
}
.header-inner {
  max-width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 48px;
  box-shadow: 0 2px 16px rgba(26,18,8,0.08);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  will-change: transform;
  overflow: visible;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.6rem; }
.logo span { color: var(--primary); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: var(--transition);
}
.nav a:hover, .nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  color: var(--mid);
  background: transparent;
}
.btn-icon:hover { background: var(--primary-light); color: var(--primary-dark); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.show { display: flex; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  transition: var(--transition);
}
.burger span {
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.burger:hover { background: var(--primary-light); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #f0f0f0 100%);
  padding-top: 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #e0e0e0, transparent);
  top: -100px; right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #d0d0d0, transparent);
  bottom: -50px; left: -50px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e8e8e8, transparent);
  top: 40%; left: 40%;
  animation: blobFloat 12s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-text { }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  color: var(--mid);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, #111111, #555555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--dark);
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--gray-light);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(200,169,110,0.2);
}
.stat-item { }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-stack {
  position: relative;
  width: 380px;
  height: 480px;
}
.hero-card {
  position: absolute;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card-main {
  width: 300px; height: 380px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.hero-card-side1 {
  width: 200px; height: 260px;
  top: 10px; left: 0;
  transform: rotate(-8deg);
  z-index: 2;
  opacity: 0.85;
}
.hero-card-side2 {
  width: 200px; height: 260px;
  bottom: 10px; right: 0;
  transform: rotate(6deg);
  z-index: 2;
  opacity: 0.85;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-badge {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  animation: floatBadge 3s ease-in-out infinite;
}
.hero-float-badge.top-right {
  top: 20px; right: -20px;
  animation-delay: 0s;
}
.hero-float-badge.bottom-left {
  bottom: 40px; left: -20px;
  animation-delay: 1.5s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-icon { font-size: 1.5rem; }
.float-text { font-size: 0.75rem; }
.float-text strong { display: block; font-size: 0.9rem; color: var(--dark); }
.float-text span { color: var(--gray); }

/* ===== MARQUEE ===== */
.marquee-section {
  background: var(--dark);
  padding: 18px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.marquee-dot { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 200px;
  cursor: pointer;
  transition: var(--transition);
  background: linear-gradient(145deg, #3d2f24 0%, #1f1812 100%);
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #4a3728 0%, #2d2419 55%, #1a1410 100%);
  pointer-events: none;
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.category-card img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.category-card img.is-broken { display: none !important; }
.category-card:hover img { transform: scale(1.08); }
.category-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(26,18,8,0.82) 0%, rgba(26,18,8,0.2) 45%, transparent 72%);
  pointer-events: none;
}
.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 20px 16px 18px;
  color: white;
  pointer-events: none;
}
.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
  word-break: break-word;
}
.category-count { font-size: 0.85rem; opacity: 0.85; }
.category-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}
.category-card:hover .category-arrow { background: var(--primary); }

/* ===== PRODUCTS GRID ===== */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  background: var(--gray-light);
  transition: var(--transition);
  border: 2px solid transparent;
}
.filter-tab:hover { color: var(--primary-dark); background: var(--primary-light); }
.filter-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.sort-select {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--gray-light);
  background: white;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.sort-select:focus { border-color: var(--primary); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(200,169,110,0.1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,169,110,0.3);
}
.product-img-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--gray-light);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-hit { background: #ff6b6b; color: white; }
.badge-new { background: var(--primary); color: white; }
.badge-sale { background: #4caf7d; color: white; }
.badge-premium { background: var(--dark); color: var(--primary); }
.badge-rare { background: #7c4dff; color: white; }

.product-actions {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}
.product-card:hover .product-actions { opacity: 1; transform: translateX(0); }
.action-btn {
  width: 38px; height: 38px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: var(--transition);
  color: var(--mid);
}
.action-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }
.action-btn.liked { color: #ff6b6b; }

.product-info { padding: 18px; }
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-flowers {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.stars { color: #f5a623; font-size: 0.85rem; letter-spacing: 1px; }
.rating-num { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.rating-count { font-size: 0.8rem; color: var(--gray); }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-footer-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  color: var(--dark);
  transition: var(--transition);
}
.btn-buy-now:hover {
  transform: scale(1.08);
  filter: none;
}
.product-price { }
.price-current { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.price-old {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: line-through;
  margin-left: 6px;
}
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  color: var(--dark);
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  font-size: 0;
  font-weight: 400;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: transparent;
  color: var(--dark);
  transform: scale(1.08);
}

/* ===== PROMO BANNER ===== */
.promo-section { padding: 60px 0; }
.promo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: var(--transition);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.promo-card:hover img { transform: scale(1.05); }
.promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,18,8,0.8) 0%, transparent 70%);
}
.promo-card.vertical .promo-overlay {
  background: linear-gradient(to top, rgba(26,18,8,0.8) 0%, transparent 60%);
}
.promo-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: white;
}
.promo-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.promo-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.promo-desc { font-size: 0.9rem; opacity: 0.8; margin-bottom: 20px; }
.btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--dark);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-promo:hover { background: var(--primary); color: white; }

/* ===== HOW IT WORKS ===== */
.how-section { background: var(--dark); padding: 80px 0; }
.how-section .section-title { color: white; }
.how-section .section-subtitle { color: rgba(255,255,255,0.5); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.3;
}
.step-card { text-align: center; position: relative; }
.step-num {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  box-shadow: 0 8px 30px rgba(200,169,110,0.3);
  transition: var(--transition);
}
.step-card:hover .step-num { transform: translateY(-6px) rotate(5deg); }
.step-title { font-size: 1.05rem; font-weight: 700; color: white; margin-bottom: 8px; }
.step-desc { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(200,169,110,0.1);
  transition: var(--transition);
  position: relative;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-size: 5rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-stars { color: #f5a623; font-size: 1rem; margin-bottom: 14px; }
.review-text { font-size: 0.9rem; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.reviewer-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.reviewer-date { font-size: 0.8rem; color: var(--gray); }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-light), #f5e8d5);
  border-radius: var(--radius);
  padding: 60px;
  text-align: center;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '🌸';
  position: absolute;
  font-size: 8rem;
  opacity: 0.08;
  top: -20px; left: -20px;
}
.newsletter-section::after {
  content: '🌺';
  position: absolute;
  font-size: 8rem;
  opacity: 0.08;
  bottom: -20px; right: -20px;
}
.newsletter-title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.newsletter-desc { color: var(--gray); margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 50px;
  border: 2px solid rgba(200,169,110,0.3);
  background: white;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}
.newsletter-input:focus { border-color: var(--primary); }
.newsletter-input::placeholder { color: var(--gray); }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.footer-bottom a { color: var(--primary); }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,0.5);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  height: 100vh;
  background: white;
  z-index: 2001;
  transform: translateX(100%);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(26,18,8,0.15);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-title { font-size: 1.2rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--mid);
}
.cart-close:hover { background: var(--primary-light); color: var(--primary-dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: var(--gray);
}
.cart-empty-icon { font-size: 4rem; opacity: 0.4; }
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--light);
  margin-bottom: 10px;
  transition: var(--transition);
}
.cart-item:hover { background: var(--primary-light); }
.cart-item-img {
  width: 70px; height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--primary-dark); font-weight: 700; font-size: 0.95rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
  color: var(--mid);
}
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-num { font-weight: 600; font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--gray);
  font-size: 1rem;
  padding: 4px;
  transition: var(--transition);
  align-self: flex-start;
}
.cart-item-remove:hover { color: var(--error); }
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-light);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 0.9rem; color: var(--gray); }
.cart-total-price { font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,169,110,0.45); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--mid);
}
.modal-close:hover { background: var(--primary-light); color: var(--primary-dark); }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.modal-subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.form-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-light);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--light);
}
.form-input:focus { border-color: var(--primary); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,169,110,0.45); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--dark);
  color: white;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 320px;
  border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast-icon { font-size: 1.1rem; }

/* ===== LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, #e8e0d5 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 999;
  display: none;
  box-shadow: 0 -1px 12px rgba(0,0,0,0.05);
}
.mobile-nav-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
  height: 40px;
  gap: 6px;
  padding: 0 12px;
}
.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 3px 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.55rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  border-radius: 8px;
}
.mobile-nav-item:active { background: rgba(0,0,0,0.04); }
.mobile-nav-item.active { color: #374151; }
.mobile-nav-item.active .mobile-nav-icon {
  background: rgba(55,65,81,0.08);
  border-radius: 6px;
}
.mobile-nav-icon {
  font-size: 1rem;
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.mobile-nav-label {
  font-size: 0.52rem;
  font-weight: 600;
  white-space: nowrap;
}
.mobile-nav-badge {
  position: absolute;
  top: 2px; right: calc(50% - 18px);
  min-width: 14px; height: 14px;
  background: #374151;
  color: white;
  border-radius: 50px;
  font-size: 0.5rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}
.mobile-nav-badge.show { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .hero-content { padding: 0 24px; gap: 40px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-card-stack { width: 300px; height: 380px; }
  .hero-card-main { width: 240px; height: 300px; }
  .hero-card-side1, .hero-card-side2 { width: 160px; height: 200px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero-content { padding: 0 16px; grid-template-columns: 1fr; text-align: center; }
  .nav { display: none; }
  .burger { display: flex; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .promo-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-section { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .cart-sidebar { width: 100%; }
  .mobile-nav { display: block; }
  body:has(.mobile-nav) { padding-bottom: 70px; }
  .products-header { flex-direction: column; align-items: flex-start; }
  .section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .price-current { font-size: 1rem; }
  .btn-add-cart { padding: 8px 12px; font-size: 0.75rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--light);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-size: 2rem; font-weight: 900; color: var(--dark); letter-spacing: -1px; }
.loader-logo span { color: var(--primary); }
.loader-bar {
  width: 200px; height: 3px;
  background: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}
.loader-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border-radius: 3px;
  animation: loadProgress 1.2s ease forwards;
}
@keyframes loadProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* ===== AUTH MODAL ===== */
.modal.auth-modal {
  max-width: 440px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 720px);
}
.auth-modal__inner {
  padding: 28px 28px 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-modal__footer {
  flex-shrink: 0;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--gray-light);
  background: #fff;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.06);
}
.auth-modal__footer-note {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.35;
}
.auth-scroll-hint {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
.btn-social--guest {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
}
.btn-social--guest:hover {
  border-color: #818cf8;
  background: #eef2ff;
  color: #4338ca;
}
.btn-social--guest-sticky {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}
.auth-modal__brand {
  text-align: center;
  margin-bottom: 22px;
}
.auth-modal__logo {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.38);
}
.auth-modal__title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; background: var(--gray-light); border-radius: 14px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 11px; border-radius: 11px;
  font-size: 0.9rem; font-weight: 600; color: var(--gray);
  transition: var(--transition); text-align: center;
  border: none; background: transparent; cursor: pointer; font-family: inherit;
}
.auth-tab.active { background: white; color: var(--dark); box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: var(--gray); font-size: 0.76rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-light); }
.auth-divider span { flex-shrink: 0; padding: 0 4px; }
.auth-divider--tight { margin: 14px 0 12px; }

.auth-guest-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-top: 16px;
  margin-bottom: 0;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-family: Inter, sans-serif;
  text-align: left;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #fdf4ff 100%);
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.22);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-guest-card:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.45), 0 12px 28px rgba(99, 102, 241, 0.12);
}
.auth-guest-card:active { transform: translateY(0); }
.auth-guest-card.is-loading { opacity: 0.75; pointer-events: none; }
.auth-guest-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-guest-card__body { flex: 1; min-width: 0; }
.auth-guest-card__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 2px;
}
.auth-guest-card__body small {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}
.auth-guest-card__arrow {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6366f1;
  flex-shrink: 0;
}

.auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-social,
.btn-social-yandex {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
  font-family: Inter, sans-serif;
  transition: all 0.2s;
  box-sizing: border-box;
}
.btn-social__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-social__icon img { width: 20px; height: 20px; display: block; }
.btn-social--yandex:hover,
.btn-social-yandex:hover {
  border-color: #fc3f1d;
  background: #fff5f3;
  color: #fc3f1d;
}
.btn-social--google:hover {
  border-color: #4285f4;
  background: #f8fbff;
  color: #1a73e8;
}
.btn-social:disabled { opacity: 0.6; cursor: wait; }

#authModal .form-group { margin-bottom: 14px; }
#authModal .btn-submit {
  margin-top: 4px;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
#authModal .form-input {
  border-radius: 12px;
  border-width: 1.5px;
}
#authModal .form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.2);
}
.auth-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.82rem;
  line-height: 1.4;
  display: none;
}
.auth-error.is-visible { display: block; }

#googleHiddenSignInHost { position: fixed; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* legacy — hide old Google iframe slots */
.google-signin-slot { display: none !important; }
.auth-social-row { display: none !important; }
.auth-social-btn { display: none !important; }
.user-menu {
  position: relative;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-avatar:hover { border-color: var(--primary); transform: scale(1.05); }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); min-width: 200px;
  border: 1px solid rgba(200,169,110,0.15);
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: var(--transition); z-index: 1100;
}
.user-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.user-dropdown-header { padding: 16px; border-bottom: 1px solid var(--gray-light); }
.user-dropdown-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.user-dropdown-email { font-size: 0.75rem; color: var(--gray); margin-top: 2px; }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 0.875rem; color: var(--mid);
  transition: var(--transition); cursor: pointer; width: 100%; text-align: left;
}
.user-dropdown-item:hover { background: var(--primary-light); color: var(--primary-dark); }
.user-dropdown-item.danger:hover { background: #fff0f0; color: var(--error); }
.user-dropdown-divider { height: 1px; background: var(--gray-light); margin: 4px 0; }

/* ===== ADMIN PANEL ===== */
.admin-layout {
  display: flex; min-height: 100vh;
}
.admin-sidebar {
  width: 260px; background: var(--dark); color: white;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; transition: var(--transition);
}
.admin-sidebar-logo {
  padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800;
}
.admin-sidebar-logo span { color: var(--primary); }
.admin-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.admin-nav-section { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px; margin-top: 8px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  font-size: 0.875rem; font-weight: 500; color: rgba(255,255,255,0.6);
  transition: var(--transition); cursor: pointer; margin-bottom: 2px;
  width: 100%; text-align: left; background: none; border: none; font-family: inherit;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav-item.active { background: rgba(200,169,110,0.2); color: var(--primary); }
.admin-nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.admin-nav-badge { margin-left: auto; background: var(--primary); color: white; padding: 2px 8px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; }
.admin-sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); }

.admin-main { margin-left: 260px; flex: 1; background: #f4f1ec; min-height: 100vh; }
.admin-topbar {
  background: white; padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-light); position: sticky; top: 0; z-index: 50;
}
.admin-topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 32px; }

.admin-page { display: none; }
.admin-page.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(200,169,110,0.1); transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(200,169,110,0.1), transparent);
  border-radius: 50%;
}
.stat-card-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-card-value { font-size: 2rem; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 0.85rem; color: var(--gray); }
.stat-card-change { font-size: 0.8rem; margin-top: 8px; font-weight: 600; }
.stat-card-change.up { color: var(--success); }
.stat-card-change.down { color: var(--error); }

.admin-card {
  background: white; border-radius: var(--radius); padding: 24px;
  border: 1px solid rgba(200,169,110,0.1); margin-bottom: 24px;
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-light);
}
.admin-card-title { font-size: 1rem; font-weight: 700; color: var(--dark); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  font-size: 0.75rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-light);
}
.admin-table td { padding: 14px; border-bottom: 1px solid var(--gray-light); font-size: 0.875rem; color: var(--mid); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light); }
.admin-table img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.status-new { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #fff8e1; color: #f57f17; }
.status-delivered { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #ffebee; color: #c62828; }
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-inactive { background: var(--gray-light); color: var(--gray); }

.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; transition: var(--transition); cursor: pointer;
}
.admin-btn-primary { background: var(--primary); color: white; border: none; }
.admin-btn-primary:hover { background: var(--primary-dark); }
.admin-btn-secondary { background: var(--gray-light); color: var(--mid); border: none; }
.admin-btn-secondary:hover { background: var(--primary-light); color: var(--primary-dark); }
.admin-btn-danger { background: #ffebee; color: var(--error); border: none; }
.admin-btn-danger:hover { background: var(--error); color: white; }
.admin-btn-sm { padding: 5px 10px; font-size: 0.75rem; }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--gray-light);
}
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-label { font-size: 0.9rem; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.setting-desc { font-size: 0.8rem; color: var(--gray); }
.toggle-switch {
  position: relative; width: 48px; height: 26px; flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--gray-light);
  border-radius: 50px; cursor: pointer; transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: white; border-radius: 50%; transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.color-picker-row { display: flex; align-items: center; gap: 10px; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.color-swatch.active { border-color: var(--dark); transform: scale(1.15); }

.admin-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--light); border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm); padding: 8px 14px;
  transition: var(--transition);
}
.admin-search:focus-within { border-color: var(--primary); background: white; }
.admin-search input { border: none; background: none; outline: none; font-size: 0.875rem; color: var(--dark); flex: 1; }

.product-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-admin { margin-bottom: 0; }
.form-label-admin { display: block; font-size: 0.8rem; font-weight: 600; color: var(--mid); margin-bottom: 6px; }
.form-input-admin {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-light); font-size: 0.875rem;
  outline: none; transition: var(--transition); background: var(--light);
}
.form-input-admin:focus { border-color: var(--primary); background: white; }

.chart-bar-wrap { display: flex; flex-direction: column; gap: 10px; }
.chart-bar-row { display: flex; align-items: center; gap: 12px; }
.chart-bar-label { font-size: 0.8rem; color: var(--gray); min-width: 80px; }
.chart-bar-track { flex: 1; height: 8px; background: var(--gray-light); border-radius: 4px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: linear-gradient(to right, var(--primary), var(--primary-dark)); border-radius: 4px; transition: width 1s ease; }
.chart-bar-val { font-size: 0.8rem; font-weight: 700; color: var(--dark); min-width: 50px; text-align: right; }

.admin-access-denied {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; gap: 16px; text-align: center; padding: 40px;
}
.admin-access-denied .icon { font-size: 4rem; }
.admin-access-denied h2 { font-size: 1.5rem; font-weight: 800; }
.admin-access-denied p { color: var(--gray); }

@media (max-width: 1024px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 16px; }
}

/* ===== MODERN ENHANCEMENTS ===== */

/* Glass morphism header on scroll */
.header.scrolled .header-inner {
  background: rgba(250,247,242,0.98);
  box-shadow: 0 8px 40px rgba(26,18,8,0.12);
}

/* Improved modal */
.modal {
  background: white;
  border-radius: 28px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

/* Auth modal logo area */
.auth-logo-area {
  text-align: center;
  margin-bottom: 24px;
}

/* Improved form inputs */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--gray-light);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--light);
  color: var(--dark);
}
.form-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(200,169,110,0.1);
}

/* Improved btn-submit */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 8px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,169,110,0.45);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Improved product card hover */
.product-card {
  cursor: pointer;
}

/* Smooth scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Better toast */
.toast {
  background: rgba(26,18,8,0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(26,18,8,0.25);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }

/* Shops grid in admin */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.shop-card {
  background: white;
  border: 1px solid rgba(200,169,110,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,18,8,0.1);
  border-color: rgba(200,169,110,0.3);
}
.shop-card-header {
  padding: 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  gap: 14px;
}
.shop-card-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(200,169,110,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.shop-card-name { font-size: 1rem; font-weight: 700; color: white; }
.shop-card-owner { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.shop-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(200,169,110,0.1);
  border-bottom: 1px solid rgba(200,169,110,0.1);
}
.shop-stat {
  padding: 14px 16px;
  text-align: center;
}
.shop-stat:first-child { border-right: 1px solid rgba(200,169,110,0.1); }
.shop-stat-val { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.shop-stat-label { font-size: 0.7rem; color: var(--gray); margin-top: 2px; }
.shop-card-actions {
  padding: 14px 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== MOBILE IMPROVEMENTS ===== */

/* Better touch targets */
@media (max-width: 768px) {
  .btn-icon { width: 40px; height: 40px; }
  .btn-primary, .btn-secondary { padding: 13px 24px; font-size: 0.9rem; }
  .product-card { border-radius: 16px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -1px; }
  .hero-desc { font-size: 0.95rem; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .stat-num { font-size: 1.4rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* Cart sidebar full width */
  .cart-sidebar { width: 100%; border-radius: 0; }

  /* Modal bottom sheet */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; padding: 28px 20px; }

  /* Toast bottom */
  .toast-container { bottom: 80px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }

  /* Products grid 2 col */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-name { font-size: 0.85rem; }
  .price-current { font-size: 1rem; }
  .btn-add-cart { padding: 8px 12px; font-size: 0.75rem; gap: 4px; }

  /* Categories 2 col */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-name { font-size: 1rem; }

  /* Steps 2 col */
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-grid::before { display: none; }

  /* Reviews 1 col */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Newsletter */
  .newsletter-section { padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-title { font-size: 1.5rem; }

  /* Header */
  .header-inner { padding: 0 16px; }
  .nav { display: none; }
  .burger { display: flex; }

  /* Checkout form */
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.2rem; }
  .products-grid { gap: 10px; }
  .categories-grid { gap: 8px; }
  .category-card { min-height: 168px; aspect-ratio: 4 / 5; }
  .category-info { padding: 12px 10px 10px; }
  .category-name { font-size: 0.82rem; line-height: 1.2; }
  .category-count { font-size: 0.72rem; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 6px 14px; font-size: 0.8rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.75rem; }
}

/* Improved touch scrolling */
.cart-items, .admin-nav { -webkit-overflow-scrolling: touch; }

/* Safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .cart-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body:has(.mobile-nav) { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body:has(.admin-layout),
  body:has(.sp-header),
  body:has(.acc-wrap) { padding-bottom: 0 !important; }
}

/* Prevent text size adjustment on iOS */
html { -webkit-text-size-adjust: 100%; }

/* Better tap highlight */
* { -webkit-tap-highlight-color: rgba(200,169,110,0.15); }
a, button { -webkit-tap-highlight-color: transparent; }

/* ===== SITE NEW FEATURES CSS ===== */

/* F1: Product zoom cursor */
.gallery-main { cursor: zoom-in; }

/* F2: Cart add animation */
@keyframes cartPop { 0%{transform:scale(1);} 40%{transform:scale(1.4);} 100%{transform:scale(1);} }
.cart-pop { animation: cartPop 0.35s ease; }

/* F3: Price range slider */
.price-range-slider { padding: 8px 0 16px; }
.price-range-slider input[type=range] {
  width: 100%; accent-color: var(--primary); cursor: pointer;
  height: 4px; border-radius: 2px;
}
.price-range-values { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--gray); margin-top: 6px; }

/* F4: Поддержка — плавающая кнопка (вместо recently viewed) */
.recently-viewed-panel { display: none !important; }
.recently-viewed-toggle {
  position: fixed; bottom: 70px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #374151; color: white;
  border: none; cursor: pointer; font-size: 1rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.18);
  z-index: 501; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.recently-viewed-toggle:hover { transform: scale(1.08); box-shadow: 0 5px 16px rgba(0,0,0,0.22); }
/* Tooltip */
.recently-viewed-toggle::before {
  content: 'Поддержка';
  position: absolute;
  right: calc(100% + 8px);
  top: 50%; transform: translateY(-50%);
  background: #1f2937;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: 'Inter', sans-serif;
}
.recently-viewed-toggle:hover::before { opacity: 1; }
.rv-item { display: none; }

/* F5: Notification banner */
.site-notif-banner {
  position: fixed; top: 72px; left: 0; right: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; text-align: center; padding: 10px 16px;
  font-size: 0.875rem; font-weight: 600; z-index: 999;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transform: translateY(-100%); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.site-notif-banner.show { transform: translateY(0); }
.site-notif-close { background: rgba(255,255,255,0.2); border: none; color: white; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }

/* F6: Back to top */
.back-to-top-btn {
  position: fixed; bottom: 90px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark); color: white; border: none;
  cursor: pointer; font-size: 1.1rem; z-index: 500;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all 0.2s;
}
.back-to-top-btn.visible { display: flex; }
.back-to-top-btn:hover { background: var(--primary); transform: translateY(-3px); }

/* F7: Quick order float */
.quick-order-btn {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; padding: 12px 28px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(200,169,110,0.4); z-index: 500;
  display: none; align-items: center; gap: 8px;
  animation: floatUp 0.3s ease; white-space: nowrap;
}
@keyframes floatUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.quick-order-btn.visible { display: flex; }

/* F8: Color filter chips */
.color-filter-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.color-chip {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform 0.15s, border-color 0.15s;
}
.color-chip:hover { transform: scale(1.2); }
.color-chip.active { border-color: var(--dark); transform: scale(1.15); }

/* F9: Product share button */
.btn-share {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-light); border: none; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-share:hover { background: var(--primary-light); color: var(--primary-dark); }

/* F10: Loading progress bar */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 9999; transition: width 0.3s ease;
  box-shadow: 0 0 8px rgba(200,169,110,0.6);
}

/* ===== COMPREHENSIVE MOBILE FIX ===== */

/* Hide page loader completely */
.page-loader { display: none !important; }

/* Base touch improvements */
* { -webkit-tap-highlight-color: transparent; }
button, a, [onclick] { touch-action: manipulation; }
input, select, textarea { font-size: 16px !important; } /* Prevent iOS zoom */

/* Header mobile */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 12px;
    height: 28px;
  }
  .logo { font-size: 1.1rem; }
  .logo-icon { font-size: 1.3rem; }
  .header-actions { gap: 4px; }
  .btn-icon { width: 38px; height: 38px; font-size: 1rem; }
  .nav { display: none; }
  .burger { display: flex; }
  body:has(.header) { padding-top: 60px; }
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 20px 0 28px; }
  .hero-content { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; text-align: center; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.2rem); letter-spacing: -0.5px; }
  .hero-desc { font-size: 0.88rem; margin-bottom: 18px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; gap: 10px; }
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.88rem; }
  .hero-stats { justify-content: center; gap: 16px; margin-top: 16px; padding-top: 14px; }
  .stat-num { font-size: 1.3rem; }
  .hero-badge { font-size: 0.78rem; padding: 5px 12px; }
}

/* Marquee mobile */
@media (max-width: 480px) {
  .marquee-item { font-size: 0.8rem; padding: 0 20px; }
}

/* Categories mobile */
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-name { font-size: 0.95rem; }
  .category-count { font-size: 0.78rem; }
}
@media (max-width: 360px) {
  .categories-grid { grid-template-columns: 1fr; }
}

/* Products grid mobile */
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .filter-tabs { gap: 6px; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .filter-tab { padding: 7px 14px; font-size: 0.8rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* Product card mobile */
@media (max-width: 768px) {
  .product-info { padding: 10px; }
  .product-name { font-size: 0.82rem; }
  .product-flowers { font-size: 0.72rem; margin-bottom: 6px; }
  .product-rating { margin-bottom: 8px; gap: 4px; }
  .stars { font-size: 0.75rem; }
  .rating-num, .rating-count { font-size: 0.72rem; }
  .product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .product-price { flex-shrink: 0; }
  .price-current { font-size: 0.9rem; white-space: nowrap; }
  .price-old { font-size: 0.72rem; margin-left: 3px; }
  .btn-add-cart {
    padding: 7px 10px;
    font-size: 0.72rem;
    gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .product-actions { opacity: 1; transform: none; }
  .action-btn { width: 32px; height: 32px; font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .product-price {
    width: 100%;
  }
  .product-footer-btns {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Section mobile */
@media (max-width: 768px) {
  .section { padding: 36px 0; }
  .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 20px; }
  .container { padding: 0 14px; }
}

/* Steps mobile */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .steps-grid::before { display: none; }
  .step-num { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 18px; }
  .step-title { font-size: 0.9rem; }
  .step-desc { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* Reviews mobile */
@media (max-width: 768px) {
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 20px; }
  .review-text { font-size: 0.85rem; }
}

/* Newsletter mobile */
@media (max-width: 768px) {
  .newsletter-section { padding: 32px 16px; border-radius: 16px; }
  .newsletter-title { font-size: 1.4rem; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-input { border-radius: 12px; }
}

/* Shops grid mobile */
@media (max-width: 768px) {
  #shopsGrid { grid-template-columns: 1fr !important; }
}

/* Gift/subscription section mobile */
@media (max-width: 768px) {
  .section > .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Footer mobile */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-desc { font-size: 0.82rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding: 40px 0 20px; }
}

/* Mobile nav */
@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body:has(.mobile-nav) { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  body:has(.admin-layout),
  body:has(.sp-header),
  body:has(.acc-wrap) { padding-bottom: 0 !important; }
}
.mobile-nav-inner { max-width: 480px; margin: 0 auto; }
.mobile-nav-item { min-width: 0; flex: 1; }
.mobile-nav-icon { font-size: 1.2rem; }
.mobile-nav-item span:last-of-type { font-size: 0.65rem; }

/* Cart sidebar mobile */
@media (max-width: 768px) {
  .cart-sidebar { width: 100%; max-width: 100%; border-radius: 0; }
}

/* Modal mobile — bottom sheet */
@media (max-width: 768px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 24px 24px 0 0;
    max-height: 92vh;
    padding: 24px 16px;
    max-width: 100%;
  }
  .modal-overlay.open .modal { transform: scale(1) translateY(0); }
  .form-row { grid-template-columns: 1fr; }
}

/* Toast mobile */
@media (max-width: 768px) {
  .toast-container { bottom: 72px; right: 10px; left: 10px; }
  .toast { max-width: 100%; font-size: 0.82rem; }
}

/* Product page mobile */
@media (max-width: 768px) {
  .product-page { padding: 70px 0 40px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .product-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .price-big { font-size: 1.8rem; }
  .gallery-thumbs { gap: 6px; overflow-x: auto; }
  .gallery-thumb { width: 64px; height: 64px; flex-shrink: 0; }
  .product-cta { flex-wrap: wrap; }
  .btn-add-big { min-width: 0; }
  .breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
  .related-section { padding: 30px 0; }
}

/* Account page mobile */
@media (max-width: 640px) {
  .acc-wrap { padding: 20px 12px 80px; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-sidebar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
  .acc-nav-item { flex: 1; min-width: 100px; text-align: center; justify-content: center; padding: 10px 8px; font-size: 0.78rem; }
  .acc-panel { padding: 16px; }
  .acc-grid2 { grid-template-columns: 1fr; }
  .acc-header { flex-wrap: wrap; gap: 8px; }
  .acc-title { font-size: 1.2rem; }
}

/* Catalog page mobile */
@media (max-width: 768px) {
  .catalog-hero { padding: 80px 0 32px; }
  .catalog-hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; padding: 20px 0 60px; }
  .sidebar { position: static; }
  .sidebar-card { padding: 16px; border-radius: 14px; }
  .catalog-top { margin-bottom: 16px; }
}

/* Scroll improvements */
html { scroll-behavior: smooth; }
.cart-items, .admin-nav, .gallery-thumbs, .filter-tabs {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cart-items::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar { display: none; }

/* Safe area */
@supports (padding: env(safe-area-inset-bottom)) {
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
  .cart-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* Prevent horizontal scroll */
body { overflow-x: hidden; }
.container { max-width: 100%; }

/* Better tap targets */
@media (max-width: 768px) {
  .btn-icon { min-width: 40px; min-height: 40px; }
  .qty-btn { min-width: 36px; min-height: 36px; }
  .cart-close { min-width: 36px; min-height: 36px; }
  .modal-close { min-width: 36px; min-height: 36px; }
}

/* Gift/subscription grid mobile */
@media (max-width: 768px) {
  .gift-sub-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ===== GLOBAL MOBILE FIX — FINAL ===== */

/* Prevent overflow everywhere */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }

/* Header compact — sadece header olan sayfalarda padding-top */
@media (max-width: 768px) {
  .header-inner {
    height: 44px !important;
    padding: 0 10px !important;
  }
  .logo { font-size: 0.85rem !important; gap: 4px !important; }
  .logo-icon { font-size: 0.75rem !important; }
  .btn-icon { width: 30px !important; height: 30px !important; font-size: 0.65rem !important; }
  /* Sadece .header elementi olan sayfalarda padding-top uygula */
  body:has(.header) { padding-top: 44px !important; }
}
@media (max-width: 413px) {
  .logo { font-size: 1rem !important; gap: 6px !important; }
  .logo-icon { font-size: 1.2rem !important; }
  .header-actions { gap: 3px !important; }
  .btn-icon { width: 34px !important; height: 34px !important; font-size: 0.9rem !important; }
  .cart-badge { width: 15px !important; height: 15px !important; font-size: 0.58rem !important; top: 3px !important; right: 3px !important; }
  body:has(.header) { padding-top: 52px !important; }
  .hero { padding-top: 0 !important; }
}

/* Admin, shop-panel, support, account, product — no double header padding */
body:has(.admin-layout),
body:has(.sp-header),
body:has(.acc-wrap),
body.page-product {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== MOBILE NAV — safe area ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom) !important; }
  body:has(.mobile-nav) { padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important; }
  body:has(.admin-layout),
  body:has(.sp-header),
  body:has(.acc-wrap) { padding-bottom: 0 !important; }
}

/* ===================================================
   RENK OVERRIDE — Altın/Kahve → Beyaz/Gri
   =================================================== */

/* Genel arka plan */
body { background: #f9fafb !important; color: #111827 !important; }

/* Header */
.header-inner {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid rgba(0,0,0,0.07) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05) !important;
}

/* Butonlar */
.btn-primary, .btn-submit {
  background: linear-gradient(135deg, #374151, #1f2937) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.16) !important; }
.btn-secondary {
  border-color: rgba(0,0,0,0.12) !important;
  color: #374151 !important;
}
.btn-secondary:hover {
  border-color: #374151 !important;
  color: #374151 !important;
  background: rgba(0,0,0,0.03) !important;
}

/* Logo */
.logo span { color: #374151 !important; }

/* Nav */
.nav a:hover, .nav a.active {
  background: rgba(0,0,0,0.05) !important;
  color: #374151 !important;
}
.btn-icon:hover { background: rgba(0,0,0,0.05) !important; color: #374151 !important; }

/* Cart badge */
.cart-badge { background: #374151 !important; }

/* Hero badge */
.hero-badge {
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.1) !important;
  color: #555555 !important;
}

/* Sections */
.section { background: transparent; }
.section:nth-child(even) { background: #ffffff; }

/* Product cards */
.product-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
  border-radius: 14px !important;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important; }

/* Filter tabs */
.filter-tab:hover { background: rgba(0,0,0,0.06) !important; color: #111111 !important; }
.filter-tab.active { background: #111111 !important; color: #ffffff !important; border-color: #111111 !important; }

/* Sort select */
.sort-select:focus { border-color: #111111 !important; }

/* Badges */
.badge-new { background: #111111 !important; color: #ffffff !important; }
.badge-premium { background: #333333 !important; color: #ffffff !important; }

/* Add to cart */
.btn-add-cart {
  background: rgba(0,0,0,0.06) !important;
  color: #111111 !important;
  border-radius: 8px !important;
}
.btn-add-cart:hover { background: #111111 !important; color: #ffffff !important; }

/* Action buttons */
.action-btn:hover { background: #111111 !important; color: #ffffff !important; }

/* Price */
.price-current { color: #111111 !important; }

/* Stars */
.stars { color: #555555 !important; }

/* Category cards */
.category-card:hover .category-arrow { background: #111111 !important; }

/* Step numbers */
.step-num { background: linear-gradient(135deg, #111111, #333333) !important; }

/* Reviews */
.review-stars { color: #555555 !important; }
.reviewer-avatar { border-color: rgba(0,0,0,0.1) !important; }

/* Newsletter */
.newsletter-section {
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8) !important;
}
.newsletter-input:focus { border-color: #111111 !important; }
.newsletter-btn { background: #111111 !important; }

/* Footer */
.social-link:hover { background: #111111 !important; color: #ffffff !important; }
.footer-links a:hover { color: #555555 !important; }
.footer-bottom a { color: #555555 !important; }

/* Cart */
.cart-close:hover { background: rgba(0,0,0,0.06) !important; color: #111111 !important; }
.cart-item:hover { background: rgba(0,0,0,0.03) !important; }
.cart-item-price { color: #111111 !important; }
.qty-btn:hover { background: #111111 !important; color: #ffffff !important; border-color: #111111 !important; }
.cart-checkout-btn { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }

/* Modal */
.modal-close:hover { background: rgba(0,0,0,0.06) !important; color: #111111 !important; }

/* Scrollbar */
::-webkit-scrollbar-thumb { background: #cccccc !important; }
::-webkit-scrollbar-track { background: #f8f8f8 !important; }

/* Marquee */
.marquee-dot { background: #888888 !important; }

/* Promo */
.promo-tag { background: #111111 !important; }
.btn-promo:hover { background: #111111 !important; color: #ffffff !important; }

/* User menu */
.user-avatar { background: linear-gradient(135deg, #333333, #111111) !important; }
.user-dropdown { border-color: rgba(0,0,0,0.08) !important; }
.user-dropdown-item:hover { background: rgba(0,0,0,0.04) !important; color: #111111 !important; }

/* Auth modal */
.auth-tab.active { color: #111111 !important; border-bottom-color: #111111 !important; }
.btn-submit { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }

/* Mobile nav */
.mobile-nav { background: rgba(255,255,255,0.97) !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
.mobile-nav-item { color: #888888 !important; }
.mobile-nav-item.active { color: #111111 !important; }
.mobile-nav-item.active .mobile-nav-icon { background: rgba(0,0,0,0.08) !important; border-radius: 10px !important; }
.mobile-nav-badge { background: #111111 !important; }

/* Catalog */
.catalog-hero { background: linear-gradient(135deg, #f8f8f8, #f0f0f0) !important; }
.sidebar-card { background: #ffffff !important; border-color: rgba(0,0,0,0.08) !important; }
.sidebar-title { color: #111111 !important; }
.color-chip.active { box-shadow: 0 0 0 3px #111111 !important; }

/* Product page */
.product-page { background: #f8f8f8 !important; }
.gallery-thumb.active { border-color: #111111 !important; }
.btn-add-big { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }
.btn-wishlist:hover { border-color: #111111 !important; color: #111111 !important; }

/* Shop page */
.sh-header { background: rgba(255,255,255,0.97) !important; border-bottom-color: rgba(0,0,0,0.08) !important; }
.sh-hero { background: linear-gradient(135deg, #f8f8f8, #f0f0f0) !important; }
.sh-card { background: #ffffff !important; border-color: rgba(0,0,0,0.06) !important; }
.sh-card-btn { background: #111111 !important; color: #ffffff !important; border-radius: 8px !important; }
.sh-chip.active { background: #111111 !important; color: #ffffff !important; }
.sh-cart-float-btn { background: #111111 !important; }

/* Account */
.acc-btn { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }
.acc-nav-item.active { color: #111111 !important; background: rgba(0,0,0,0.06) !important; }
.acc-input:focus { border-color: #111111 !important; }
.cashback-card { background: linear-gradient(135deg, #111111, #333333) !important; }

/* Track */
.track-btn { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }
.track-input:focus { border-color: #111111 !important; }
.step.active .step-circle, .step.done .step-circle {
  background: linear-gradient(135deg, #111111, #333333) !important;
  box-shadow: 0 0 0 6px rgba(0,0,0,0.1) !important;
}
.step-line.done { background: linear-gradient(90deg, #333333, #111111) !important; }

/* Support */
.sp-msg.mine .sp-bubble { background: linear-gradient(135deg, #111111, #333333) !important; }
.sp-quick-btn { border-color: rgba(0,0,0,0.2) !important; color: #333333 !important; }
.sp-quick-btn:hover { background: #111111 !important; color: #ffffff !important; }
.sp-send-btn { background: linear-gradient(135deg, #111111, #333333) !important; }
.sp-textarea:focus { border-color: #111111 !important; }
.sp-status-dot { background: #22c55e !important; }
.sp-avatar { background: linear-gradient(135deg, #333333, #111111) !important; }
.sp-avatar.op { background: linear-gradient(135deg, #3a7bd5, #2563b0) !important; }
.sp-login-btn { background: linear-gradient(135deg, #111111, #333333) !important; border-radius: 10px !important; }

/* ── Siyah renkleri açık griye çevir ── */
.filter-tab.active { background: #374151 !important; border-color: #374151 !important; }
.badge-new { background: #374151 !important; }
.badge-premium { background: #4b5563 !important; }
.btn-add-cart:hover { background: #374151 !important; }
.action-btn:hover { background: #374151 !important; }
.step-num { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.cart-checkout-btn { background: linear-gradient(135deg, #374151, #1f2937) !important; border-radius: 8px !important; }
.newsletter-btn { background: #374151 !important; }
.social-link:hover { background: #374151 !important; }
.qty-btn:hover { background: #374151 !important; border-color: #374151 !important; }
.mobile-nav-item.active { color: #374151 !important; }
.mobile-nav-item.active .mobile-nav-icon { background: rgba(55,65,81,0.08) !important; }
.mobile-nav-badge { background: #374151 !important; }
.sp-msg.mine .sp-bubble { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.sp-quick-btn { border-color: rgba(55,65,81,0.25) !important; color: #374151 !important; }
.sp-quick-btn:hover { background: #374151 !important; }
.sp-send-btn { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.sp-avatar { background: linear-gradient(135deg, #4b5563, #374151) !important; }
.sp-login-btn { background: linear-gradient(135deg, #374151, #1f2937) !important; border-radius: 8px !important; }
.acc-btn { background: linear-gradient(135deg, #374151, #1f2937) !important; border-radius: 8px !important; }
.acc-nav-item.active { color: #374151 !important; background: rgba(55,65,81,0.08) !important; }
.cashback-card { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.track-btn { background: linear-gradient(135deg, #374151, #1f2937) !important; border-radius: 8px !important; }
.step.active .step-circle, .step.done .step-circle { background: linear-gradient(135deg, #374151, #1f2937) !important; box-shadow: 0 0 0 6px rgba(55,65,81,0.1) !important; }
.step-line.done { background: linear-gradient(90deg, #4b5563, #374151) !important; }
.user-avatar { background: linear-gradient(135deg, #4b5563, #374151) !important; }
.hero-title .highlight { background: linear-gradient(135deg, #374151, #6b7280) !important; -webkit-background-clip: text !important; background-clip: text !important; }
.notif-banner { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.quick-order-float { background: linear-gradient(135deg, #374151, #1f2937) !important; }
.recently-viewed-toggle { background: #374151 !important; }
.back-to-top:hover { background: #374151 !important; }
.promo-tag { background: #374151 !important; }
.btn-promo:hover { background: #374151 !important; }
.btn-add-big { background: linear-gradient(135deg, #374151, #1f2937) !important; border-radius: 8px !important; }
.sh-card-btn { background: #374151 !important; border-radius: 6px !important; }
.sh-chip.active { background: #374151 !important; }
.sh-cart-float-btn { background: #374151 !important; }

/* Header arama butonu — mobilde gizle (alt barda var) */
@media (max-width: 768px) {
  .header-actions .btn-icon[onclick*="toggleSearch"],
  .header-actions button[onclick*="toggleSearch"] {
    display: none !important;
  }
}

/* ===== MOBILE APP (Capacitor/WebView) FIXES ===== */

/* Status bar safe area — prevent overlap with Android status bar */
@media (max-width: 480px) {
  .header {
    padding-top: max(8px, env(safe-area-inset-top, 8px));
    top: 0;
  }
  body:has(.header) {
    padding-top: calc(52px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* Product card — fix footer layout on small screens */
@media (max-width: 480px) {
  .product-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-height: 36px;
  }
  .product-price {
    flex: 1 1 auto;
    min-width: 0;
  }
  .price-current {
    font-size: 0.88rem !important;
    font-weight: 800;
    white-space: nowrap;
    display: block;
  }
  .price-old {
    font-size: 0.68rem !important;
    display: block;
    margin-left: 0 !important;
  }
  .btn-add-cart {
    flex: 0 0 auto !important;
    padding: 7px 9px !important;
    font-size: 0.7rem !important;
    gap: 3px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
  }
}

/* Products grid — 2 columns on mobile */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card { border-radius: 12px; }
  .product-img-wrap { aspect-ratio: 1/1; }
  .product-img-wrap img, .product-img-wrap video {
    width: 100%; height: 100%; object-fit: cover;
  }
  .product-info { padding: 8px 10px 10px !important; }
  .product-name { font-size: 0.8rem !important; margin-bottom: 3px; }
  .product-flowers { font-size: 0.68rem !important; margin-bottom: 5px; }
  .product-rating { margin-bottom: 6px !important; gap: 3px !important; }
  .stars { font-size: 0.7rem !important; }
  .rating-num, .rating-count { font-size: 0.68rem !important; }
}

/* Hero — no min-height on mobile */
@media (max-width: 480px) {
  .hero {
    min-height: auto !important;
    padding: 16px 0 20px !important;
  }
  .hero-stats {
    margin-top: 12px !important;
    padding-top: 12px !important;
    gap: 12px !important;
  }
  .stat-num { font-size: 1.2rem !important; }
  .stat-label { font-size: 0.7rem !important; }
}

/* Catalog hero — compact */
@media (max-width: 480px) {
  .catalog-hero {
    padding: 60px 0 16px !important;
  }
  .catalog-hero h1 { font-size: 1.3rem !important; margin-bottom: 4px !important; }
  .catalog-hero p { font-size: 0.82rem !important; }
}

/* Mobile nav — ensure it doesn't overlap content */
@media (max-width: 480px) {
  .mobile-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== PRODUCT CARD CART BUTTON — icon only on mobile ===== */
@media (max-width: 480px) {
  .btn-add-cart {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
    background: var(--primary) !important;
    color: #fff !important;
  }
  .btn-add-cart:hover {
    transform: scale(1.1) !important;
  }
}

/* ===== 25+ ALICI ÖZELLİKLERİ & ANİMASYONLAR ===== */

/* 1. Floating particles background */
.particles-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,114,128,0.12), transparent);
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

/* 2. Shimmer loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 3. Product card hover lift */
.product-card {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* 4. Pulse badge animation */
.pulse-badge {
  position: relative;
}
.pulse-badge::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--primary);
  animation: pulseBadge 2s ease-out infinite;
}
@keyframes pulseBadge {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* 5. Gradient text animation */
.gradient-text-anim {
  background: linear-gradient(135deg, #374151, #6b7280, #374151);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 6. Stagger fade-in for lists */
.stagger-list > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}
.stagger-list > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-list > *:nth-child(2)  { animation-delay: 0.10s; }
.stagger-list > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-list > *:nth-child(4)  { animation-delay: 0.20s; }
.stagger-list > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-list > *:nth-child(6)  { animation-delay: 0.30s; }
.stagger-list > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-list > *:nth-child(8)  { animation-delay: 0.40s; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* 7. Ripple effect on buttons */
.btn-ripple {
  position: relative; overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
  opacity: 0;
  top: var(--y, 50%); left: var(--x, 50%);
}
.btn-ripple:active::after {
  width: 300px; height: 300px; opacity: 0;
}

/* 8. Floating label inputs */
.float-label-wrap {
  position: relative; margin-bottom: 20px;
}
.float-label-wrap input,
.float-label-wrap textarea {
  width: 100%; padding: 18px 14px 6px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.95rem; outline: none;
  transition: border-color 0.2s;
  background: #fff;
}
.float-label-wrap input:focus,
.float-label-wrap textarea:focus { border-color: #374151; }
.float-label-wrap label {
  position: absolute; left: 14px; top: 14px;
  font-size: 0.9rem; color: #9ca3af;
  transition: all 0.2s; pointer-events: none;
}
.float-label-wrap input:focus ~ label,
.float-label-wrap input:not(:placeholder-shown) ~ label,
.float-label-wrap textarea:focus ~ label,
.float-label-wrap textarea:not(:placeholder-shown) ~ label {
  top: 5px; font-size: 0.68rem; color: #374151; font-weight: 700;
}

/* 9. Smooth counter animation */
.counter-anim {
  display: inline-block;
  animation: countUp 0.8s ease-out;
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 10. Image zoom on hover */
.img-zoom-wrap { overflow: hidden; border-radius: inherit; }
.img-zoom-wrap img,
.img-zoom-wrap video {
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.img-zoom-wrap:hover img,
.img-zoom-wrap:hover video { transform: scale(1.08); }

/* 11. Toast notification */
.toast-notif {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #111; color: #fff;
  padding: 12px 24px; border-radius: 50px;
  font-size: 0.875rem; font-weight: 600;
  z-index: 9999; opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.toast-notif.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* 12. Wishlist heart animation */
.heart-btn {
  transition: transform 0.2s;
}
.heart-btn.liked {
  animation: heartBeat 0.4s ease;
}
@keyframes heartBeat {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* 13. Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, #374151, #6b7280);
  z-index: 9999; transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* 14. Category card hover */
.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.category-card:hover .category-icon {
  animation: wiggle 0.5s ease;
}
@keyframes wiggle {
  0%,100% { transform: rotate(0deg); }
  25%      { transform: rotate(-10deg); }
  75%      { transform: rotate(10deg); }
}

/* 15. Add to cart success animation */
.cart-success {
  animation: cartBounce 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cartBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.3); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* 16. Sticky header blur */
.header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92) !important;
  transition: box-shadow 0.3s ease;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* 17. Price tag animation */
.price-tag-anim {
  display: inline-block;
  animation: priceIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes priceIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 18. Review stars fill animation */
.stars-fill {
  display: inline-flex; gap: 2px;
}
.stars-fill span {
  display: inline-block;
  animation: starPop 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
}
.stars-fill span:nth-child(1) { animation-delay: 0.0s; }
.stars-fill span:nth-child(2) { animation-delay: 0.1s; }
.stars-fill span:nth-child(3) { animation-delay: 0.2s; }
.stars-fill span:nth-child(4) { animation-delay: 0.3s; }
.stars-fill span:nth-child(5) { animation-delay: 0.4s; }
@keyframes starPop {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* 19. Quantity selector */
.qty-btn {
  transition: background 0.15s, transform 0.15s;
}
.qty-btn:active { transform: scale(0.88); }

/* 20. Smooth page transitions */
.page-enter {
  animation: pageEnter 0.4s ease;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 21. Flower emoji rain (special occasions) */
.flower-rain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden;
}
.flower-drop {
  position: absolute; top: -40px; font-size: 1.5rem;
  animation: flowerFall linear forwards;
}
@keyframes flowerFall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* 22. Notification dot pulse */
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  animation: notifPulse 1.5s ease-in-out infinite;
}
@keyframes notifPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* 23. Smooth accordion */
.accordion-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.accordion-content.open {
  max-height: 500px;
}

/* 24. Image gallery dot indicators */
.gallery-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 8px;
}
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #d1d5db; cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-dot.active {
  width: 20px; border-radius: 3px; background: #374151;
}

/* 25. Checkout step indicator */
.checkout-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 24px;
}
.checkout-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; color: #9ca3af;
}
.checkout-step.active { color: #374151; }
.checkout-step.done   { color: #22c55e; }
.checkout-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
  transition: all 0.3s ease;
}
.checkout-step.active .checkout-step-num { background: #374151; color: #fff; }
.checkout-step.done   .checkout-step-num { background: #22c55e; color: #fff; }
.checkout-step-line {
  flex: 1; height: 2px; background: #e5e7eb; min-width: 20px;
  transition: background 0.3s ease;
}
.checkout-step.done + .checkout-step-line { background: #22c55e; }

/* 26. Lazy image fade-in */
img.lazy { opacity: 0; transition: opacity 0.5s ease; }
img.lazy.loaded { opacity: 1; }

/* 27. Floating action button */
.fab {
  position: fixed; bottom: 80px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 24px rgba(55,65,81,0.35);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  z-index: 800;
}
.fab:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 12px 36px rgba(55,65,81,0.4);
}

/* 28. Swipe hint animation */
.swipe-hint {
  animation: swipeHint 2s ease-in-out infinite;
}
@keyframes swipeHint {
  0%,100% { transform: translateX(0); opacity: 1; }
  50%      { transform: translateX(12px); opacity: 0.5; }
}

/* 29. Success checkmark */
.success-check {
  width: 56px; height: 56px; border-radius: 50%;
  background: #22c55e; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 30. Typewriter cursor */
.typewriter::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--primary);
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ===== SVG ICONS ===== */
.svg-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
  /* Make icons match text color via CSS filter */
  filter: var(--icon-filter, none);
}
.svg-icon-sm { width: 14px; height: 14px; }
.svg-icon-md { width: 20px; height: 20px; }
.svg-icon-lg { width: 24px; height: 24px; }
.svg-icon-xl { width: 32px; height: 32px; }

/* Emoji replaced icons */
.emoji-icon, .emoji-replaced {
  width: 1em;
  height: 1em;
  margin: 0 0.1em;
  vertical-align: middle;
}

/* Step numbers with icons */
.step-num .svg-icon {
  width: 32px;
  height: 32px;
}

/* Dark icons (default feather is dark stroke) */
.icon-white { filter: invert(1); }
.icon-gray  { filter: invert(0.5); }
.icon-primary { filter: invert(40%) sepia(60%) saturate(400%) hue-rotate(180deg); }

/* Home card footer buttons: icon-only, no background */
.product-footer-btns .btn-buy-now,
.product-footer-btns .btn-add-cart {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dark) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.product-footer-btns .btn-add-cart {
  font-size: 0 !important;
  gap: 0 !important;
}
.product-footer-btns .btn-buy-now:hover,
.product-footer-btns .btn-add-cart:hover {
  background: transparent !important;
  color: var(--dark) !important;
  transform: scale(1.08) !important;
}

/* Shop owner — compact FAB (replaces large fixed banner) */
.shop-panel-fab {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 850;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 10px;
  font-family: Inter, system-ui, sans-serif;
  pointer-events: none;
}
.shop-panel-fab > * {
  pointer-events: auto;
}
.shop-panel-fab-icon {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f2937, #111827);
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}
.shop-panel-fab-icon .svg-icon {
  width: 22px;
  height: 22px;
  filter: invert(1);
}
.shop-panel-fab-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}
.shop-panel-fab-pop {
  position: relative;
  min-width: 0;
  max-width: min(260px, calc(100vw - 80px));
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  animation: shopFabIn 0.2s ease;
}
@keyframes shopFabIn {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.shop-panel-fab.is-collapsed .shop-panel-fab-pop {
  display: none !important;
}
.shop-panel-fab-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.shop-panel-fab-close .svg-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
}
.shop-panel-fab-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  padding: 6px 28px 4px 4px;
  font-family: inherit;
}
.shop-panel-fab-title {
  font-size: 0.82rem;
  font-weight: 800;
}
.shop-panel-fab-sub {
  font-size: 0.68rem;
  opacity: 0.72;
  font-weight: 500;
}
.shop-panel-fab-arrow {
  position: absolute;
  right: 10px;
  bottom: 12px;
  width: 16px;
  height: 16px;
  filter: invert(1);
  opacity: 0.85;
}
body:not(:has(.mobile-nav)) .shop-panel-fab {
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
}
@media (max-width: 767px) {
  .shop-panel-fab-icon {
    width: 44px;
    height: 44px;
  }
  .shop-panel-fab {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
