@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #ed1b68;
  --primary-hover: #c91557;
  --secondary: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 15px;
  font-weight: 400;
}

h1 { font-size: 32px; font-weight: 800; color: var(--text-dark); }
h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); }
h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.lunacy-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  outline: none;
  border: none;
  background: transparent;
  transition: var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================== HEADER ================== */
.header {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.city-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.city-select svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}

.catalog-btn:hover {
  background: var(--primary-hover);
}

.catalog-btn svg {
  width: 20px;
  height: 20px;
}

.search-box {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
  background: var(--bg-color);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(237, 27, 104, 0.1);
}

.search-box input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.search-box button {
  background: transparent;
  color: var(--text-gray);
  padding: 0 16px;
}

.search-box button:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.mobile-menu-toggle,
.mobile-drawer-overlay,
.mobile-drawer {
  display: none;
}

.action-item:hover {
  color: var(--primary);
}

.action-item svg {
  width: 24px;
  height: 24px;
  color: var(--text-dark);
  transition: var(--transition);
}

.action-item:hover svg {
  color: var(--primary);
}

.action-badge {
  position: absolute;
  top: -6px;
  right: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ================== HERO ================== */
.hero-section {
  margin: 24px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.sidebar-menu {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-item-left svg {
  width: 20px;
  height: 20px;
  color: var(--text-gray);
}

.sidebar-item:hover {
  background: var(--bg-color);
  color: var(--primary);
}

.sidebar-item:hover .sidebar-item-left svg {
  color: var(--primary);
}

.hero-banner {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hero-banner-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-banner-title span {
  color: var(--primary);
}

.hero-banner-subtitle {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(237, 27, 104, 0.3);
}

.hero-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 27, 104, 0.4);
}

.hero-banner-image {
  position: absolute;
  right: 40px;
  bottom: -20px;
  width: 400px;
  z-index: 1;
}

.hero-slider {
  --hero-accent: var(--primary);
  padding: 0;
}

.hero-slider-track {
  position: relative;
  min-height: 400px;
  width: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  color: var(--hero-text-color, var(--white));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-slide-media,
.hero-slide-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide-media {
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-slide-overlay {
  background:
    linear-gradient(110deg, rgb(var(--hero-overlay-rgb, 21 30 49) / 0.88) 0%, rgb(var(--hero-overlay-rgb, 21 30 49) / 0.7) 48%, rgb(var(--hero-overlay-rgb, 21 30 49) / 0.48) 100%),
    linear-gradient(135deg, rgba(237, 27, 104, 0.18), rgba(37, 99, 235, 0.16));
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: auto auto -70px -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 72%);
}

.hero-slider .hero-banner-content {
  max-width: 560px;
}

.hero-slider .hero-eyebrow,
.hero-slider .hero-banner-title,
.hero-slider .hero-banner-title span,
.hero-slider .hero-banner-subtitle,
.hero-slider .hero-btn.hero-btn-secondary {
  color: var(--hero-text-color, var(--white));
}

.hero-slider .hero-btn {
  background: var(--hero-accent);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
}

.hero-slider .hero-btn:hover {
  background: var(--hero-accent-hover, var(--hero-accent));
  filter: brightness(0.96);
}

.hero-slider-dots {
  position: absolute;
  left: 32px;
  bottom: 26px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
}

.slider-dot.active {
  width: 30px;
  background: #fff;
}

/* ================== FEATURES ================== */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.banner-stack-section {
  display: grid;
  gap: 18px;
}

.promo-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.promo-banner-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 16px;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.promo-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0));
}

.promo-banner-copy,
.promo-banner-art {
  position: relative;
  z-index: 1;
}

.promo-banner-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-banner-copy h3 {
  margin: 18px 0 10px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--white);
}

.promo-banner-copy p {
  max-width: 42ch;
  font-size: 15px;
  color: rgba(248, 250, 252, 0.84);
}

.promo-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  color: #fff5f8;
}

.promo-banner-cta::after {
  content: '->';
  transition: transform 0.25s ease;
}

.promo-banner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.promo-banner-card.no-media {
  grid-template-columns: 1fr;
}

.promo-banner-card:hover .promo-banner-cta::after {
  transform: translateX(4px);
}

.promo-banner-art {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
}

.promo-banner-art img {
  width: 100%;
  height: 100%;
  min-height: 204px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.mini-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mini-banner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.mini-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.mini-banner-media {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
}

.mini-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-banner-copy {
  min-width: 0;
}

.mini-banner-copy strong {
  display: block;
  font-size: 18px;
  color: var(--text-dark);
}

.mini-banner-copy p {
  margin: 6px 0 10px;
  font-size: 14px;
  color: var(--text-gray);
}

.mini-banner-copy span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary);
}

.mini-banner-copy span::after {
  content: '->';
}

.feature-item {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.primary { background: #fce7f3; color: var(--primary); }
.feature-icon.secondary { background: #dbeafe; color: var(--secondary); }
.feature-icon.success { background: #d1fae5; color: var(--success); }
.feature-icon.warning { background: #fef3c7; color: var(--warning); }

.feature-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ================== SECTIONS & PRODUCTS ================== */
.section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-link {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

/* Horizontal Scroll Container */
.products-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin: 0 -8px;
  padding: 16px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}

.products-scroll::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Product Card */
.product-card {
  min-width: 240px;
  max-width: 240px;
  flex: 0 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image-wrap {
  position: relative;
  height: 200px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-image-wrap img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.08);
}

.badge-discount {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.badge-new {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--success);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.badge-bestseller {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--warning);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-wishlist {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-color);
  color: var(--text-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-wishlist:hover {
  color: var(--primary);
  background: #fce7f3;
}

.btn-wishlist svg {
  width: 18px;
  height: 18px;
}

.card-wishlist svg {
  width: 18px;
  height: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.installment-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  width: fit-content;
}

.card-title {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 500;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-title:hover {
  color: var(--primary);
}

.btn-add-cart {
  width: 100%;
  background: var(--bg-color);
  color: var(--text-dark);
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product-card:hover .btn-add-cart {
  opacity: 1;
  transform: translateY(0);
  background: var(--primary);
  color: var(--white);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.category-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.category-img img {
  max-width: 100%;
  max-height: 100%;
}

.category-info h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.category-info p {
  font-size: 13px;
  color: var(--text-gray);
}

/* ================== FOOTER ================== */
.footer {
  background: var(--white);
  padding: 60px 0 24px;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  color: var(--text-gray);
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer ul a {
  color: var(--text-gray);
  font-size: 15px;
}

.footer ul a:hover {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-gray);
  font-size: 14px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 600;
}

.footer-credit a:hover {
  color: var(--primary-hover);
}

.payment-methods {
  display: flex;
  gap: 12px;
}

.payment-method {
  height: 32px;
  width: 50px;
  background: var(--bg-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* Floating Chat */
.floating-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(237, 27, 104, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: var(--transition);
}

.floating-chat:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 32px rgba(237, 27, 104, 0.5);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sidebar-menu { display: none; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; gap: 16px; }
  .search-box { order: 3; width: 100%; }
  .features-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ================== PRODUCT DETAIL PAGE ================== */
.page-header {
  padding: 24px 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator,
.section-title-icon,
.button-icon,
.empty-state-icon svg,
.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.breadcrumb-separator {
  width: 14px;
  height: 14px;
  color: var(--text-light);
  flex-shrink: 0;
}

.breadcrumb-separator svg,
.section-title-icon svg,
.button-icon svg,
.empty-state-icon svg,
.success-mark svg {
  width: 100%;
  height: 100%;
}

.section-title-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.product-detail {
  margin-bottom: 60px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  padding: 24px;
}

.gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  padding: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumb.active, .thumb:hover {
  border-color: var(--primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.product-price-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.product-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.product-old-price {
  font-size: 20px;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 500;
}

.badge-discount-large {
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.stock-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.in-stock {
  background: #d1fae5;
  color: #059669;
}

.out-stock {
  background: #fee2e2;
  color: #dc2626;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.qty-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  width: 48px;
  height: 48px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-input {
  width: 60px;
  height: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-actions {
  display: flex;
  gap: 16px;
}

.product-actions .btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.product-actions .btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-primary-large {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(237, 27, 104, 0.3);
}

.btn-primary-large:hover {
  background: #d6145a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(237, 27, 104, 0.4);
}

.btn-whatsapp-large {
  background: #10b981;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-whatsapp-large:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.product-tabs {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
}

.tab-buttons {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-gray);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-dark);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.8;
}

.tab-content.active {
  display: block;
}

.tab-content p {
  margin-bottom: 16px;
}

.tab-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

.tab-content li {
  margin-bottom: 8px;
}

@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .product-tabs {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .gallery-main {
    height: 320px;
    padding: 16px;
  }
  
  .product-info h1 {
    font-size: 24px;
  }
  
  .product-price {
    font-size: 28px;
  }
  
  .tab-buttons {
    gap: 16px;
  }
  
  .tab-btn {
    font-size: 16px;
  }
}

/* ================== CART PAGE ================== */
.cart-page {
  margin-bottom: 80px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 16px;
  font-size: 14px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cart-table td {
  padding: 24px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-prod-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-prod-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-color);
  padding: 8px;
}

.cart-prod-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.cart-prod-name:hover {
  color: var(--primary);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.cart-qty .qty-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-color);
  border: none;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty .qty-btn:hover {
  background: var(--border-color);
}

.cart-qty .qty-input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-weight: 600;
  color: var(--text-dark);
  outline: none;
  -moz-appearance: textfield;
}

.cart-qty .qty-input::-webkit-outer-spin-button,
.cart-qty .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-remove {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #fee2e2;
  color: #dc2626;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cart-item-remove:hover {
  background: #fca5a5;
  transform: translateY(-2px);
}

.cart-item-remove svg {
  width: 20px;
  height: 20px;
}

.cart-summary-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}

.cart-summary-box h3 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text-dark);
  font-weight: 800;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text-gray);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--text-dark);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-color);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 32px;
}

.summary-total .cart-total-amount {
  color: var(--primary);
}

.empty-cart-state {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-cart-state svg {
  width: 100px;
  height: 100px;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.empty-cart-state p {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.empty-cart-state span {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 32px;
}

@media (max-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cart-table-wrap {
    padding: 16px;
  }
  
  .cart-table thead {
    display: none;
  }
  
  .cart-table tbody tr {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    position: relative;
  }
  
  .cart-table td {
    padding: 0;
    border: none;
  }
  
  .cart-item-remove {
    position: absolute;
    top: 24px;
    right: 0;
  }
  
  .cart-table td:nth-child(2)::before { content: "Qiymət: "; font-weight: 600; color: var(--text-gray); }
  .cart-table td:nth-child(3) { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .cart-table td:nth-child(3)::before { content: "Miqdar: "; font-weight: 600; color: var(--text-gray); }
  .cart-table td:nth-child(4)::before { content: "Cəmi: "; font-weight: 600; color: var(--text-gray); display: block; margin-bottom: 4px; }
  .cart-table td:nth-child(4) { margin-top: 8px; padding-top: 16px; border-top: 1px dashed var(--border-color); font-size: 18px; font-weight: 700; color: var(--primary); display: flex; justify-content: space-between; align-items: center; }
}

/* ================== CHECKOUT PAGE ================== */
.checkout-page {
  margin-bottom: 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  align-items: start;
}

.checkout-form-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.checkout-form-box h3 {
  font-size: 24px;
  color: var(--text-dark);
  font-weight: 800;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-color);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(237, 27, 104, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.checkout-success-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.checkout-success-box h2 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 16px;
  font-weight: 800;
}

.order-items-list {
  max-height: 350px;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 8px;
}

.order-items-list::-webkit-scrollbar {
  width: 6px;
}

.order-items-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-info {
  flex: 1;
  padding-right: 16px;
}

.order-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-item-meta {
  font-size: 13px;
  color: var(--text-gray);
}

.order-item-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.info-alert {
  margin-top: 32px;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-alert-icon {
  color: #16a34a;
  flex-shrink: 0;
}

.info-alert-content h4 {
  color: #166534;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-alert-content p {
  color: #15803d;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .checkout-form-box {
    padding: 24px;
  }
}

/* ================== SHARED LISTING PAGES ================== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: none;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fce7f3;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-all-link {
  color: var(--primary);
  font-weight: 700;
  justify-content: center;
  margin-top: 10px;
}

.category-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.category-img-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  background: linear-gradient(135deg, #fff1f6, #fee2e2);
  border-radius: 18px;
}

.listing-subtitle {
  color: var(--text-gray);
  margin-top: 10px;
  font-size: 16px;
  max-width: 680px;
}

.listing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  align-items: start;
}

.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.filter-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.price-input,
.sort-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: var(--bg-color);
  color: var(--text-dark);
  font-size: 14px;
  outline: none;
}

.price-input:focus,
.sort-select:focus {
  border-color: var(--primary);
  background: var(--white);
}

.filter-group + .filter-group {
  margin-top: 24px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option a:hover {
  color: var(--primary);
}

.filter-option span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 700;
}

.category-products {
  min-width: 0;
}

.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  color: var(--text-gray);
  font-weight: 600;
}

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

.product-grid .product-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}

.card-img {
  position: relative;
  height: 220px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 160px;
}

.card-name {
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-name:hover {
  color: var(--primary);
}

.card-price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  margin-top: auto;
}

.card-add-btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  border: none;
}

.card-add-btn:hover:not(:disabled),
.btn-primary:hover {
  background: var(--primary-hover);
}

.card-add-btn:disabled,
.btn-add-cart:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.card-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-color);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
}

.card-detail-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.card-wishlist:hover,
.card-wishlist.active,
.btn-wishlist.active {
  background: #fce7f3;
  color: var(--primary);
}

.out-of-stock-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-empty-state,
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.page-empty-state {
  text-align: center;
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: #fce7f3;
  color: var(--primary);
}

.page-empty-state h2 {
  margin-bottom: 12px;
}

.page-empty-state p {
  color: var(--text-gray);
  margin-bottom: 24px;
}

.info-section + .info-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.info-section h3 {
  margin-bottom: 10px;
}

.info-section p {
  color: var(--text-gray);
  line-height: 1.7;
}

.floating-chat {
  text-decoration: none;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: #059669;
  background: #d1fae5;
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-filters {
    gap: 10px;
  }

  .filter-chip {
    width: 100%;
    justify-content: center;
  }

  .page-empty-state,
  .info-card {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-action {
    grid-template-columns: 1fr;
  }

  .card-detail-btn {
    min-height: 44px;
  }
}

/* ================== MOBILE REFINEMENTS ================== */
body {
  overflow-x: hidden;
}

.header .container,
.product-detail-grid,
.checkout-layout,
.cart-layout,
.category-layout,
.hero-grid,
.footer-bottom .container {
  min-width: 0;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .header {
    padding: 14px 0;
  }

  .header .container {
    gap: 18px;
  }

  .hero-banner {
    min-height: 340px;
    padding: 36px 32px;
  }

  .hero-slider-track {
    min-height: 340px;
  }

  .hero-slide {
    padding: 36px 32px;
  }

  .hero-banner-title {
    font-size: 40px;
  }

  .promo-banner-grid {
    grid-template-columns: 1fr;
  }

  .mini-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-grid,
  .product-tabs,
  .cart-table-wrap,
  .cart-summary-box,
  .checkout-form-box,
  .page-empty-state,
  .info-card {
    padding: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .floating-chat {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    position: static;
  }

  .header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-dark);
    border: none;
    padding: 4px;
    cursor: pointer;
  }

  .mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
  }

  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    width: 280px;
    background: var(--white);
    z-index: 1002;
    transition: var(--transition);
    flex-direction: column;
    box-shadow: var(--shadow-card);
  }

  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open .mobile-drawer-overlay {
    opacity: 1;
    visibility: visible;
  }

  body.drawer-open .mobile-drawer {
    left: 0;
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
  }

  .drawer-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
  }

  .drawer-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
  }

  .drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 0;
  }

  .drawer-item svg {
    color: var(--text-gray);
  }
  
  .logo {
    justify-content: center;
  }

  .logo {
    font-size: 24px;
    min-width: 0;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  .city-select {
    justify-self: end;
    min-width: 0;
    font-size: 13px;
  }

  .catalog-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }

  .header-actions {
    width: auto;
    gap: 8px;
    justify-content: flex-end;
  }

  .action-item {
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: auto;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .action-item svg {
    width: 24px;
    height: 24px;
  }

  .action-item span:last-child {
    display: none;
  }

  .action-badge {
    top: -6px;
    right: -4px;
  }

  .search-box {
    order: initial;
    grid-column: 1 / -1;
    width: 100%;
    height: 46px;
  }

  .search-box input {
    min-width: 0;
    font-size: 14px;
    padding: 0 14px;
  }

  .hero-section {
    margin: 18px 0;
  }

  .hero-banner {
    min-height: auto;
    padding: 28px 22px;
  }

  .hero-slider-track {
    min-height: 300px;
  }

  .hero-slide {
    padding: 28px 22px 66px;
  }

  .hero-banner-content {
    max-width: none;
  }

  .hero-banner-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .hero-banner-title br {
    display: none;
  }

  .hero-banner-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-btn,
  .hero-actions .hero-btn {
    width: 100%;
  }

  .hero-slider-dots {
    left: 22px;
    bottom: 18px;
  }

  .promo-banner-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .promo-banner-copy h3 {
    font-size: 26px;
  }

  .promo-banner-art img {
    min-height: 180px;
  }

  .mini-banner-grid,
  .promo-banner-grid,
  .features-strip,
  .category-grid,
  .category-grid-wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    padding: 18px;
  }

  .section {
    margin-bottom: 40px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-link {
    font-size: 14px;
  }

  .products-scroll {
    gap: 16px;
    margin: 0 -16px;
    padding: 12px 16px 16px;
  }

  .products-scroll .product-card {
    min-width: min(78vw, 260px);
    max-width: min(78vw, 260px);
    padding: 16px;
  }

  .card-image-wrap,
  .card-img {
    height: 180px;
  }

  .page-header {
    padding: 18px 0;
  }

  .page-header h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .listing-subtitle {
    font-size: 15px;
  }

  .breadcrumb {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .category-layout,
  .product-detail-grid,
  .cart-layout,
  .checkout-layout {
    gap: 20px;
  }

  .filter-sidebar {
    padding: 18px;
  }

  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .sort-select {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-grid .product-card {
    padding: 16px;
  }

  .card-body {
    min-height: 0;
  }

  .product-info h1 {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .product-price-block {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .qty-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .qty-controls {
    width: 100%;
    justify-content: space-between;
  }

  .qty-btn {
    flex: 0 0 48px;
  }

  .qty-input {
    width: 100%;
    min-width: 0;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .product-tabs {
    margin-bottom: 40px;
  }

  .tab-buttons {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 15px;
  }

  .tab-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .cart-summary-box,
  .checkout-form-box {
    order: 1;
  }

  .cart-table td:nth-child(3) {
    flex-wrap: wrap;
  }

  .checkout-form-box h3 {
    font-size: 21px;
    margin-bottom: 24px;
  }

  .footer {
    padding-top: 36px;
  }

  .footer-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .payment-methods {
    flex-wrap: wrap;
  }

  .floating-chat {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 21px;
  }

  .city-select {
    font-size: 12px;
  }

  .catalog-btn span,
  .action-item span:last-child {
    font-size: 13px;
  }

  .hero-banner {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .hero-eyebrow {
    font-size: 11px;
    padding: 7px 12px;
    margin-bottom: 14px;
  }

  .hero-banner-title {
    font-size: 28px;
  }

  .feature-item,
  .product-detail-grid,
  .product-tabs,
  .cart-table-wrap,
  .cart-summary-box,
  .checkout-form-box,
  .page-empty-state,
  .info-card {
    padding: 20px;
  }

  .products-scroll {
    margin: 0 -12px;
    padding: 10px 12px 16px;
  }

  .products-scroll .product-card {
    min-width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-img,
  .card-image-wrap {
    height: 170px;
  }

  .price-range {
    grid-template-columns: 1fr;
  }

  .price-range span {
    display: none;
  }

  .sort-bar,
  .filter-sidebar {
    padding: 16px;
  }

  .product-price {
    font-size: 28px;
  }

  .product-old-price {
    font-size: 17px;
  }

  .badge-discount-large {
    font-size: 12px;
  }

  .stock-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .gallery-main {
    height: 280px;
    padding: 14px;
  }

  .thumb {
    width: 68px;
    height: 68px;
  }

  .footer-bottom .container {
    align-items: stretch;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}
