/* ================================
   NOTDEAD — main.css (fixed)
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:wght@300;400&display=swap');

:root {
  --white:   #e8e4dc;
  --white2:  #b0ab9f;
  --gray:    #5c5852;
  --gray2:   #2a2825;
  --bg:      #080807;
  --bg2:     #0d0c0b;
  --bg3:     #111010;
  --border:  rgba(232, 228, 220, 0.06);
  --border2: rgba(232, 228, 220, 0.12);

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --nav-h: 108px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: crosshair;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 2px;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Утилиты */
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 14px;
}

.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gray);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 56px;
}

/* Фоновый логотип */
.bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(68vw, 680px);
  opacity: 0.07;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ===== НАВБАР (лупа слева, логотип по центру, корзина справа) ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0;          /* убираем боковые отступы — стороны сами управляют */
  background: rgba(8, 8, 7, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
}

.nav-side-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 32px;
  flex-wrap: nowrap;   /* ← запрет переноса на вторую строку */
}

.nav-side-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 32px;
  padding-right: 20px;
  flex-wrap: nowrap;
}

.nav-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----- ЛУПА (левый край) ----- */
.nav-search-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-search-btn {
  background: none;
  border: none;
  color: var(--gray);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.nav-search-btn:hover {
  color: var(--white);
}

.nav-search-btn::after {
  display: none !important;
}

.nav-search-expand {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 0;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 300;
}

.nav-search-expand.open {
  width: 300px;
}

.nav-search-input {
  width: 100%;
  background: rgba(8, 8, 7, 0.99);
  border: 1px solid var(--border2);
  border-bottom: none;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 2px;
  padding: 14px 18px;
  outline: none;
  white-space: nowrap;
}

.nav-search-input::placeholder {
  color: var(--gray);
}

.nav-search-results {
  background: rgba(8, 8, 7, 0.99);
  border: 1px solid var(--border2);
  border-top: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  white-space: nowrap;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(232, 228, 220, 0.05);
}

.search-result-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.search-result-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
}

.search-result-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
  font-family: var(--font-ui);
  letter-spacing: 2px;
}

.search-no-results {
  padding: 16px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

/* ----- ЛЕВАЯ ГРУППА (Shop, Lookbook) ----- */
.nav-left-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-left: 16px;
}

/* Ссылки внутри левой группы */
.nav-left-links a,
.nav-left-links .nav-link-shop {
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 10px 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s;
}

.nav-left-links a::after,
.nav-left-links .nav-link-shop::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 32px);
  height: 1.5px;
  background: var(--white2);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav-left-links a:hover,
.nav-left-links .nav-link-shop:hover {
  color: var(--white);
}

.nav-left-links a:hover::after,
.nav-left-links .nav-link-shop:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Стрелка дропдауна */
.nav-arrow {
  font-size: 12px;
  transition: transform 0.25s;
}

.nav-item-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Дропдаун */
.nav-item-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-bridge {
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 220px;
  background: rgba(8, 8, 7, 0.99);
  border: 1px solid var(--border2);
  backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}

.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, background 0.15s, padding-left 0.2s;
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  color: var(--white);
  background: rgba(232, 228, 220, 0.04);
  padding-left: 32px;
}


.nav-logo-img {
  height: 100px;
  width: auto;
  mix-blend-mode: screen;
  opacity: 0.95;
  transition: opacity 0.3s, transform 0.3s;
}

.nav-logo-center:hover .nav-logo-img {
  opacity: 1;
  transform: scale(1.05);
}

/* убираем маркеры у всех ul в навбаре */
nav ul {
  list-style: none;
}

/* ----- ПРАВАЯ ЧАСТЬ: FAQ ссылки ----- */
.nav-side-right .nav-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav-side-right .nav-links a {
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 10px 20px;
  position: relative;
  display: flex;
  align-items: center;
  transition: color 0.25s;
}

.nav-side-right .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 32px);
  height: 1.5px;
  background: var(--white2);
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

.nav-side-right .nav-links a:hover { color: var(--white); }
.nav-side-right .nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Кнопка корзины */
.btn-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white2);
  background: transparent;
  border: none;
  padding: 10px 20px;
  transition: background 0.2s, color 0.2s;
}

.btn-cart:hover {
  background: rgba(232, 228, 220, 0.04);
  color: var(--white);
}

.cart-count {
  background: var(--white2);
  color: var(--bg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

/* ===== LIVE CHAT ===== */
.live-chat-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white2);
  background: rgba(8, 8, 7, 0.97);
  border: 1px solid var(--border2);
  padding: 12px 24px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s;
}

.live-chat-btn:hover {
  border-color: rgba(232, 228, 220, 0.28);
  color: var(--white);
}

.live-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== КНОПКИ ===== */
.btn-primary {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 5px;
  color: var(--bg);
  background: var(--white);
  border: none;
  padding: 18px 52px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--white2);
  transform: translateY(-2px);
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(10, 10, 9, 0.98);
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 8px;
  color: rgba(232, 228, 220, 0.14);
  padding: 0 48px;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== КОРЗИНА (сайдбар) ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  background: #090908;
  border-left: 1px solid var(--border);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 5px;
}

.btn-cart-close {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  background: none;
  border: none;
  transition: color 0.2s;
}

.btn-cart-close:hover {
  color: var(--white);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
}

.cart-items-list::-webkit-scrollbar {
  width: 2px;
}

.cart-items-list::-webkit-scrollbar-thumb {
  background: var(--gray);
}

.cart-empty-msg {
  padding: 80px 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(232, 228, 220, 0.04);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.cart-item-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
}

.cart-item-sub {
  font-size: 13px;
  color: var(--gray);
  margin-top: 3px;
}

.cart-item-price {
  margin-left: auto;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  color: var(--white2);
}

.btn-remove {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 18px;
  padding: 6px;
  transition: color 0.2s;
}

.btn-remove:hover {
  color: var(--white);
}

.cart-footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.cart-total-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gray);
}

.cart-total-amount {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 2px;
}

.btn-checkout {
  width: 100%;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--bg);
  background: var(--white);
  border: none;
  padding: 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: background 0.2s;
}

.btn-checkout:hover {
  background: var(--white2);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 450;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  padding: 56px 56px 36px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(232, 228, 220, 0.18);
}

/* ===== HERO (база) ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;

  padding-top: var(--nav-h);
  padding-left: 64px;
  padding-right: 64px;
  padding-bottom: 72px;

  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 48%, rgba(232,228,220,0.035), transparent 28%),
    linear-gradient(to bottom, transparent, rgba(232,228,220,0.02));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-title {
  font-size: clamp(120px, 17vw, 240px);
  line-height: 0.88;
  letter-spacing: 10px;
  margin-left: -4px;
}

.hero-sub {
  font-size: 13px;
  letter-spacing: 7px;
  color: rgba(232,228,220,0.48);
  max-width: 460px;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-logo-img {
  width: min(100%, 460px);
  opacity: 0.9;
  mix-blend-mode: screen;
}

.hero-scroll {
  position: absolute;
  left: 64px;
  bottom: 32px;
  z-index: 2;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1000px) {
  nav {
    padding: 0 16px;
  }
  .nav-left-links a,
  .nav-left-links .nav-link-shop,
  .nav-right-group .nav-links a {
    font-size: 15px;
    padding: 6px 12px;
    letter-spacing: 3px;
  }
  .nav-logo-img {
    height: 80px;
  }
  .btn-cart {
    font-size: 14px;
    padding: 6px 12px;
  }
}

@media (max-width: 800px) {
  /* Скрываем Lookbook на узких экранах, оставляем только Shop + логотип + FAQ */
  .nav-left-links li:not(.nav-item-dropdown) {
    display: none;
  }
  .nav-left-links {
    margin-left: 8px;
  }
  .nav-logo-img {
    height: 70px;
  }
  .nav-search-expand.open {
    width: 260px;
  }
}

@media (max-width: 600px) {
  .nav-left-links a,
  .nav-left-links .nav-link-shop,
  .nav-right-group .nav-links a {
    font-size: 13px;
    padding: 4px 8px;
  }
  .nav-logo-img {
    height: 55px;
  }
  .btn-cart {
    font-size: 12px;
    gap: 6px;
  }
  .nav-search-expand.open {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .bg-logo {
    width: 92vw;
  }
  footer {
    flex-direction: column;
    gap: 24px;
    padding: 44px 24px 32px;
  }
  .cart-sidebar {
    width: 100%;
  }
  .live-chat-btn {
    bottom: 20px;
    right: 16px;
    padding: 10px 18px;
    font-size: 11px;
  }
}