* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark:     #0d0d0d;
  --bg-darker:   #080808;
  --text:        #f0f0f0;
  --text-muted:  #a0a0a0;
  --accent:      #00ffaa;
  --accent-hover:#00cc88;
  --card-bg:     #161616;
  --border:      #2a2a2a;
}

body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ──────────────────────────────────────────────
   Header
──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(8, 8, 8, 0.55);          /* виправлено: нормальна прозорість */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(42, 42, 42, 0.6);  /* м'який кордон */
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -1.5px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-list a:hover {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switch {
  background: #1e1e1e;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.cart-icon {
  color: var(--text);
  text-decoration: none;
  position: relative;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -14px;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ──────────────────────────────────────────────
   Hero – обличчя повністю видні (зміщення вниз)
──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  background-image: url('../img/hero-neon-street.jpg');
  background-size: cover;
  background-position: center 40%;       /* головне зміщення — спробуй 38%–45% під своє фото */
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.30) 0%,      /* м'якше зверху, щоб обличчя не темніли */
    rgba(0, 0, 0, 0.62) 55%,
    rgba(0, 0, 0, 0.80) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 0 30px;
}

.hero h1 {
  font-size: clamp(3.5rem, 10vw, 8rem);   /* повернуто до твого попереднього розміру */
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -3px;
  color: #ffffff;
  text-shadow: 
    0 0 30px rgba(0, 255, 170, 0.7),
    0 0 60px rgba(0, 255, 170, 0.4),
    0 10px 40px rgba(0,0,0,0.8);
}

.hero p {
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);  /* повернуто до твого попереднього розміру */
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.btn {
  display: inline-block;
  padding: 18px 56px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #000;
  box-shadow: 0 12px 48px rgba(0, 255, 170, 0.5);
}

.btn-primary:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 24px 72px rgba(0, 255, 170, 0.7);
}

/* ──────────────────────────────────────────────
   Products section (без змін)
──────────────────────────────────────────────── */
.popular {
  padding: 140px 0 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 28px 56px rgba(0,0,0,0.65);
}

.product-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-card h3 {
  padding: 18px 24px 8px;
  font-size: 1.35rem;
}

.price {
  padding: 0 24px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.45rem;
}

.btn-add {
  width: 100%;
  margin: 20px 0 24px;
  background: #222;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-add:hover {
  background: var(--accent);
  color: #000;
}

/* ──────────────────────────────────────────────
   Footer
──────────────────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
/* ──────────────────────────────────────────────
   Catalog Header (для products.html)
──────────────────────────────────────────────── */
.catalog-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('../img/hero-neon-street.jpg') center/cover no-repeat;
  color: white;
}

.catalog-header h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  text-shadow: 0 6px 24px rgba(0, 255, 170, 0.4);
}

.catalog-header p {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.85);
}
/* ──────────────────────────────────────────────
   Cart Section
──────────────────────────────────────────────── */
.cart-section {
  padding: 140px 0 100px;
}

.cart-section h1 {
  text-align: center;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 2rem;
}

.cart-empty-message {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.cart-item {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  gap: 24px;
}

.cart-item-img img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.cart-item-info .price {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  background: #222;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--accent);
  color: #000;
}

.qty {
  font-size: 1.2rem;
  min-width: 24px;
  text-align: center;
}

.cart-item-total {
  text-align: right;
}

.cart-item-total .subtotal {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.btn-remove {
  background: #ff4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-remove:hover {
  background: #cc0000;
}

.cart-summary {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.summary-row.total {
  font-size: 1.4rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.btn-checkout {
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  font-size: 1.2rem;
}

.continue-shopping {
  text-align: center;
  margin-top: 16px;
  font-size: 1.1rem;
}

.continue-shopping a {
  color: var(--accent);
  text-decoration: underline;
}
.cart-icon.active {
  color: var(--accent);
  font-weight: 700;
}

.cart-icon.active .cart-count {
  background: var(--accent-hover);
  color: #000;
}
/* ──────────────────────────────────────────────
   Sale Product Card Additions
──────────────────────────────────────────────── */
.product-card .old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-right: 8px;
}

.product-card .discount {
  color: #ff4444;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 8px;
}

.product-card .new-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.45rem;
}
.cart-item-img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 16px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-total {
  text-align: right;
  min-width: 120px;
}
.cart-item-img {
  flex-shrink: 0;
}

.cart-item-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 16px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-total {
  text-align: right;
  min-width: 140px;
}
.cart-item-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 16px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-total {
  text-align: right;
  min-width: 140px;
}
.product-detail {
  padding: 120px 0 80px;
}

.product-layout {
  display: flex;
  gap: 60px;
  align-items: stretch; /* робить обидві колонки однакової висоти */
}

.product-image-left {
  flex: 1;
  max-width: 50%;
}

.product-image-left img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.product-info-right {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-info-right h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.product-description p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.product-size h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.size-btn {
  padding: 10px 20px;
  border: 1px solid var(--border);
  background: #222;
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 50px;
  text-align: center;
}

.size-btn:hover {
  border-color: var(--accent);
  background: rgba(0,255,170,0.1);
}

.size-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}

#add-to-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comments-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.comment {
  background: #1a1a1a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
/* Прибираємо стандартне підкреслення і фіолетовий колір для посилань навколо карток товарів */

.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:active {
  color: inherit;                /* колір тексту як у батьківського елемента (не фіолетовий) */
  text-decoration: none;         /* прибираємо підкреслення */
  outline: none;                 /* прибираємо обводку при фокусі */
}

/* Додаємо гарний hover-ефект на всю картку (як на Cropp) — без зміни кольору посилання */

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 255, 170, 0.15);
}

/* Якщо хочеш, щоб при наведенні злегка підсвічувався тільки фон або рамка картки */

.product-card:hover {
  background: rgba(255, 255, 255, 0.03); /* легкий білий наліт */
  border: 1px solid var(--accent);       /* тонка зелена рамка при наведенні */
}
.product-card a::after {
  content: none !important;
}
/* Максимально прибираємо будь-яке підсвічування посилань у картках товарів */

.product-grid a,
.products-grid a,
.product-card a {
  color: var(--text) !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent; /* прибирає фіолетовий на мобілках */
}

/* При наведенні — ніяких змін кольору тексту */
.product-card a:hover,
.product-card a:focus,
.product-card a:active {
  color: var(--text) !important;
  text-decoration: none !important;
}

/* Ефект підйому картки залишається */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 255, 170, 0.15);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 170, 0.2);
}

/* Кнопка Add to Cart — щоб не впливало на неї */
.btn-add {
  background: #222;
  color: white !important;
  transition: all 0.3s;
}

.btn-add:hover {
  background: var(--accent);
  color: #000 !important;
}
/* ──────────────────────────────────────────────
   Sale Price Styles (для sale.html та product.html)
──────────────────────────────────────────────── */

/* Загальний контейнер ціни */
.price {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.45rem;
  font-weight: 700;
  margin: 12px 0;
}

/* Стара ціна — зачеркнута, сіра */
.old-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Відсоток знижки — червоний, жирний */
.discount {
  color: #ff4444;
  font-weight: 700;
  font-size: 1.3rem;
}

/* Нова ціна — зелена, велика */
.new-price {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 900;
}

/* На сторінці товару (product.html) робимо ціну ще помітнішою */
.product-price {
  font-size: 2.5rem;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-price .old-price {
  font-size: 1.6rem;
}

.product-price .discount {
  font-size: 1.8rem;
}

.product-price .new-price {
  font-size: 3rem;
}

/* Адаптація для мобілок */
@media (max-width: 768px) {
  .price {
    font-size: 1.3rem;
    gap: 8px;
  }
  .product-price {
    font-size: 2rem;
  }
  .product-price .new-price {
    font-size: 2.4rem;
  }
}
/* =============================================
   RESPONSIVE DESIGN — MOBILE FIRST FIXES
============================================= */

/* Телефони (маленькі екрани) */
@media (max-width: 576px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 70px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .nav-list {
    gap: 20px;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 9vw, 4.5rem);
    line-height: 1.1;
  }

  .hero p {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }

  .product-card h3 {
    font-size: 1.2rem;
    padding: 14px 16px 6px;
  }

  .product-detail .product-layout {
    flex-direction: column;           /* на телефоні картинка зверху, текст знизу */
    gap: 30px;
  }

  .product-image-left,
  .product-info-right {
    max-width: 100%;
  }

  .product-price {
    font-size: 2rem;
  }

  .size-buttons {
    gap: 8px;
  }

  .size-btn {
    padding: 10px 16px;
    font-size: 1rem;
  }
}

/* Планшети */
@media (max-width: 992px) and (min-width: 577px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .product-detail .product-layout {
    gap: 40px;
  }
}

/* Великі екрани (комп'ютери) — тут майже нічого не змінюємо */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}