/* ═══════════════════════════════════════════════════════════════
   TZBeauty — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  --cream:    #FAF7F4;
  --warm:     #F2EDE6;
  --sand:     #D4C4B0;
  --taupe:    #9C8A78;
  --espresso: #2C2018;
  --rose:     #C9897A;
  --rose-lt:  #E8C4BB;
  --white:    #FFFFFF;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'DM Sans', sans-serif;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--ff-sans); }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,244,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 1px 16px rgba(44,32,24,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  box-sizing: border-box;
}
.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--espresso);
}
.nav-logo span { color: var(--rose); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  transition: color .25s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--espresso);
  border-bottom-color: var(--rose);
}
.nav-cart-btn {
  background: none; border: 1px solid var(--sand);
  border-radius: 40px;
  padding: 7px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  display: flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.nav-cart-btn:hover { background: var(--warm); border-color: var(--taupe); }
.cart-count {
  background: var(--rose); color: white;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 0.65rem; display: flex; align-items: center; justify-content: center;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
.page-wrap { padding-top: 68px; min-height: calc(100vh - 68px); }

/* ── SHARED SECTION ─────────────────────────────────────────── */
.section {
  padding: 80px 48px;
}
.section-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 12px;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--taupe); font-size: 0.9rem;
  max-width: 480px; margin-bottom: 52px;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--espresso); color: white;
  padding: 14px 34px; border-radius: 40px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; transition: background .25s, transform .2s;
  width: fit-content;
}
.btn-primary:hover { background: var(--rose); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; color: var(--espresso);
  padding: 13px 32px; border-radius: 40px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--sand); transition: all .25s;
  width: fit-content;
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--espresso); color: rgba(255,255,255,0.7);
  padding: 48px 48px 28px;
  box-sizing: border-box;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 28px;
}
.footer-brand .nav-logo {
  color: white; margin-bottom: 16px; display: block;
}
.footer-brand p {
  font-size: 0.83rem; line-height: 1.8;
  max-width: 260px; margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: border-color .2s, background .2s;
}
.social-btn:hover { border-color: var(--rose); background: rgba(201,137,122,0.15); }
.footer-col h4 {
  color: white; font-size: 0.72rem;
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.83rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--rose-lt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.75rem; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.75rem; transition: color .2s; }
.footer-legal a:hover { color: var(--rose-lt); }

/* ── CART DROPDOWN ──────────────────────────────────────────── */
.cart-dropdown {
  position: fixed; top: 76px; right: 48px;
  width: 360px;
  background: white;
  border-radius: 18px;
  border: 1px solid var(--warm);
  box-shadow: 0 16px 60px rgba(44,32,24,0.14), 0 4px 16px rgba(44,32,24,0.06);
  padding: 28px;
  z-index: 150;
  opacity: 0; transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.cart-dropdown.open {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.cart-dropdown-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 20px;
}
.cart-dropdown-close {
  background: none; border: 1px solid var(--sand);
  border-radius: 50%; width: 28px; height: 28px;
  font-size: 0.72rem; color: var(--taupe);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
  line-height: 1;
}
.cart-dropdown-close:hover {
  background: var(--espresso); color: white; border-color: var(--espresso);
}
@media (max-width: 900px) {
  .cart-dropdown { right: 20px; width: calc(100vw - 40px); }
}
@media (max-width: 600px) {
  .cart-dropdown { right: 12px; width: calc(100vw - 24px); top: 68px; }
}
.cart-title {
  font-family: var(--ff-serif);
  font-size: 1.4rem; font-weight: 300; margin-bottom: 4px;
}
.cart-subtitle { font-size: 0.75rem; color: var(--taupe); }
.cart-empty { text-align: center; padding: 32px 0; color: var(--sand); }
.cart-empty-icon { font-size: 2rem; margin-bottom: 10px; }
.cart-empty-text { font-size: 0.82rem; }
.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.cart-item {
  display: grid; grid-template-columns: 48px 1fr auto;
  gap: 12px; align-items: center;
}
.cart-item-thumb {
  width: 48px; height: 60px;
  background: var(--warm); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.cart-item-name { font-size: 0.85rem; font-weight: 500; line-height: 1.3; }
.cart-item-qty { font-size: 0.75rem; color: var(--taupe); margin-top: 3px; }
.cart-item-price { font-family: var(--ff-serif); font-size: 1rem; }
.cart-item-remove {
  background: none; border: none; color: var(--sand);
  font-size: 0.8rem; cursor: pointer; margin-top: 3px;
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--rose); }
.cart-divider { height: 1px; background: var(--warm); margin: 16px 0 14px; }
.cart-total-row {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 20px;
}
.cart-total-label {
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.cart-total-amount { font-family: var(--ff-serif); font-size: 1.4rem; color: var(--rose); }
.checkout-btn {
  width: 100%; background: var(--espresso); color: white;
  border: none; border-radius: 40px; padding: 15px;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: background .2s;
}
.checkout-btn:hover { background: var(--rose); }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--espresso); color: white;
  padding: 14px 22px; border-radius: 40px;
  font-size: 0.8rem; letter-spacing: 0.05em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 20px; }
  .section { padding: 60px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
