/* Camaclo — style.css */
:root {
  --rose:       #f4b8c8;
  --rose-deep:  #e8899e;
  --rose-light: #fde8ef;
  --blush:      #fdf0f4;
  --cream:      #fdfaf8;
  --text:       #2e1a22;
  --text-soft:  #7a5060;
  --gold:       #c9956a;
  --white:      #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── УТИЛИТЫ ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-deep); display: block; margin-bottom: .8rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 300; }
.section-title em { font-style: italic; color: var(--rose-deep); }
.section-header { text-align: center; margin-bottom: 3.5rem; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(253,240,244,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(244,184,200,.3);
  transition: padding .3s;
}
nav.scrolled { padding: .8rem 4rem; }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; letter-spacing: .18em; }
.nav-logo span { color: var(--rose-deep); font-style: italic; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; }
.nav-links a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); transition: color .25s; }
.nav-links a:hover { color: var(--rose-deep); }
.nav-cta { background: var(--rose-deep); color: var(--white) !important; padding: .55rem 1.4rem; border-radius: 2rem; transition: background .25s !important; }
.nav-cta:hover { background: var(--text) !important; }
.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Мобильное меню */
.mobile-menu { display: none; flex-direction: column; gap: 0; position: fixed; top: 64px; left: 0; right: 0; z-index: 99; background: var(--white); border-bottom: 1px solid var(--rose-light); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 1rem 2rem; font-size: .9rem; border-bottom: 1px solid var(--rose-light); color: var(--text); }

/* ── КНОПКИ ── */
.btn-primary {
  background: var(--rose-deep); color: var(--white);
  padding: .85rem 2.2rem; border-radius: 3rem; border: none;
  font-family: 'DM Sans', sans-serif; font-size: .85rem; letter-spacing: .1em;
  cursor: pointer; display: inline-block;
  transition: background .25s, transform .2s, box-shadow .25s;
  box-shadow: 0 8px 24px rgba(232,137,158,.3);
}
.btn-primary:hover { background: var(--text); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--text);
  padding: .85rem 2.2rem; border-radius: 3rem;
  border: 1.5px solid var(--rose);
  font-family: 'DM Sans', sans-serif; font-size: .85rem; letter-spacing: .1em;
  cursor: pointer; display: inline-block;
  transition: border-color .25s, color .25s, transform .2s;
}
.btn-outline:hover { border-color: var(--rose-deep); color: var(--rose-deep); transform: translateY(-2px); }
.btn-wa {
  background: #25d366; color: var(--white);
  padding: .85rem 2rem; border-radius: 3rem; border: none;
  font-family: 'DM Sans', sans-serif; font-size: .85rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: filter .25s, transform .2s;
}
.btn-wa:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ── СТРАНИЦА ── */
.page-hero {
  padding: 8rem 2rem 4rem; text-align: center;
  background: linear-gradient(135deg, var(--blush) 0%, var(--white) 100%);
}
.page-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.5rem,5vw,4.5rem); font-weight: 300; margin-top: .5rem; }
.page-title em { font-style: italic; color: var(--rose-deep); }
.page-sub { color: var(--text-soft); margin-top: 1rem; font-size: .95rem; }

/* ── КАТАЛОГ ── */
.catalog-section { padding: 4rem 0 6rem; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.search-form { display: flex; gap: .5rem; }
.search-form input { padding: .6rem 1.2rem; border: 1.5px solid var(--rose); border-radius: 2rem; background: var(--white); font-family: inherit; font-size: .85rem; outline: none; width: 240px; }
.search-form input:focus { border-color: var(--rose-deep); }
.search-form button { background: var(--rose-deep); color: var(--white); border: none; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; }
.sort-links { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-soft); }
.sort-btn { padding: .4rem 1rem; border-radius: 2rem; border: 1px solid var(--rose); color: var(--text-soft); font-size: .78rem; transition: all .2s; }
.sort-btn:hover, .sort-btn.active { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

.catalog-filter { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn { padding: .5rem 1.4rem; border-radius: 2rem; border: 1.5px solid var(--rose); background: transparent; color: var(--text-soft); font-family: 'DM Sans', sans-serif; font-size: .8rem; cursor: pointer; transition: all .25s; }
.filter-btn.active, .filter-btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

/* ── КАРТОЧКИ ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.product-card { background: var(--white); border-radius: 1.5rem; overflow: hidden; box-shadow: 0 4px 20px rgba(232,137,158,.08); transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(232,137,158,.18); }
.product-img-link { display: block; }
.product-img { aspect-ratio: 3/4; background: var(--rose-light); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-emoji { font-size: 5.5rem; opacity: .4; }
.product-tag-badge { position: absolute; top: 1rem; left: 1rem; background: var(--rose-deep); color: var(--white); font-size: .65rem; letter-spacing: .1em; padding: .3rem .75rem; border-radius: 2rem; }
.product-wishlist { position: absolute; top: 1rem; right: 1rem; background: var(--white); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: 1rem; transition: transform .2s; }
.product-wishlist:hover { transform: scale(1.15); }
.product-info { padding: 1.2rem 1.4rem 1.4rem; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 400; display: block; margin-bottom: .3rem; color: var(--text); }
.product-name:hover { color: var(--rose-deep); }
.product-style { font-size: .75rem; color: var(--text-soft); margin-bottom: .8rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--rose-deep); }
.product-sizes { display: flex; gap: .3rem; flex-wrap: wrap; }
.size-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rose); display: flex; align-items: center; justify-content: center; font-size: .6rem; color: var(--text-soft); cursor: pointer; transition: all .2s; }
.size-dot:hover { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

/* ── СТРАНИЦА ПЛАТЬЯ ── */
.product-page { padding: 7rem 0 4rem; }
.breadcrumb { font-size: .78rem; color: var(--text-soft); margin-bottom: 2rem; }
.breadcrumb a { color: var(--text-soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--rose-deep); }
.breadcrumb span { color: var(--text); }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-bottom: 5rem; }

.gallery-main { border-radius: 1.5rem; overflow: hidden; aspect-ratio: 3/4; background: var(--rose-light); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 8rem; opacity: .3; }
.gallery-badge { position: absolute; top: 1.2rem; left: 1.2rem; background: var(--rose-deep); color: var(--white); padding: .4rem 1rem; border-radius: 2rem; font-size: .72rem; }
.gallery-thumbs { display: flex; gap: .8rem; margin-top: .8rem; }
.thumb { width: 70px; height: 90px; border-radius: .8rem; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color .2s; }
.thumb.active { border-color: var(--rose-deep); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-cat-link a { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--rose-deep); }
.product-page-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 300; margin: .5rem 0 1rem; }
.product-page-price { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--rose-deep); margin-bottom: .8rem; }
.product-status { font-size: .85rem; padding: .4rem 1rem; border-radius: 2rem; display: inline-block; margin-bottom: 1.2rem; }
.product-status.in_stock { background: #e8f8ee; color: #2d7a4a; }
.product-status.order { background: var(--rose-light); color: var(--rose-deep); }
.product-status.sold_out { background: #f8e8e8; color: #c0392b; }
.product-page-desc { color: var(--text-soft); line-height: 1.7; margin-bottom: 1.5rem; }

.product-specs { border-top: 1px solid var(--rose-light); border-bottom: 1px solid var(--rose-light); padding: 1rem 0; margin-bottom: 1.5rem; }
.spec-row { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .85rem; }
.spec-row span { color: var(--text-soft); }

.size-selector { margin-bottom: 1.8rem; }
.size-label { font-size: .82rem; color: var(--text-soft); margin-bottom: .7rem; }
.size-label b { color: var(--text); }
.size-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.size-opt { padding: .5rem 1rem; border: 1.5px solid var(--rose); border-radius: .6rem; background: none; font-family: inherit; font-size: .82rem; cursor: pointer; transition: all .2s; }
.size-opt:hover, .size-opt.active { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); }

.product-actions { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.product-guarantees { display: flex; flex-wrap: wrap; gap: .8rem; }
.guarantee-item { font-size: .78rem; color: var(--text-soft); background: var(--blush); padding: .4rem .9rem; border-radius: 2rem; }

.similar-section { margin-top: 2rem; }
.similar-section .section-title { margin-bottom: 2rem; }

/* ── МОДАЛЬНОЕ ОКНО ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(46,26,34,.6); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 2rem; padding: 2.5rem; max-width: 460px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-soft); }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; margin-bottom: .3rem; }
.modal-subtitle { color: var(--text-soft); font-size: .9rem; margin-bottom: 1.5rem; }

/* ── ФОРМА ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .75rem; letter-spacing: .1em; color: var(--text-soft); margin-bottom: .4rem; text-transform: uppercase; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1.5px solid var(--rose-light); border-radius: .8rem;
  padding: .75rem 1rem; font-family: 'DM Sans', sans-serif; font-size: .85rem;
  background: var(--white); outline: none; transition: border-color .25s; color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rose-deep); }
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── УСПЕШНАЯ СТРАНИЦА ── */
.success-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 6rem 2rem; }
.success-box { text-align: center; max-width: 480px; }
.success-icon { font-size: 5rem; margin-bottom: 1.5rem; }
.success-box h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; margin-bottom: 1rem; }
.success-box p { color: var(--text-soft); margin-bottom: .5rem; line-height: 1.7; }
.success-order { font-size: .9rem; margin: 1rem 0 2rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── ПУСТОЕ СОСТОЯНИЕ ── */
.empty-state { text-align: center; padding: 5rem 2rem; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { color: var(--text-soft); }
.empty-state a { color: var(--rose-deep); }

/* ── ФУТЕР ── */
footer { background: #1c0f16; color: rgba(255,255,255,.5); padding: 3rem 4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 300; letter-spacing: .18em; color: var(--white); }
.footer-logo span { color: var(--rose); font-style: italic; }
footer p { font-size: .78rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-links a:hover { color: var(--rose); }

/* ── МОБАЙЛ ── */
@media (max-width: 1024px) {
  nav { padding: 1rem 2rem; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .burger { display: block; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .catalog-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}
