/*
Theme Name: SASMELY
Theme URI: https://sasmely.ge
Description: Custom 1:1 theme for SASMELY, WooCommerce-ready.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sasmely
*/

/* =========================================================
   SASMELY — Wine Boutique
   Design system: cream + sage + burgundy + charcoal
   ========================================================= */

/* Georgian fallback (Gilroy has no Georgian glyphs) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Georgian:wght@300;500;700&display=swap');

/* Brand font — Gilroy. SemiBold is the primary brand weight. */
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-Light.otf') format('opentype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('assets/fonts/Gilroy-ExtraBold.otf') format('opentype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #F5EFE6;
  --color-bg-soft: #FAF6EF;
  --color-bg-warm: #EFE7DA;
  --color-sage: #8B9082;
  --color-sage-dark: #6E7367;
  --color-sage-light: #B5B8AB;
  --color-burgundy: #9E1B3F;
  --color-burgundy-dark: #7A1130;
  --color-charcoal: #1A1A1A;
  --color-charcoal-soft: #2A2A2A;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-line: #E2D9C9;
  --color-gold: #B8945A;
  --color-white: #FFFFFF;

  --font-serif: 'Gilroy', 'Noto Sans Georgian', -apple-system, sans-serif;
  --font-sans: 'Gilroy', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --max-w: 1320px;
  --gutter: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --shadow-sm: 0 2px 12px rgba(26,26,26,.06);
  --shadow-md: 0 8px 32px rgba(26,26,26,.10);
  --shadow-lg: 0 20px 60px rgba(26,26,26,.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.15;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* =========================================================
   Top bar
   ========================================================= */
.topbar {
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-text-muted);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
}
.topbar__info { display: flex; gap: 28px; }
.topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info svg { width: 14px; height: 14px; opacity: .7; }
.topbar__social { display: flex; gap: 14px; }
.topbar__social a:hover { color: var(--color-burgundy); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-line);
}
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  height: 96px;
}
.logo {
  display: inline-block;
  width: 158px;
  height: 34px;
  background: url('assets/img/logo.svg') left center / contain no-repeat;
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  text-indent: -9999px;
}
.logo b { display: none; }

.nav { display: flex; gap: 32px; justify-self: center; }
.nav__item { position: relative; }
.nav__link {
  font-size: 14px; letter-spacing: .04em;
  padding: 12px 0;
  display: inline-flex; align-items: center; gap: 6px;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: 4px;
  width: 0; height: 1px; background: var(--color-burgundy);
  transition: width .35s var(--ease);
}
.nav__item:hover .nav__link::after { width: 100%; }
.nav__link svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.nav__mega {
  position: absolute; top: 100%; left: -40px;
  min-width: 760px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav__item:hover .nav__mega { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__col h5 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-burgundy); font-weight: 600;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--color-line);
}
.nav__col li a { display: block; padding: 6px 0; font-size: 14px; color: var(--color-text-muted); }
.nav__col li a:hover { color: var(--color-burgundy); }
.nav__col .view-all {
  margin-top: 10px; font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-charcoal); font-weight: 500;
}

.header__tools { display: flex; align-items: center; gap: 22px; justify-self: end; }
.header__tools button, .header__tools a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-charcoal);
}
.header__tools .icon-btn { padding: 8px; }
.header__tools svg { width: 20px; height: 20px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-burgundy); color: #fff;
  font-size: 11px; display: grid; place-items: center;
  font-weight: 600;
}
.lang-switch {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; border: 1px solid var(--color-line); border-radius: var(--radius-sm);
  font-size: 12px; letter-spacing: .15em; font-weight: 500;
}
.burger { display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500;
  border-radius: 0;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

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

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

.btn--ghost { background: transparent; color: var(--color-charcoal); border: 1px solid var(--color-charcoal); }
.btn--ghost:hover { background: var(--color-charcoal); color: #fff; }

.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: #fff; color: var(--color-charcoal); }

/* =========================================================
   Hero Slider
   ========================================================= */
.hero { position: relative; height: calc(100vh - 136px); min-height: 600px; max-height: 820px; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.45) 100%);
}
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 0 var(--gutter);
}
.hero__eyebrow {
  font-size: 12px; letter-spacing: .4em; text-transform: uppercase;
  margin-bottom: 24px; opacity: .9;
  display: inline-flex; align-items: center; gap: 14px;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ''; width: 40px; height: 1px; background: rgba(255,255,255,.6);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__subtitle {
  font-size: 16px; line-height: 1.7; max-width: 560px;
  margin: 0 auto 40px;
  opacity: .9;
}
.hero__dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero__dot {
  width: 32px; height: 2px; background: rgba(255,255,255,.4);
  cursor: pointer; transition: background .3s var(--ease);
}
.hero__dot.is-active { background: #fff; }
.hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.10); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  display: grid; place-items: center;
  color: #fff; transition: all .3s var(--ease);
}
.hero__arrow:hover { background: rgba(255,255,255,.25); }
.hero__arrow--prev { left: 32px; }
.hero__arrow--next { right: 32px; }
.hero__arrow svg { width: 18px; height: 18px; }

/* =========================================================
   Section structure
   ========================================================= */
.section { padding: 100px 0; }
.section--tight { padding: 70px 0; }
.section--sage { background: var(--color-sage); color: #fff; }
.section--cream { background: var(--color-bg-warm); }
.section--dark { background: var(--color-charcoal); color: #fff; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head__eyebrow {
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--color-burgundy);
  margin-bottom: 16px;
  display: inline-flex; align-items: center; gap: 14px;
}
.section-head__eyebrow::before, .section-head__eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--color-burgundy);
}
.section-head__title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 400;
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.section--sage .section-head__eyebrow,
.section--dark .section-head__eyebrow { color: #fff; }
.section--sage .section-head__eyebrow::before,
.section--sage .section-head__eyebrow::after,
.section--dark .section-head__eyebrow::before,
.section--dark .section-head__eyebrow::after { background: rgba(255,255,255,.5); }
.section-head__sub { color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }
.section--sage .section-head__sub, .section--dark .section-head__sub { color: rgba(255,255,255,.75); }

/* =========================================================
   Category cards (Champagne, Events, New Arrivals, Story)
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 720px;
}
.cat-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: #2a2a2a;
}
.cat-card:nth-child(1) { grid-row: span 2; }
.cat-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .9s var(--ease);
}
.cat-card:hover .cat-card__img { transform: scale(1.05); }
.cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.65) 100%);
  z-index: 1;
}
.cat-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 32px;
  z-index: 2; color: #fff;
}
.cat-card__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cat-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .9;
}
.cat-card__link svg { width: 14px; transition: transform .3s var(--ease); }
.cat-card:hover .cat-card__link svg { transform: translateX(4px); }

/* =========================================================
   Partners
   ========================================================= */
.partners { background: var(--color-bg-soft); padding: 64px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.partners__head { text-align: center; margin-bottom: 32px; }
.partners__head h3 {
  font-size: 13px; letter-spacing: .35em; text-transform: uppercase;
  font-family: var(--font-sans); font-weight: 500;
  color: var(--color-text-muted);
}
.partners__track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.partners__row {
  display: flex; align-items: center; gap: 80px;
  animation: scrollX 40s linear infinite;
  width: max-content;
}
@keyframes scrollX {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partners__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: .15em;
  color: var(--color-charcoal);
  opacity: .55;
  white-space: nowrap;
  font-weight: 500;
  transition: opacity .3s var(--ease);
}
.partners__logo:hover { opacity: 1; }
.partners__logo em { font-style: italic; opacity: .7; }

/* =========================================================
   Story (Century Old)
   ========================================================= */
.story { background: var(--color-sage); color: #fff; padding: 0; }
.story__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.story__media {
  background-size: cover; background-position: center;
}
.story__body {
  padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.story__eyebrow {
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  margin-bottom: 20px; opacity: .8;
}
.story__title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.story__text { font-size: 15px; line-height: 1.8; opacity: .9; margin-bottom: 32px; max-width: 460px; }
.story .btn { align-self: flex-start; }

/* =========================================================
   Product cards
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}
.product-card { position: relative; cursor: pointer; }
.product-card__media {
  position: relative; aspect-ratio: 3/4;
  background: var(--color-bg-warm);
  overflow: hidden;
  margin-bottom: 18px;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.badge {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  background: var(--color-charcoal); color: #fff;
  padding: 5px 10px; font-weight: 500;
}
.badge--burgundy { background: var(--color-burgundy); }
.badge--gold { background: var(--color-gold); }
.badge--sage { background: var(--color-sage-dark); }

.product-card__quick {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 20px;
  opacity: 0; transition: opacity .3s var(--ease);
  z-index: 2;
}
.product-card:hover .product-card__quick { opacity: 1; }
.product-card__quick button {
  background: #fff; color: var(--color-charcoal);
  padding: 12px 22px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.product-card__quick button:hover { background: var(--color-burgundy); color: #fff; }

.product-card__icons {
  position: absolute; top: 14px; right: 14px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.attr-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.attr-icon svg { width: 16px; height: 16px; }

.product-card__cat {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 6px;
}
.product-card__title {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.product-card__producer { font-size: 13px; color: var(--color-text-muted); margin-bottom: 12px; }

.product-card__attrs {
  display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap;
}
.attr-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 4px 8px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-line);
}
.attr-chip svg { width: 11px; height: 11px; }

.product-card__bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.product-card__price {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  color: var(--color-burgundy);
}
.product-card__price small { font-size: 13px; color: var(--color-text-muted); margin-right: 4px; font-weight: 400; }
.product-card__add {
  width: 38px; height: 38px;
  background: var(--color-charcoal); color: #fff;
  display: grid; place-items: center;
  transition: background .25s var(--ease);
}
.product-card__add:hover { background: var(--color-burgundy); }
.product-card__add svg { width: 16px; height: 16px; }

/* =========================================================
   Picks / Last bottles
   ========================================================= */
.picks-tabs {
  display: flex; gap: 36px; justify-content: center; margin-bottom: 40px;
  border-bottom: 1px solid var(--color-line);
}
.picks-tabs button {
  padding: 14px 4px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  font-weight: 500;
}
.picks-tabs button.is-active { color: var(--color-charcoal); }
.picks-tabs button.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--color-burgundy);
}

/* =========================================================
   Gift cards
   ========================================================= */
.gift {
  background: var(--color-charcoal); color: #fff;
  position: relative; overflow: hidden;
}
.gift::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(158,27,63,.25) 0%, transparent 60%);
}
.gift__inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 80px; padding: 90px 0; position: relative;
}
.gift__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.1;
}
.gift__title em { font-style: italic; color: var(--color-gold); }
.gift__text { font-size: 15px; line-height: 1.8; opacity: .8; margin-bottom: 32px; max-width: 480px; }
.gift__amounts { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.gift__amount {
  padding: 14px 22px; border: 1px solid rgba(255,255,255,.25);
  font-family: var(--font-serif); font-size: 20px;
  cursor: pointer; transition: all .25s var(--ease);
}
.gift__amount:hover, .gift__amount.is-active { background: var(--color-burgundy); border-color: var(--color-burgundy); }

.gift__visual {
  position: relative; display: grid; place-items: center;
  height: 420px;
}
.gift-card-mock {
  width: 360px; height: 220px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  border: 1px solid var(--color-gold);
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
  transform: rotate(-6deg);
  transition: transform .4s var(--ease);
}
.gift-card-mock:hover { transform: rotate(-3deg) translateY(-6px); }
.gift-card-mock::before {
  content: 'SASMELY';
  font-family: var(--font-serif); font-size: 18px; letter-spacing: .35em;
  color: var(--color-gold);
}
.gift-card-mock__chip {
  width: 40px; height: 30px; border-radius: 4px;
  background: linear-gradient(135deg, #b8945a 0%, #8a6d3f 100%);
  position: absolute; top: 70px; left: 28px;
}
.gift-card-mock__amount {
  position: absolute; bottom: 28px; right: 28px;
  font-family: var(--font-serif); font-size: 36px; color: #fff; font-weight: 500;
}
.gift-card-mock__label {
  position: absolute; bottom: 28px; left: 28px;
  font-size: 10px; letter-spacing: .3em; color: rgba(255,255,255,.5);
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--color-charcoal); color: #d4d0c8; padding: 80px 0 0; }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .logo { width: 176px; height: 38px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer__about { font-size: 14px; line-height: 1.8; opacity: .65; max-width: 320px; margin-bottom: 24px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.15);
  display: grid; place-items: center; border-radius: 50%;
  transition: all .25s var(--ease);
}
.footer__social a:hover { background: var(--color-burgundy); border-color: var(--color-burgundy); color: #fff; }
.footer__social svg { width: 14px; height: 14px; }

.footer__col h5 {
  font-family: var(--font-sans);
  font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: #fff; font-weight: 500; margin-bottom: 22px;
}
.footer__col li { margin-bottom: 10px; }
.footer__col a { font-size: 14px; opacity: .65; transition: all .25s var(--ease); }
.footer__col a:hover { opacity: 1; color: #fff; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; opacity: .8; margin-bottom: 14px; }
.footer__contact svg { width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; opacity: .6; }

.newsletter h5 { color: #fff; }
.newsletter__text { font-size: 13px; opacity: .65; margin-bottom: 16px; line-height: 1.6; }
.newsletter__form { display: flex; border: 1px solid rgba(255,255,255,.2); }
.newsletter__form input {
  flex: 1; background: transparent; border: 0; padding: 12px 14px;
  color: #fff; font-size: 13px;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__form button {
  padding: 0 18px; background: var(--color-burgundy); color: #fff;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 500;
  transition: background .25s var(--ease);
}
.newsletter__form button:hover { background: var(--color-burgundy-dark); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 12px; opacity: .5;
}
.footer__pay { display: flex; gap: 10px; align-items: center; }
.footer__pay span {
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.15);
  font-size: 11px; letter-spacing: .15em;
}

/* =========================================================
   Catalog page
   ========================================================= */
.crumbs {
  background: var(--color-bg-warm);
  padding: 16px 0;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.crumbs ol { display: flex; gap: 10px; align-items: center; }
.crumbs a { color: var(--color-text-muted); }
.crumbs a:hover { color: var(--color-burgundy); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 10px; opacity: .5; }
.crumbs .current { color: var(--color-charcoal); font-weight: 500; }

.page-head { padding: 60px 0 40px; text-align: center; }
.page-head__eyebrow {
  font-size: 11px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--color-burgundy); margin-bottom: 12px;
}
.page-head__title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400; letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.catalog {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 100px;
}
.filter-toggle-mobile { display: none; }
.filters {
  position: sticky; top: 120px; align-self: start;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 28px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.filters h4 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--color-charcoal); font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-line);
}
.filter-group { margin-bottom: 26px; }
.filter-group__title {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; padding: 6px 0;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--color-charcoal);
  margin-bottom: 12px;
}
.filter-group__title svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.filter-group.is-collapsed .filter-group__title svg { transform: rotate(-90deg); }
.filter-group.is-collapsed .filter-group__list { display: none; }
.filter-group__list { display: flex; flex-direction: column; gap: 8px; }
.filter-check {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; cursor: pointer;
  color: var(--color-text);
  padding: 4px 0;
}
.filter-check input { display: none; }
.filter-check__box {
  width: 16px; height: 16px;
  border: 1px solid var(--color-text-muted);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
  flex-shrink: 0;
}
.filter-check input:checked + .filter-check__box {
  background: var(--color-burgundy); border-color: var(--color-burgundy);
}
.filter-check__box svg { width: 10px; height: 10px; color: #fff; opacity: 0; }
.filter-check input:checked + .filter-check__box svg { opacity: 1; }
.filter-check__count { margin-left: auto; color: var(--color-text-muted); font-size: 11px; }
.filter-check:hover { color: var(--color-burgundy); }

.price-range { display: flex; gap: 8px; margin-top: 12px; }
.price-range input {
  width: 50%; padding: 8px 10px;
  border: 1px solid var(--color-line);
  background: #fff; font-size: 13px;
}
.filter-clear {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-burgundy);
  padding: 8px 0;
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}
.catalog-toolbar__count { font-size: 13px; color: var(--color-text-muted); }
.catalog-toolbar__sort {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted);
}
.catalog-toolbar__sort select {
  border: 1px solid var(--color-line);
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  text-transform: none; letter-spacing: 0;
}

.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.active-filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--color-bg-warm);
  border: 1px solid var(--color-line);
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-charcoal);
}
.active-filter button { color: var(--color-burgundy); font-weight: 700; }

.empty-state {
  text-align: center; padding: 80px 20px;
  color: var(--color-text-muted);
}
.empty-state h3 { font-size: 24px; margin-bottom: 10px; color: var(--color-charcoal); }

/* =========================================================
   Product detail page
   ========================================================= */
.product-page { padding: 50px 0 100px; }
.product-page__grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.product-gallery__main {
  background: var(--color-bg-warm);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-top: 12px;
}
.product-gallery__thumb {
  aspect-ratio: 1; background: var(--color-bg-warm);
  cursor: pointer; opacity: .55;
  transition: opacity .25s var(--ease);
}
.product-gallery__thumb:hover, .product-gallery__thumb.is-active { opacity: 1; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info__cat {
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--color-burgundy); margin-bottom: 12px;
}
.product-info__title {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 400; letter-spacing: .02em;
  margin-bottom: 6px;
}
.product-info__producer {
  font-size: 16px; color: var(--color-text-muted); margin-bottom: 24px;
}
.product-info__price {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: 28px;
}
.product-info__price small { font-size: 18px; color: var(--color-text-muted); margin-right: 6px; font-weight: 400; }
.product-info__price del { font-size: 22px; color: var(--color-text-muted); margin-left: 16px; font-weight: 400; }

.product-attrs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.attr-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px;
}
.attr-tile__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-bg-warm);
  display: grid; place-items: center;
  color: var(--color-burgundy);
}
.attr-tile__icon svg { width: 24px; height: 24px; }
.attr-tile__label {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.attr-tile__value {
  font-size: 13px; font-weight: 600; color: var(--color-charcoal);
}

.product-info__desc { font-size: 15px; line-height: 1.8; color: var(--color-text-muted); margin-bottom: 32px; }

.pairing {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 24px;
  margin-bottom: 32px;
}
.pairing h4 {
  font-family: var(--font-sans);
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--color-burgundy);
  font-weight: 600; margin-bottom: 16px;
}
.pairing__list { display: flex; gap: 14px; flex-wrap: wrap; }
.pairing__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 64px;
}
.pairing__item__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--color-line);
  display: grid; place-items: center;
  color: var(--color-charcoal);
  transition: all .25s var(--ease);
}
.pairing__item:hover .pairing__item__icon {
  background: var(--color-burgundy); color: #fff; border-color: var(--color-burgundy);
}
.pairing__item__icon svg { width: 24px; height: 24px; }
.pairing__item__label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; color: var(--color-text-muted);
}

.purchase {
  display: flex; gap: 12px; align-items: stretch; margin-bottom: 24px;
}
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--color-charcoal);
}
.qty button {
  width: 44px; height: 100%;
  font-size: 18px; color: var(--color-charcoal);
}
.qty input {
  width: 50px; text-align: center;
  background: transparent; border: 0; outline: 0;
  font-size: 14px; font-weight: 600;
}
.purchase .btn { flex: 1; justify-content: center; }
.wish {
  width: 56px; border: 1px solid var(--color-charcoal);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.wish:hover { background: var(--color-charcoal); color: #fff; }

.product-meta { font-size: 13px; color: var(--color-text-muted); }
.product-meta li { padding: 8px 0; border-bottom: 1px solid var(--color-line); display: flex; gap: 12px; }
.product-meta strong { color: var(--color-charcoal); min-width: 130px; font-weight: 600; }

/* Tabs on product page */
.product-tabs { margin-top: 80px; }
.tabs-head {
  display: flex; gap: 40px; border-bottom: 1px solid var(--color-line);
  margin-bottom: 32px;
}
.tabs-head button {
  padding: 16px 0;
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  position: relative;
}
.tabs-head button.is-active { color: var(--color-charcoal); }
.tabs-head button.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--color-burgundy);
}
.tab-panel { display: none; line-height: 1.8; max-width: 800px; }
.tab-panel.is-active { display: block; }
.tab-panel p { margin-bottom: 14px; color: var(--color-text-muted); }

/* =========================================================
   Tasting / About / Cart skeletons
   ========================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature {
  text-align: center; padding: 40px 28px;
  border: 1px solid var(--color-line);
  background: var(--color-bg-soft);
}
.feature__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-bg-warm); color: var(--color-burgundy);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.feature__icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

.cart-page { display: grid; grid-template-columns: 1fr 380px; gap: 60px; padding: 50px 0 100px; }
.cart-list li {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--color-line);
}
.cart-list img {
  width: 100px; height: 130px; object-fit: cover;
  background: var(--color-bg-warm);
}
.cart-list h4 { font-size: 18px; margin-bottom: 4px; }
.cart-list .cart-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 8px; }
.summary {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 32px;
  height: fit-content;
  position: sticky; top: 130px;
}
.summary h3 { font-size: 22px; margin-bottom: 20px; }
.summary ul li {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.summary .total {
  border-top: 1px solid var(--color-line);
  padding-top: 16px; margin-top: 8px;
  font-size: 18px; font-weight: 600; color: var(--color-charcoal);
}
.summary .total span:last-child { color: var(--color-burgundy); font-family: var(--font-serif); font-size: 24px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; place-items: center; width: 36px; height: 36px; }
  .header__inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav { justify-self: start; }

  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; height: auto; }
  .cat-card:nth-child(1) { grid-row: span 1; grid-column: span 2; aspect-ratio: 16/9; }
  .cat-card { aspect-ratio: 4/3; }

  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .story__grid { grid-template-columns: 1fr; }
  .story__media { min-height: 360px; }
  .story__body { padding: 60px 32px; }
  .gift__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }

  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 80; max-height: 100vh; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .filters.is-open { transform: translateX(0); }
  .filter-toggle-mobile {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 18px; background: var(--color-charcoal); color: #fff;
    font-size: 12px; letter-spacing: .15em; text-transform: uppercase;
    margin-bottom: 20px;
  }

  .product-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .product-attrs-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --gutter: 18px; }
  .topbar__info { gap: 14px; }
  .topbar__info span:nth-child(2) { display: none; }
  .header__inner { height: 72px; }
  .logo { width: 134px; height: 29px; }

  .hero { height: 76vh; min-height: 480px; }
  .hero__arrow { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .cat-grid { grid-template-columns: 1fr; }
  .cat-card:nth-child(1) { grid-column: span 1; aspect-ratio: 4/3; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .product-card__title { font-size: 16px; }
  .product-card__price { font-size: 18px; }

  .product-attrs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }

  .gift__inner { padding: 60px 0; }
  .gift-card-mock { width: 280px; height: 170px; }
  .gift__visual { height: 320px; }

  .nav__mega { min-width: 92vw; left: -20px; grid-template-columns: 1fr 1fr; }
}

/* Mobile drawer for nav */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; top: 0; left: 0;
  width: min(360px, 90vw); height: 100%;
  background: var(--color-bg-soft);
  padding: 28px;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close { float: right; font-size: 28px; line-height: 1; }
.drawer__nav { margin-top: 40px; }
.drawer__nav > li { border-bottom: 1px solid var(--color-line); }
.drawer__nav > li > a, .drawer__nav > li > details > summary {
  display: block; padding: 16px 0;
  font-family: var(--font-serif);
  font-size: 22px; letter-spacing: .04em;
  cursor: pointer;
}
.drawer__nav details ul { padding: 0 0 16px 12px; }
.drawer__nav details ul a { padding: 6px 0; display: block; font-size: 14px; color: var(--color-text-muted); }

/* =========================================================
   WooCommerce — Cart / Checkout / My-Account (Task 4.4)
   ========================================================= */

/* a) Buttons (classic + block) → SASMELY burgundy button */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .wc-block-components-button,
.wc-block-components-button:not(.is-link),
.wp-block-button__link {
  background: var(--color-burgundy);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 14px 28px;
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .25s var(--ease);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-block-components-button:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-block-button__link:hover {
  background: var(--color-burgundy-dark);
  color: #fff;
}
/* Link-style buttons: burgundy text, no fill */
.wc-block-components-button.is-link,
.woocommerce-remove-coupon {
  background: transparent !important; /* WC block sets inline bg */
  color: var(--color-burgundy);
  border: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
}
.wc-block-components-button.is-link:hover,
.woocommerce-remove-coupon:hover {
  color: var(--color-burgundy-dark);
  background: transparent !important;
}

/* b) Headings inside WC content → serif */
.woocommerce .wc-block-components-title,
.woocommerce h2,
.woocommerce h3,
.wc-block-cart__totals-title,
.wc-block-checkout__sidebar h2 {
  font-family: var(--font-serif);
  font-weight: 500;
}

/* c) Links inside WC → burgundy hover */
.woocommerce a:not(.button):hover {
  color: var(--color-burgundy);
}

/* d) Form fields (classic + block) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-account input.input-text,
.wc-block-components-text-input input,
.wc-block-components-text-input .input-text,
.select2-container .select2-selection {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 0;
  padding: 14px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce-account input.input-text:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-text-input .input-text:focus {
  border-color: var(--color-burgundy);
  outline: 0;
}
.wc-block-components-text-input label,
.woocommerce form .form-row label {
  color: var(--color-text-muted);
}

/* e) Cart block layout & order-summary card */
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-cart .wc-block-cart__sidebar {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 32px;
}
.wc-block-components-totals-item {
  padding: 10px 0;
  font-size: 14px;
}
.wc-block-components-totals-footer-item,
.wc-block-components-totals-item.wc-block-components-totals-footer-item
  .wc-block-components-totals-item__value {
  color: var(--color-burgundy);
  font-family: var(--font-serif);
}
.wc-block-cart-items__row {
  border-bottom: 1px solid var(--color-line);
}

/* f) Checkout block layout & order-summary card */
.wc-block-checkout__sidebar {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 32px;
}

/* g) My-Account (classic shortcode) */

/* Logged-out: side-by-side login / register cards */
.woocommerce-account:not(.logged-in) #customer_login.u-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
#customer_login .col-1 {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 48px;
}
#customer_login .col-2 {
  background: var(--color-charcoal);
  color: #fff;
  padding: 48px;
}
#customer_login .col-2 label,
#customer_login .col-2 .woocommerce-form__label {
  color: rgba(255,255,255,.8);
}
#customer_login .col-2 input.input-text {
  background: transparent;
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

/* Logged-in: sidebar nav + content grid */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
}
.woocommerce-MyAccount-navigation {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 130px;
}
.woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text);
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: #fff;
  color: var(--color-burgundy);
  font-weight: 600;
}
.woocommerce-MyAccount-content {
  min-width: 0;
}

/* Account tables (orders etc.) */
.woocommerce-orders-table,
.woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border-collapse: collapse;
}
.woocommerce-orders-table th {
  padding: 14px 0;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-weight: 500;
}
.woocommerce-orders-table td,
.woocommerce-MyAccount-content table.shop_table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

/* h) WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  border-radius: 0;
}
.woocommerce-message {
  border-left: 3px solid var(--color-sage);
}
.woocommerce-error {
  border-left: 3px solid var(--color-burgundy);
}

/* i) Responsive — collapse two-column WC layouts */
@media (max-width: 1100px) {
  .woocommerce-account.logged-in .woocommerce {
    grid-template-columns: 1fr;
  }
  .woocommerce-account:not(.logged-in) #customer_login.u-columns {
    grid-template-columns: 1fr;
  }
}
