/* ============================================================
   A&M Beauty — Stylesheet
   Palette: warm ivory + gold, inspired by the A&M logo
   ============================================================ */

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

:root {
  --ivory: #FBF8F1;
  --cream: #F6F0E1;
  --sand: #EFE6CF;
  --gold: #B08D3F;
  --gold-dark: #8F6F2A;
  --gold-light: #D9BE85;
  --ink: #2B2519;
  --ink-soft: #6B6250;
  --white: #FFFFFF;
  --danger: #A44A3F;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(43, 37, 25, .06);
  --shadow-md: 0 10px 30px rgba(43, 37, 25, .10);
  --shadow-lg: 0 24px 60px rgba(43, 37, 25, .16);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
}

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

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

.container { width: min(1200px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .85rem 2.1rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(176, 141, 63, .35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176, 141, 63, .45); }
.btn-outline { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #43392a; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 141, 63, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 0;
}
.logo { display: flex; align-items: center; gap: .65rem; }
.logo img { height: 52px; width: auto; }
.logo-text { font-family: var(--font-display); line-height: 1.05; }
.logo-text .logo-main { font-size: 1.55rem; font-weight: 600; letter-spacing: .02em; }
.logo-text .logo-sub { font-size: .72rem; letter-spacing: .5em; text-transform: lowercase; color: var(--gold-dark); font-family: var(--font-body); font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > a, .nav-drop > button {
  font-size: .95rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink); background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .4rem 0; position: relative;
}
.main-nav > a::after, .nav-drop > button::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--gold); transition: width .25s ease;
}
.main-nav > a:hover::after, .main-nav > a.active::after, .nav-drop:hover > button::after { width: 100%; }

.nav-drop { position: relative; }
.nav-drop .caret { font-size: .6rem; color: var(--gold-dark); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .6rem; min-width: 230px; opacity: 0; visibility: hidden;
  transition: all .25s ease; border: 1px solid rgba(176, 141, 63, .12);
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  display: block; padding: .55rem .9rem; border-radius: 9px; font-size: .92rem;
  transition: background .2s ease;
}
.drop-menu a:hover { background: var(--cream); color: var(--gold-dark); }
.drop-menu .drop-divider { height: 1px; background: var(--sand); margin: .4rem .6rem; }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.cart-btn {
  position: relative; background: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--ink);
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: var(--white);
  font-size: .68rem; font-weight: 600;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.burger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--cream) 0%, var(--ivory) 60%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 3rem; padding: 4.5rem 0 5rem;
}
.hero-copy .eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 500; margin-bottom: 1.2rem;
}
.hero-copy .eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.hero-copy h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 600; line-height: 1.12; margin-bottom: 1.2rem;
}
.hero-copy h1 em { font-style: italic; color: var(--gold-dark); }
.hero-copy p { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media .hero-img {
  border-radius: 24px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; object-fit: cover; width: 100%;
}
.hero-badge {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-md);
  padding: .9rem 1.4rem; display: flex; align-items: center; gap: .8rem;
}
.hero-badge .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold-dark); }
.hero-badge .lbl { font-size: .8rem; color: var(--ink-soft); line-height: 1.3; }

/* ---------- Section headings ---------- */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head .eyebrow {
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 500;
}
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600; margin-top: .4rem;
}
.section-head p { color: var(--ink-soft); max-width: 58ch; margin: .6rem auto 0; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cat-card {
  position: relative; border-radius: 20px; overflow: hidden;
  aspect-ratio: 4/4.6; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 22, 10, .72) 0%, rgba(28, 22, 10, .05) 55%);
}
.cat-card .cat-info { position: relative; z-index: 2; padding: 1.6rem; color: var(--white); }
.cat-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.cat-card p { font-size: .9rem; opacity: .85; margin: .3rem 0 .9rem; }
.cat-card .cat-link {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid var(--gold-light); padding-bottom: 2px; color: var(--gold-light);
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.6rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-thumb { position: relative; background: var(--white); aspect-ratio: 1/1; overflow: hidden; }
.product-thumb img {
  width: 100%; height: 100%; object-fit: contain; padding: 1.1rem;
  transition: transform .45s ease, opacity .3s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--ink); color: var(--white);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .32rem .7rem; border-radius: 999px;
}
.badge.badge-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.product-info { padding: 1.1rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 500; }
.product-name { font-size: .98rem; font-weight: 500; margin: .3rem 0 .6rem; line-height: 1.35; flex: 1; }
.product-name a:hover { color: var(--gold-dark); }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.price small { font-size: .8em; }
.add-btn {
  background: var(--cream); color: var(--ink); border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s ease; font-size: 1.1rem;
}
.add-btn:hover { background: var(--gold); color: var(--white); transform: scale(1.08); }
.add-btn svg { width: 18px; height: 18px; }

/* ---------- Brand strip ---------- */
.brand-strip { background: var(--white); border-block: 1px solid var(--sand); padding: 2.2rem 0; }
.brand-strip .container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 3rem; align-items: center;
}
.brand-strip a {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink-soft); letter-spacing: .03em; transition: color .2s ease;
}
.brand-strip a:hover { color: var(--gold-dark); }

/* ---------- Split feature (brand spotlight) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: 20px; box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split-copy .eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dark); font-weight: 500; }
.split-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; margin: .5rem 0 1rem; }
.split-copy p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- Newsletter ---------- */
.newsletter {
  position: relative; padding: 5rem 0; overflow: hidden; text-align: center; color: var(--white);
}
.newsletter img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.newsletter::after { content: ""; position: absolute; inset: 0; background: rgba(28, 22, 10, .55); }
.newsletter .container { position: relative; z-index: 2; }
.newsletter h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; margin-bottom: .6rem; }
.newsletter p { opacity: .9; margin-bottom: 1.8rem; }
.newsletter form { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.newsletter input {
  min-width: min(360px, 80vw); padding: .9rem 1.3rem; border-radius: 999px; border: none;
  font-family: var(--font-body); font-size: .95rem; outline: none;
}
.form-note { font-size: .85rem; margin-top: 1rem; opacity: .85; }

/* ---------- Footer ---------- */
.site-footer { background: #241E12; color: #D8D0BE; padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: .9rem; opacity: .75; margin-top: .8rem; max-width: 32ch; }
.site-footer h4 {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1rem; font-weight: 600;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer li a { font-size: .93rem; opacity: .85; transition: all .2s; }
.site-footer li a:hover { opacity: 1; color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(216, 208, 190, .15); padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .85rem; opacity: .7;
}
.socials { display: flex; gap: .9rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(216, 208, 190, .3);
  display: flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Shop page ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--cream), var(--ivory));
  padding: 3rem 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; }
.page-hero .crumbs { font-size: .85rem; color: var(--ink-soft); margin-top: .4rem; }
.page-hero .crumbs a:hover { color: var(--gold-dark); }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 92px; }
.filter-group { margin-bottom: 1.8rem; }
.filter-group h4 {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  margin-bottom: .8rem; color: var(--ink);
}
.filter-group label {
  display: flex; align-items: center; gap: .55rem; font-size: .93rem; color: var(--ink-soft);
  margin-bottom: .45rem; cursor: pointer; transition: color .2s;
}
.filter-group label:hover { color: var(--gold-dark); }
.filter-group input { accent-color: var(--gold); width: 15px; height: 15px; }
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; gap: 1rem; flex-wrap: wrap;
}
.result-count { font-size: .9rem; color: var(--ink-soft); }
.sort-select {
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
  padding: .55rem 2.2rem .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--sand);
  background: var(--white); cursor: pointer; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B08D3F' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.empty-state { text-align: center; padding: 4rem 0; color: var(--ink-soft); }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; padding: 3.5rem 0; }
.product-gallery {
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-sm);
  padding: 2rem; position: sticky; top: 100px;
}
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.pd-brand { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 500; }
.pd-title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1.15; margin: .5rem 0 1rem; }
.pd-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: 1.4rem; }
.pd-desc { color: var(--ink-soft); margin-bottom: 1.8rem; }
.pd-desc li { margin-left: 1.2rem; margin-bottom: .4rem; }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--sand); border-radius: 999px; overflow: hidden;
}
.qty button {
  width: 42px; height: 44px; border: none; background: none; font-size: 1.15rem; cursor: pointer; color: var(--ink);
  transition: background .2s;
}
.qty button:hover { background: var(--cream); }
.qty input {
  width: 44px; text-align: center; border: none; font-family: var(--font-body); font-size: 1rem; outline: none; background: transparent;
}
.pd-meta { border-top: 1px solid var(--sand); padding-top: 1.3rem; margin-top: 1.6rem; font-size: .9rem; color: var(--ink-soft); }
.pd-meta div { margin-bottom: .35rem; }
.pd-meta span { color: var(--ink); font-weight: 500; }
.related-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 1.6rem; }

/* ---------- Info pages / About / Contact ---------- */
.prose { max-width: 760px; margin-inline: auto; padding: 3.5rem 0; }
.prose h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 2.2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .45rem; }

.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 4rem 0; }
.about-hero img { border-radius: 20px; box-shadow: var(--shadow-md); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.value-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: .6rem; }
.value-card p { color: var(--ink-soft); font-size: .95rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; padding: 3.5rem 0; align-items: start; }
.contact-card {
  background: var(--white); border-radius: 20px; padding: 2.4rem; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.2rem; }
.contact-card .row { display: flex; gap: .9rem; margin-bottom: 1.1rem; font-size: .95rem; color: var(--ink-soft); }
.contact-card .row svg { width: 20px; height: 20px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.contact-form .field { margin-bottom: 1.1rem; }
.contact-form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .85rem 1.1rem; border-radius: 12px; border: 1.5px solid var(--sand);
  font-family: var(--font-body); font-size: .95rem; outline: none; background: var(--white);
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(28, 22, 10, .5); z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: -460px; width: min(430px, 94vw); height: 100dvh;
  background: var(--white); z-index: 201; display: flex; flex-direction: column;
  transition: right .38s cubic-bezier(.22, .8, .36, 1); box-shadow: var(--shadow-lg);
}
.cart-drawer.open { right: 0; }

.cart-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--sand); background: var(--white);
}
.cart-head h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.cart-head-left { display: flex; align-items: baseline; gap: .6rem; }
.cart-close {
  background: var(--cream); border: none; width: 34px; height: 34px; border-radius: 999px;
  font-size: 1.15rem; cursor: pointer; color: var(--ink-soft); line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.cart-close:hover { background: var(--sand); color: var(--ink); }

/* free-shipping progress inside the drawer */
.cart-ship {
  padding: .9rem 1.5rem 1rem; border-bottom: 1px solid var(--sand);
  background: linear-gradient(180deg, var(--ivory), var(--white));
}
.cart-ship p { font-size: .78rem; color: var(--ink-soft); margin-bottom: .5rem; letter-spacing: .01em; }
.cart-ship p strong { color: var(--gold-dark); font-weight: 600; }
.ship-track { height: 5px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.ship-track span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-radius: 999px; transition: width .45s cubic-bezier(.22,.8,.36,1);
}

.cart-items { flex: 1; overflow-y: auto; padding: .5rem 1.5rem 1rem; }
.cart-item {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 1rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--sand);
}
.cart-item:last-child { border-bottom: none; }
.ci-thumb { position: relative; display: block; }
.cart-item img {
  width: 74px; height: 74px; object-fit: contain; background: var(--ivory);
  border-radius: 12px; padding: .45rem; border: 1px solid var(--sand);
}
.ci-body { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.ci-name {
  font-size: .92rem; font-weight: 500; line-height: 1.3; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ci-name:hover { color: var(--gold-dark); }
.ci-price { font-size: .8rem; color: var(--ink-soft); }
.ci-qty {
  display: inline-flex; align-items: center; gap: 0; align-self: flex-start;
  border: 1px solid var(--sand); border-radius: 999px; background: var(--white); overflow: hidden;
}
.ci-qty button {
  width: 30px; height: 30px; border: none; background: transparent; cursor: pointer;
  font-size: .95rem; line-height: 1; color: var(--ink-soft); transition: background .2s, color .2s;
}
.ci-qty button:hover { background: var(--cream); color: var(--ink); }
.ci-qty span { min-width: 26px; text-align: center; font-size: .88rem; font-weight: 500; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: .45rem; }
.ci-line { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.ci-remove {
  background: none; border: none; color: var(--ink-soft); font-size: .74rem; cursor: pointer;
  letter-spacing: .05em; text-transform: uppercase; padding: 0; transition: color .2s;
}
.ci-remove:hover { color: var(--danger); }

.cart-empty { text-align: center; color: var(--ink-soft); padding: 3.5rem 1rem; }
.cart-empty .ce-ic { font-size: 2.4rem; display: block; margin-bottom: .8rem; opacity: .5; }
.cart-empty a { color: var(--gold-dark); text-decoration: underline; }

.cart-foot { padding: 1.2rem 1.5rem 1.4rem; border-top: 1px solid var(--sand); background: var(--ivory); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1rem; margin-bottom: .2rem; }
.cart-total strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cart-sub { font-size: .76rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cart-foot .btn { width: 100%; }
.cart-keep {
  display: block; text-align: center; font-size: .8rem; color: var(--ink-soft);
  margin-top: .85rem; text-decoration: underline; text-underline-offset: 3px;
}
.cart-keep:hover { color: var(--gold-dark); }
.cart-note { font-size: .74rem; color: var(--ink-soft); text-align: center; margin-top: .7rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: .8rem 1.6rem; border-radius: 999px;
  font-size: .9rem; z-index: 300; opacity: 0; visibility: hidden; transition: all .3s ease;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .about-hero, .contact-layout, .product-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .cat-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters {
    position: static; display: flex; gap: 2rem; flex-wrap: wrap;
    background: var(--white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm);
    margin-bottom: 1.8rem;
  }
  .filter-group { margin-bottom: 0; }
  .product-gallery { position: static; }
}
@media (max-width: 680px) {
  .main-nav {
    position: fixed; top: 68px; right: 0; left: 0; z-index: 99;
    background: var(--ivory); flex-direction: column; gap: 0; align-items: stretch;
    padding: .6rem 1.2rem 1.2rem; border-bottom: 1px solid var(--sand);
    display: none; box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-drop > button { padding: .8rem 0; width: 100%; justify-content: space-between; }
  .drop-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: var(--cream); display: none; }
  .nav-drop.open .drop-menu { display: block; }
  .burger { display: block; }
  .cat-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 10px; bottom: 10px; }
}

/* ============================================================
   Headless checkout — premium storefront layout
   ============================================================ */

body[data-page="checkout"] { background: #F7F4EC; }

/* ---------- step bar ---------- */
.co-steps-bar { background: var(--white); border-bottom: 1px solid var(--sand); }
.co-steps {
  list-style: none; display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 5vw, 3.4rem); padding: 1.15rem 0; flex-wrap: wrap;
}
.co-steps li {
  display: flex; align-items: center; gap: .6rem;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); position: relative;
}
.co-steps li + li::before {
  content: ""; position: absolute; left: calc(-1 * clamp(1rem, 5vw, 3.4rem) / 2 - 14px);
  width: 28px; height: 1px; background: var(--sand);
}
.co-step-dot {
  width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; font-size: .78rem; font-weight: 600;
  background: var(--cream); color: var(--ink-soft); border: 1px solid var(--sand);
}
.co-steps li.done .co-step-dot { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.co-steps li.done { color: var(--ink); }
.co-steps li.active .co-step-dot {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent; color: var(--white); box-shadow: 0 4px 12px rgba(176,141,63,.35);
}
.co-steps li.active { color: var(--ink); font-weight: 500; }

/* ---------- layout ---------- */
.co-wrap {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  gap: 2rem; padding: 2.6rem 0 4.5rem; align-items: start;
}

/* ---------- cards ---------- */
.co-card {
  background: var(--white); border: 1px solid #EFE9DC; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(43,37,25,.04), 0 8px 28px rgba(43,37,25,.05);
  padding: 1.6rem 1.7rem; margin-bottom: 1.15rem;
}
.co-card-head { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.35rem; }
.co-card-head h2 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  line-height: 1.15; letter-spacing: .01em;
}
.co-card-sub { font-size: .82rem; color: var(--ink-soft); margin-top: .18rem; }
.co-num {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--gold-dark);
  font-size: .85rem; font-weight: 600; margin-top: .1rem;
  border: 1px solid var(--sand);
}

/* ---------- form fields ---------- */
.co-grid { display: grid; gap: 0 1rem; }
.co-grid-2 { grid-template-columns: 1fr 1fr; }
.co-grid-3 { grid-template-columns: 1.25fr .75fr 1fr; }
.co-field { margin-bottom: 1.05rem; }
.co-field label {
  display: block; font-size: .78rem; font-weight: 500; color: var(--ink);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .42rem;
}
.co-field label em { color: var(--gold-dark); font-style: normal; }
.co-opt { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-weight: 400; }
.co-field input,
.co-field textarea,
.co-field select {
  width: 100%; padding: .82rem 1rem; border: 1px solid #E3DBC8; border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: #FCFAF5; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.co-field input::placeholder, .co-field textarea::placeholder { color: #B7AE99; }
.co-field input:hover, .co-field textarea:hover, .co-field select:hover { border-color: var(--gold-light); }
.co-field input:focus, .co-field textarea:focus, .co-field select:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, .14);
}
.co-field input.is-invalid, .co-field textarea.is-invalid {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(164, 74, 63, .12);
}
.co-field textarea { resize: vertical; min-height: 92px; }
.co-select { position: relative; }
.co-select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 7px; height: 7px;
  border-right: 1.6px solid var(--ink-soft); border-bottom: 1.6px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.co-select select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer; }

/* ---------- payment option (WooCommerce-style radio panel) ---------- */
.co-pay { display: flex; flex-direction: column; gap: .7rem; }
.co-pay-option {
  display: flex; align-items: flex-start; gap: .85rem; cursor: pointer;
  border: 1px solid #E3DBC8; border-radius: 12px; padding: 1rem 1.1rem;
  background: #FCFAF5; transition: border-color .2s, background .2s, box-shadow .2s;
}
.co-pay-option:hover { border-color: var(--gold-light); }
.co-pay-option.is-selected {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(176, 141, 63, .12);
}
.co-pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.co-radio {
  flex: none; width: 18px; height: 18px; border-radius: 999px; margin-top: .2rem;
  border: 1.6px solid #CFC5AC; background: var(--white); position: relative; transition: border-color .2s;
}
.co-pay-option.is-selected .co-radio { border-color: var(--gold); }
.co-pay-option.is-selected .co-radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}
.co-pay-body { display: flex; flex-direction: column; gap: .22rem; }
.co-pay-title { font-size: .95rem; font-weight: 500; }
.co-pay-desc { font-size: .82rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- error flash ---------- */
.co-flash {
  border: 1px solid rgba(164, 74, 63, .3); background: #FBF0EE; color: #8C3B31;
  border-left: 3px solid var(--danger); border-radius: 10px;
  padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: 1.1rem;
}

/* ---------- place order ---------- */
.btn-wide { width: 100%; }
.co-place {
  justify-content: space-between; padding-inline: 1.8rem; font-size: 1rem;
  letter-spacing: .1em; height: 56px;
}
.co-place[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }
.co-place-total { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0; text-transform: none; }
.co-legal { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: 1rem; line-height: 1.6; }
.co-legal a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- order summary ---------- */
.co-side { position: sticky; top: 92px; }
.co-summary { padding: 1.5rem 1.6rem 1.6rem; }
.co-sum-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.co-sum-head h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.co-pill {
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--cream); color: var(--gold-dark); border-radius: 999px; padding: .3rem .7rem;
}

.co-item {
  display: grid; grid-template-columns: 58px 1fr auto; gap: .85rem;
  padding: .95rem 0; border-bottom: 1px dashed var(--sand); align-items: start;
}
.co-item-thumb { position: relative; }
.co-item-thumb img {
  width: 58px; height: 58px; object-fit: contain; background: var(--ivory);
  border: 1px solid var(--sand); border-radius: 10px; padding: .3rem;
}
.co-item-qty-badge {
  position: absolute; top: -7px; right: -7px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: var(--white);
  font-size: .7rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.co-item-info { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.co-item-name {
  font-size: .88rem; font-weight: 500; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.co-item-unit { font-size: .76rem; color: var(--ink-soft); }
.co-stepper {
  display: inline-flex; align-items: center; align-self: flex-start;
  border: 1px solid var(--sand); border-radius: 999px; overflow: hidden; background: var(--white);
}
.co-stepper button {
  width: 26px; height: 26px; border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: .9rem; line-height: 1; transition: background .2s, color .2s;
}
.co-stepper button:hover { background: var(--cream); color: var(--ink); }
.co-stepper span { min-width: 24px; text-align: center; font-size: .82rem; font-weight: 500; }
.co-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.co-item-line { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.co-item-remove {
  background: none; border: none; color: #C2B79C; font-size: 1.05rem; line-height: 1;
  cursor: pointer; padding: 0; transition: color .2s;
}
.co-item-remove:hover { color: var(--danger); }
.co-empty { text-align: center; color: var(--ink-soft); font-size: .9rem; padding: 2rem 0; }

/* free shipping progress */
.co-ship-progress { padding: 1rem 0 .2rem; }
.co-ship-track { height: 5px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.co-ship-track span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width .45s cubic-bezier(.22,.8,.36,1);
}
.co-ship-hint { font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }
.co-ship-hint strong { color: var(--gold-dark); font-weight: 600; }

/* totals */
.co-totals { border-top: 1px solid var(--sand); margin-top: .9rem; padding-top: .9rem; }
.co-row { display: flex; justify-content: space-between; align-items: baseline; padding: .38rem 0; font-size: .92rem; color: var(--ink-soft); }
.co-row strong { color: var(--ink); font-weight: 600; }
.co-row-total {
  border-top: 1px solid var(--sand); margin-top: .5rem; padding-top: .85rem;
  font-size: 1rem; color: var(--ink); letter-spacing: .04em; text-transform: uppercase;
}
.co-row-total strong { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: 0; }
.co-vat { font-size: .72rem; color: var(--ink-soft); margin-top: .3rem; }
.is-free { color: var(--gold-dark) !important; }

/* trust list */
.co-trust { list-style: none; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed var(--sand); display: flex; flex-direction: column; gap: .6rem; }
.co-trust li { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-soft); }
.co-trust-ic {
  width: 26px; height: 26px; flex: none; border-radius: 999px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
.co-back { display: block; text-align: center; margin-top: 1.2rem; font-size: .82rem; color: var(--ink-soft); }
.co-back:hover { color: var(--gold-dark); }

/* ---------- order received ---------- */
.co-done {
  background: var(--white); border: 1px solid #EFE9DC; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(43,37,25,.04), 0 14px 40px rgba(43,37,25,.07);
  max-width: 700px; margin: 3.5rem auto 5rem; padding: 3rem 2.4rem 2.6rem; text-align: center;
}
.co-done-tick {
  width: 78px; height: 78px; border-radius: 999px; margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 2.3rem;
  box-shadow: 0 10px 26px rgba(176,141,63,.35);
}
.co-done h2 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; margin-bottom: .7rem; }
.co-done-lead { color: var(--ink-soft); max-width: 460px; margin: 0 auto; }
.co-done-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--sand); border: 1px solid var(--sand); border-radius: 14px;
  overflow: hidden; margin: 2rem 0 1.8rem; text-align: left;
}
.co-done-grid > div { background: var(--white); padding: 1rem .95rem; display: flex; flex-direction: column; gap: .3rem; }
.co-done-grid span { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.co-done-grid strong { font-size: .98rem; font-weight: 600; }
.co-done-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .co-wrap { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
  .co-trust { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.2rem; }
  .co-back { display: none; }
}
@media (max-width: 640px) {
  .co-card { padding: 1.3rem 1.15rem; border-radius: 14px; }
  .co-grid-2, .co-grid-3 { grid-template-columns: 1fr; }
  .co-steps li .co-step-label { display: none; }
  .co-steps li + li::before { display: none; }
  .co-steps { gap: 1.2rem; }
  .co-done { padding: 2.2rem 1.3rem 2rem; margin-top: 2rem; }
  .co-done h2 { font-size: 1.65rem; }
  .co-done-grid { grid-template-columns: 1fr 1fr; }
  .co-place { padding-inline: 1.2rem; font-size: .92rem; }
}

/* Out-of-stock state (driven by WooCommerce stock status) */
.product-card.is-out .product-thumb img { opacity: .55; filter: grayscale(.35); }
.badge.badge-out { background: #6B6250; }
.out-note { font-size: .8rem; color: var(--ink-soft); font-style: italic; }
.btn.btn-disabled { opacity: .5; pointer-events: none; }
