:root {
  --bg: #161616; --card-bg: #202020; --text: #ffffff;
  --text-muted: #999999; --border: #333333; --font: 'Montserrat', sans-serif;
  --accent: #00e5ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }

/* HEADER */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(22, 22, 22, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }

/* ЛОГОТИП */
.logo, .footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { position: relative; z-index: 1001; }
.logo img { height: 36px; width: auto; transition: filter 0.3s ease; }
.logo img:hover { filter: drop-shadow(0 0 10px var(--accent)) drop-shadow(0 0 15px rgba(0, 229, 255, 0.4)); }
.footer-logo img { height: 32px; width: auto; }
.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo-title { font-size: 18px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--text); }
.logo-subtitle { font-size: 9px; font-weight: 600; letter-spacing: 5.5px; color: var(--accent); text-transform: uppercase; margin-top: 4px; }

/* НАВІГАЦІЯ */
.header-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text); }
.cart-btn { color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; transition: 0.3s; position: relative; z-index: 1001; }
.cart-btn:hover { color: var(--text); }
.burger-btn { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 5px; }
.burger-btn span { display: block; width: 24px; height: 2px; background: var(--text); transition: 0.3s; border-radius: 2px; }

/* HERO */
.hero { text-align: center; padding: 120px 20px 100px; background: radial-gradient(circle at center, rgba(0, 229, 255, 0.08) 0%, var(--bg) 60%); }
.hero h1 { font-size: 3.2rem; margin-bottom: 20px; font-weight: 300; letter-spacing: -1px; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-weight: 300; }

/* TRUST BADGES */
.trust-badges { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 20px; margin-bottom: 80px; }
.trust-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 20px; }
.trust-icon { font-size: 32px; filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.3)); }
.trust-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 4px; }
.trust-desc { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.4; }

/* КАТАЛОГ */
.container { max-width: 1280px; margin: 0 auto 80px; padding: 0 20px; }
.section-title { font-size: 22px; margin-bottom: 40px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 15px; letter-spacing: 1px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; align-items: start; }

/* КАРТКИ КАТАЛОГУ */
.card { background: var(--bg); overflow: hidden; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; height: 100%; }
.card-img-wrapper { width: 100%; aspect-ratio: 4 / 5; background: var(--card-bg); position: relative; overflow: hidden; border: 1px solid var(--border); transition: 0.4s; }
.card:hover .card-img-wrapper { border-color: #555; }
.card-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #555; font-size: 14px; transition: 0.7s; object-fit: contain; }
.card:hover .card-img { transform: scale(1.04); }
.hover-features { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(22,22,22,0.95), transparent); opacity: 0; transform: translateY(10px); transition: 0.4s; }
.card:hover .hover-features { opacity: 1; transform: translateY(0); }
.hover-features ul { list-style: none; font-size: 13px; color: #fff; }
.hover-features li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.hover-features li::before { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.card-content { padding: 25px 0; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 400; margin-bottom: 10px; color: var(--text); height: 40px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-size: 20px; font-weight: 600; margin-bottom: 25px; color: #fff; }

/* КНОПКА В КАТАЛОЗІ */
.btn { width: 100%; padding: 16px; background: transparent; color: var(--text); border: 1px solid var(--border); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: background 0.3s, color 0.3s; font-family: var(--font); }
.btn:hover { background: var(--text); color: var(--bg); }

/* КНОПКА НА СТОРІНЦІ ТОВАРУ (перевизначення) */
.product-info .btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  font-size: 14px;
  font-weight: 800;
  padding: 20px;
  margin-bottom: 40px;
}
.product-info .btn:hover { background: #dddddd; }

/* ФУТЕР */
footer { background: var(--card-bg); border-top: 1px solid var(--border); padding: 60px 20px 20px; margin-top: 60px; }
.footer-content { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-weight: 600; color: var(--text); }
.footer-col p { color: var(--text-muted); font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 13px; text-decoration: none; display: block; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.footer-bottom a:hover { color: var(--accent); }

/* КОШИК */
.cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-panel { position: fixed; top: 0; right: -450px; width: 100%; max-width: 400px; height: 100vh; background: var(--bg); border-left: 1px solid var(--border); z-index: 1000; display: flex; flex-direction: column; transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.cart-panel.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 25px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.close-cart { background: transparent; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; transition: color 0.3s; }
.close-cart:hover { color: var(--text); }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 25px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 25px; position: relative; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.cart-item-img { width: 70px; aspect-ratio: 4 / 5; background: var(--card-bg); border: 1px solid var(--border); object-fit: cover; }
.cart-item-info { flex-grow: 1; }
.cart-item-title { font-size: 12px; font-weight: 400; margin-bottom: 5px; padding-right: 20px; }
.cart-item-price { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--accent); }
.cart-item-controls { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); width: fit-content; padding: 2px 8px; background: #222; border-radius: 2px; }
.qty-btn { background: transparent; border: none; color: var(--text); cursor: pointer; font-size: 14px; width: 20px; height: 20px; }
.qty { font-size: 12px; font-weight: 600; min-width: 15px; text-align: center; }
.remove-item { position: absolute; top: 0; right: 0; background: transparent; border: none; color: #ff4d4d; font-size: 22px; cursor: pointer; }
.remove-item:hover { color: #ff1a1a; }
.cart-checkout { padding: 25px; border-top: 1px solid var(--border); background: var(--card-bg); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.checkout-form input { width: 100%; padding: 12px; margin-bottom: 15px; background: var(--bg); border: 1px solid var(--border); color: var(--text); font-family: var(--font); font-size: 13px; outline: none; transition: border-color 0.3s; }
.checkout-form input:focus { border-color: #888; }
.checkout-btn { background: var(--accent) !important; color: #000 !important; border: none !important; margin-top: 10px; width: 100%; padding: 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; font-family: var(--font); box-shadow: 0 0 15px rgba(0, 229, 255, 0.4); transition: all 0.3s ease; }
.checkout-btn:hover { background: #fff !important; box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }

/* СТОРІНКА ТОВАРУ */
.breadcrumbs { max-width: 1280px; margin: 30px auto 10px; padding: 0 20px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { margin: 0 10px; }
.product-container { max-width: 1280px; margin: 20px auto 80px; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.gallery { display: flex; flex-direction: column; gap: 15px; }
.main-image{display:flex;align-items:center;justify-content:center;background:#111}.main-image img{max-width:100%;max-height:100%;object-fit:contain}.main-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.thumb { width: 100%; aspect-ratio: 4 / 5; background: var(--card-bg); border: 1px solid var(--border); cursor: pointer; transition: border-color 0.3s ease; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.3s ease; }
.thumb:hover img, .thumb.active img { opacity: 1; }
.thumb:hover, .thumb.active { border-color: var(--accent); }
.product-info { display: flex; flex-direction: column; justify-content: flex-start; }
.status { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 15px; font-weight: 600; }
.title { font-size: 32px; font-weight: 300; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.5px; }
.price { font-size: 36px; font-weight: 600; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.bullets { list-style: none; margin-bottom: 40px; }
.bullets li { margin-bottom: 12px; font-size: 14px; font-weight: 300; color: var(--text-muted); display: flex; align-items: center; gap: 15px; }
.bullets li::before { content: ''; display: block; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.description { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text-muted); }
.description h3 { color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }

/* СТОРІНКИ ДОСТАВКИ / ГАРАНТІЇ / ОФЕРТИ */
main { flex-grow: 1; max-width: 1000px; margin: 60px auto; padding: 0 20px; width: 100%; }
.page-title { font-size: 36px; font-weight: 300; margin-bottom: 15px; letter-spacing: -1px; text-align: center; }
.page-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 60px; font-size: 14px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 24px; }
.info-icon { font-size: 40px; margin-bottom: 20px; display: inline-block; }
.info-card h2 { color: var(--text); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.info-card p, .info-card li { color: var(--text-muted); font-size: 14px; }
.info-card p { margin-bottom: 15px; }
.info-card ul { list-style: none; padding-left: 0; }
.info-card li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.info-card li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); font-size: 14px; }
.content-block { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; margin-bottom: 30px; border-radius: 2px; }
.content-block h2 { font-size: 18px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.content-block p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; font-weight: 300; }
.content-block ul { list-style: none; margin-bottom: 20px; padding-left: 0; }
.content-block li { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: flex-start; gap: 12px; }
.content-block li::before { content: '✓'; color: var(--accent); font-weight: 800; }

/* МОБІЛЬНА АДАПТАЦІЯ */
@media (max-width: 768px) {
  /* Шапка */
  header { padding: 15px 5%; }
  .header-right { gap: 15px; }
  .cart-btn { font-size: 11px; }

  /* Бургер */
  .burger-btn { display: flex; }
  .burger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-btn.active span:nth-child(2) { opacity: 0; }
  .burger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Мобільне меню */
  .nav-links {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(22, 22, 22, 0.98); backdrop-filter: blur(15px);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 40px; z-index: 998; opacity: 0; visibility: hidden; transition: 0.4s ease;
  }
  .nav-links.active { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 16px; letter-spacing: 2px; }

  /* Hero */
  .hero { padding: 60px 20px 50px; }
  .hero h1 { font-size: 28px; margin-bottom: 15px; }
  .hero p { font-size: 13px; }

  /* Trust badges */
  .trust-badges { padding: 20px 15px; margin-bottom: 40px; }
  .trust-grid { gap: 20px; grid-template-columns: 1fr; }
  .trust-item { flex-direction: column; text-align: center; gap: 10px; }
  .trust-icon { font-size: 28px; }

  /* Каталог */
  .container { margin-bottom: 40px; }
  .section-title { font-size: 18px; margin-bottom: 25px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .card-content { padding: 15px 5px 0; }
  .card-title { font-size: 12px; height: 34px; line-height: 17px; margin-bottom: 5px; }
  .card-price { font-size: 16px; margin-bottom: 15px; }
  .btn { padding: 12px 5px; font-size: 9px; letter-spacing: 1px; }
  .hover-features { display: none; }

  /* Футер */
  footer { padding: 40px 20px 20px; }
  .footer-content { gap: 30px; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }

  /* Сторінка товару */
  .breadcrumbs { font-size: 10px; margin-top: 15px; margin-bottom: 20px; }
  .product-container { grid-template-columns: 1fr; gap: 30px; margin-top: 0; padding: 0 15px; }
  .thumbnails { gap: 8px; }
  .title { font-size: 24px; margin-bottom: 15px; line-height: 1.3; }
  .price { font-size: 28px; margin-bottom: 20px; padding-bottom: 20px; }
  .bullets li { font-size: 13px; }
  .product-info .btn { padding: 16px; font-size: 12px; }

  /* Сторінки доставки */
  .info-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 26px; }
}
/* FIX: фиксированный размер картинки в корзине */
.cart-item {
  align-items: flex-start; /* чтобы не тянулось по высоте */
}

.cart-item-img {
  width: 70px;
  height: 90px; /* фиксированная высота */
  object-fit: cover;
  flex-shrink: 0; /* запрещает сжатие */
  border-radius: 4px;
}