/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  --color-bg: #fdf8f5;
  --color-primary: #d45d79;
  --color-primary-dark: #b9455e;
  --color-text: #2d2d2d;
  --color-light: #f8e8e8;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --shadow-card: 0 8px 20px rgba(0,0,0,0.06);
  --transition: 0.3s ease;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 93, 121, 0.3);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: var(--transition);
}

.cart-btn:hover {
  color: var(--color-primary);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  }
  .nav.active {
    display: block;
  }
  .nav__list {
    flex-direction: column;
    gap: 16px;
  }
  .burger {
    display: flex;
  }
}

/* Hero */
.hero {
  margin-top: 80px;
  height: 80vh;
  min-height: 500px;
  background: linear-gradient(135deg, #fce4ec 0%, #f8e8e8 100%), url('https://images.unsplash.com/photo-1563241527-3004b7be0ffd?w=1200') center/cover no-repeat;
  background-blend-mode: overlay;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }
}

/* Catalog */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.product-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card__body {
  padding: 20px;
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-card__price {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product-card__btn {
  width: 100%;
  padding: 10px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.product-card__btn:hover {
  background: var(--color-primary-dark);
}

/* About */
.about__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about__content {
  flex: 1;
}

.about__image img {
  width: 100%;
  border-radius: 16px;
  max-width: 500px;
}

@media (max-width: 768px) {
  .about__inner {
    flex-direction: column;
  }
}

/* Reviews */
.reviews__carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.review-card {
  flex: 0 0 300px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  scroll-snap-align: start;
}

.review-card__stars {
  color: #f5a623;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.review-card p {
  margin-bottom: 12px;
  font-style: italic;
}

.review-card__author {
  font-weight: 600;
  color: var(--color-primary);
}

/* Contact */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact__info p {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form input, .contact__form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.contact__form input:focus, .contact__form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(212, 93, 121, 0.15);
}

@media (max-width: 768px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: #2d2d2d;
  color: #fff;
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__social a {
  color: #fff;
  margin-left: 16px;
  font-size: 1.4rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer__social a:hover {
  color: var(--color-primary);
}

/* Cart Panel */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
}

.cart-overlay.active {
  display: block;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.cart-panel.open {
  right: 0;
}

.cart-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.cart-panel__header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.cart-panel__header button {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #888;
  transition: var(--transition);
}

.cart-panel__header button:hover {
  color: var(--color-primary);
}

.cart-panel__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item__title {
  font-weight: 500;
}

.cart-item__price {
  color: var(--color-primary);
}

.cart-item__remove {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.cart-item__remove:hover {
  color: #e74c3c;
}

.cart-panel__footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cart-panel__footer .btn {
  width: 100%;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card, .review-card {
  animation: fadeInUp 0.6s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }