:root {
  --navy: #1a2232;
  --navy-2: #222b3d;
  --gold: #c5a059;
  --gold-2: #d4b36e;
  --bg: #ffffff;
  --muted: #6b7280;
  --line: #e8eaf0;
  --mint: #b8d9c8;
  --mint-2: #a8cfbc;
  --red: #e11d2e;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(26, 34, 50, 0.08);
  --container: 1180px;
  --font: "Noto Sans Georgian", system-ui, sans-serif;
  --logo: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26,34,50,.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.logo {
  font-family: var(--logo);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: .04em;
  color: var(--gold);
  line-height: 1;
  text-transform: lowercase;
}

.logo span { color: var(--gold-2); }

.search-wrap {
  width: min(560px, 100%);
  justify-self: center;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 46px;
}

.search-form svg { width: 18px; height: 18px; opacity: .85; flex: 0 0 auto; }

.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  min-width: 0;
}

.search-form input::placeholder { color: rgba(255,255,255,.72); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.cats-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  position: relative;
}

.cats-btn {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.cats-btn svg,
.icon-btn svg { width: 22px; height: 22px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.icon-btn:hover { background: #f3f4f7; }

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: #fff;
}

.flag svg { width: 28px; height: 28px; display: block; }

/* ========== CATEGORY RAIL ========== */
.cat-rail {
  padding: 22px 0 8px;
}

.cat-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 112px;
}

.cat-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: #f4f5f8;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}

.cat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-thumb svg { width: 42px; height: 42px; }

.cat-card:hover .cat-thumb {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-card.is-all .cat-thumb {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.cat-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.cat-count {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

/* ========== HERO ========== */
.hero {
  padding: 10px 0 8px;
}

.hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, #c5dfd2 0%, var(--mint) 45%, var(--mint-2) 100%);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px 18px 36px 48px;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 10ch;
}

.hero-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-old {
  color: var(--red);
  text-decoration: line-through;
  font-size: 22px;
  font-weight: 600;
}

.hero-new {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.hero-media {
  height: 100%;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 18px 28px 18px 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(26,34,50,.18));
}

/* ========== SECTIONS ========== */
.home-section {
  padding: 28px 0 8px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}

.view-all::after {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,34,50,.04);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / .92;
  background: #f7f8fa;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 8px;
  line-height: 1;
}

.product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
}

.price-old {
  color: #9aa1ad;
  text-decoration: line-through;
  font-size: 13px;
}

.price-new {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 14px;
  transition: background .15s ease;
}

.add-btn:hover { background: var(--navy-2); }
.add-btn svg { width: 18px; height: 18px; }

.empty-note {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: 48px;
  background: var(--navy);
  color: #e8ecf4;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0 0 18px;
  max-width: 34ch;
  color: rgba(232,236,244,.78);
  font-size: 14px;
  line-height: 1.6;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: rgba(232,236,244,.82);
  font-size: 14px;
  padding: 6px 0;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pay-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pay-icons span {
  background: #fff;
  color: #1a2232;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.copy {
  color: rgba(232,236,244,.55);
  font-size: 13px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto auto; gap: 12px; min-height: 68px; }
  .search-wrap { grid-column: 1 / -1; width: 100%; order: 3; }
  .cats-btn span { display: none; }
  .hero-banner { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px 24px 8px; }
  .hero-copy h1 { max-width: none; }
  .hero-media { min-height: 200px; padding: 0 18px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head h2 { font-size: 22px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-title { font-size: 13px; }
  .add-btn { font-size: 13px; padding: 10px 12px; }
}
