/* =========================================================
   Lake Aged Wine — design tokens
   Palette:
     --ink        #0b1512  near-black teal (hero / dark sections)
     --ink-2      #14201c  card surfaces on dark
     --cream      #f4f1e7  section background
     --paper      #ffffff  cards on cream
     --gold       #c9a668  primary accent (labels, rules, buttons)
     --gold-soft  #e4d3a8  hover / soft accent
     --brown      #241d16  body text on cream
     --brown-60   rgba(36,29,22,.62)
   Type:
     display: "Noto Serif Georgian" (headings — carries the brand's calm, aged character)
     body:    "Noto Sans Georgian"  (UI + paragraphs)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Georgian:wght@400;500;600;700&family=Noto+Sans+Georgian:wght@400;500;600&display=swap');

:root {
  --ink: #0b1512;
  --ink-2: #141f1b;
  --cream: #f4f1e7;
  --paper: #ffffff;
  --gold: #c9a668;
  --gold-soft: #e4d3a8;
  --brown: #241d16;
  --brown-60: rgba(36, 29, 22, .64);
  --cream-60: rgba(244, 241, 231, .68);
  --radius: 4px;
  --max: 1240px;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --sans: "Noto Sans Georgian", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.eyebrow-rule {
  width: 46px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: 14px 0 22px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid rgba(201, 166, 104, .18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-soft);
}
.brand svg { flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .14em;
  line-height: 1.35;
  color: var(--gold-soft);
  text-transform: uppercase;
}
.brand-name strong { display: block; color: #fff; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a {
  font-size: 14.5px;
  color: rgba(244, 241, 231, .82);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active {
  color: #fff;
  border-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  color: var(--gold-soft);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-soft);
  font-size: 14px;
  letter-spacing: .04em;
}
.menu-toggle { display: none; background: none; border: 0; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 18% 20%, #16332c 0%, #0c1c17 42%, #060f0c 100%);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 226, 160, .16) 0%, transparent 32%),
    linear-gradient(128deg, rgba(255, 226, 160, .10) 8%, transparent 40%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0 6px, rgba(0, 0, 0, .05) 6px 7px);
  opacity: .35;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-soft);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.22;
  margin: 0;
}
.hero-copy p {
  margin: 22px 0 0;
  color: rgba(244, 241, 231, .78);
  font-size: 16.5px;
  max-width: 46ch;
}
.hero-copy .eyebrow-rule { margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: 14.5px;
  letter-spacing: .02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(201, 166, 104, .55);
  color: var(--brown);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 166, 104, .08); }
.btn-outline-dark {
  background: transparent;
  border-color: rgba(228, 211, 168, .4);
  color: var(--gold-soft);
}
.btn-outline-dark:hover { border-color: var(--gold); background: rgba(201, 166, 104, .08); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Path / features section ---------- */
.section { padding: 88px 0; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  margin: 0;
}

.path {
  display: grid;
  grid-template-columns: 1.05fr 2fr;
  gap: 64px;
  align-items: start;
}
.path-copy p {
  color: var(--brown-60);
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 26px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.feature {
  text-align: center;
}
.feature-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border: 1px solid rgba(201, 166, 104, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature h3 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}
.feature p {
  font-size: 13.5px;
  color: var(--brown-60);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Products ---------- */
.section-dark {
  background: var(--ink);
  color: var(--cream);
}
.section-dark .section-head { text-align: center; margin-bottom: 48px; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .eyebrow-rule { margin: 14px auto 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  background: var(--ink-2);
  border: 1px solid rgba(201, 166, 104, .12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(201, 166, 104, .4); }
.product-card a.thumb-link { display: block; }
.product-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.product-thumb svg { width: 100%; height: 100%; }
.product-body { padding: 20px 22px 24px; }
.product-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #fff;
}
.product-body .subtitle {
  font-size: 12.5px;
  color: var(--gold-soft);
  opacity: .8;
  margin: 0 0 16px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price { font-family: var(--serif); font-size: 16px; color: var(--gold-soft); }
.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 166, 104, .5);
  background: transparent;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.add-cart-btn:hover { background: var(--gold); color: var(--ink); }

.section-dark .view-all { text-align: center; margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0c1a15 0%, #060c0a 100%);
  color: rgba(244, 241, 231, .82);
}
.footer-top { padding: 64px 0 40px; }
.footer-top .wrap {
  display: grid;
  grid-template-columns: auto 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(201, 166, 104, .5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.footer-brand h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: 21px;
  margin: 0 0 10px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 231, .62);
  max-width: 48ch;
  margin: 0;
}
.footer-contact { font-size: 14.5px; }
.footer-contact p { margin: 0 0 10px; }
.footer-contact a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201, 166, 104, .4);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-row a:hover { background: var(--gold); color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(244, 241, 231, .1);
}
.footer-bottom .wrap {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(244, 241, 231, .5);
}

/* ---------- Generic inner-page sections ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  margin: 0;
  color: var(--gold-soft);
}
.page-hero .eyebrow-rule { margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: 13px; color: rgba(244,241,231,.55); margin-top: 10px; }
.breadcrumb a:hover { color: var(--gold); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filters a {
  padding: 9px 18px;
  border: 1px solid rgba(36, 29, 22, .18);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--brown-60);
}
.filters a.active, .filters a:hover {
  border-color: var(--gold);
  color: var(--brown);
  background: rgba(201, 166, 104, .12);
}

.light-grid .product-card {
  background: var(--paper);
  border: 1px solid rgba(36, 29, 22, .08);
}
.light-grid .product-body h3 { color: var(--brown); }
.light-grid .price { color: var(--brown); }
.light-grid .subtitle { color: var(--brown-60); opacity: 1; }
.light-grid .add-cart-btn { border-color: rgba(36,29,22,.25); color: var(--brown); }
.light-grid .add-cart-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.empty-state {
  text-align: center;
  padding: 70px 20px;
  color: var(--brown-60);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.pd-thumb {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.pd-thumb svg { width: 100%; height: 100%; }
.pd-info .cat-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,166,104,.5);
  border-radius: 999px;
  padding: 6px 14px;
}
.pd-info h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  margin: 18px 0 6px;
}
.pd-info .subtitle { color: var(--brown-60); font-size: 15px; margin: 0 0 20px; }
.pd-info .price-lg { font-family: var(--serif); font-size: 26px; margin: 0 0 26px; }
.pd-info .desc { line-height: 1.8; color: var(--brown-60); margin: 0 0 28px; }
.pd-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 30px;
  padding: 22px 0;
  border-top: 1px solid rgba(36,29,22,.12);
  border-bottom: 1px solid rgba(36,29,22,.12);
}
.pd-meta div span { display: block; font-size: 12px; color: var(--brown-60); margin-bottom: 4px; }
.pd-meta div strong { font-family: var(--serif); font-size: 16px; }
.pd-form { display: flex; gap: 14px; align-items: center; }
.qty-input {
  width: 72px;
  padding: 14px 12px;
  border: 1px solid rgba(36,29,22,.22);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
}
.stock-note { margin-top: 14px; font-size: 13px; color: var(--brown-60); }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brown-60);
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(36,29,22,.15);
}
.cart-table td {
  padding: 20px 0;
  border-bottom: 1px solid rgba(36,29,22,.1);
  vertical-align: middle;
}
.cart-row-info { display: flex; align-items: center; gap: 16px; }
.cart-row-thumb {
  width: 64px; height: 76px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--ink);
  flex: none;
}
.cart-row-thumb svg { width: 100%; height: 100%; }
.cart-row-info h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 15px; }
.cart-row-info span { font-size: 12.5px; color: var(--brown-60); }
.qty-form { display: flex; align-items: center; gap: 8px; }
.qty-form input {
  width: 56px; padding: 8px; text-align: center;
  border: 1px solid rgba(36,29,22,.2); border-radius: 4px; font-family: inherit;
}
.remove-link { font-size: 12.5px; color: var(--brown-60); border-bottom: 1px solid transparent; }
.remove-link:hover { color: #a8412f; border-color: #a8412f; }

.cart-summary {
  background: var(--paper);
  border: 1px solid rgba(36,29,22,.1);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 110px;
}
.cart-summary h3 { font-family: var(--serif); margin: 0 0 20px; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 12px; color: var(--brown-60); }
.summary-row.total { color: var(--brown); font-weight: 600; font-size: 17px; border-top: 1px solid rgba(36,29,22,.12); padding-top: 16px; margin-top: 16px; }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; margin-bottom: 8px; color: var(--brown-60); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(36,29,22,.2);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14.5px;
  background: var(--paper);
}
.form-field textarea { resize: vertical; min-height: 90px; }

.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 26px;
}
.alert-success { background: #e7f0e5; color: #2f5233; border: 1px solid #bcd6bb; }
.alert-error { background: #f7e6e3; color: #8a3226; border: 1px solid #e6b8ae; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--cream); padding: 28px 20px; }
.admin-side .brand-name { color: #fff; margin-bottom: 30px; display: block; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 4px; font-size: 14px; color: rgba(244,241,231,.75); margin-bottom: 4px; }
.admin-side a:hover, .admin-side a.active { background: rgba(201,166,104,.15); color: #fff; }
.admin-main { padding: 40px; background: var(--cream); }
.admin-card { background: var(--paper); border: 1px solid rgba(36,29,22,.1); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(36,29,22,.08); font-size: 14px; }
.admin-table th { color: var(--brown-60); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); }
.login-box { background: var(--paper); padding: 44px; border-radius: var(--radius); width: 360px; }
.login-box h1 { font-family: var(--serif); font-size: 22px; margin: 0 0 26px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .path { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top .wrap { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: block; margin-bottom: 20px; }
  .cart-table td { display: block; border: none; padding: 4px 0; }
}
