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

:root {
  /* Яскрава палітра з moms-coloring */
  --bg: #fff9f3;
  --text: #2d1b3d;
  --card: #ffffff;
  --accent: #ff6fa9;
  --accent-hover: #ff4f92;
  --gradient: linear-gradient(135deg, #ff6fa9, #ffd848);
  --gradient-2: linear-gradient(135deg, #7edce8, #c985f7);
  --shadow: 0 4px 6px rgba(255, 111, 169, 0.2);
  --shadow-hover: 0 20px 40px rgba(255, 111, 169, 0.3);
  --border-radius: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border: #ffe0ed;
}

body.dark {
  --bg: #0a0a14;
  --text: #fff9e6;
  --card: #151520;
  --accent: #ff6fa9;
  --accent-hover: #ff4f92;
  --gradient: linear-gradient(135deg, #ff6fa9, #ffd848);
  --gradient-2: linear-gradient(135deg, #7edce8, #c985f7);
  --shadow: 0 4px 12px rgba(255, 111, 169, 0.2);
  --shadow-hover: 0 20px 50px rgba(255, 111, 169, 0.3);
  --border: #202030;
  background-color: #000000;
  background:
    linear-gradient(
      180deg,
      #1a1030 0%,
      #2d1b3d 30%,
      #3d1f4d 60%,
      #1a2040 100%
    );
  background-attachment: fixed;
}

body.dark .top {
  backdrop-filter: blur(2px);
}

body.dark .checkout-modal {
  backdrop-filter: blur(1px);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

.page-wrapper {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  padding-top: 160px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #ffffff;
  background:
    linear-gradient(
      180deg,
      #ffd848 0%,    /* жовтий зверху */
      #ffa785 25%,   /* персиковий */
      #ff6fa9 55%,   /* рожевий центр */
      #c985f7 80%,   /* ліловий */
      #7edce8 100%   /* бірюзовий внизу */
    );
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  position: relative;
}

/* Анімація зірочок на фоні */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.7) 2px, transparent 2px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px),
    radial-gradient(circle at 10% 60%, rgba(255, 255, 255, 0.5) 2px, transparent 2px),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px);
  background-size: 300px 300px, 250px 250px, 280px 280px, 200px 200px, 320px 320px, 270px 270px;
  background-position: 0 0, 150px 100px, 300px 200px, 100px 300px, 400px 150px, 200px 400px;
  animation: starsFloat 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes starsFloat {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-30px);
    opacity: 1;
  }
}

.container {
  max-width: 1400px;
  width: 100%;
  margin: 12px auto 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-radius: 32px;
  box-sizing: border-box;
}

/* Header */
.top {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  position: fixed;
  top: 10px;
  left: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 8px 24px;
  transition: var(--transition);
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.logo {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}

.logo span {
  display: inline-block;
}

.logo .logo-icon {
  font-size: 1.2em;
}

.header-bottom-row {
  display: flex;
  width: 100%;
  padding-top: 12px;
}

.header-bottom-row .header-search-desktop {
  display: block;
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
}

.header-bottom-row .header-search-mobile {
  display: none;
}

.header-mobile-burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-mobile-burger-btn .burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.header-mobile-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(320px, 86vw);
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-right: 2px solid var(--border);
  backdrop-filter: blur(10px);
  transform: translateX(-110%);
  transition: transform 0.25s ease;
  z-index: 10001;
  box-sizing: border-box;
  overflow-y: auto;
}

body.dark .header-mobile-menu {
  background: rgba(21, 21, 32, 0.7);
}

.header-mobile-menu.open {
  transform: translateX(0);
}

.header-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: none;
}

.header-mobile-overlay.open {
  display: block;
}

.header-mobile-menu .header-mobile-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.header-mobile-menu .header-mobile-menu-item::after {
  display: none !important;
}

.header-mobile-menu a.nav-link {
  font-size: 18px;
  font-weight: 700;
}

.header-mobile-menu .header-mobile-menu-item:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  body {
    padding-top: 165px;
  }

  .top {
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 10px 14px;
    min-height: 100px;
  }

  .header-top-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    width: 100%;
    gap: 10px;
    position: relative;
    height: 50px;
  }

  .header-nav, .header-search-desktop, .controls .btn-icon:not(.cart-link) {
    display: none !important;
  }

  .header-mobile-burger-btn {
    display: flex;
    grid-column: 1;
    z-index: 2;
  }

  .header-bottom-row {
    display: block;
  }

  .header-bottom-row .header-search-desktop {
    display: none;
  }

  .header-bottom-row .header-search-mobile {
    display: block;
  }

  .logo {
    grid-column: 2;
    font-size: 20px;
    justify-content: center;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    z-index: 1;
    display: flex;
    align-items: center;
  }

  .logo .logo-icon {
    font-size: 1.1em;
  }

  .controls {
    grid-column: 3;
    display: flex !important;
    justify-content: flex-end;
    margin: 0;
    z-index: 2;
  }

  .cart-link {
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gradient) !important;
    position: relative;
    z-index: 10;
    text-decoration: none;
    color: white !important;
  }

  .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1.5px solid #ffffff;
    min-width: 18px;
    text-align: center;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-search-mobile {
    width: 100%;
  }

  .header-search-mobile .search-wrapper {
    width: 100%;
  }

  .header-search-mobile input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 16px;
    font-size: 14px;
    border: 2px solid var(--border);
  }
}

.header-search-desktop {
  flex: 0 1 400px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  z-index: 1;
  opacity: 0.6;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 45px;
  border: 2px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 111, 169, 0.1);
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.controls button[onclick="toggleLang()"] {
  display: none;
}

.btn-icon {
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 10px 15px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.4);
}

.cart-link {
  position: relative;
  background: var(--gradient);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.3);
}

.cart-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 169, 0.5);
}

.cart-badge {
  background: #ff4757;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  min-width: 18px;
  text-align: center;
}

/* Карусель банерів */
.banner-carousel {
  position: relative;
  width: calc(100% - 20px);
  max-width: 1380px;
  margin: 15px auto;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: transparent;
  height: 400px;
}

.carousel-container {
  display: grid;
  grid-template-areas: "slide";
}

.carousel-slide {
  grid-area: slide;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.slide-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.slide-image-wrap {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--card);
}

.slide-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 60px 40px 30px;
  border-radius: 0 0 32px 32px;
  color: #ffffff;
}

.slide-caption h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-caption p {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

body.dark .slide-caption {
  background: rgba(21, 21, 32, 0.95);
}

body.dark .banner-carousel {
  background: var(--bg);
}

body.dark .dot {
  background: rgba(255, 255, 255, 0.3);
}

body.dark .dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

body.dark .dot.active {
  background: var(--accent);
}

.carousel-btn {
  opacity: 0;
  pointer-events: auto;
  width: 80px;
  height: 80px;
}

.carousel-dots {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.dot.active {
  background: var(--accent);
  width: 32px;
  border-radius: 6px;
}

/* Пошук */
.search-container {
  display: none;
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  z-index: 1;
}

.search-wrapper input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  background: var(--card);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.search-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 111, 169, 0.1);
  transform: translateY(-2px);
}

.page-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 40px 0;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Сітка товарів */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0 60px;
}

.card {
  background: var(--card);
  padding: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.card:hover::before {
  transform: scaleX(1);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.card-content {
  padding: 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.card .price {
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.old-price {
  font-size: 18px;
  text-decoration: line-through;
  text-decoration-color: #ff4d4d;
  text-decoration-thickness: 2px;
  color: #666;
  font-weight: 500;
}

.card a {
  display: block;
  text-align: center;
  padding: 12px;
  margin: 10px 0;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: var(--transition);
}

.card a:hover {
  background: var(--accent);
  color: white;
}

.card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: var(--gradient);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.3);
}

.card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 169, 0.5);
}

.card button:active {
  transform: translateY(0);
}

/* Галерея товарів */
.product-gallery {
  margin-bottom: 30px;
}

.main-image {
  width: 100%;
  max-width: 700px;
  height: 600px;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: var(--card);
  margin: 0 auto 20px;
  display: block;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.main-image:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.02);
}

.thumbnail-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.thumbnail {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
  box-shadow: var(--shadow);
}

.thumbnail:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--accent);
}

.thumbnail.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 111, 169, 0.2);
}

/* Галерея товару з каруселлю */
.product-gallery-wrapper {
  position: relative;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.product-gallery-carousel {
  position: relative;
  width: 100%;
  height: 450px;
  background: var(--card);
}

.product-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-slide.active {
  opacity: 1;
  z-index: 1;
}

.product-slide .main-image {
  width: 100%;
  max-width: 700px;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.product-gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 32px;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-gallery-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.product-gallery-btn.prev {
  left: 20px;
}

.product-gallery-btn.next {
  right: 20px;
}

.product-gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.product-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.product-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.product-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

/* Сторінка товару */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 30px 0;
  align-items: start;
}

.product-images-section {
  display: flex;
  gap: 20px;
}

.product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100px;
}

.thumbnail-item {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  opacity: 0.6;
}

.thumbnail-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 111, 169, 0.2);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-main-image-wrapper {
  position: relative;
  flex: 1;
  background: var(--card);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 500px;
}

.product-main-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-main-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-slide.active {
  opacity: 1;
  z-index: 1;
}

.product-main-image {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.product-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 32px;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-nav-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.product-nav-btn.prev {
  left: 20px;
}

.product-nav-btn.next {
  right: 20px;
}

/* Інформація про товар */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stars {
  color: #ffc107;
  font-size: 20px;
  letter-spacing: 2px;
}

.rating-text {
  color: var(--text);
  font-weight: 600;
}

.reviews-count {
  color: var(--text);
  opacity: 0.6;
  font-size: 14px;
}

.product-availability {
  margin: 10px 0;
}

.availability-badge {
  background: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.product-price-section {
  margin: 20px 0;
}

.product-price {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.product-buy-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.3);
  margin: 20px 0;
}

.product-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 169, 0.5);
}

.product-quantity-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--accent);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.quantity-btn {
  background: var(--accent);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.quantity-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-input {
  width: 60px;
  height: 40px;
  border: none;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.product-delivery-info {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.product-delivery-info h3 {
  margin: 0 0 15px;
  font-size: 18px;
}

.delivery-option {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.free-delivery {
  color: #4caf50;
  font-weight: 600;
}

/* Вкладки */
.product-tabs {
  display: flex;
  gap: 10px;
  margin: 40px 0 20px;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.7;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  margin-bottom: -2px;
}

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

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

.product-tab-content {
  margin-bottom: 40px;
}

.tab-panel {
  display: none;
  padding: 30px 0;
}

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

.product-description {
  line-height: 1.8;
  font-size: 16px;
}

.product-description h3 {
  margin: 0 0 15px;
  font-size: 24px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: var(--card);
  border-radius: 8px;
}

.spec-label {
  font-weight: 600;
  color: var(--text);
  opacity: 0.7;
}

.spec-value {
  font-weight: 500;
  color: var(--text);
}

/* Cusdis стилі */
#tab-reviews.tab-panel {
  /* сам блок робимо вищим, щоб менше скролити */
  padding: 12px 0;
  min-height: 520px;
}

#cusdis_thread {
  margin-top: 10px;
  min-height: 480px;
  width: 100%;
}

#cusdis_thread iframe {
  width: 100%;
  border: none;
  min-height: 480px;
}

/* Стилі для завантаження Cusdis */
#cusdis_thread:empty::before {
  content: 'Завантаження відгуків...';
  display: block;
  text-align: center;
  padding: 18px;
  color: var(--text);
  opacity: 0.6;
}

@media (max-width: 768px) {
  #tab-reviews.tab-panel {
    min-height: 420px;
  }
  #cusdis_thread {
    min-height: 380px;
  }
  #cusdis_thread iframe {
    min-height: 380px;
  }
}

body.dark #cusdis_thread {
  color: var(--text);
}

body.dark #cusdis_thread iframe {
  background: var(--card);
}

.primary {
  background: var(--gradient);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.3);
  display: block;
  margin: 30px auto;
  max-width: 300px;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 169, 0.5);
}

/* Футер */
.site-footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-top: none;
  margin: 20px;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  border-radius: 24px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.footer-info {
  color: var(--text);
  opacity: 0.7;
  font-size: 14px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.payment-logos img {
  height: 20px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

.payment-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Модальне вікно оформлення замовлення */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}

body.dark .checkout-modal {
  backdrop-filter: blur(3px);
}

.checkout-modal.show {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-content {
  background: var(--card);
  padding: 0;
  border-radius: var(--border-radius);
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.checkout-modal.show .checkout-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
  opacity: 0.7;
  transition: var(--transition);
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.close-modal:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.checkout-header {
  background: var(--gradient);
  padding: 30px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  color: white;
  text-align: center;
}

.checkout-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
}

.checkout-subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.95;
}

#checkoutForm {
  padding: 30px;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 111, 169, 0.1);
  transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.order-summary {
  margin: 30px 0;
  padding: 20px;
  background: var(--card);
  border-radius: 12px;
  border: 2px solid var(--border);
}

.order-summary h3 {
  margin: 0 0 15px;
  font-size: 18px;
  color: var(--text);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  gap: 15px;
}

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

.order-item span:first-child {
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

.order-item span:last-child {
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
}

.order-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid var(--accent);
  font-size: 20px;
  text-align: right;
  color: var(--accent);
}

.checkout-notice {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 111, 169, 0.1), rgba(118, 75, 162, 0.1));
  border-radius: 12px;
  margin: 25px 0;
  border-left: 4px solid var(--accent);
}

.notice-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.checkout-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.submit-order-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(118, 75, 162, 0.55);
  background: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
}

.submit-order-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-order-btn.mono-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.submit-order-btn.mono-green:hover:not(:disabled) {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

/* Стилі для способів доставки в оформленні замовлення */
.delivery-options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.delivery-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.delivery-option-label:hover {
  border-color: var(--accent);
  background: rgba(255, 111, 169, 0.02);
  transform: translateY(-1px);
}

.delivery-option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.delivery-option-label span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  text-align: center;
}

/* Коли радіокнопка вибрана, підсвічуємо весь блок */
.delivery-option-label:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(255, 111, 169, 0.08);
  box-shadow: 0 4px 15px rgba(255, 111, 169, 0.2);
  transform: translateY(-2px);
}

/* Промокод в оформленні */
.promo-block {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.promo-input {
  flex: 1;
  min-width: 140px;
}

.promo-apply-btn {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-apply-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.2);
}

.promo-message {
  width: 100%;
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}

.promo-remove-btn {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.25);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 10px;
}

.promo-remove-btn:hover {
  background: rgba(107, 114, 128, 0.22);
  color: #4b5563;
}

@media (max-width: 768px) {
  .banner-carousel {
    margin: 12px 10px;
    height: auto !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  .slide-content {
    display: flex !important;
    flex-direction: column !important;
  }
  
  .slide-image-wrap {
    height: 200px !important;
    border-radius: 24px 24px 0 0 !important;
  }
  
  .slide-caption {
    position: static !important;
    background: #ffffff !important;
    padding: 15px 20px !important;
    color: var(--text) !important;
    border-radius: 0 0 24px 24px !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .slide-caption h2 {
    font-size: 18px !important;
    color: var(--text) !important;
    background: var(--gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    margin-bottom: 5px !important;
  }
  
  .slide-caption p {
    font-size: 13px !important;
    color: var(--text) !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
  }
  
  .dot {
    background: rgba(0, 0, 0, 0.2);
    border: none;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px 8px;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .product-gallery-carousel {
    height: 300px;
  }
  
  .product-gallery-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    padding: 8px;
  }
  
  .product-gallery-btn.prev {
    left: 10px;
  }
  
  .product-gallery-btn.next {
    right: 10px;
  }
  
  .product-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .product-images-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .product-thumbnails {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 0;
  }
  
  .thumbnail-item {
    min-width: 70px;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }
  
  .product-main-image-wrapper {
    min-height: 300px;
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  
  .product-main-image {
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .product-main-slide {
    min-height: 100%;
  }
  
  .product-nav-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    padding: 6px;
  }
  
  .product-nav-btn.prev {
    left: 10px;
  }
  
  .product-nav-btn.next {
    right: 10px;
  }
  
  .product-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    margin: 20px -10px;
    padding: 0 10px;
  }
  
  .product-info-section {
    gap: 15px;
  }
  
  .product-title {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .product-price {
    font-size: 28px;
  }
  
  .checkout-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .checkout-header {
    padding: 25px 20px;
  }
  
  .checkout-header h2 {
    font-size: 22px;
  }
  
  #checkoutForm {
    padding: 20px;
  }
  
  .close-modal {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }
  
  .card img {
    height: 200px;
    object-fit: contain;
    background: #f9f9f9;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .card h3 {
    font-size: 15px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
  }
  
  .card .price {
    font-size: 18px;
    margin-bottom: 10px;
    gap: 5px;
  }
  
  .product-quantity-section {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  
  .quantity-selector {
    display: flex;
    flex-direction: row;
    width: auto;
    max-width: 180px;
  }
  
  .quantity-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
    flex-shrink: 0;
  }
  
  .quantity-input {
    width: 55px;
    height: 44px;
    font-size: 17px;
    flex-shrink: 0;
  }
  
  .card a,
  .card button {
    padding: 10px 12px;
    font-size: 13px;
    margin-top: 5px;
  }
  
  .thumbnail-item {
    min-width: 60px;
    width: 60px;
    height: 60px;
  }
  
  .footer-content {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  /* Цей блок тепер порожній, бо стилі перенесені в 768px для кращого охоплення */
}

/* Стилі для випадаючого списку міст з областями */
.dropdown-item {
  padding: 12px 18px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:hover {
  background: var(--bg);
  color: var(--accent);
}

.dropdown-item .city-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.dropdown-item .city-region {
  font-size: 13px;
  color: #666;
}

/* Стилі для кошика */
.cart-item {
  background: var(--card);
  padding: 20px;
  margin: 15px 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cart-item-content {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  word-wrap: break-word;
}

.cart-item-price {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item-price .price {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
}

.cart-item-price .quantity {
  color: #666;
  font-size: 16px;
}

.cart-item-price .total-price {
  color: var(--accent);
  font-size: 18px;
}

.remove-btn {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  flex-shrink: 0;
  transition: var(--transition);
  white-space: nowrap;
}

.remove-btn:hover {
  background: rgba(107, 114, 128, 0.25);
  color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.2);
}

.remove-btn:active {
  transform: translateY(0);
}

/* Адаптивність для кошика */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .cart-item-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cart-item-image {
    width: 100%;
    height: 200px;
  }
  
  .cart-item-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .remove-btn {
    width: 100%;
    padding: 14px;
  }
}

.banner-caption {
  width: calc(100% - 20px);
  max-width: 1380px;
  margin: 12px auto 16px;
  padding: 0;
  text-align: center;
}

.banner-caption-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
  border: none;
}

.banner-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.banner-size {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.banner-desc {
  font-size: 18px;
  line-height: 1.5;
  color: #1a0d28;
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

.banner-counter {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 20px;
  background: linear-gradient(135deg, rgba(255, 111, 169, 0.1), rgba(255, 216, 72, 0.1));
  padding: 12px 24px;
  border-radius: 16px;
  border-left: 4px solid var(--accent);
  display: inline-block;
}

.banner-counter span {
  font-size: 24px;
}

body.dark .banner-caption-inner {
  background: rgba(21, 21, 32, 0.95);
}

body.dark .banner-size {
  color: var(--accent);
}

body.dark .banner-desc {
  color: var(--text);
}

body.dark .banner-counter {
  background: linear-gradient(135deg, rgba(255, 111, 169, 0.15), rgba(255, 216, 72, 0.15));
}

body.dark .slide-caption h2 {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.dark .slide-caption p {
  color: var(--text);
}

@media (max-width: 768px) {
  .banner-caption {
    width: calc(100% - 20px);
    margin: 10px auto 12px;
    padding: 0 10px;
  }
  .banner-caption-inner {
    padding: 18px 16px;
  }
  .banner-title {
    font-size: 36px;
  }
  .banner-size {
    font-size: 18px;
  }
  .banner-desc {
    font-size: 16px;
  }
  .banner-counter {
    font-size: 16px;
    padding: 10px 16px;
  }
  .banner-counter span {
    font-size: 20px;
  }
}

/* Блоки категорій */
.category-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
  padding: 0 20px;
}

.category-block {
  background: var(--card);
  border-radius: 24px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.category-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.category-block:hover::before {
  transform: scaleX(1);
}

.category-block.active {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255, 111, 169, 0.3);
}

.category-block.active::before {
  transform: scaleX(1);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.category-block h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-block p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Кнопка "Показати всі товари" */
.show-all-btn {
  width: 100%;
  max-width: 1400px;
  margin: 20px auto;
  padding: 16px 32px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(255, 111, 169, 0.3);
  display: block;
}

.show-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 111, 169, 0.5);
}

.show-all-btn:active {
  transform: translateY(0);
}

/* ============================
   ПРОМО-АКЦІЯ "КУПИ 2 - ТРЕТЯ В ПОДАРУНОК"
   ============================ */

/* Головний промо-банер на головній сторінці */
.promo-banner {
  width: calc(100% - 20px);
  max-width: 1380px;
  margin: 0 auto 20px;
  padding: 24px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff3b6b 0%, #ff6fa9 35%, #ff9f43 70%, #ffd848 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(255, 59, 107, 0.4);
  position: relative;
  overflow: hidden;
  animation: promoPulse 3s ease-in-out infinite;
}

@keyframes promoPulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(255, 59, 107, 0.4); }
  50% { box-shadow: 0 16px 55px rgba(255, 59, 107, 0.6); }
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.08) 20px,
    rgba(255, 255, 255, 0.08) 40px
  );
  animation: promoShine 8s linear infinite;
  pointer-events: none;
}

@keyframes promoShine {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(80px) translateY(80px); }
}

.promo-banner-content {
  position: relative;
  z-index: 1;
}

.promo-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.promo-banner-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.promo-banner-title .promo-gift {
  display: inline-block;
  font-size: 48px;
  animation: giftBounce 1.5s ease-in-out infinite;
  margin: 0 6px;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.promo-banner-subtitle {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  opacity: 0.98;
}

.promo-banner-date {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.3);
  padding: 8px 22px;
  border-radius: 999px;
  margin-top: 8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Стікер акції на карточках товарів */
.promo-card-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 5;
  background: linear-gradient(135deg, #ff3b6b, #ff9f43);
  color: #fff;
  padding: 7px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 59, 107, 0.5);
  display: flex;
  align-items: center;
  gap: 5px;
  transform: rotate(-4deg);
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-align: center;
  max-width: 85%;
  animation: badgeWiggle 2.5s ease-in-out infinite;
}

@keyframes badgeWiggle {
  0%, 100% { transform: rotate(-4deg) scale(1); }
  25% { transform: rotate(-2deg) scale(1.03); }
  75% { transform: rotate(-6deg) scale(1.03); }
}

.card {
  position: relative;
}

/* Блок акції на сторінці товару */
.promo-product-box {
  background: linear-gradient(135deg, #fff0f4 0%, #fff7e0 100%);
  border: 3px solid transparent;
  border-radius: 22px;
  padding: 22px 24px;
  margin: 18px 0;
  position: relative;
  overflow: hidden;
  background-clip: padding-box;
}

.promo-product-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #ff3b6b, #ffd848, #ff3b6b);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.promo-product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.promo-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff3b6b, #ff9f43);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 16px rgba(255, 59, 107, 0.35);
  flex-shrink: 0;
  animation: giftBounce 1.8s ease-in-out infinite;
}

.promo-product-title {
  font-size: 22px;
  font-weight: 800;
  color: #d61f4a;
  line-height: 1.2;
  margin: 0;
}

.promo-product-date-tag {
  display: inline-block;
  margin-top: 4px;
  background: linear-gradient(135deg, #ff3b6b, #ff6fa9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.promo-product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.promo-product-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 15px;
  color: #2d1b3d;
  font-weight: 500;
  border-bottom: 1px dashed rgba(255, 59, 107, 0.2);
}

.promo-product-list li:last-child {
  border-bottom: none;
}

.promo-product-list li::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.promo-product-list li strong {
  color: #d61f4a;
  font-weight: 700;
}

/* Блок акції в кошику */
.promo-cart-banner {
  background: linear-gradient(135deg, #ff3b6b 0%, #ff6fa9 40%, #ffd848 100%);
  color: #fff;
  border-radius: 22px;
  padding: 20px 24px;
  margin: 18px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(255, 59, 107, 0.35);
}

.promo-cart-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.promo-cart-banner::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.promo-cart-content {
  position: relative;
  z-index: 1;
}

.promo-cart-emoji {
  font-size: 34px;
  display: inline-block;
  animation: giftBounce 1.4s ease-in-out infinite;
  margin-bottom: 8px;
}

.promo-cart-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
}

.promo-cart-sub {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  margin: 0;
}

/* Згадка про акцію в модалці add-to-cart */
.promo-modal-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff0f4, #fff7e0);
  border-radius: 14px;
  border: 2px solid #ffb3c6;
  text-align: left;
}

.promo-modal-note-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #d61f4a;
  font-size: 14px;
  margin-bottom: 4px;
}

.promo-modal-note-text {
  font-size: 13px;
  color: #2d1b3d;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* Темна тема для промо-блоків */
body.dark .promo-product-box {
  background: linear-gradient(135deg, rgba(255, 59, 107, 0.15) 0%, rgba(255, 216, 72, 0.12) 100%);
}

body.dark .promo-product-list li {
  color: var(--text);
  border-bottom-color: rgba(255, 59, 107, 0.3);
}

body.dark .promo-modal-note {
  background: linear-gradient(135deg, rgba(255, 59, 107, 0.18), rgba(255, 216, 72, 0.15));
  border-color: #ff6fa9;
}

body.dark .promo-modal-note-text {
  color: var(--text);
}

body.dark .checkout-promo-hint {
  background: linear-gradient(135deg, rgba(255, 59, 107, 0.2), rgba(255, 216, 72, 0.18));
  border-color: #ff6fa9;
}

body.dark .checkout-promo-hint > div:nth-child(2) {
  color: var(--text);
}

/* Адаптивність для промо */
@media (max-width: 768px) {
  .promo-banner {
    width: calc(100% - 20px);
    padding: 18px 20px;
    margin: 0 auto 16px;
    border-radius: 22px;
  }

  .promo-badge-top {
    font-size: 12px;
    padding: 5px 14px;
    margin-bottom: 10px;
  }

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

  .promo-banner-title .promo-gift {
    font-size: 32px;
  }

  .promo-banner-subtitle {
    font-size: 15px;
  }

  .promo-banner-date {
    font-size: 13px;
    padding: 6px 16px;
  }

  .promo-card-badge {
    font-size: 10px;
    padding: 5px 9px;
    border-radius: 10px;
    gap: 3px;
  }

  .promo-product-box {
    padding: 16px 18px;
    border-radius: 18px;
    margin: 14px 0;
  }

  .promo-product-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .promo-product-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .promo-product-title {
    font-size: 17px;
  }

  .promo-product-list li {
    font-size: 14px;
    padding: 9px 0 9px 28px;
  }

  .promo-cart-banner {
    padding: 16px 20px;
    border-radius: 18px;
  }

  .promo-cart-emoji {
    font-size: 28px;
  }

  .promo-cart-title {
    font-size: 17px;
  }

  .promo-cart-sub {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .promo-banner-title {
    font-size: 24px;
  }

  .promo-banner-subtitle {
    font-size: 14px;
  }
}

/* Стилі для випадаючого списку міст */
.city-select-wrapper {
  position: relative;
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  display: none;
}

.dropdown-list.show {
  display: block;
}

.dropdown-empty {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* Адаптивність для блоків категорій */
@media (max-width: 768px) {
  .category-blocks {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
    padding: 0 10px;
  }
  
  .category-block {
    padding: 20px 15px;
  }
  
  .category-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .category-block h2 {
    font-size: 20px;
  }
  
  .category-block p {
    font-size: 13px;
  }
  
  .show-all-btn {
    margin: 15px 10px;
    padding: 14px 24px;
    font-size: 16px;
  }
}
/* Стилі для посилання на Telegram */
.telegram-link {
  background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
  color: white;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.telegram-link:hover {
  background: linear-gradient(135deg, #006ba3 0%, #1a7fb8 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.telegram-link span {
  font-size: 18px;
}
/* Красива кнопка оформлення замовлення */
.checkout-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 20px 40px;
  border: none;
  border-radius: 24px;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px auto;
  max-width: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.checkout-btn:hover::before {
  left: 100%;
}

.checkout-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.6);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.checkout-btn:active {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.checkout-icon {
  font-size: 24px;
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

.checkout-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.checkout-btn:hover .checkout-arrow {
  transform: translateX(5px);
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

/* Адаптивність для кнопки */
@media (max-width: 768px) {
  .checkout-btn {
    padding: 18px 32px;
    font-size: 16px;
    max-width: 100%;
  }
  
  .checkout-icon {
    font-size: 20px;
  }
  
  .checkout-arrow {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .checkout-btn {
    padding: 16px 24px;
    font-size: 15px;
    gap: 10px;
  }
}
/* Навігація в хедері */
.header-nav {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 0;
  border: none;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:active {
  transform: none;
}

/* Активна кнопка "Про нас" */
.nav-link.active {
  color: var(--accent);
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav-link.active::after {
  width: 100%;
}
/* Сторінка "Про нас" */
.about-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

.about-section {
  margin-bottom: 50px;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}
.about-content {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}
.feature-card {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.8;
}
/* Адаптивність для сторінки "Про нас" */
@media (max-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .about-page {
    padding: 20px 10px;
  }
  
  .about-title {
    font-size: 1.5rem;
  }
  
  .about-section h2 {
    font-size: 1.4rem;
  }
}

/* Стилі для пагінації */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 0;
  flex-wrap: wrap;
}

.pagination-numbers {
  display: flex;
  gap: 5px;
  align-items: center;
}

.pagination-btn {
  padding: 10px 20px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-number {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.pagination-number:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pagination-number.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.pagination-dots {
  padding: 0 5px;
  color: var(--text);
  opacity: 0.5;
  font-size: 16px;
  font-weight: 600;
}

/* Адаптивні стилі для пагінації */
@media (max-width: 768px) {
  .pagination-wrapper {
    gap: 5px;
    margin: 30px 0;
  }
  
  .pagination-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .pagination-number {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  
  .pagination-numbers {
    gap: 3px;
  }
}

@media (max-width: 480px) {
  .pagination-wrapper {
    gap: 3px;
  }
  
  .pagination-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .pagination-number {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* Сторінка для мам з розмальовками */
.moms-page {
  padding: 40px 20px 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.16), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255, 111, 169, 0.16), transparent 60%);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  animation: momsFadeIn 0.4s ease-out;
}

.moms-logo-wrap {
  max-width: 1400px;
  margin: 20px auto 4px;
  padding: 10px 20px 0;
  display: flex;
  justify-content: center;
}

.moms-logo-wrap .logo {
  font-size: 26px;
}

.moms-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-bottom: 32px;
}

.moms-hero-text h1 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.moms-hero-text p {
  margin: 0 0 14px;
  font-size: 16px;
}

.moms-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.moms-benefits li::before {
  content: "• ";
  color: var(--accent);
  font-weight: 700;
}

.moms-hero-note {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
}

.moms-hero-note p {
  margin: 0;
}

.moms-how {
  margin-bottom: 28px;
}

.moms-how h2,
.moms-list-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.moms-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.moms-step {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.moms-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.moms-list-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666;
}

.moms-coloring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 10px;
}

.moms-coloring-card {
  display: block;
  background: var(--card);
  border-radius: 18px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.moms-coloring-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.moms-coloring-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.moms-coloring-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px 12px;
}

.moms-coloring-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  max-height: 120px;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.moms-coloring-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moms-coloring-zoom-hint {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e5e7eb;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.moms-coloring-info h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.moms-coloring-size {
  margin: 0 0 4px;
  font-size: 13px;
  color: #555;
}

.moms-coloring-price {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.moms-coloring-note {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.moms-coloring-card:has(input[type="checkbox"]:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 111, 169, 0.25);
}

.moms-coloring-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0), rgba(236, 72, 153, 0.6)) border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.moms-coloring-card:hover::after,
.moms-coloring-card:has(input[type="checkbox"]:checked)::after {
  opacity: 0.9;
}

.moms-total {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(148, 163, 184, 0.8);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.moms-sticky-shell {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  padding: 0 16px;
  z-index: 2000;
  pointer-events: none;
}

.moms-sticky-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.7);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.moms-sticky-bar--visible {
  opacity: 1;
  transform: translateY(0);
}

.moms-sticky-total {
  font-size: 13px;
  font-weight: 500;
}

.moms-sticky-btn {
  margin: 0;
  max-width: 260px;
  padding: 10px 18px;
  font-size: 15px;
  box-shadow: none;
}

@media (max-width: 480px) {
  .moms-sticky-shell {
    bottom: 10px;
    padding: 0 10px;
  }

  .moms-sticky-bar {
    padding: 8px 10px;
  }

  .moms-sticky-total {
    font-size: 12px;
  }

  .moms-sticky-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Превʼю розмальовки (лайтбокс) */
.moms-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(6px);
}

.moms-preview-overlay.show {
  opacity: 1;
  visibility: visible;
}

.moms-preview-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.35), rgba(15, 23, 42, 0.98));
}

.moms-preview-inner img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.moms-preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.moms-preview-close:hover {
  transform: scale(1.05);
  background: rgba(31, 41, 55, 0.95);
}

@media (max-width: 600px) {
  .moms-preview-inner {
    max-width: 94vw;
    max-height: 84vh;
  }

  .moms-preview-inner img {
    max-width: 94vw;
    max-height: 84vh;
  }
}

.moms-promo {
  margin-bottom: 26px;
}

.moms-promo-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 6px;
  scroll-snap-type: x mandatory;
}

.moms-promo-strip::-webkit-scrollbar {
  height: 6px;
}

.moms-promo-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.7);
  border-radius: 999px;
}

.moms-promo-item {
  min-width: 220px;
  max-width: 280px;
  border-radius: 18px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moms-promo-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.moms-promo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.32);
}

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

@media (max-width: 900px) {
  .moms-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .moms-page {
    padding-top: 24px;
  }

  .moms-hero-text h1 {
    font-size: 26px;
  }

  .moms-coloring-inner {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 8px;
  }
}
