


/* Світла тема */
:root.light-theme {
  --border: #e0e0e0;
  --bg: #f9f9fa;
  --panel: #ffffff;
  --muted: #6b6b6b;
  --gold: #b8952e;
  --gold-soft: #d4af37;
  --text: #1a1a1a;
  --card: #ffffff;
  --glass: rgba(250, 250, 250, 0.7);
  --bg-main: #f5f5f7;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --accent: #1a7fb9;
  --accent-glow: rgba(26, 127, 185, 0.4);
  --bg-dark: rgba(240, 240, 240, 0.85);
}

/* Темна тема */
:root {
  --border: #222;
  --bg: #0e0f11;
  --panel: #131316;
  --muted: #b5b5b5;
  --gold: #d4af37;
  --gold-soft: #f5c84c;
  --text: #ffffff;
  --card: #101113;
  --glass: rgba(255,255,255,0.02);
  --radius: 14px;
  --trans: .22s;
  --bg-main: #0b0b0d;
  --bg-glass: rgba(15,15,18,.85);
  --accent: #229ED9;
  --accent-glow: rgba(34,158,217,0.55);
  --bg-dark: rgba(18,18,18,0.85);
}

* {
  box-sizing: border-box;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  color: var(--gold);
  background: var(--glass);
}

.sun-icon, .moon-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* У темній темі — показуємо місяць, у світлій — сонце */
body:not(.light-theme) .sun-icon { display: none; }
body.light-theme .moon-icon { display: none; }
html, body {
  
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg-main); /* або просто var(--bg) */
  color: var(--text);
  font-family: Inter, system-ui, Arial;
}

a {
  color: inherit;
  text-decoration: none;
}

#bgLights {
  position: fixed;
  inset: 0;
  width: 100%;
  pointer-events: none;
}

.container {
  max-width: 1380px;
  margin: 0 auto;
  padding:  28px;
}

/* header */
header {
  position: sticky;
  top: 0;
  z-index: 1001; /* важливо! */
  height: 80px;
  padding: 0 15px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(800px 200px at 20% -80%, rgba(212,175,55,.18), transparent 60%), rgba(11,11,13,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold);
}

.brand h1 {
  margin: 8px 0 0 0;
  font-family: Cinzel, serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--gold);
}

.brand:hover h1 {
  color: #ffdb70;
}

.logo {
  width: 200px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(212,175,55,.25));
}

.logo svg {
  fill: var(--gold);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .25s ease;
}

nav a:hover {
  color: var(--gold);
}

nav a:hover::after {
  width: 100%;
}

header .controls {
  display: flex;
  align-items: center;
  gap: 12px; /* або margin між елементами */
  height: 100%;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.cart-btn svg {
  width: 26px;
  height: 26px;
  color: var(--muted);
  transition: transform .2s ease, color .2s ease;
}

.cart-btn:hover svg {
  color: var(--gold);
  transform: scale(1.08);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.worktime {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.worktime-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(212,175,55,.35));
}

.worktime-text {
  display: flex;
  flex-direction: column;
}

.worktime-label {
  font-size: 12px;
  color: var(--muted);
}

.worktime-hours {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}

.worktime:hover .worktime-icon {
  transform: rotate(-10deg);
  transition: .25s ease;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  z-index: 1;
}

.hero .title {

  font-size: 48px;
  color: var(--gold);
  margin: 0;
}

.hero .lead {
  color: var(--muted);
  max-width: 520px;
}

.hero-art {
  height: 340px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: brightness(0.8) saturate(0.5);
}

.hero-btn {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid rgba(202, 168, 75, 0.14);
  color: var(--gold);
  cursor: pointer;
}
.hero-btn:hover{
  background: transparent;
  border: 2px solid rgba(221, 173, 41, 0.617);
  color: var(--gold);
}
.categories {
  margin-top: 30px;
  text-align: center;
}
h2{
  font-family: Cinzel, serif;
    color: var(--gold);
    font-size: 24px;
}


.categories h3 {
  font-family: Cinzel, serif;
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 1px;
  margin-bottom: 28px;
}


/* products grid */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.card .img {
    height: 110px;
    border-radius: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.productsoff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.card {
  background: var(--card);

  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform var(--trans), box-shadow var(--trans);
}
.card a {
    background: var(--card);
    display: flex;
    cursor: pointer;
    transition: transform var(--trans), box-shadow var(--trans);
    flex-direction: column;
    align-content: center;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.card .img {
  height: 110px;
  border-radius: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.card .meta {
  display: flex;
  align-items: center;
  margin-top: 12px;
  flex-direction: column;
}

.card .title {
  color: var(--muted);
  font-weight: 600;
  margin: 10px 0 4px;
}

.card .price {
  color: var(--gold);
  font-size: 19px;
  font-weight: 700;
  margin: 10px 0;
}

/* drawer cart */
.drawer {
  position: fixed;
  right: 18px;
  top: 86px;
  width: 380px;
  max-width: 94vw;
  background: linear-gradient(180deg, var(--panel), #0b0b0b);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
  transform: translateX(120%);
  transition: transform .28s ease;
  z-index: 60;
}

.drawer.open {
  transform: translateX(0);
}

.drawer h4 {
  font-family: Cinzel, serif;
  color: var(--gold);
  margin: 0 0 10px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.cart-item .mini {
  width: 72px;
  height: 52px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}

.checkout {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid rgba(202,168,75,0.12);
  color: var(--gold);
  background: transparent;
  width: 100%;
  cursor: pointer;
}

.cta {
  background: rgba(202,168,75,0.15);
  border: 1px solid rgba(202,168,75,0.4);
  color: var(--gold);
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: .25s;
  text-decoration: none;
}

.cta:hover {
  background: rgba(202,168,75,0.25);
  border-color: rgba(202,168,75,0.6);
  transform: translateY(-2px);
}

/* product page */
.product-gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-width: 420px;
}

.gallery-main,
.main-photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.gallery-main img,
.main-photo-wrapper img,
.main-photo-wrapper iframe {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumb,
.thumbs img {
  width: 64px;
  height: 64px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
}

.thumb.active,
.thumbs img.active {
  opacity: 1;
  outline: 2px solid var(--gold);
}

.video-thumb {
  background: #000;
  color: #ffd447;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  color: #ffd447;
  font-size: 22px;
}

.product-page {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  margin-top: 36px;
}

.details h2,
.product-info h1 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
}


.rating {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffb400;
  font-size: 13px;
}

.add-btn {
  margin: 23px 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(202,168,75,0.25), rgba(202,168,75,0.05));
  border: 2px solid rgba(202,168,75,0.45);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(202,168,75,0.25), inset 0 0 0 rgba(255,255,255,0);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  width: auto;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(202,168,75,0.35), inset 0 0 8px rgba(255,255,255,0.06);
}

.add-btn:active {
  transform: scale(0.97);
}

.add-btn.pulse {
  animation: goldPulse 1.6s ease-out infinite;
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(202,168,75,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(202,168,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(202,168,75,0); }
}

.option-group {
  margin-bottom: 22px;
  position: relative;
}

.option-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #e5c76b;
}

.color-list {
  display: flex;
  gap: 12px;
}

.color-item {
  min-width: 44px;
  height: 44px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ddd;
  background: #1b1b1b;
  border: 1px solid #1f1f1f;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.color-item:hover {
  border-color: #000;
  transform: translateY(-1px);
  background: rgba(229,199,107,0.12);
  color: #e5c76b;
}

.color-item.active {
  background: #323232;
  color: #fff;
  border-color: #c4aa17;
  box-shadow: 0 0 14px rgba(229,199,107,0.4);
}

.custom-select {
  position: relative;
  user-select: none;
}

.select-trigger {
  height: 46px;
  width: 55%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(229,199,107,0.4);
  border-radius: 12px;
  color: #e5c76b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.select-trigger:hover {
  box-shadow: 0 0 12px rgba(229,199,107,0.4);
}

.arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.custom-select.open .arrow {
  transform: rotate(225deg);
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 55%;
  background: #121212;
  border: 1px solid rgba(229,199,107,0.3);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 20;
}

.custom-select.open .select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.select-option {
  padding: 12px 16px;
  font-size: 14px;
  color: #ddd;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.select-option:hover {
  background: rgba(229,199,107,0.12);
  color: #e5c76b;
}

.select-option + .select-option {
  border-top: 1px solid rgba(255,255,255,0.05);
}

.specs {
  margin-top: 24px;
  background: var(--panel);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.specs dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px;
  margin: 0;
}

@media (min-width: 768px) {
  .specs dl {
    grid-template-columns: 1fr 1fr;
  }
}

.specs dt,
.specs dd {
  display: flex;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
}

.specs dt {
  color: #8d8d8d;
}

.specs dd {
  font-weight: 500;
}

/* reviews */
.reviews {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.reviews-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.rating-value {
  font-size: 22px;
  font-weight: 700;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review {
  background: rgba(255,255,255,0.02);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  transition: border .2s ease, transform .2s ease;
  animation: fadeUp .25s ease both;
}

.review:hover {
  border-color: #ff9800;
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.review-author {
  font-weight: 600;
}

.review-stars {
  color: #ffb400;
}

.review-text {
  font-size: 14px;
  line-height: 1.4;
  opacity: .9;
}

.reviews-more {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px dashed #333;
  border-radius: 8px;
  color: #ff9800;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, border .2s ease;
}

.reviews-more:hover {
  background: rgba(255,152,0,.08);
  border-color: #ff9800;
}

.reviews-count {
  color: #777;
  font-size: 12px;
}

.availability {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
}

.availability.in-stock {
  color: #4caf50;
}

.availability.out-of-stock,
.availability.out-stock {
  color: #f44336;
}

.desc-list {
  margin: 10px 0 12px;
  padding-left: 18px;
}

.desc-list li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.desc-note {
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

/* similar / recommended */
.similar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 14px;
}

.recommended-item {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.recommended-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.recommended-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.recommended-item p {
  font-size: 0.95rem;
  color: #ddd;
}

.recommended-item p.price {
  color: #ffbb00;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 10px;
}

.recommended-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 10px 0;
}

section.recommended {
  margin-top: 50px;
}

section.recommended h2 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 25px;
  font-family: 'Cinzel', serif;
  text-align: center;
  letter-spacing: 1px;
}

/* about / why / promo */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 48px 20px;
}

.about h4,
.why h4 {
  font-family: Cinzel, serif;
  color: var(--gold);
  font-size: 22px;
  margin: 0;
}

.lead {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
  font-size: 15px;
}

.feature-list {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(202,168,75,0.06);
  transition: background var(--trans), transform var(--trans);
}

.feature:hover {
  background: rgba(202,168,75,0.05);
  transform: translateY(-3px);
}

.feature .icon {
  font-size: 20px;
  color: var(--gold);
  margin-top: 2px;
}

.feature strong {
  color: #e9e5d6;
  font-size: 15px;
}

.feature .muted {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.why ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.why ul li {
  margin-bottom: 6px;
}

.promo {
  margin: 60px 20px;
  padding: 40px 32px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(202,168,75,0.04));
  border: 1px solid rgba(202,168,75,0.08);
  box-shadow: 0 0 28px rgba(202,168,75,0.08);
  backdrop-filter: blur(6px);
  transition: transform .3s, box-shadow .3s;
}

.promo:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(202,168,75,0.12);
}

.promo h3 {
  font-family: Cinzel, serif;
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

/* search */
.search-desktop {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.search-desktop input {
  width: 100%;
  height: 42px;
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 999px;
  padding: 0 44px 0 16px;
  color: #fff;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.search-desktop input:hover{
   border: 1.5px solid #4e4e4e;
}

.search-desktop input::placeholder {
  color: var(--muted);
}

.search-desktop input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(202,168,75,.15);
}

.search-desktop button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.search-desktop button:hover {
  color: var(--gold);
  background: rgba(255,255,255,.04);
}

.search-results {
  position: absolute;
  top: calc(70px + 10px); /* висота header + відступ */
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 90vw);
  background: #111;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 999999; /* тепер працює! */
  max-height: 70vh;
  overflow-y: auto;
}




.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease;
  border-radius: 6px;
}

.search-item:hover {
  background: rgba(202,168,75,.08);
}

.search-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.search-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.3;
}

.search-title mark {
  background: #f5d76e;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.search-meta {
  font-size: 12px;
  color: #aaa;
}

.search-price {
  font-weight: bold;
  color: #f5d76e;
  font-size: 14px;
}

.search-empty {
  padding: 12px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.search-empty span {
  color: #f5d76e;
  cursor: pointer;
  margin: 0 4px;
  text-decoration: underline;
}

.search-empty span:hover {
  color: #ffd700;
}

/* mobile menu */
.burger {
  width: 25px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  margin-left: 20px;
  z-index: 1001;
  position: relative;
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #949494;
  border-radius: 3px;
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

#mobileMenu {
  
  display: flex;
}

@media (max-width: 768px) {
  header nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  #mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    background: #0b0b0b;
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    flex-direction: column;
    padding: 100px 20px 20px;
    transform: translateX(110%);
    transition: 0.3s ease;
    z-index: 1000;
  }
.gallery-arrow {
  display: none;
}
  #mobileMenu.open {
    transform: translateX(0);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .product-page {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-gallery {
    max-width: 100%;
  }

  .add-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 16px;
  }

  .reviews-more {
    font-size: 15px;
    padding: 14px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .promo {
    padding: 32px 20px;
  }

  .promo h3 {
    font-size: 22px;
  }

  .similar {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  section.recommended h2 {
    font-size: 1.7rem;
  }

  @media (max-width: 480px) {
    .similar {
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .recommended-item img {
      height: 100px;
    }

    section.recommended h2 {
      font-size: 1.5rem;
    }
  }

  header {
    display: flex;
    height: auto;
   position: sticky;
  top: 0;
  z-index: 1001;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .brand {
    order: 1;
    flex: 1;
  }

  .brand img {
    width: 180px;
    height: auto;
  }

  .burger {
    order: 2;
  }

  .controls {
    order: 3;
  }

  .search-desktop {
    order: 4;
    width: 100%;
  }

  .search-results {
    position: fixed;
    top: 120px;
    height: 52vh;
    max-height: 72vh;
    background: linear-gradient(180deg, #111, #0b0b0b);
    border-radius: 22px 22px 0 0;
    padding: 10px 12px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -20px 40px rgba(0,0,0,.6);
    z-index: 9999;
  }

  .search-results::before {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin: 6px auto 10px;
    border-radius: 2px;
    background: rgba(255,255,255,.2);
  }

  .search-item {
    padding: 14px 12px;
  }

  .search-item-title {
    font-size: 15px;
  }

  .search-item-price {
    font-size: 14px;
  }

  .drawer {
    top: 130px;
  }
}



/* Планшети та мобільні у горизонтальній орієнтації */
@media (max-width: 1000px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Мобільні (вертикальна орієнтація) */
@media (max-width: 768px) {
 /* Сітка: завжди 2 колонки, навіть на 320px */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px; /* зменшено для малих екранів */
  margin-top: 20px;
  padding: 0 8px; /* внутрішній відступ, щоб не торкатися країв */
}

/* Картка товару */
.card {
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: auto;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}



/* Зображення */
.card .img {
  width: 100%;
  height: 80px; /* зменшено для економії місця */
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: 6px;
}

/* Назва */
.card .title {
  display: flex;
  justify-content: center;
  font-size: 12px; 
  font-weight: 700;/* дрібніше, але читабельне */
  line-height: 1.3;
  color: var(--muted);
  margin: 4px 0 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* Ціна */
.card .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  
}

/* Наявність */
.card .stock {
  font-size: 11px;
  font-weight: 500;
}
}


@media (max-width: 560px) {
  .hero .title {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .similar {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 600px) {
  .similar {
    grid-template-columns: 1fr;
  }
}

/* micro interactions */
.glow {
  box-shadow: 0 0 18px rgba(202,168,75,0.06);
}

.pulse {
  animation: pulse .9s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* footer */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1 1 250px;
  margin: 20px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-section p,
.footer-section li,
.footer-section a {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: #e6b800;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-socials a {
  display: flex;
  margin-right: 10px;

  background-color: #333;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.3s;
}

.footer-socials a:hover {
  background-color: #c09302;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #aaa;
  border-top: 1px solid #333;
  padding-top: 15px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .footer-section {
    margin: 10px 0;
    text-align: center;
    flex: 1px;
    margin: 1px;
  }

  .footer-socials a {
    margin: 5px;
  }
}

/* products grid responsive */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.product-card {
  border: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}

.load-more {
  margin: 30px auto;
  display: block;
  padding: 12px 24px;
  cursor: pointer;
}

.sku {
  color: #e70d0d;        /* "Код:" — білий */
}

.sku-value {
  color: #ffffff;     /* SKU — червоний */
  font-weight: 600;
}

.price {
  font-size: 26px;
  color: var(--gold);
  font-weight: 800;
}
.price-row{
  margin-top: 15px;
  margin-bottom: 30px;
}
.stock.in-stock {
  color: #1e9922; /* зелений */
}

.stock.out-stock {
  color: #bf1307; /* червоний */
}


.products .img {
  width: 100%;      
  height: auto;        
  max-height: 200px;    
  object-fit: contain;    
  border-radius: 5px;
  display: block;
}
.after_info{
  margin: 30px;
}
.after_info h4{
  font-family: Inter, system-ui, Arial;
  font-size: 19px;
  color: var(--gold);
  margin-bottom: 12px;
}
.availability {
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0;
}

.in-stock { color: #1abc9c; }
.out-stock { color: #e74c3c; }


/* ===== Recommended Section ===== */
.recommended {
  margin: 40px 0;
}

.recommended h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.similar {
 display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.recommended-item {
  background: #101113; /* темний фон під стиль сайту */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  text-align: center;
}

.recommended-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 10px;
}

.recommended-item img {
     width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.recommended-item p {
 margin-top: 8px;
    color: var(--muted);
}

.recommended-item p:last-child {
     color: var(--gold);
    font-weight: 700;
    margin-top: 6px;
}

.recommended-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.recommended-item:hover img {
  transform: scale(1.05);
}
.stars{
  color: #ffb400;
}
/* Адаптивність */
@media (max-width: 768px) {
  
  .recommended-item img {
    height: 120px;
  }
  #lightboxContent { max-width:90vw; }
}


/* === ГАЛЕРЕЯ ЗІ СВАЙПОМ === */
/* Галерея */
.product-gallery { position: relative; width: 100%; max-width: 800px; height: max-content; }
.gallery-track { position: relative; overflow: hidden; }
.gallery-slide { display: none; text-align: center; }
.gallery-slide img, .gallery-slide iframe { max-width: 100%; max-height: 70vh; cursor: pointer;border-radius: 10px; }

/* Кнопки */
.gallery-arrow {  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
  }
.prev { left: 10px; }
.next { right: 10px; }

/* Тумбнейли */
.thumbs { text-align: center; margin-top: 10px; }
.thumb { width: 60px; height: 60px; display: inline-block; margin: 3px; background-size: cover; background-position: center; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: #000; }
.video-thumb { position: relative; }
.video-thumb .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 20px; }

/* Lightbox */
.lightbox { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); justify-content:center; align-items:center; z-index:9999; }
.lightbox.show { display:flex; }
.lightbox-close { position:absolute; top:10px; right:20px; font-size:30px; color:#fff; cursor:pointer; }
#lightboxContent { max-width:43vw; max-height:90vh; overflow: visible; touch-action: none; }
#lightboxContent img { cursor: grab; max-width: 100%; max-height: 100%; transform-origin: center center; transition: transform 0.1s ease; }
/* Адаптивність */
@media (max-width: 768px) {
 
  #lightboxContent { max-width:90vw; }
}

.search-desktop {
  position: relative;
   z-index: 10;
}


.search-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #202020;
}

.search-item:hover {
  background: #030303;
}

.search-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.search-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.totalhtml{
  padding:  0 30px;
}


.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}
.cart-drawer.open {
  right: 0;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.mini {
  width: 60px;
  height: 60px;
  background-size: cover;
  border-radius: 4px;
}

.drawerbtn{

  background:none;border:none;font-size:1.5rem;cursor:pointer
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  margin: -20px -20px 20px -20px; /* компенсує внутрішній padding кошика */
  /* background: white; */
  position: sticky;
  top: 0;
  z-index: 10;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text); /* або #333, якщо немає змінної --text */
}

#closeCart.drawerbtn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted); /* або #999 */
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

#closeCart.drawerbtn:hover {
  color: var(--gold); /* або #d4af37, червоний, тощо */
  background-color: rgba(0,0,0,0.03);
}



/* ========== Підтримка (Telegram FAB) ========== */
/* ========== Віджет онлайн-підтримки ========== */
.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Кнопка FAB */
.support-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold, #d4af37);
  color: white;
  border: none;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25),
    0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
  animation: float 3s ease-in-out infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* лишаємо для z-index, але не для іконок */
}

.support-fab:hover {
  transform: scale(1.08);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.support-fab:active {
  transform: scale(0.95);
}

/* Плаваюча анімація */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== Анімація зміни іконки: чат ↔ хрестик ========== */
.fab-icon {
  display: block;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  position: absolute;
 
  width: 65%;
  height: 65%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: 24px; /* регулюйте розмір тут */
}

/* Чат-іконка (відкрита) */
.fab-icon.open {
  opacity: 1;
  color: white;
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
}

/* Хрестик (закрита) */
.fab-icon.close {
  opacity: 0;
  color: white;
  font-size: 28px;
  line-height: 1;
  font-weight: bold;
}

/* Активний стан: показуємо хрестик, ховаємо чат */
.support-widget.active .fab-icon.open {
  opacity: 0;
  
}

.support-widget.active .fab-icon.close {
  opacity: 1;
  
}
/* ========== Панель підтримки (онлайн-чат) ========== */
.support-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 280px;
  background: var(--card); /* темний фон, як у карточок */
  border: 1px solid rgba(212, 175, 55, 0.15); /* легка золота обводка */
  border-radius: 16px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 4px 12px rgba(212, 175, 55, 0.1);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition:
    opacity 0.3s cubic-bezier(0.2, 0, 0, 1),
    transform 0.3s cubic-bezier(0.2, 0, 0, 1),
    visibility 0.3s step-end;
  padding: 16px;
  pointer-events: none;
  color: #eee;
}

.support-widget.active .support-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.3s cubic-bezier(0, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0, 0, 0.2, 1),
    visibility 0s;
  pointer-events: auto;
}

.support-header {
  margin-bottom: 12px;
  text-align: center;
}

.support-header span {
  font-weight: 600;
  font-size: 16px;
  color: var(--gold); /* золотий, як у заголовків */
  display: block;
  font-family: 'Cinzel', serif; /* як у всьому сайті */
}

.support-header small {
  font-size: 12px;
  color: var(--muted); /* сірий текст */
  display: block;
  margin-top: 2px;
  font-family: Inter, system-ui, Arial;
}

.support-action {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12); /* золотий акцент з прозорістю */
  transition: all 0.25s ease;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(212, 175, 55, 0.2);
  font-family: Inter, system-ui, Arial;
}

.support-action:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
  color: #fff;
}

.support-action svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
}
/* ========== Кнопка "Прокрутити вгору" ========== */
#scrollTopBtn {
  position: fixed;
  bottom: 100px;
  right: 25px;
  
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #dedede;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1040;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background: rgb(43, 43, 43);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#scrollTopBtn:active {
  transform: translateY(0);
}

#scrollTopBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========== Адаптація для мобільних ========== */
@media (max-width: 768px) {
  .support-widget {
    bottom: 16px;
    right: 16px;
  }

  .support-fab {
    width: 56px;
    height: 56px;
    animation: none;
  }

  .support-panel {
    width: 240px;
    bottom: 68px;
    padding: 14px;
  }

  #scrollTopBtn {
    bottom: 84px;
    right: 16px;
    
  }
}

@media (max-width: 480px) {
  .support-panel {
    
    max-width: 280px;
    right: 35px;
  }
}


/* --- Сітка товарів --- */
#productsGrid {
  display: grid;
  gap: 20px;
 
}

/* Десктоп: 4 колонки */
@media (min-width: 1024px) {
  #productsGrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Планшет: 3 колонки */
@media (min-width: 768px) and (max-width: 1023px) {
  #productsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Мобільний: 2 колонки (включаючи 320px) */
@media (max-width: 767px) {
  #productsGrid {
    grid-template-columns: repeat(2, 1fr);
    
    gap: 16px;
  }
}

/* --- Помилки та пусті стани --- */
.no-products,
.error {
  grid-column: 1 / -1;
  text-align: center;
  color: #aaa;
  font-style: italic;
  margin: 30px 0;
}

/* --- Карточка товару --- */
.card {
  background: #0f0f14;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: #333;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* --- Зображення --- */
.card-image {
  background: #121218;
  
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 130px; /* трохи менше для мобільних */
}
.img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: contrast(1.1) brightness(1.05);
  transition: transform 0.3s ease;
}
.card:hover .img {
  transform: scale(1.03);
}

/* --- Текстовий блок --- */
.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  margin: 0 0 12px;
  /* Гарантовано показуємо 2 рядки, але не зрізаємо текст */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* -webkit-box-orient: vertical; */
  overflow: hidden;
  word-break: break-word;
}

/* На дуже малих екранах (≤320px) — трохи більший шрифт */
@media (max-width: 320px) {
  .title {
    font-size: 14px;
    line-height: 1.4;
  }
  .card-image {
    min-height: 120px;
    padding: 12px;
  }
  .img {
    max-height: 90px;
  }
  .card-body {
    padding: 12px;
  }
}

/* --- Статус наявності --- */
.stock {
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 14px;
  color: #aaa;
  gap: 6px;
}
.stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.in-stock::before {
  background: #4caf50;
}
.out-stock::before {
  background: #f44336;
}

/* --- Кнопка "Перейти до товару" --- */
.btn-detail {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--gold, #d4af37);
  border: 1px solid #333;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-detail:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold, #d4af37);
  color: #fff;
}

/* Адаптація кнопки на мобільних */
@media (max-width: 320px) {
  .btn-detail {
    font-size: 13px;
    padding: 9px;
  }
}
/* Список кольорів */
.color-list {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}



.color-item.active {
  border-color: var(--gold);
  background: rgba(202, 168, 75, 0.1);
  color: var(--gold);
}

.color-item.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

/* Закреслення (опціонально) */
.color-item.disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  right: 2px;
   color: var(--gold);
  height: 1px;
  background: #333;
  transform: rotate(-45deg);
}

.select-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  color: #999;
}/* Гарантовано підняти хедер і меню над усім */

/* ========== FAQ SECTION ========== */
.faq-section {
  padding: 60px 0;
  background: var(--bg-dark, #0a0a0a);
  border-top: 1px solid var(--border, #2a2a2a);
  border-bottom: 1px solid var(--border, #2a2a2a);
}

.faq-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 50px;
  position: relative;
}

.faq-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto 0;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-item {
  background: var(--card-bg, #1a1a1a);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  transform: translateX(5px);
}

.faq-question {
  width: 100%;
  padding: 22px 25px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--text, #fff);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: background 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-question:focus {
  outline: 2px solid var(--gold);
}

.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 12px;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--gold);
  transform: rotate(360deg);
}

.faq-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 25px 25px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--muted, #aaa);
}

.faq-answer ul {
  margin-left: 25px;
  margin-bottom: 15px;
  color: var(--muted, #aaa);
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer a {
  color: var(--gold);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.faq-answer a:hover {
  opacity: 0.8;
}

.faq-answer strong {
  color: #fff;
}

/* Мобільна версія */
@media (max-width: 768px) {
  .faq-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .faq-question {
    font-size: 1.1rem;
    padding: 18px 20px;
  }

  .faq-number {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }

  .faq-icon {
    width: 32px;
    height: 32px;
  }

  .faq-answer {
    padding: 0 20px 20px;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .faq-number {
    margin-right: 0;
  }
}
/* ========== БЛОК ПЕРЕВАГ ========= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding:  20px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}

.advantage-item {
  text-align: center;
  
}
.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1);
}

.advantage-icon svg {
  width: 36px;
  height: 36px;
}

.advantage-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.advantage-description {
  color: #e0e0e0;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Адаптивність */
@media (max-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .advantage-item {
    padding: 25px 15px;
  }
  
  .advantage-icon {
    width: 56px;
    height: 56px;
  }
  
  .advantage-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .advantage-title {
    font-size: 18px;
  }
  
  .advantage-description {
    font-size: 14px;
  }
}


/* Додатковий ефект для іконок */
.advantage-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(45deg, transparent 0%, transparent 50%, rgba(255, 215, 0, 0.05) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}






/* ========== PRODUCT GRID ========== */
/* Рекомендовані товари - повноцінна сітка */
#recommendedProductsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px 0;
}

/* Планшети: 1024px - 769px */
@media (max-width: 1024px) and (min-width: 769px) {
  #recommendedProductsGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Мобільні: до 768px (мінімум 2 колонки) */
@media (max-width: 768px) {
  #recommendedProductsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  
  }
}

/* ========== ГОРИЗОНТАЛЬНИЙ СКРОЛ В ОДИН РЯДОК ========== */

/* Секція з горизонтальним скролом - МЕНША за рекомендовані */
.horizontal-scroll-section {
  position: relative;
  max-width: 90%;
  margin: 40px auto;
  padding: 0 80px; /* Місце для стрілок */
  overflow: visible;
}

/* Заголовок секції */
.horizontal-scroll-section .section-header {
  margin-bottom: 25px;
  text-align: center;
}

.horizontal-scroll-section .section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  position: relative;
  display: inline-block;
}

.horizontal-scroll-section .section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold, #ffd700);
  border-radius: 3px;
}

/* Контейнер з товарами - ОДИН ГОРИЗОНТАЛЬНИЙ РЯДОК */
#saleProductsGrid,
#newProductsGrid {
  display: flex;
  flex-direction: row;
  gap: 24px;
  overflow-x: auto; /* Дозволяє ручний скрол */
  overflow-y: hidden;
  scroll-behavior: smooth; /* ПЛАВНИЙ СКРОЛ */
  scroll-snap-type: x mandatory; /* Притягування до карток */
 
  padding: 15px 0 25px 0;
  scrollbar-width: none; /* Ховаємо скроллбар Firefox */
  -ms-overflow-style: none; /* Ховаємо скроллбар IE/Edge */
}

/* Ховаємо скроллбар WebKit */
#saleProductsGrid::-webkit-scrollbar,
#newProductsGrid::-webkit-scrollbar {
  display: none;
}

/* Картки в горизонтальному рядку */
#saleProductsGrid .product-card,
#newProductsGrid .product-card {
  flex: 0 0 auto;
  width: 200px; /* Фіксована ширина */
  scroll-snap-align: start; /* Притягування до початку */
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), /* ПЛАВНА АНІМАЦІЯ */
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ефект при наведенні на картку */
#saleProductsGrid .product-card:hover,
#newProductsGrid .product-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Стрілки посередині секції (по боках контейнера) */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.15); /* Золотий акцент */
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* ПЛАВНИЙ ПЕРЕХІД */
  z-index: 100;
  padding: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
}

.scroll-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.scroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.scroll-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.scroll-btn:hover:not(:disabled) svg {
  transform: translateX(2px);
}

.scroll-btn.scroll-prev:hover:not(:disabled) svg {
  transform: translateX(-2px);
}

/* Ліва стрілка */
.scroll-prev {
  left: 0;
}

/* Права стрілка */
.scroll-next {
  right: 0;
}

/* Градієнтні оверлеї для вказівки на можливість скролу */
#saleProductsGrid::before,
#newProductsGrid::before,
#saleProductsGrid::after,
#newProductsGrid::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 10;
}

#saleProductsGrid::before,
#newProductsGrid::before {
  left: 0;
  background: linear-gradient(to right, #0a0a0a 0%, transparent 100%);
}

#saleProductsGrid::after,
#newProductsGrid::after {
  right: 0;
  background: linear-gradient(to left, #0a0a0a 0%, transparent 100%);
}

/* Адаптивність: змінюємо ширину карток */
@media (max-width: 1024px) {
  #saleProductsGrid .product-card,
  #newProductsGrid .product-card {
    width: 260px; /* 3 картки на планшеті */
  }
  .scroll-btn { width: 46px; height: 46px; }
  .scroll-btn svg { width: 22px; height: 22px; }
}

@media (max-width: 768px) {
  .horizontal-scroll-section {
    padding: 0 30px;
  }
  
  #saleProductsGrid .product-card,
  #newProductsGrid .product-card {
    width: 240px; /* 2 картки на телефоні */
  }
  .scroll-btn { width: 42px; height: 42px; }
  .scroll-btn svg { width: 20px; height: 20px; }
  .scroll-prev { left: 10px; }
  .scroll-next { right: 10px; }
  
  #saleProductsGrid::before,
  #newProductsGrid::before,
  #saleProductsGrid::after,
  #newProductsGrid::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .horizontal-scroll-section {
    padding: 0 18px;
    margin: 30px auto;
  }
  
  .horizontal-scroll-section .section-header h2 {
    font-size: 24px;
  }
  
  #saleProductsGrid .product-card,
  #newProductsGrid .product-card {
    width: 220px;
  }
  .scroll-btn { width: 38px; height: 38px; }
  .scroll-btn svg { width: 18px; height: 18px; }
  .scroll-prev { left: 5px; }
  .scroll-next { right: 5px; }
  
  #saleProductsGrid::before,
  #newProductsGrid::before,
  #saleProductsGrid::after,
  #newProductsGrid::after {
    width: 30px;
  }
}

/* ========== PRODUCT CARD ========== */
.product-card {
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  height: 100%;
  padding: 15px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* Top Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Код товару */
.articul {
  background-color: #1a1a1a;
  border-radius: 4px;
  color: #888;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 8px;
}

/* Статус наявності */
.stock-status.in-stock {
  color: #00a046;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.stock-status.out-of-stock {
  color: #ff3b3b;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Badges */
.badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  text-transform: uppercase;
}


.badge-aktsiya { 
  top: 60px; 
  right: 15px; 
  background: #ff3b3b; 
  color: #ffffff; 
  font-weight: 700;
}

.badge-new { 
  top: 12px; 
  left: 50%; 
  transform: translateX(-50%); 
  background: #ffd700; 
  color: #ffffff; 
}

/* Product Image */
.card-image {
  position: relative;
  padding-top: 100%;
  background: #1a1a1a;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.card-image img {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.3s ease;
}

.product-card:hover .card-image img { 
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Product Title */
.product-card .title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  min-height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}



/* Price Section */
.price-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.old-price {
  text-decoration: line-through;
  color: #777;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.product-card:hover .old-price {
  color: #999;
}

.new-price {
  background: linear-gradient(90deg, #ffd700 0%, #ffdf00 25%, #ffe700 50%, #ffdf00 75%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  font-size: 21px;
  
  position: relative;
  overflow: hidden;
}

/* Rating Section */
.rating-section {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
 
}

.review-count {
  color: #888;
  font-size: 13px;
  margin-left: 4px;
  transition: color 0.3s ease;
}

.star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.product-card:hover .star {
  transform: scale(1.1);
}

/* Buttons Section */
.product-card .buttons-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Primary Button - Перейти до товару */
.btn {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: 2px solid rgba(202, 168, 75, 0.14);
  color: var(--gold, #ffd700);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  color: var(--gold, #ffd700);
}

.btn:hover::before {
  left: 0;
}

.btn svg {
  transition: transform 0.3s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

/* One Click Button */
.btn-one-click {
  width: 100%;
  padding: 10px;
  background: none;
  color:  #636363;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  
  position: relative;
}

.btn-one-click::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  
}

.btn-one-click:hover {
  color: #707070;
  text-decoration: none;
  transform: translateY(-1px);
}



/* Show More Button */
.btn-show-more {
  display: block;
  margin: 32px auto 0;
  padding: 14px 28px;
  background: transparent;
  color: var(--gold, #ffd700);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  border: 2px solid rgba(202, 168, 75, 0.14);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
  position: relative;
  overflow: hidden;
}

.btn-show-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 215, 0, 0.05);
  transition: left 0.3s ease;
}

.btn-show-more:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.btn-show-more:hover::before {
  left: 0;
}

.btn-show-more:active {
  transform: translateY(0) scale(.98);
}

.btn-show-more:disabled {
  background: #222;
  color: #666;
  border-color: #222;
  cursor: default;
  opacity: 0.5;
}

.btn-show-more svg {
  transition: transform 0.3s ease;
}

.btn-show-more:hover svg {
  transform: translateY(-2px);
}

/* ========== АДАПТИВНІСТЬ ========== */

/* Планшети: 1024px - 769px */
@media (max-width: 1024px) and (min-width: 769px) {
  .product-card {
    min-height: 380px;
    padding: 12px;
  }
  
  .card-image {
    padding-top: 95%;
  }
  
  .card-image img {
    padding: 12px;
  }
  
  .product-card .title {
    font-size: 15px;
    min-height: 38px;
  }
  
  .new-price {
    font-size: 18px;
  }
  
  .btn {
    padding: 11px 14px;
    font-size: 0.95rem;
  }
  
  .btn-one-click {
    padding: 9px;
    font-size: 0.95rem;
  }
  
  .badge {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
}

/* Мобільні: до 768px */
@media (max-width: 768px) {
  .product-card {
    min-height: 360px;
    padding: 10px;
    border-radius: 10px;
  }
  
  .card-image {
    padding-top: 90%;
  }
  
  .card-image img {
    padding: 10px;
  }
  
  .product-card .title {
     font-size: 16px;
  font-weight: 600;
  color: #fff;
    min-height: 36px;
    margin-bottom: 10px;
  }
  
  .old-price {
    font-size: 0.75rem;
  }
  
  .new-price {
    font-size: 17px;
  }
  
  .rating-section {
    gap: 3px;
  }
  
  .star {
    width: 14px;
    height: 14px;
  }
  
  .review-count {
    font-size: 12px;
  }
  
  .btn {
    padding: 10px 5px;
    font-size: 0.9rem;
  }
  
  .btn-one-click {
    padding: 8px;
    font-size: 0.9rem;
  }
  
  .badge {
    padding: 3px 7px;
    font-size: 0.7rem;
  }
  
  .articul {
    font-size: 10px;
    padding: 2px 2px;
  }
  
  .status-bar {
    font-size: 0.85rem;
  }
  
  .stock-status.in-stock,
  .stock-status.out-of-stock {
    font-size: 10px;
  }
}

/* Дуже маленькі екрани: до 380px */
@media (max-width: 380px) {
  .product-card {
    min-height: 340px;
    padding: 8px;
    border-radius: 8px;
  }
  
  .card-image {
    padding-top: 85%;
  }
  
  .card-image img {
    padding: 8px;
  }
  
  .product-card .title {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 8px;
  }
  
  .old-price {
    font-size: 0.7rem;
  }
  
  .new-price {
    font-size: 16px;
  }
  
  .rating-section {
    gap: 2px;
    padding-top: 6px;
  }
  
  .star {
    width: 13px;
    height: 13px;
  }
  
  .review-count {
    font-size: 11px;
  }
  
  .btn {
    padding: 9px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }
  
  .btn-one-click {
    padding: 7px;
    font-size: 0.85rem;
    gap: 5px;
  }
  
  .badge {
    padding: 2px 6px;
    font-size: 0.65rem;
  }
  
  .articul {
    font-size: 10px;
    padding: 2px 5px;
  }
  
  .status-bar {
    font-size: 0.8rem;
  }
  
  .stock-status.in-stock,
  .stock-status.out-of-stock {
    font-size: 12px;
  }
}

/* ========== ДОДАТКОВІ СТИЛІ ========== */

/* Секції товарів */
.products-section {
  margin-bottom: 40px;
}

.products-section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* Помилка */
.error-message {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.error-message svg {
  margin-bottom: 15px;
}

.error-message p {
  font-size: 16px;
  margin: 0;
}

/* Сповіщення кошика */
.cart-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.cart-notification.show {
  transform: translateX(0);
  opacity: 1;
}

/* ========== БЕЙДЖІ ВНУТРІ КАРТИ ЗОБРАЖЕННЯ ========== */
.card-image {
  position: relative;
  overflow: visible !important; /* Важливо! Щоб бейджі не обрізалися */
  padding-top: 100%;
  background: #1a1a1a;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Бейджі позиціонуються абсолютно всередині .card-image */
.badge {
  position: absolute;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.75rem;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: badgeFloat 2s ease-in-out infinite;
  pointer-events: none; /* Щоб не заважали клікам по зображенню */
}

@keyframes badgeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: translateY(-2px) rotate(1deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* Рекомендуємо - зліва зверху */
.badge-recommended {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ffd700 0%, #e6b800 100%);
  color: #1a1a1a;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Акція - справа зверху */
.badge-aktsiya {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff3b3b 0%, #cc0000 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}




/* Адаптивність для мобільних */
@media (max-width: 768px) {
 
/* Рекомендуємо - зліва зверху */
.badge-recommended {
  font-size: 0.65rem;
  top: 1px;
  left: 2px;
 
}

/* Акція - справа зверху */
.badge-aktsiya {
  font-size: 0.65rem;
  top: 1px;
  right: 2px;

}
.badge {
   
    padding: 1px 3px;
    border-radius: 20px;
    font-weight: 200;
    
}
}

/* ========== ФІЛЬТРИ ТА СОРТУВАННЯ ========== */

.filter-dropdown {
  position: relative;
  display: inline-block;
}

/* Кнопка фільтра */
.filter-btn {
  background: rgba(255, 217, 0, 0.017);
  border: 2px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 250px;
}

.filter-btn:hover {
  background: rgba(255, 217, 0, 0.027);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}



/* Опції фільтра */
.filter-options {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  min-width: 250px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  margin-top: 8px;
}

.filter-options.open {
  max-height: 500px;
  overflow-y: auto;
  padding: 8px 0;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Окрема опція */
.filter-option {
  padding: 12px 20px;
  color: #ccc;
  font-size: 15px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.filter-option:hover {
  background: rgba(255, 215, 0, 0.05);
  color: #ffd700;
  padding-left: 28px;
}

.filter-option:hover::before {
  content: '→';
  position: absolute;
  left: 12px;
  color: #ffd700;
}

.filter-option.selected {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  font-weight: 400;
}

.filter-option.selected::before {
  content: '✓';
  position: absolute;
  left: 12px;
  color: #ffd700;
  font-weight: 500;
}

/* Скроллбар для опцій */
.filter-options::-webkit-scrollbar {
  width: 6px;
}

.filter-options::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 215, 0, 0.5);
}

/* Адаптивність */
@media (max-width: 768px) {
 
  
  .filter-btn {
    min-width: 200px;
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .filter-option {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .filter-options {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .filters-section {
    padding: 10px 0;
  }
  
  .filter-btn {
    width: 100%;
    min-width: auto;
    justify-content: center;
  }
  
  .filter-options {
    width: 100%;
    left: 0;
  }
}

/* ========== КАТЕГОРІЇ (стиль під ваш сайт) ========== */
.categories-container {
  position: relative;
  
  margin-bottom: 30px;
}

.cat-toggle-btn {
  width: 100%;
 margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    background: transparent;
    border: 2px solid rgba(215, 172, 52, 0.302);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.cat-toggle-btn:hover,
.cat-toggle-btn.open {
   background: transparent;
  border: 2px solid rgba(221, 173, 41, 0.617);
  color: var(--gold);
}

.cat-toggle-btn::before {
  content: '☰';
  font-size: 20px;
}

.cat-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  border: 2px solid #ffd700;
  border-radius: 8px;
  min-width: 280px;
  max-height: 450px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  margin-top: 10px;
  padding: 12px 0;
}
@font-face{
   font-family: Inter, system-ui, Arial;
}

.cat-dropdown.open {
 width: 100%;
  display: flex;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-item {
  padding: 14px 24px;
  cursor: pointer;
  border-bottom: 1px solid #333;
  font-size: 15px;
  color: #e0e0e0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-item:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  padding-left: 32px;
  border-left: 4px solid #ffd700;
}

.cat-item:last-child {
  border-bottom: none;
}

.cat-item.active {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  font-weight: 600;
  border-left: 4px solid #ffd700;
  padding-left: 32px;
}

.cat-item::before {
  content: '•';
  font-size: 24px;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.cat-item:hover::before,
.cat-item.active::before {
  opacity: 1;
  color: #ffd700;
}

.cat-item.active::before {
  content: '✓';
  color: #ffd700;
}

/* Скрол для випадаючого меню */
.cat-dropdown::-webkit-scrollbar {
  width: 8px;
}

.cat-dropdown::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.cat-dropdown::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.cat-dropdown::-webkit-scrollbar-thumb:hover {
  background: #e6c200;
}

/* Адаптивність */
@media (max-width: 768px) {
  .cat-dropdown.open {
  display: block;
  animation: fadeIn 0.3s ease;
}
  .cat-dropdown {
    
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
  
  .cat-toggle-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Додатковий стиль для кнопки "Каталог товарів" */
.cat-toggle-btn span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.cat-toggle-btn:hover span {
  transform: scale(1.1);
}









/* ========== НАЛАШТУВАННЯ СЕКЦІЙ НОВИНОК ТА АКЦІЙ ========= */

/* Центрування та звуження секцій */
#newSection,
#saleSection {
  max-width: 1200px; /* Звужена ширина */
  margin: 0 auto 60px auto; /* Центрування + відступ знизу */
  padding: 0 20px; /* Внутрішні відступи для адаптивності */
}

/* Контейнер товарів для горизонтального скролу */
#newProductsGrid,
#saleProductsGrid {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto; /* Додаткове центрування */
}


/* ========== АДАПТИВНІСТЬ ========= */

/* Десктоп (3.5 товарів видимо) */
@media (min-width: 1025px) {
  #newProductsGrid,
  #saleProductsGrid {
    width: calc(3.5 * 280px + 3 * 24px); /* 3.5 картки + 3 проміжки */
    max-width: 100%;
  }
  
  #newSection .product-card.compact,
  #saleSection .product-card.compact {
    width: 280px;
    min-width: 280px;
  }
}

/* Планшет (3 товари видимо) */
@media (max-width: 1024px) and (min-width: 769px) {
  #newProductsGrid,
  #saleProductsGrid {
    width: calc(3 * 260px + 2 * 20px); /* 3 картки + 2 проміжки */
    max-width: 100%;
    gap: 20px;
  }
  
  #newSection .product-card.compact,
  #saleSection .product-card.compact {
    width: 260px;
    min-width: 260px;
  }
  
  .scroll-prev {
    left: -20px;
  }
  
  .scroll-next {
    right: -20px;
  }
}

/* Мобільний (2.5 товарів видимо) */
@media (max-width: 768px) {
 
  #newProductsGrid,
  #saleProductsGrid {
    width: calc(2.5 * 220px + 1.5 * 16px); /* 2.5 картки + 1.5 проміжки */
    max-width: 100%;
    gap: 16px;
    padding: 15px 0;
  }
  
}

/* Дуже маленькі екрани */
@media (max-width: 480px) {
  #newProductsGrid,
  #saleProductsGrid {
    width: calc(2.5 * 180px + 1.5 * 12px);
    gap: 12px;
  }
  
  #newSection .product-card.compact,
  #saleSection .product-card.compact {
    width: 180px;
    min-width: 180px;
    padding: 12px;
  }
  
}
/* Оранжеві зірки ТІЛЬКИ для компактних карток (новинки та акції) */
.star.full,

.star.half {
  fill: #FF8C00 !important;
}

.star.half stop:first-child {
  stop-color: #FF8C00 !important;
}













/* ========== SEO БЛОК ========== */
.seo-section {

  padding: 80px 0;
  border-bottom: 1px solid #2d2d2d;
  
  overflow: hidden;
}



.seo-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.seo-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.5px;
}

.seo-intro {
  font-size: 1.1875rem;
  color: #c5c5c5;
  margin-bottom: 40px;
  text-align: center;
  line-height: 1.8;
}

.highlight {
  color: var(--gold, #d4af37);
  font-weight: 700;
  position: relative;
  padding: 0 4px;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(212, 175, 55, 0.3);
  border-radius: 2px;
}

/* ========== КАТЕГОРІЇ БЛОКИ ========== */
.category-block {
  background: #121212;
  border-radius: 16px;
  padding: 50px;
  margin: 40px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid #2d2d2d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #d4af37) 0%, var(--gold-soft, #f5c84c) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.category-block:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 0 30px rgba(212, 175, 55, 0.15);
}

.category-block:hover::before {
  transform: scaleX(1);
}

.category-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--gold, #d4af37);
  display: inline-block;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold, #d4af37) 0%, var(--gold-soft, #f5c84c) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-block:hover .category-title::after {
  opacity: 1;
}

.category-desc {
  font-size: 1.125rem;
  color: #d5d5d5;
  margin-bottom: 30px;
  line-height: 1.8;
}

.category-desc strong {
  color: #ffffff;
  font-weight: 700;
}

/* ========== ПРОДУКТ ЛІСТ ========== */
.product-list {
  background: rgba(25, 25, 25, 0.85);
  border-left: 4px solid var(--gold, #d4af37);
  padding: 25px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
  backdrop-filter: blur(8px);
  border: 1px solid #2d2d2d;
}

.product-list ul {
  list-style: none;
  padding-left: 0;
}

.product-list li {
  padding: 12px 0;
  font-size: 1.125rem;
  color: #e6e6e6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: padding-left 0.3s ease;
  position: relative;
}

.product-list li:last-child {
  border-bottom: none;
}

.product-list li::before {
  content: "🔧";
  color: var(--gold, #d4af37);
  font-weight: bold;
  margin-right: 12px;
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.product-list li:hover {
  padding-left: 10px;
}

.product-list li:hover::before {
  transform: translateY(-50%) scale(1.2);
}

/* ========== ПОРАДИ БЛОК ========== */
.tips-block {
  background: linear-gradient(135deg, #0f0f0f 0%, #181818 100%);
  border-radius: 16px;
  padding: 50px;
  margin: 50px 0;
  border: 1px solid #2d2d2d;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.tips-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(245, 200, 76, 0.06) 0%, transparent 35%);
  z-index: 0;
}

.tips-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.tips-content {
  font-size: 1.125rem;
  color: #d5d5d5;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.tips-content strong {
  color: var(--gold, #d4af37);
  font-weight: 700;
}

/* ========== CTA БЛОК ========== */
.cta-block {
  background: linear-gradient(135deg, #080808 0%, #101010 100%);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
  border-radius: 16px;
  margin: 60px 0;
  border: 2px solid var(--gold, #d4af37);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
              0 0 35px rgba(212, 175, 55, 0.3);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  animation: pulseGold 4s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);

}

.cta-desc {
  font-size: 1.375rem;
  margin-bottom: 40px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold, #d4af37) 0%, #c0a025 100%);
  color: #000;
  font-size: 1.375rem;
  font-weight: 800;
  padding: 18px 60px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5),
              inset 0 2px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
  border: 2px solid #c0a025;

}

.cta-button::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.6s ease;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.7),
              inset 0 2px 0 rgba(255, 255, 255, 0.4),
              0 0 45px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, #e0b845 0%, #d0b035 100%);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* ========== КЛЮЧОВІ СЛОВА БЛОК ========== */
.keywords-section {
  background: rgba(18, 18, 18, 0.7);
  padding: 50px 0;
  margin-top: 50px;
  border-top: 1px solid #2d2d2d;
  position: relative;
}

.keywords-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
 
}

.keywords-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #d4af37) 0%, var(--gold-soft, #f5c84c) 100%);
  border-radius: 2px;
}

.keywords-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.keyword-tag {
  background: rgba(30, 30, 30, 0.85);
  color: var(--gold, #d4af37);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid #2d2d2d;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  font-family: Inter, system-ui, Arial;
}

.keyword-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.keyword-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.keyword-tag:hover::before {
  opacity: 1;
}

/* ========== FOOTER TEXT ========== */
.footer-text {
  font-size: 1rem;
  color: #a5a5a5;
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #2d2d2d;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
 
}

.footer-text a {
  color: var(--gold, #d4af37);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-text a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold, #d4af37);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-text a:hover {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.footer-text a:hover::after {
  opacity: 1;
}

.footer-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* ========== АДАПТИВНІСТЬ ========== */
@media (max-width: 768px) {
  .seo-section {
    padding: 60px 0;
  }

  .seo-title {
    font-size: 2rem;
  }

  .seo-intro {
    font-size: 1.0625rem;
  }

  .category-block {
    padding: 35px 25px;
  }

  .category-title {
    font-size: 1.625rem;
  }

  .cta-block {
    padding: 50px 20px;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .cta-desc {
    font-size: 1.125rem;
  }

  .keywords-grid {
    gap: 12px;
  }

  .keyword-tag {
    padding: 10px 22px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .seo-section {
    padding: 40px 20px;
  }

  .seo-title {
    font-size: 1.75rem;
  }

  .category-block {
    padding: 30px 20px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .cta-block {
    padding: 40px 15px;
  }

  .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.125rem;
  }

  .keywords-title {
    font-size: 1.5rem;
  }

  .keyword-tag {
    padding: 8px 18px;
    font-size: 0.875rem;
  }

  .footer-text {
    font-size: 0.9375rem;
  }
}

.fly-to-cart {
  position: fixed;
  z-index: 9999;
  pointer-events: none;

  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;

  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);

  transition:
    transform 2.1s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.1s ease;
}

.fly-to-cart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ffd035;
  border-radius: 3px;
}

.footer-section p {
  color: #b0b0b0;
  line-height: 1.8;
  margin: 15px 0;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #ffae35;
  transform: translateX(5px);
}

/* ==================== SOCIAL ICONS ==================== */
.footer-socials {
  margin-top: 25px;
}

.footer-socials h5 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3a3a3a;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Кольори соцмереж */
.social-icon.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
}

.social-icon.viber:hover {
  background: #7360f2;
  border-color: #7360f2;
}

.social-icon.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #bc1888;
}

.social-icon.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

/* ==================== FOOTER BOTTOM ==================== */
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #3a3a3a;
  text-align: center;
  color: #888;
  font-size: 14px;
}

.footer-developer {
  color: #666;
  font-size: 12px;
  margin-top: 5px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .social-icons {
    justify-content: flex-start;
  }
  
  .footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 15px 25px;
  }
  
  .social-icon {
    width: 38px;
    height: 38px;
  }
}


.lang-switcher {
  position: relative;
  z-index: 9999;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.lang-arrow {
  font-size: 12px;
}

.lang-dropdown {
  position: absolute;
  top: 115%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: none;
  overflow: hidden;
}

.lang-dropdown a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: #111;
}

.lang-dropdown a:hover {
  background: #f3f3f3;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

/* 📱 мобільна версія */
@media (max-width:768px) {

  .lang-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 16px 16px 0 0;
    animation: slideUp .3s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

}
.breadcrumb-text {
  display: inline-block;
  max-width: 25ch; /* 25 символів */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.breadcrumbs ol {
  list-style: none; /* Прибирає цифри 1, 2, 3... */
  padding: 0;       /* Прибирає відступи зліва */
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  margin: 0;
}