/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0b0b0b;
  color: #eaeaea;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 20px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 40px;
}

.nav__logo {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav__links a {
  color: #888;
  transition: color 0.2s;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: #fff;
  border-bottom-color: #fff;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: #fff;
  color: #0b0b0b;
  padding: 12px 32px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 40px;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #ccc;
  transform: scale(0.97);
}

.btn-outline {
  background: transparent;
  color: #eaeaea;
  border: 1px solid #444;
  border-radius: 40px;
  padding: 10px 28px;
}

.btn-outline:hover {
  background: #222;
  border-color: #aaa;
}

.btn-add {
  background: #fff;
  color: #0b0b0b;
  border: none;
  padding: 16px 40px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 40px;
  cursor: pointer;
  width: 100%;
  transition: 0.2s;
  margin-top: 12px;
}

.btn-add:hover {
  background: #ccc;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
  background: #141414;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, #2a2a2a, #0a0a0a 80%);
  opacity: 0.5;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero__title {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: 12px;
  color: #fff;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.hero__title span {
  background: linear-gradient(to right, #eee, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 32px;
}

/* ===== BRAND STORY ===== */
.brand-story {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
  font-size: 1.2rem;
  color: #bbb;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 32px 0;
}

/* ===== CATALOG ===== */
.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 70px;
}

@media (max-width: 640px) {
  .catalog {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.product-card {
  background: #131313;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #1a1a1a;
}

.product-card__info {
  padding: 20px 20px 24px;
}

.product-card__info h3 {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.product-card__info .sub {
  color: #888;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-card__info .price {
  font-weight: 500;
  font-size: 1.2rem;
  color: #fff;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin: 20px 0 60px;
}

@media (max-width: 800px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.product-page__gallery img {
  width: 100%;
  border-radius: 20px;
  background: #161616;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: 0.2s;
  background: #1a1a1a;
}

.thumbnails img.active,
.thumbnails img:hover {
  opacity: 1;
  border-color: #aaa;
}

.product-page__info h1 {
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.product-page__info .sub {
  color: #888;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.price-large {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.description {
  color: #aaa;
  margin-bottom: 28px;
  font-size: 1rem;
  max-width: 400px;
}

.sizes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sizes button {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #ddd;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.15s;
  font-size: 0.9rem;
  min-width: 56px;
}

.sizes button.active,
.sizes button:hover {
  background: #fff;
  color: #0b0b0b;
  border-color: #fff;
}

/* ===== SIZE CHART ===== */
.size-chart {
  margin: 30px 0 60px;
  border-top: 1px solid #222;
  padding-top: 30px;
}

.size-chart h2 {
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.size-chart table {
  width: 100%;
  max-width: 400px;
  border-collapse: collapse;
  text-align: left;
}

.size-chart th,
.size-chart td {
  padding: 10px 8px;
  border-bottom: 1px solid #2a2a2a;
}

.size-chart th {
  font-weight: 400;
  color: #888;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ===== CONTACT PAGES ===== */
.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: 20px 0;
}

.contact-page .icon {
  font-size: 4rem;
  color: #555;
  margin-bottom: 12px;
}

.contact-page h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.contact-page p {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-page .link {
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
  margin-bottom: 48px;
  transition: 0.2s;
}

.contact-page .link:hover {
  border-color: #fff;
}

.contact-page .back {
  margin-top: 10px;
}

/* ===== FOOTER ===== */
.contacts {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 0 50px;
  border-top: 1px solid #222;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contacts a {
  color: #666;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contacts a:hover {
  color: #fff;
}

.contacts a span {
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero__title {
    font-size: 4rem;
    letter-spacing: 6px;
  }
  .nav {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .nav__links {
    gap: 20px;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  .product-page__info h1 {
    font-size: 2rem;
  }
  .contact-page h1 {
    font-size: 2.4rem;
  }
}
/* ===== КОРЗИНА ===== */
.cart-page {
  min-height: 60vh;
  padding: 20px 0;
}

.cart-page h1 {
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.cart-item__info h3 {
  font-weight: 500;
  font-size: 1.1rem;
}

.cart-item__info .sub {
  color: #888;
  font-size: 0.9rem;
}

.cart-item__info .price {
  color: #fff;
  font-weight: 500;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__controls button {
  background: #1f1f1f;
  border: 1px solid #333;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.2s;
}

.cart-item__controls button:hover {
  background: #333;
}

.cart-item__total {
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: right;
}

.cart-total {
  text-align: right;
  padding: 30px 0;
  border-top: 2px solid #333;
}

.cart-total h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

/* ===== ЧЕКБОКС ===== */
.checkbox-wrapper {
  margin: 16px 0;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #1a1a1a;
  border: 2px solid #444;
  border-radius: 4px;
  flex-shrink: 0;
  transition: 0.2s;
  position: relative;
}

.checkbox-container input:checked + .checkmark {
  background: #fff;
  border-color: #fff;
}

.checkbox-container input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0b0b0b;
  font-weight: bold;
}

.checkbox-container:hover .checkmark {
  border-color: #888;
}

.checkbox-container input:checked:hover + .checkmark {
  background: #ddd;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  margin: 40px 0 60px;
  border-top: 1px solid #222;
  padding-top: 40px;
}

.reviews h2 {
  font-weight: 400;
  letter-spacing: 2px;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: #131313;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #222;
}

.review__stars {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.review__text {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.review__author {
  color: #888;
  font-size: 0.9rem;
}

/* ===== WISHLIST ===== */
.wishlist-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 10px 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wishlist-btn:hover {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.wishlist-btn.active {
  border-color: #ff6b6b;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

.product-card {
  position: relative;
  padding-bottom: 16px;
}

.product-card .wishlist-btn {
  margin: 8px 20px 0;
  width: calc(100% - 40px);
  justify-content: center;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 16px 24px;
  color: #fff;
  transform: translateY(120px);
  opacity: 0;
  transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== НАВИГАЦИЯ ===== */
.nav__cart {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  font-size: 1.2rem;
}

.nav__cart:hover {
  color: #fff;
}

.nav__cart-count {
  background: #fff;
  color: #0b0b0b;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  position: absolute;
  top: -10px;
  right: -16px;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ПОДПИСКА ===== */
.newsletter {
  margin: 40px 0 20px;
  padding: 40px 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  text-align: center;
}

.newsletter h3 {
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 12px 20px;
  border-radius: 40px;
  color: #fff;
  font-size: 0.95rem;
  min-width: 280px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #666;
}

.newsletter-form button {
  background: #fff;
  color: #0b0b0b;
  border: none;
  padding: 12px 32px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.newsletter-form button:hover {
  background: #ccc;
}