/* =============================================
   DHARMAZENTS — candles + scents
   Design System & Global Styles
   ============================================= */

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

/* ── Variables ── */
:root {
  --cream:     #F5F0E8;
  --sand:      #E8DDD0;
  --warm-tan:  #C9B99A;
  --moss:      #7A8C6E;
  --dark-moss: #4A5C40;
  --charcoal:  #2C2C2A;
  --warm-black:#1A1A18;
  --white:     #FDFAF5;
  --gold:      #B8976C;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --font-italic:  'Playfair Display', serif;

  --nav-h: 96px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  font-weight: 300;
  line-height: 1.7;
}
img { display: block; width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
p  { font-size: 0.95rem; letter-spacing: 0.02em; }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}
.divider {
  width: 40px; height: 1px;
  background: var(--warm-tan);
  margin: 1.5rem 0;
}
.divider--center { margin: 1.5rem auto; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: var(--transition);
}
.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
}
.btn--dark:hover { background: var(--warm-black); transform: translateY(-2px); }
.btn--outline {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn--outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn--light {
  background: var(--cream);
  color: var(--charcoal);
}
.btn--light:hover { background: var(--sand); transform: translateY(-2px); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(245, 240, 232, 0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}
.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 0.1rem;
  padding: 0.3rem 0;
}
/* DZ mark — full image, no cropping */
.nav__logo-img-wrap {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  overflow: visible;
}
.nav__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* Black bg on cream nav: multiply removes black */
  mix-blend-mode: multiply;
}
/* Stacked text */
.nav__logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.nav__logo-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-black);
  line-height: 1;
  white-space: nowrap;
}
.nav__logo-sub {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--moss);
  line-height: 1;
  white-space: nowrap;
}
.nav__logo-text { display: none; }
.nav__logo-img-only { display: none; }
.nav__links {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
  align-items: center;
}
.nav__link {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--moss);
  transition: width 0.3s ease;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link:hover { color: var(--moss); }
.nav__link.active { color: var(--moss); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 5px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none !important;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--cream);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.nav__mobile.open { display: flex !important; }
.nav__mobile .nav__link { font-size: 0.9rem; }

/* ── Page Header (inner pages) ── */
.page-header {
  height: 40vh;
  min-height: 280px;
  background: var(--sand);
  display: flex;
  align-items: flex-end;
  padding: 3rem 2.5rem 3rem;
  margin-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/product14.jpeg') center/cover no-repeat;
  opacity: 0.12;
}
.page-header__content { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 5rem); }

/* ── Footer ── */
/* ── Footer ── */
.footer {
  background: #EDE8DF;
  color: var(--charcoal);
  padding: 5rem 0 0;
}
.footer .container {
  padding: 0 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  align-items: start;
}

/* Brand / logo column */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer__logo-wrap {
  width: 110px;
  height: 110px;
  margin-bottom: 0.4rem;
  margin-left: -10px;
  flex-shrink: 0;
}
.footer__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--warm-black);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.footer__brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
  margin-bottom: 1.4rem;
}
.footer__desc {
  font-size: 0.82rem;
  color: var(--charcoal);
  line-height: 1.85;
  max-width: 240px;
  opacity: 0.6;
}

/* Nav columns */
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--warm-black);
  margin-bottom: 2rem;
  opacity: 0.65;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.footer__links a {
  font-size: 0.88rem;
  color: var(--charcoal);
  transition: color 0.2s;
  opacity: 0.65;
}
.footer__links a:hover { color: var(--warm-black); opacity: 1; }

/* Contact column */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.footer__contact-icon { color: var(--moss); font-size: 0.65rem; flex-shrink: 0; margin-top: 4px; }
.footer__contact-text { font-size: 0.88rem; color: var(--charcoal); line-height: 1.5; opacity: 0.65; }

/* Bottom bar */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0 2rem;
  font-size: 0.65rem;
  color: rgba(44,44,42,0.4);
  letter-spacing: 0.06em;
}
.footer__social { display: flex; gap: 1.5rem; }
.footer__social a {
  color: var(--charcoal);
  transition: color 0.2s;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.45;
}
.footer__social a:hover { color: var(--warm-black); opacity: 1; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.fade-up   { animation: fadeUp 0.8s ease forwards; }
.fade-in   { animation: fadeIn 0.8s ease forwards; }
.delay-1   { animation-delay: 0.1s; }
.delay-2   { animation-delay: 0.2s; }
.delay-3   { animation-delay: 0.3s; }
.delay-4   { animation-delay: 0.5s; }
.delay-5   { animation-delay: 0.7s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Product Card ── */
.product-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.product-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--sand);
}
.product-card__img img {
  height: 100%;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }
.product-card__info { padding: 1.5rem; }
.product-card__category {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.4rem;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}
.product-card__scents {
  font-size: 0.75rem;
  color: var(--warm-tan);
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}
.product-card__btn {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  background: var(--charcoal);
  color: var(--white);
  transition: background 0.3s;
}
.product-card__btn:hover { background: var(--moss); }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  max-width: 1000px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeUp 0.4s ease;
}
.modal__img { aspect-ratio: 1; background: var(--sand); }
.modal__img img { height: 100%; }
.modal__body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.modal__category { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--moss); margin-bottom: 0.5rem; }
.modal__name { font-family: var(--font-display); font-size: 2rem; font-weight: 300; margin-bottom: 0.5rem; }
.modal__scents { font-size: 0.85rem; color: var(--warm-tan); margin-bottom: 1rem; }
.modal__desc { font-size: 0.85rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--charcoal); }
.modal__price { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1.5rem; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--white);
  background: var(--charcoal);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 10;
}

/* ══════════════════════════════════════════
   CART SYSTEM
   ══════════════════════════════════════════ */

/* Cart icon in nav */
.nav__cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  transition: color 0.3s;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.nav__cart-btn:hover { color: var(--moss); }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  line-height: 1;
}

/* Overlay */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,26,24,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
.cart-drawer.open { transform: translateX(0); }

/* Drawer header */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.8rem;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--warm-black);
}
.cart-drawer__count {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-tan);
  margin-left: 0.5rem;
}
.cart-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.cart-drawer__close:hover { color: var(--moss); }

/* Drawer body (scrollable) */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.8rem;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--charcoal);
  opacity: 0.6;
}
.cart-empty p { font-size: 0.9rem; }

/* Cart items */
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--sand);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 80px; height: 80px;
  overflow: hidden;
  background: var(--sand);
  flex-shrink: 0;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--warm-black);
  margin-bottom: 0.1rem;
}
.cart-item__cat {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.15rem;
}
.cart-item__scents {
  font-size: 0.72rem;
  color: var(--warm-tan);
  margin-bottom: 0.6rem;
}
.cart-item__bottom {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--sand);
}
.cart-item__qty button {
  width: 28px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cart-item__qty button:hover { background: var(--sand); }
.cart-item__qty span {
  width: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--charcoal);
  border-left: 1px solid var(--sand);
  border-right: 1px solid var(--sand);
  line-height: 28px;
}
.cart-item__price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-left: auto;
}
.cart-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--warm-tan);
  padding: 4px;
  display: flex; align-items: center;
  transition: color 0.2s;
}
.cart-item__remove:hover { color: #c0392b; }

/* Drawer footer */
.cart-drawer__footer {
  border-top: 1px solid var(--sand);
  padding: 1.5rem 1.8rem;
  flex-shrink: 0;
  background: var(--cream);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
}
.cart-total__label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.cart-total__amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--warm-black);
}
.cart-total__note {
  font-size: 0.7rem;
  color: var(--warm-tan);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Order form inside footer */
.cart-order-form { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1rem; }
.cart-order-form input,
.cart-order-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--sand);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.25s;
}
.cart-order-form input:focus,
.cart-order-form textarea:focus { border-color: var(--moss); }
.cart-order-form input::placeholder,
.cart-order-form textarea::placeholder { color: var(--warm-tan); opacity: 0.7; }
.cart-order-form textarea { resize: vertical; min-height: 70px; }

.cart-checkout-btn {
  width: 100%;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 0.6rem;
}
.cart-checkout-btn:hover { background: var(--moss); }
.cart-clear-btn {
  width: 100%;
  background: transparent;
  color: var(--warm-tan);
  border: 1px solid var(--sand);
  padding: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
}
.cart-clear-btn:hover { border-color: var(--warm-tan); color: var(--charcoal); }

/* Add to cart button on product cards */
.btn--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 0.5rem;
}
.btn--cart:hover { background: var(--moss); }

/* Toast */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 300;
  pointer-events: none;
  white-space: nowrap;
}
.cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer .container { padding: 0 2rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile { display: none !important; }
  .nav__mobile.open { display: flex !important; }
  .modal { grid-template-columns: 1fr; }
  .modal__img { aspect-ratio: 16/9; }
}
@media (min-width: 901px) {
  .nav__hamburger { display: none !important; }
  .nav__mobile { display: none !important; }
  .nav__mobile.open { display: none !important; }
  .nav__links { display: flex !important; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer .container { padding: 0 1.5rem; }
  .footer { padding: 3rem 1.5rem 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__social { justify-content: center; }
  .footer__logo-wrap { width: 80px; height: 80px; }
  .footer__brand-name { font-size: 1.4rem; }
  .footer__heading { margin-bottom: 1rem; }
}
