/* ============================================
   SKINYBEAUTY — Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --white:       #ffffff;
  --cream:       #f8f4ef;
  --nude:        #ede8e0;
  --warm-gray:   #d4cfc8;
  --stone:       #b0aa9f;
  --taupe:       #8c8278;
  --charcoal:    #3a3530;
  --espresso:    #1e1a16;
  --accent:      #c9a96e;
  --accent-light:#e8d5b0;
  --accent-dark: #a07c3e;

  --font-display: 'Playfair Display', serif;
  --font-elegant: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-soft: 0 4px 30px rgba(60,50,40,0.08);
  --shadow-card: 0 8px 40px rgba(60,50,40,0.12);
  --shadow-float:0 20px 60px rgba(60,50,40,0.18);

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { font-weight: 300; letter-spacing: 0.01em; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,207,200,0.4);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-soft);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--accent-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-dark); }

.nav-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
  color: var(--charcoal);
  font-size: 1.1rem;
}
.nav-icon-btn:hover { background: var(--nude); }

.nav-cart-count {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.65rem;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(340px, 100vw);
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  padding: 80px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: right var(--transition);
  box-shadow: -10px 0 60px rgba(60,50,40,0.15);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--charcoal);
  padding: 12px 0;
  border-bottom: 1px solid var(--nude);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-nav a:hover { color: var(--accent); padding-left: 8px; }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.4rem;
  color: var(--charcoal);
  cursor: pointer;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,26,22,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.visible { opacity: 1; pointer-events: all; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--espresso);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160,124,62,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--warm-gray);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  background: var(--nude);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160,124,62,0.35);
}

.btn-add {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--white);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-add:hover {
  background: var(--accent);
  transform: scale(1.1) rotate(90deg);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
.section {
  padding: 96px 48px;
}

.section-sm { padding: 64px 48px; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 56px;
}
.section-header.centered { text-align: center; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  margin-bottom: 16px;
  color: var(--espresso);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--taupe);
  max-width: 520px;
  font-weight: 300;
}
.centered .section-subtitle { margin: 0 auto; }

/* ============================================
   PRODUCT CARD
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}

.product-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--nude);
}

.product-card-img img {
  width: 80%; height: 80%;
  object-fit: contain;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.product-wish {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--stone);
  transition: var(--transition-fast);
  opacity: 0;
}
.product-card:hover .product-wish { opacity: 1; }
.product-wish:hover { color: #e07060; background: var(--white); }

.product-card-body {
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-category {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.3;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
}
.product-price-old {
  font-size: 0.82rem;
  color: var(--stone);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--espresso);
  color: rgba(255,255,255,0.75);
  padding: 80px 48px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-brand h3 span { color: var(--accent); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
}
.footer-col ul li a:hover { color: var(--accent-light); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition-fast);
}
.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  height: 360px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--nude) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(201,169,110,0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(201,169,110,0.08) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.page-hero h1 {
  color: var(--espresso);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1rem;
  color: var(--taupe);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--espresso);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(30,26,22,0.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section { padding: 72px 32px; }
  .section-sm { padding: 48px 32px; }
  .navbar { padding: 0 32px; }
  .footer { padding: 64px 32px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 20px; }
  .section-sm { padding: 40px 20px; }
  .navbar { padding: 0 20px; height: 64px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .page-hero { height: 280px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .btn { padding: 12px 22px; font-size: 0.72rem; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.anim-fade-up { animation: fadeUp 0.7s ease both; }
.anim-fade-in { animation: fadeIn 0.6s ease both; }

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }