/* ============================================
   RU SHOP — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --paper: #F7F3EC;
  --paper-dim: #EFE9DC;
  --ink: #2B2420;
  --ink-soft: #655C52;
  --wine: #7A2E2E;
  --wine-dark: #5E2222;
  --sage: #4A5D43;
  --rust: #B8542F;
  --line: #E3DDD0;
  --card: #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(38px, 5.2vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.lede {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.brand span { color: var(--wine); }

.nav-main {
  display: flex;
  gap: 34px;
  font-size: 15px;
}

.nav-main a {
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease;
}

.nav-main a:hover, .nav-main a.active {
  border-bottom-color: var(--wine);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 14px;
}

.cart-count {
  background: var(--wine);
  color: #fff;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.mobile-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-wine { background: var(--wine); color: #fff; }
.btn-wine:hover { background: var(--wine-dark); }

.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.btn-block { width: 100%; text-align: center; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero-copy .kicker {
  color: var(--wine);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}

.hero-copy h1 { margin-bottom: 22px; }

.hero-copy p { font-size: 17px; margin-bottom: 30px; }

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

.hero-visual {
  aspect-ratio: 4/5;
  border-radius: 4px;
  background: linear-gradient(155deg, #E6C9B8 0%, #C98A72 42%, var(--wine) 100%);
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 18px);
}

.hero-visual .tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,.92);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
}

/* ---------- Section headers ---------- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}

.section-head a { font-size: 14px; font-weight: 600; color: var(--wine); white-space: nowrap; }

section.block { padding: 70px 0; }
section.block.tint { background: var(--paper-dim); }

/* ---------- Product grid ---------- */

.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.pcard { position: relative; }

.pcard .img {
  aspect-ratio: 3/4;
  border-radius: 3px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.pcard .img.g1 { background: linear-gradient(160deg, #EADFCF, #C9A98F); }
.pcard .img.g2 { background: linear-gradient(160deg, #E3D4D4, #9B6868); }
.pcard .img.g3 { background: linear-gradient(160deg, #D9DED0, #7F8D6F); }
.pcard .img.g4 { background: linear-gradient(160deg, #E8E0E8, #8F7A93); }
.pcard .img.g5 { background: linear-gradient(160deg, #EFE2D0, #B98B5E); }
.pcard .img.g6 { background: linear-gradient(160deg, #DCE3E6, #6E8A94); }
.pcard .img.g7 { background: linear-gradient(160deg, #E9D8D3, #AD6E58); }
.pcard .img.g8 { background: linear-gradient(160deg, #E0E4D6, #8C9B73); }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rust);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 2px;
}

.badge.new { background: var(--sage); }

.pcard .meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.pcard h4 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.pcard .price { font-weight: 700; font-size: 15px; }
.pcard .price .old { text-decoration: line-through; color: var(--ink-soft); font-weight: 400; margin-right: 8px; font-size: 13px; }

/* ---------- Categories strip ---------- */

.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  aspect-ratio: 3/4;
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  overflow: hidden;
}

.cat-card h3 { color: #fff; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.cat-card .count { color: rgba(255,255,255,.78); font-size: 13px; margin-top: 4px; }

.cat1 { background: linear-gradient(175deg, #C9A98F, #7A5339); }
.cat2 { background: linear-gradient(175deg, #B88B8B, #5E2A2A); }
.cat3 { background: linear-gradient(175deg, #96A383, #3F4F35); }
.cat4 { background: linear-gradient(175deg, #A799A8, #4C3E51); }

/* ---------- Breadcrumbs ---------- */

.crumbs {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 22px 0;
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--wine); }

/* ---------- Filters bar ---------- */

.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }

.chip {
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.sort-select {
  font-size: 13px;
  color: var(--ink-soft);
  border: none;
  background: transparent;
}

/* ---------- Product detail ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 10px 0 80px;
}

.pd-gallery-main {
  aspect-ratio: 4/5;
  border-radius: 3px;
  background: linear-gradient(150deg, #E3D4D4, #9B6868);
  margin-bottom: 14px;
}

.pd-gallery-thumbs { display: flex; gap: 12px; }
.pd-gallery-thumbs .t { width: 78px; aspect-ratio: 3/4; border-radius: 3px; cursor: pointer; opacity: .55; }
.pd-gallery-thumbs .t.active { opacity: 1; outline: 1px solid var(--ink); }
.pd-gallery-thumbs .t1 { background: linear-gradient(150deg, #E3D4D4, #9B6868); }
.pd-gallery-thumbs .t2 { background: linear-gradient(150deg, #D9C9C9, #7E4C4C); }
.pd-gallery-thumbs .t3 { background: linear-gradient(150deg, #EAD9D9, #B07E7E); }
.pd-gallery-thumbs .t4 { background: linear-gradient(150deg, #C8AAAA, #6B3939); }

.pd-info .meta-row { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.pd-info h1 { font-size: 36px; margin-bottom: 14px; }
.pd-info .price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.pd-info .price-row .now { font-size: 28px; font-weight: 700; }
.pd-info .price-row .old { font-size: 17px; text-decoration: line-through; color: var(--ink-soft); }
.pd-info .price-row .pct { background: var(--rust); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 2px; }

.size-row { display: flex; gap: 10px; margin: 16px 0 28px; }
.size-box {
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; border-radius: 2px;
}
.size-box.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-box.out { color: var(--line); cursor: not-allowed; text-decoration: line-through; }

.pd-actions { display: flex; gap: 14px; margin-bottom: 30px; }

.pd-facts {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 14px;
}
.pd-facts dl { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; margin: 0; }
.pd-facts dt { color: var(--ink-soft); }
.pd-facts dd { margin: 0; }

/* ---------- Reviews ---------- */

.review {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.review .rhead { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review .rname { font-weight: 600; font-size: 14px; }
.review .rdate { font-size: 12px; color: var(--ink-soft); }
.review .stars { color: var(--wine); font-size: 13px; margin-bottom: 8px; }
.review p { font-size: 14px; margin-bottom: 0; }

/* ---------- Cart ---------- */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 600; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.cart-item-row { display: flex; gap: 18px; }
.cart-item-row .thumb { width: 86px; aspect-ratio: 3/4; border-radius: 3px; background: linear-gradient(150deg, #EADFCF, #C9A98F); flex-shrink: 0; }
.cart-item-row h4 { margin: 0 0 6px; font-size: 15px; }
.cart-item-row .vars { font-size: 13px; color: var(--ink-soft); }

.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty-box button { width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font-size: 15px; }
.qty-box span { width: 32px; text-align: center; font-size: 14px; }

.cart-summary {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 3px;
}
.cart-summary .row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: var(--ink-soft); }
.cart-summary .row.total { color: var(--ink); font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }

.promo-row { display: flex; gap: 10px; margin: 20px 0; }
.promo-row input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; }

/* ---------- Content pages ---------- */

.page-head {
  padding: 50px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 50px;
}

.content-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 70px;
  padding-bottom: 80px;
}

.content-cols h2 { margin: 42px 0 16px; font-size: 26px; }
.content-cols h2:first-child { margin-top: 0; }
.content-cols p { max-width: 68ch; font-size: 15px; }
.content-cols ul { padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.content-cols li { margin-bottom: 8px; }

.side-card {
  background: var(--paper-dim);
  border-radius: 3px;
  padding: 26px;
  margin-bottom: 20px;
}
.side-card h3 { font-size: 17px; margin-bottom: 10px; }
.side-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Team / about ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 50px 0;
}
.stat-row .num { font-family: var(--serif); font-size: 44px; color: var(--wine); font-weight: 600; }
.stat-row .label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 40px 0; }
.team-card .photo { aspect-ratio: 1; border-radius: 3px; margin-bottom: 14px; }
.team-card .photo.p1 { background: linear-gradient(160deg, #E3D4D4, #9B6868); }
.team-card .photo.p2 { background: linear-gradient(160deg, #D9DED0, #7F8D6F); }
.team-card .photo.p3 { background: linear-gradient(160deg, #E8E0E8, #8F7A93); }
.team-card h4 { font-size: 15px; margin: 0 0 3px; }
.team-card .role { font-size: 13px; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-bottom: 80px;
}
.contact-info .item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 6px; }
.contact-info .item .val { font-size: 16px; }

.map-block {
  aspect-ratio: 4/3;
  border-radius: 3px;
  background: linear-gradient(135deg, #D9DED0 0%, #A8B39A 50%, #7F8D6F 100%);
  margin-top: 24px;
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; margin-bottom: 7px; color: var(--ink-soft); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--card);
}
.form-field textarea { min-height: 110px; resize: vertical; }

/* ---------- Blog ---------- */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card .img { aspect-ratio: 16/10; border-radius: 3px; margin-bottom: 16px; }
.blog-card .cat { font-size: 12px; color: var(--wine); font-weight: 600; margin-bottom: 8px; }
.blog-card h3 { font-size: 19px; margin-bottom: 8px; }
.blog-card .date { font-size: 12px; color: var(--ink-soft); margin-top: 10px; }

.blog-post { max-width: 700px; margin: 0 auto; padding: 20px 0 80px; }
.blog-post .hero-img { aspect-ratio: 16/8; border-radius: 3px; margin: 30px 0 40px; background: linear-gradient(160deg, #E3D4D4, #9B6868); }
.blog-post h1 { font-size: 40px; margin-bottom: 16px; }
.blog-post .byline { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.blog-post p { font-size: 16px; max-width: 68ch; }
.blog-post h2 { margin: 36px 0 14px; font-size: 24px; }

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0;
  text-align: center;
}
.newsletter h2 { color: var(--paper); margin-bottom: 14px; }
.newsletter p { color: #C9C2B6; margin: 0 auto 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 13px 16px; border: none; border-radius: 2px; font-size: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-dim); border-top: 1px solid var(--line); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; color: var(--ink-soft); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 11px; font-size: 14px; }
.footer-grid li a:hover { color: var(--wine); }
.footer-brand .brand { margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 14px; max-width: 32ch; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-main, .nav-side .btn-line { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 0; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .cat-strip { grid-template-columns: repeat(2, 1fr); }
  .product-detail, .content-cols, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-products, .cat-strip, .team-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
