/* ============================================================
   ACON Parfums - Shared Stylesheet
   Luxury minimal: ink black / cream / muted gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink: #14120f;
  --ink-soft: #2a2620;
  --cream: #f6f1e9;
  --cream-dim: #ece4d6;
  --gold: #b08d57;
  --gold-light: #d9bd8c;
  --line: #ded3bf;
  --white: #fffdf9;
  --max: 1180px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}

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

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

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--cream); }

.btn-solid {
  background: var(--ink);
  color: var(--cream);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.btn-gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-gold:hover { background: var(--gold); color: var(--white); }

.btn-sm { padding: 10px 22px; font-size: 11px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  justify-self: start;
}
.logo-mark {
  height: 104px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  justify-content: center;
}
.nav-menu a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}
.nav-icon-link, .cart-link {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-icon {
  width: 20px;
  height: 20px;
  color: var(--ink);
}
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 24px; height: 1px; background: var(--ink); }

@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .logo { justify-self: start; }
  .logo-mark { height: 68px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    padding: 20px 32px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
    grid-column: 1 / -1;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(20,18,15,0.90) 0%, rgba(42,37,29,0.85) 55%, rgba(58,50,38,0.85) 100%),
    url('../assets/hero-creed.png');
  background-size: cover;
  background-position: center 30%;
  color: var(--cream);
  padding: 140px 32px 120px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176,141,87,0.25), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.hero-brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 6vw, 64px);
  margin: 18px 0 20px;
  line-height: 1.15;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: #d8d0c0;
  font-size: 17px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn { border-color: var(--gold-light); color: var(--gold-light); }
.hero .btn:hover { background: var(--gold-light); color: var(--ink); }
.hero .btn-solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- Section basics ---------- */
section { padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 16px; }
.section-head p { color: #6b6355; font-size: 15.5px; }
.divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin: 18px auto;
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(20,18,15,0.09); }
.card-media {
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 60%, var(--gold) 160%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-media .bottle {
  width: 46%;
  opacity: 0.92;
}
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-brand { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card-name { font-family: 'Playfair Display', serif; font-size: 20px; }
.card-family { font-size: 12.5px; color: #8a8171; }
.card-notes { font-size: 12.5px; color: #6b6355; margin-top: 2px; }
.card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.card-price { font-family: 'Playfair Display', serif; font-size: 17px; }
.card-price span { font-size: 12px; color: #8a8171; font-family: 'Jost', sans-serif; }

/* ---------- Filters (shop page) ---------- */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.search-input {
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  background: var(--white);
  min-width: 220px;
}
.search-input:focus { outline: none; border-color: var(--gold); }

/* ---------- Modal (quick view) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 680px) { .modal { grid-template-columns: 1fr; } }
.modal-media {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-soft) 60%, var(--gold) 160%);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-media .bottle { width: 40%; }
.modal-body { padding: 34px; position: relative; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none; border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}
.modal-body h3 { font-size: 24px; margin: 6px 0 4px; }
.modal-body .card-family { margin-bottom: 12px; }
.modal-body p.desc { font-size: 14px; color: #55503f; margin: 14px 0 20px; }
.size-options { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.size-btn {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  cursor: pointer;
  background: var(--white);
}
.size-btn.active { border-color: var(--gold); background: var(--gold); color: var(--white); }
.modal-price { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 20px; }

/* ---------- Cart drawer ---------- */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.5);
  display: none;
  z-index: 220;
}
.cart-drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 400px; max-width: 92vw;
  height: 100vh;
  background: var(--cream);
  z-index: 230;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.open { right: 0; }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--line);
}
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-thumb {
  width: 56px; height: 68px;
  background: linear-gradient(150deg, var(--ink), var(--gold));
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info .name { font-family: 'Playfair Display', serif; font-size: 15px; }
.cart-item-info .meta { font-size: 12px; color: #8a8171; margin: 2px 0 8px; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); }
.qty-control button {
  width: 26px; height: 26px; background: none; border: none; cursor: pointer; font-size: 14px;
}
.qty-control span { width: 26px; text-align: center; font-size: 13px; }
.remove-item { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #a89a7d; cursor: pointer; text-decoration: underline; }
.cart-empty { text-align: center; padding: 60px 20px; color: #8a8171; font-size: 14px; }
.cart-drawer-footer { padding: 22px 24px 26px; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfc7b6;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; font-family: 'Jost', sans-serif; font-weight: 500; }
.footer-logo { margin-bottom: 14px; }
.footer-logo-mark {
  height: 32px;
  width: auto;
  display: block;
}
.footer-grid p, .footer-grid a { font-size: 13.5px; color: #b3a98f; line-height: 2; }
.footer-grid ul { list-style: none; }
.footer-social { display: flex; gap: 16px; margin-top: 10px; }
.footer-social a { display: flex; color: #b3a98f; transition: color 0.2s ease; }
.footer-social a:hover { color: var(--gold-light); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid #34301f;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #857c66;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6355;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--ink);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { outline: none; border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-note {
  background: var(--cream-dim);
  border: 1px dashed var(--gold);
  padding: 14px 18px;
  font-size: 13px;
  color: #6b6355;
  margin-bottom: 24px;
}

/* ---------- Misc ---------- */
.bg-alt { background: var(--white); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--cream);
  padding: 14px 26px;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
