/*
Theme Name: Candles by Petra
Theme URI: https://candlesbypetra.com
Author: Vojta
Description: Custom theme for Candles by Petra, built from the original static design (navrh1). WooCommerce ready.
Version: 1.0
Requires PHP: 7.4
Text Domain: candles-by-petra
*/

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

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

:root {
  --cream: #f9f5f0;
  --white: #ffffff;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --dark: #1a1a18;
  --grey: #7a7a72;
  --border: #e8e2d9;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 4rem;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 56px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active, .nav-links li.current-menu-item a { color: var(--dark); }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--grey); transition: color .2s;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0; padding: 0;
}
.nav-hamburger:hover { color: var(--dark); }

.nav-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(249,245,240,.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 400; font-style: italic;
  color: rgba(26,26,24,.38); transition: color .25s;
}
.nav-mobile-menu a:hover, .nav-mobile-menu a.active { color: var(--dark); }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: rgba(26,26,24,.35); font-size: 2rem; line-height: 1; padding: .25rem; transition: color .2s;
}
.nav-mobile-close:hover { color: var(--dark); }

/* ── BUTTONS ── */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 2rem; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  border: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn-pill-dark {
  background: linear-gradient(160deg,#2c2c2a,#1a1a18); color: #fff;
  box-shadow: 0 5px 16px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.09) inset, 0 -2px 0 rgba(0,0,0,.18) inset;
}
.btn-pill-dark:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(0,0,0,.26), 0 1px 0 rgba(255,255,255,.09) inset; }
.btn-pill-dark:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-pill-ghost {
  background: rgba(255,255,255,.5); color: var(--dark);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 3px 10px rgba(0,0,0,.06), 0 1px 0 rgba(255,255,255,.95) inset;
}
.btn-pill-ghost:hover { background: rgba(255,255,255,.75); transform: translateY(-2px); }
.btn-pill-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-pill-ghost-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); border-color: rgba(255,255,255,.7); }

/* ── SHARED COMPONENTS ── */
.section-label { display: block; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

.card {
  position: relative; background: rgba(255,255,255,.84);
  border-radius: 24px; border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 32px 64px rgba(0,0,0,.14);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 99; pointer-events: none; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  opacity: .5;
}

.origin-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.9); border-radius: 100px;
  padding: .3rem .85rem .3rem .55rem; width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,.05), 0 1px 0 rgba(255,255,255,.9) inset;
}
.origin-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.origin-label { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(26,26,24,.5); }

.watermark-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: 'Cormorant Garamond', serif; font-size: clamp(3.5rem,11vw,9rem);
  font-weight: 600; line-height: 1; white-space: nowrap; letter-spacing: -.01em;
  color: rgba(201,169,110,.09); pointer-events: none; z-index: 0; user-select: none;
}

/* ── BOTANICAL MOTIFS ── */
.motif-olive::before,
.motif-lavender::before {
  content: ''; position: absolute; width: 320px; height: 640px;
  background-repeat: no-repeat; background-size: contain;
  opacity: .3; pointer-events: none; z-index: 0;
}
.motif-olive::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100,395 C90,320 108,260 96,200 C86,150 106,90 100,20' fill='none' stroke='%23c9a96e' stroke-width='2.6'/%3E%3Cg fill='none' stroke='%23c9a96e' stroke-width='2.2'%3E%3Cellipse cx='118' cy='350' rx='22' ry='8' transform='rotate(-30 118 350)'/%3E%3Cellipse cx='80' cy='330' rx='22' ry='8' transform='rotate(35 80 330)'/%3E%3Cellipse cx='120' cy='290' rx='22' ry='8' transform='rotate(-28 120 290)'/%3E%3Cellipse cx='78' cy='265' rx='22' ry='8' transform='rotate(32 78 265)'/%3E%3Cellipse cx='114' cy='230' rx='21' ry='8' transform='rotate(-25 114 230)'/%3E%3Cellipse cx='82' cy='200' rx='21' ry='8' transform='rotate(30 82 200)'/%3E%3Cellipse cx='108' cy='165' rx='20' ry='7' transform='rotate(-22 108 165)'/%3E%3Cellipse cx='86' cy='135' rx='20' ry='7' transform='rotate(26 86 135)'/%3E%3Cellipse cx='104' cy='100' rx='19' ry='7' transform='rotate(-20 104 100)'/%3E%3Cellipse cx='90' cy='70' rx='18' ry='7' transform='rotate(22 90 70)'/%3E%3Cellipse cx='100' cy='40' rx='16' ry='6' transform='rotate(-15 100 40)'/%3E%3C/g%3E%3C/svg%3E");
}
.motif-lavender::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400'%3E%3Cpath d='M100,395 L100,140' fill='none' stroke='%23c9a96e' stroke-width='2.6'/%3E%3Cpath d='M100,340 C70,335 55,315 60,290' fill='none' stroke='%23c9a96e' stroke-width='2'/%3E%3Cpath d='M100,300 C130,295 145,275 140,250' fill='none' stroke='%23c9a96e' stroke-width='2'/%3E%3Cg fill='none' stroke='%23c9a96e' stroke-width='2'%3E%3Cellipse cx='100' cy='130' rx='10' ry='15'/%3E%3Cellipse cx='84' cy='118' rx='10' ry='15' transform='rotate(-18 84 118)'/%3E%3Cellipse cx='116' cy='118' rx='10' ry='15' transform='rotate(18 116 118)'/%3E%3Cellipse cx='92' cy='100' rx='10' ry='15' transform='rotate(-12 92 100)'/%3E%3Cellipse cx='108' cy='100' rx='10' ry='15' transform='rotate(12 108 100)'/%3E%3Cellipse cx='100' cy='80' rx='9' ry='14'/%3E%3Cellipse cx='86' cy='68' rx='9' ry='13' transform='rotate(-15 86 68)'/%3E%3Cellipse cx='114' cy='68' rx='9' ry='13' transform='rotate(15 114 68)'/%3E%3Cellipse cx='100' cy='45' rx='8' ry='12'/%3E%3Cellipse cx='100' cy='18' rx='7' ry='10'/%3E%3C/g%3E%3C/svg%3E");
}
.page-header.motif-lavender::before { top: 20px; right: 40px; transform: rotate(10deg); }
.page-header.motif-olive::before    { top: 20px; left: 40px; transform: rotate(-12deg) scaleX(-1); }
.hero-content { position: relative; overflow: hidden; }
.hero-content > * { position: relative; z-index: 1; }
.hero-content.motif-lavender::before { width: 220px; height: 440px; bottom: -40px; left: -30px; transform: rotate(-6deg); }
.testimonial-section { position: relative; overflow: hidden; }
.testimonial-quote, .testimonial-author { position: relative; z-index: 1; }
.testimonial-section.motif-olive::before { top: 10px; right: 4%; transform: rotate(12deg); opacity: .22; }
.contact-info { position: relative; overflow: hidden; }
.contact-info > * { position: relative; z-index: 1; }
.contact-info.motif-olive::before { bottom: -50px; right: -60px; transform: rotate(12deg) scaleX(-1); opacity: .22; }
@media (max-width: 700px) { .motif-olive::before, .motif-lavender::before { width: 200px; height: 400px; opacity: .18; } }
@media (max-width: 480px) { .motif-olive::before, .motif-lavender::before { display: none; } }

/* ── HERO (home) ── */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  min-height: 92vh; padding-top: 76px;
}
.hero-content { display: flex; flex-direction: column; justify-content: center; padding: 3rem 4rem 3rem 6rem; z-index: 2; }
.hero-content .origin-badge { margin-bottom: 1.6rem; }
.hero-title { font-size: clamp(2.8rem,5vw,5.2rem); font-weight: 300; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle { color: var(--grey); max-width: 420px; margin-bottom: 2.5rem; font-size: 1rem; line-height: 1.8; }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-image { position: relative; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── FEATURED (home) ── */
.featured { position: relative; padding: 7rem 6rem; background: var(--white); }
.featured-header { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.featured-header h2 { font-size: clamp(2.2rem,3.4vw,3.2rem); }
.featured-header h2 em { font-style: italic; }
.featured-header p { color: var(--grey); margin-top: 1rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.featured-cta { text-align: center; margin-top: 4rem; }

/* ── PRODUCT CARD (used on home + shop) ── */
.product-card { position: relative; overflow: hidden; cursor: pointer; transition: transform .35s ease; }
.product-card:hover { transform: translateY(-8px); }
.product-image { aspect-ratio: 3/4; overflow: hidden; margin-bottom: 1.25rem; position: relative; box-shadow: 0 0 0 rgba(0,0,0,0); transition: box-shadow .35s ease; }
.product-card:hover .product-image { box-shadow: 0 24px 48px rgba(0,0,0,.13); }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; cursor: zoom-in; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-card-body { padding: 1.5rem 1.5rem 1.75rem; }
.product-card .origin-badge { margin-bottom: 1rem; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: .2rem; }
.product-scent { font-size: .78rem; color: var(--grey); margin-bottom: .6rem; }
.product-price { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--gold); font-weight: 500; }
.product-card.card { overflow: hidden; }
.product-card .product-image { margin-bottom: 0; }
.product-card .btn-pill { width: 100%; margin-top: 1.1rem; }

/* WooCommerce loop uses ul.products > li.product; wrap our markup inside so this still applies */
ul.products { display: contents; }
ul.products li.product { list-style: none; }
.woocommerce span.onsale { display: none; } /* replaced by our own sold-out styling below */
.woocommerce .price ins { text-decoration: none; }

/* ── FLAME EFFECT ── */
.flame { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 18px; height: 30px; opacity: 0; transition: opacity .4s ease; pointer-events: none; z-index: 3; }
.flame::before {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 16px; height: 28px;
  background: radial-gradient(ellipse at 50% 90%, #fff 0%, #ffe566 18%, #ff9500 55%, #ff3300 82%, transparent 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%; filter: blur(0.5px);
  animation: flicker .5s ease-in-out infinite alternate;
}
.flame::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 10px; height: 10px;
  background: rgba(255,210,60,.5); border-radius: 50%; filter: blur(5px);
  animation: glow .5s ease-in-out infinite alternate;
}
.product-card:hover .flame { opacity: 1; }
@keyframes flicker { 0% { transform: translateX(-50%) scaleX(1) scaleY(1) rotate(-3deg); filter: blur(.5px); } 100% { transform: translateX(-50%) scaleX(.78) scaleY(1.18) rotate(3deg); filter: blur(1px); } }
@keyframes glow { 0% { opacity: .5; transform: translateX(-50%) scale(1); } 100% { opacity: 1; transform: translateX(-50%) scale(1.6); } }

/* Sold out state (mirrors WooCommerce's .outofstock class) */
.product-card.outofstock .btn-pill,
.product-card .btn-pill.disabled { opacity: .5; cursor: not-allowed; }

/* ── ABOUT TEASER (home) ── */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; min-height: 72vh; }
.about-teaser-image { overflow: hidden; }
.about-teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser-content { background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 6rem; }
.about-teaser-content h2 { font-size: clamp(2rem,3vw,3rem); color: #fff; margin-bottom: 1.5rem; }
.about-teaser-content h2 em { font-style: italic; color: var(--gold); }
.about-teaser-content p { color: rgba(255,255,255,.62); max-width: 420px; margin-bottom: 2.5rem; }

/* ── TESTIMONIAL ── */
.testimonial-section { padding: 6rem; text-align: center; background: var(--cream); }
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem,2.6vw,2.3rem); line-height: 1.55; max-width: 760px; margin: 0 auto 1.5rem; color: var(--dark);
}
.testimonial-author { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
/* dark variant, used on About page */
.testimonial-section.is-dark { background: var(--dark); color: var(--white); }
.testimonial-section.is-dark .testimonial-quote { color: var(--white); }

/* ── FOOTER ── */
footer.site-footer { background: var(--dark); color: rgba(255,255,255,.5); padding: 5rem 6rem 3rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; }
.footer-logo { display: block; margin-bottom: 1rem; opacity: .9; }
.footer-logo img { height: 34px; width: auto; }
.footer-brand p { font-size: .85rem; line-height: 1.9; max-width: 280px; }
.footer-col h4 { color: #fff; font-family: 'Jost', sans-serif; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.5); transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: .85rem; margin-bottom: .5rem; }
.footer-bottom { background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 6rem; font-size: .75rem; color: rgba(255,255,255,.25); display: flex; justify-content: space-between; }

/* ── PAGE HEADER (Shop / About) ── */
.page-header { position: relative; overflow: hidden; padding: 12rem 6rem 6rem; text-align: center; background-color: var(--white); border-bottom: 1px solid var(--border); }
.page-header .watermark-text { top: 58%; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page-header .section-label, .page-header h1, .page-header p { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 1rem; }
.page-header p { color: var(--grey); max-width: 500px; margin: 0 auto; font-size: 1rem; }

/* ── SHOP PAGE ── */
.shop-section { padding: 6rem; background-color: var(--cream); }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; max-width: 880px; margin: 0 auto; }

/* ── ABOUT PAGE ── */
.about-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.about-story-image { overflow: hidden; }
.about-story-image img { width: 100%; height: 100%; object-fit: cover; }
.about-story-content { padding: 7rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.about-story-content h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 1.5rem; }
.about-story-content p { color: var(--grey); margin-bottom: 1.25rem; max-width: 460px; }

.about-values { padding: 8rem 6rem; background-color: var(--cream); text-align: center; }
.about-values h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 4rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3rem; }
.value-item.card { padding: 2.5rem 2rem; text-align: left; }
.value-item .origin-dot { width: 10px; height: 10px; margin-bottom: 1.25rem; }
.value-item h3 { font-size: 1.4rem; margin-bottom: .75rem; color: var(--gold); }
.value-item p { font-size: .9rem; color: var(--grey); }

/* ── CONTACT PAGE ── */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; padding-top: 80px; }
.contact-info { padding: 7rem 5rem; background-color: var(--dark); color: var(--white); display: flex; flex-direction: column; justify-content: center; }
.contact-info .section-label { color: var(--gold); }
.contact-info h2 { font-size: clamp(2rem, 3vw, 3rem); color: var(--white); margin-bottom: 1.5rem; }
.contact-info p { color: rgba(255,255,255,0.6); margin-bottom: 2.5rem; max-width: 380px; }
.contact-detail { margin-bottom: 1.25rem; }
.contact-detail-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.contact-detail-value { font-size: .95rem; color: rgba(255,255,255,0.8); }
.contact-form-wrap { padding: 7rem 5rem; background-color: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.contact-form-wrap h2 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); margin-bottom: 2.5rem; }
.checkout-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.checkout-field label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.checkout-field input, .checkout-field textarea {
  padding: .65rem .85rem; border: 1px solid var(--border); background: var(--white);
  font-family: 'Jost', sans-serif; font-size: .9rem; font-weight: 300; color: var(--dark);
  outline: none; transition: border-color .2s; border-radius: 2px;
}
.checkout-field input:focus, .checkout-field textarea:focus { border-color: var(--gold); }
.contact-form-wrap .checkout-field textarea { height: 130px; resize: none; }

/* ── HOW TO ORDER / CANDLE CARE ── */
.how-order-section { padding: 6rem 4rem; text-align: center; background: var(--cream); }
.how-order-section h2 { font-size: 2.4rem; margin: .5rem 0 3.5rem; }
.how-order-section h2 em { font-style: italic; }
.how-order-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.how-order-step { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.how-order-num { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.how-order-step h4 { font-size: 1.15rem; }
.how-order-step p { font-size: .85rem; color: var(--grey); line-height: 1.65; max-width: 220px; }

/* ── LIGHTBOX ── */
#lightbox { display: none; position: fixed; inset: 0; background: rgba(10,10,8,.88); z-index: 999; align-items: center; justify-content: center; padding: 2rem; cursor: pointer; }
#lightbox.active { display: flex; }
#lightbox-img { max-width: 88vw; max-height: 88vh; object-fit: contain; cursor: default; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
#lightbox-close { position: fixed; top: 1.25rem; right: 1.75rem; color: rgba(255,255,255,.8); font-size: 2.2rem; font-weight: 300; background: none; border: none; cursor: pointer; transition: color .2s; z-index: 1000; }
#lightbox-close:hover { color: var(--gold); }

/* ══════════════════════════════════════════════
   WOOCOMMERCE — CART DRAWER (mini-cart)
   ══════════════════════════════════════════════ */
.cart-icon-btn { background: none; border: none; cursor: pointer; position: relative; padding: .25rem; display: flex; align-items: center; color: var(--dark); transition: color .3s; }
.cart-icon-btn:hover { color: var(--gold); }
.cart-icon-btn svg { width: 24px; height: 24px; }
.cart-badge {
  display: none; position: absolute; top: -4px; right: -6px;
  background-color: var(--gold); color: var(--white); font-size: .65rem; font-weight: 500;
  width: 18px; height: 18px; border-radius: 50%; align-items: center; justify-content: center;
}
.cart-badge.show { display: flex; }

#cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; }
#cart-overlay.active { display: block; }

#cart-drawer {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 100vw; height: 100vh;
  background: var(--white); z-index: 201; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s ease;
}
#cart-drawer.active { transform: translateX(0); }

.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 2rem; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 1.4rem; }
.cart-header-close { background: none; border: none; font-size: 1.8rem; font-weight: 300; cursor: pointer; color: var(--grey); line-height: 1; transition: color .2s; }
.cart-header-close:hover { color: var(--dark); }

#cart-items, .woocommerce-mini-cart { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; list-style: none; }
.cart-empty, .woocommerce-mini-cart.empty { color: var(--grey); font-size: .9rem; text-align: center; padding: 3rem 0; }

.cart-item, .woocommerce-mini-cart-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); list-style: none; }
.cart-item-image { width: 56px; height: 56px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; margin-bottom: .2rem; }
.cart-item-price { font-size: .82rem; color: var(--gold); font-weight: 500; }
.cart-item-controls { display: flex; align-items: center; gap: .5rem; }
.qty-btn { background: none; border: 1px solid var(--border); width: 28px; height: 28px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--dark); transition: all .2s; }
.qty-btn:hover { background-color: var(--dark); color: var(--white); border-color: var(--dark); }
.qty-num { font-size: .9rem; min-width: 20px; text-align: center; }
.cart-remove { background: none; border: none; font-size: 1.3rem; color: var(--grey); cursor: pointer; margin-left: .25rem; line-height: 1; transition: color .2s; }
.cart-remove:hover { color: var(--dark); }

.cart-footer { padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; }
.cart-total-row span:last-child { color: var(--gold); font-weight: 500; }
.btn-checkout { display: block; width: 100%; padding: 1rem; background-color: var(--dark); color: var(--white); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; border: none; cursor: pointer; transition: background-color .3s; margin-bottom: .75rem; text-align: center; }
.btn-checkout:hover { background-color: var(--gold); }
.cart-note { font-size: .75rem; color: var(--grey); text-align: center; line-height: 1.5; }

/* ══════════════════════════════════════════════
   WOOCOMMERCE — checkout page (styled to match)
   ══════════════════════════════════════════════ */
.woocommerce-checkout .page-header { padding-bottom: 3rem; }
.woocommerce-checkout form.checkout {
  max-width: 1140px; margin: 0 auto; padding: 4rem 2rem 6rem;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem 4rem; align-items: start;
}
.woocommerce-checkout .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 1.25rem; font-size: 1.5rem; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem 1.75rem 2rem; }

.woocommerce-checkout h3 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.5rem; margin-bottom: 1.5rem; }
.woocommerce-billing-fields .form-row,
.woocommerce-additional-fields .form-row { margin-bottom: 1.1rem; }
.woocommerce-checkout .form-row label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--grey); margin-bottom: .4rem;
}
.woocommerce-checkout .form-row label .required { color: var(--gold); text-decoration: none; }
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last { width: calc(50% - .5rem); display: inline-block; }
.woocommerce-checkout .form-row-first { float: left; }
.woocommerce-checkout .form-row-last { float: right; }
.woocommerce-checkout #customer_details::after { content: ''; display: block; clear: both; }
.woocommerce-checkout .woocommerce-additional-fields { clear: both; padding-top: .5rem; }
.select2-container .select2-selection--single {
  height: auto !important; padding: .65rem .85rem; border: 1px solid var(--border) !important;
  border-radius: 2px !important; font-family: 'Jost', sans-serif;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-checkout select {
  padding: .65rem .85rem; border: 1px solid var(--border); background: var(--white);
  font-family: 'Jost', sans-serif; font-size: .9rem; font-weight: 300; color: var(--dark);
  border-radius: 2px; width: 100%;
}

.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.woocommerce-checkout-review-order-table thead th {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
  text-align: left; padding-bottom: .6rem; border-bottom: 1px solid var(--border); font-weight: 400;
}
.woocommerce-checkout-review-order-table thead th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table td { padding: .85rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table .cart-subtotal td,
.woocommerce-checkout-review-order-table .shipping td,
.woocommerce-checkout-review-order-table .order-total td { text-align: right; }
.woocommerce-checkout-review-order-table tfoot tr:last-child td,
.woocommerce-checkout-review-order-table tfoot tr:last-child th {
  border-bottom: none; border-top: 1px solid var(--dark); padding-top: 1rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child td { color: var(--gold); font-weight: 500; }

#payment { background: var(--cream); border-radius: 8px; padding: 1.5rem; margin-top: 1.5rem; }
#payment ul.payment_methods { list-style: none; margin: 0 0 .5rem; }
#payment .payment_box { font-size: .85rem; color: var(--grey); line-height: 1.7; padding: .75rem 0 0; }
#payment .payment_box p:first-child { margin-top: 0; }
.woocommerce-checkout #place_order { width: 100%; margin-top: 1.25rem; }
.woocommerce-privacy-policy-text p { font-size: .78rem; color: var(--grey); line-height: 1.6; margin-top: 1rem; }

.woocommerce #place_order,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 2rem; border-radius: 100px;
  font-family: 'Jost', sans-serif; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  border: none; cursor: pointer;
  background: linear-gradient(160deg,#2c2c2a,#1a1a18); color: #fff !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #place_order:hover { background: var(--gold); }

@media (max-width: 900px) {
  .woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout-review-order-table { display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last { width: 100%; float: none; }
}

/* ══════════════════════════════════════════════
   WOOCOMMERCE — Order Received / Thank You page
   ══════════════════════════════════════════════ */
.woocommerce-order-received .page-header { padding-bottom: 3rem; }
.woocommerce-order-received div[style*="max-width:760px"] { max-width: 640px !important; }
.woocommerce-order > * + * { margin-top: 1.75rem; }

.woocommerce-order .woocommerce-thankyou-order-received {
  display: block; background: var(--cream); border: 1px solid var(--gold-light);
  border-radius: 12px; padding: 1.5rem 1.75rem; margin: 0 0 1.75rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--dark);
}

.woocommerce-order-overview {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem 2rem;
  list-style: none; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem 1.75rem;
}
.woocommerce-order-overview li {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey);
}
.woocommerce-order-overview li strong {
  display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem;
  letter-spacing: 0; text-transform: none; color: var(--dark); margin-top: .3rem;
}
.woocommerce-order-overview__total strong { color: var(--gold); }

/* BACS bank details box — deliberately the most visually distinct element on the page */
.woocommerce-order h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.wc-bacs-bank-details-account-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.1rem;
  color: var(--dark); margin: 0 0 .75rem;
}
ul.wc-bacs-bank-details,
ul.bacs_details {
  list-style: none; background: #fffbf0; border: 1px solid var(--gold-light);
  border-radius: 12px; padding: 1.5rem 1.75rem; margin: 0;
}
ul.wc-bacs-bank-details li,
ul.bacs_details li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(201,169,110,.25);
  font-size: .85rem; color: var(--grey);
}
ul.wc-bacs-bank-details li:last-child,
ul.bacs_details li:last-child { border-bottom: none; }
ul.wc-bacs-bank-details li strong,
ul.bacs_details li strong { color: var(--dark); font-weight: 500; }
ul.wc-bacs-bank-details li.iban strong,
ul.bacs_details li.iban strong,
ul.wc-bacs-bank-details li.payment_reference strong,
ul.bacs_details li.payment_reference strong { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--gold); letter-spacing: .03em; }

.woocommerce-order-details {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem;
}
.woocommerce-order-details__title { font-size: 1.3rem; margin: 0 0 1.25rem; }
.woocommerce-order-details table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-order-details table.shop_table th,
.woocommerce-order-details table.shop_table td { padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; text-align: left; }
.woocommerce-order-details table.shop_table thead th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); font-weight: 400; }
.woocommerce-order-details table.shop_table td.product-total,
.woocommerce-order-details table.shop_table th[scope="row"] + td { text-align: right; }
.woocommerce-order-details table.shop_table tfoot tr:last-child th,
.woocommerce-order-details table.shop_table tfoot tr:last-child td {
  border-bottom: none; font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--gold);
}

.woocommerce-customer-details,
.woocommerce-order address {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem 1.75rem;
  font-style: normal; font-size: .88rem; color: var(--grey); line-height: 1.8;
}
.woocommerce-customer-details h2 { font-size: 1.15rem; margin-bottom: .75rem; color: var(--dark); }

/* ══════════════════════════════════════════════
   WOOCOMMERCE — full Cart page (classic [woocommerce_cart])
   ══════════════════════════════════════════════ */
.woocommerce-cart .page-header { padding-bottom: 3rem; }
.woocommerce-cart .woocommerce {
  max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 6rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start;
}
.woocommerce-cart .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart form.woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .cart-collaterals { grid-column: 2; }
.woocommerce-cart table.shop_table { width: 100%; border-collapse: collapse; }
.woocommerce-cart table.shop_table thead th {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
  text-align: left; padding-bottom: .75rem; border-bottom: 1px solid var(--border); font-weight: 400;
}
.woocommerce-cart table.shop_table td { padding: 1.25rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: .9rem; }
.woocommerce-cart td.product-remove { width: 32px; padding-right: 0; }
.woocommerce-cart td.product-remove a { color: var(--grey); font-size: 1.2rem; }
.woocommerce-cart td.product-thumbnail { width: 90px; }
.woocommerce-cart td.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.woocommerce-cart td.product-name a { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--dark); }
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal { color: var(--gold); font-weight: 500; }
.woocommerce-cart .quantity input.qty {
  width: 60px; padding: .5rem; border: 1px solid var(--border); border-radius: 4px;
  font-family: 'Jost', sans-serif; text-align: center;
}
.woocommerce-cart .coupon { display: flex; gap: .5rem; margin-top: 1.5rem; }
.woocommerce-cart .coupon input#coupon_code { flex: 1; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: 2px; }
.woocommerce-cart .actions { margin-top: 1.5rem; }
.woocommerce-cart .actions::after { content: ''; display: block; clear: both; }

.woocommerce-cart .cart_totals {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.75rem 1.75rem 2rem;
}
.woocommerce-cart .cart_totals h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.woocommerce-cart .cart_totals table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: .75rem 0; border-bottom: 1px solid var(--border); text-align: left; font-size: .9rem; font-weight: 400; }
.woocommerce-cart .cart_totals table td { text-align: right; }
.woocommerce-cart .cart_totals table tr:last-child th,
.woocommerce-cart .cart_totals table tr:last-child td {
  border-bottom: none; font-family: 'Cormorant Garamond', serif; font-size: 1.25rem;
}
.woocommerce-cart .cart_totals table tr:last-child td { color: var(--gold); font-weight: 500; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; }

@media (max-width: 900px) {
  .woocommerce-cart .woocommerce { grid-template-columns: 1fr; }
  .woocommerce-cart form.woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals { grid-column: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 1.1rem 2rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { height: 52vh; order: -1; }
  .hero-content { padding: 3rem 2.5rem; }
  .featured { padding: 5rem 2.5rem; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-image { height: 48vh; }
  .about-teaser-content { padding: 4rem 2.5rem; }
  .testimonial-section { padding: 4.5rem 2.5rem; }
  footer.site-footer { grid-template-columns: 1fr 1fr; padding: 4rem 2.5rem 2.5rem; gap: 2.5rem; }
  .footer-bottom { padding: 1rem 2.5rem; }
  .page-header { padding: 8rem 2.5rem 4rem; }
  .shop-section { padding: 4rem 2.5rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-story { grid-template-columns: 1fr; }
  .about-story-image { height: 50vh; }
  .about-story-content { padding: 4rem 2.5rem; }
  .about-values { padding: 5rem 2.5rem; }
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-info { padding: 5rem 2.5rem; }
  .contact-form-wrap { padding: 4rem 2.5rem; }
  .how-order-section { padding: 5rem 2.5rem; }
  .how-order-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  nav { padding: .75rem 1.25rem; }
  .nav-logo img { height: 42px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding-top: 64px; }
  .hero-image { height: 42vh; }
  .hero-content { padding: 2.25rem 1.25rem; }
  .hero-title { font-size: clamp(2.1rem,8vw,2.8rem); }
  .hero-subtitle { font-size: .9rem; }
  .btn-pill { padding: .75rem 1.4rem; font-size: .65rem; }
  .featured { padding: 3.5rem 1.25rem; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem .75rem; }
  .product-card-body { padding: 1rem 1rem 1.25rem; }
  .product-card .origin-badge { margin-bottom: .6rem; padding: .22rem .6rem .22rem .4rem; }
  .product-card .origin-label { font-size: .52rem; }
  .product-name { font-size: 1.05rem; }
  .product-scent { font-size: .7rem; }
  .product-price { font-size: 1rem; }
  .about-teaser-image { height: 38vh; }
  .about-teaser-content { padding: 3rem 1.25rem; }
  .testimonial-section { padding: 3.5rem 1.25rem; }
  footer.site-footer { grid-template-columns: 1fr; padding: 3rem 1.25rem 2rem; gap: 2rem; }
  .footer-bottom { padding: 1rem 1.25rem; flex-direction: column; gap: .5rem; }
  .shop-section { padding: 2.5rem 1rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem .75rem; }
  .about-story-content { padding: 3rem 1.5rem; }
  .about-values { padding: 4rem 1.5rem; }
  .contact-info { padding: 4rem 1.5rem; }
  .contact-form-wrap { padding: 3rem 1.5rem; }
  .how-order-section { padding: 4rem 1.5rem; }
  .how-order-steps { grid-template-columns: 1fr; gap: 2.5rem; }
}
