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

:root {
  --sage-50: #f0f5f0; --sage-100: #dfe8df; --sage-200: #c5d5c3;
  --sage-300: #b5c9b3; --sage-400: #8faa8c; --sage-500: #6b8b68;
  --sage-600: #4a6b47; --sage-700: #2d4a3e; --sage-800: #1a3329;
  --earth-300: #c4a882; --earth-400: #a88b65; --earth-500: #8b7355;
  --cream: #faf8f5; --ivory: #f5f2ed; --charcoal: #2c2c2c;
  --gray-200: #e8e8e8; --gray-400: #a3a3a3; --gray-500: #737373;
  --color-success: #4a8b5e; --color-danger: #b54a4a;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
  --max-width: 1200px; --header-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--charcoal);
  background: var(--cream); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-600); text-decoration: none; transition: color .3s; }
a:hover { color: var(--sage-700); }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--font-heading); color: var(--sage-800); line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.4rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.6rem); }
.section-title { text-align: center; margin-bottom: .5rem; }
.section-subtitle { text-align: center; color: var(--gray-500); max-width: 600px; margin: 0 auto 3rem; font-size: .95rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.8rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: all .3s;
  text-decoration: none; justify-content: center;
}
.btn-primary { background: var(--sage-600); color: #fff; }
.btn-primary:hover { background: var(--sage-700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--earth-400); color: #fff; }
.btn-secondary:hover { background: var(--earth-500); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--sage-600); border: 2px solid var(--sage-600); }
.btn-outline:hover { background: var(--sage-600); color: #fff; }
.btn-sm { padding: .5rem 1.2rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,248,245,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sage-200); height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.header-logo img { height: 48px; width: auto; }
.header-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.header-logo span { font-family: var(--font-heading); font-size: 1.15rem; color: var(--sage-800); font-weight: 600; }
.header-nav { display: flex; gap: 2rem; align-items: center; }
.header-nav a {
  color: var(--charcoal); font-size: .88rem; font-weight: 500;
  position: relative; padding: .25rem 0;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--sage-500);
  transition: width .3s;
}
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-nav a:hover { color: var(--sage-700); }
.cart-icon {
  position: relative; display: flex; align-items: center;
  gap: .4rem; font-weight: 600; font-size: .88rem;
  color: var(--charcoal); cursor: pointer; padding: .5rem;
}
.cart-icon svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: -2px; right: -8px;
  background: var(--sage-600); color: #fff;
  font-size: .65rem; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cart-badge:empty { display: none; }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .5rem; color: var(--charcoal);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ── Hero ── */
.hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, var(--sage-200) 0%, var(--sage-100) 50%, var(--ivory) 100%);
  padding: 6rem 1.5rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(107,139,104,.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(168,139,101,.1) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-logo { width: 180px; height: 180px; margin: 0 auto 2rem; border-radius: 50%; object-fit: cover; }
.hero h1 { margin-bottom: 1rem; color: var(--sage-800); }
.hero p { color: var(--gray-500); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero .btn { font-size: 1rem; padding: 1rem 2.5rem; }

/* Decorative leaf */
.leaf-divider {
  text-align: center; padding: 2rem 0; color: var(--sage-300);
  font-size: 1.4rem; letter-spacing: 1rem;
}

/* ── Sections ── */
.section { padding: 5rem 0; }
.section-alt { background: #fff; }

/* ── Product Cards ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-image {
  width: 100%; height: 220px; object-fit: cover;
  background: var(--sage-50);
}
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card-name {
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--sage-800); margin-bottom: .15rem;
}
.product-card-morphe { font-size: .82rem; color: var(--earth-400); font-style: italic; margin-bottom: .5rem; }
.product-card-desc { font-size: .85rem; color: var(--gray-500); margin-bottom: 1rem; flex: 1; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card-price { font-family: var(--font-heading); font-size: 1.3rem; color: var(--sage-700); font-weight: 700; }
.product-card-lot { font-size: .75rem; color: var(--gray-400); }
.product-card-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.product-card-actions .btn { flex: 1; font-size: .8rem; padding: .55rem .8rem; }
.badge-stock {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .2rem .6rem; border-radius: var(--radius-sm);
  margin-bottom: .5rem;
}
.badge-stock.in-stock { background: #e8f5e9; color: var(--color-success); }
.badge-stock.out-of-stock { background: #fdecea; color: var(--color-danger); }

/* ── Product Detail ── */
.product-detail { margin-top: var(--header-height); padding: 3rem 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-detail-image {
  width: 100%; border-radius: var(--radius-lg);
  object-fit: cover; max-height: 500px;
  background: var(--sage-50);
}
.product-detail-name { margin-bottom: .25rem; }
.product-detail-morphe { font-size: 1rem; color: var(--earth-400); font-style: italic; margin-bottom: 1rem; }
.product-detail-price {
  font-family: var(--font-heading); font-size: 2rem;
  color: var(--sage-700); font-weight: 700; margin-bottom: .25rem;
}
.product-detail-lot { color: var(--gray-500); font-size: .9rem; margin-bottom: 1.5rem; }
.product-detail-desc { margin-bottom: 2rem; color: var(--gray-500); line-height: 1.8; }
.product-info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; margin-bottom: 2rem;
}
.product-info-item {
  background: var(--sage-50); padding: .75rem 1rem;
  border-radius: var(--radius-sm); font-size: .85rem;
}
.product-info-item strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sage-600); margin-bottom: .15rem; }
.quantity-selector { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.quantity-selector button {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--sage-200); background: #fff;
  font-size: 1.1rem; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.quantity-selector button:hover { background: var(--sage-100); }
.quantity-selector input {
  width: 50px; text-align: center; border: 1px solid var(--sage-200);
  border-radius: var(--radius-sm); padding: .4rem; font-size: 1rem;
  font-family: var(--font-body);
}
.breadcrumb { margin-top: var(--header-height); padding: 1rem 0; font-size: .85rem; color: var(--gray-400); }
.breadcrumb a { color: var(--sage-500); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Why Us ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.why-card {
  text-align: center; padding: 2rem 1.5rem;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .3s;
}
.why-card:hover { transform: translateY(-4px); }
.why-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.why-card p { font-size: .88rem; color: var(--gray-500); }

/* ── Cart ── */
.cart-page { margin-top: var(--header-height); padding: 3rem 0; min-height: 60vh; }
.cart-empty { text-align: center; padding: 4rem 0; }
.cart-empty p { color: var(--gray-500); margin: 1rem 0 2rem; font-size: 1.1rem; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.cart-item {
  display: flex; align-items: center; gap: 1.25rem;
  background: #fff; padding: 1.25rem; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cart-item-image { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--sage-50); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-family: var(--font-heading); font-size: 1rem; color: var(--sage-800); }
.cart-item-price { color: var(--sage-600); font-weight: 600; font-size: .9rem; }
.cart-item-remove {
  background: none; border: none; color: var(--color-danger);
  cursor: pointer; font-size: .82rem; padding: .3rem .5rem;
  border-radius: var(--radius-sm); transition: background .2s;
}
.cart-item-remove:hover { background: #fdecea; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.cart-summary {
  background: #fff; padding: 2rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); position: sticky; top: calc(var(--header-height) + 1.5rem);
}
.cart-summary h3 { margin-bottom: 1.5rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: .6rem 0; font-size: .92rem; }
.cart-summary-row.total {
  border-top: 2px solid var(--sage-200); margin-top: .5rem;
  padding-top: 1rem; font-weight: 700; font-size: 1.1rem;
  font-family: var(--font-heading); color: var(--sage-800);
}
.free-shipping-note { font-size: .78rem; color: var(--color-success); text-align: center; margin: .75rem 0; }
.payment-methods { margin-top: 1.5rem; }
.payment-methods h4 { font-size: .9rem; margin-bottom: 1rem; }
.payment-option {
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 1rem; margin-bottom: .75rem; cursor: pointer; transition: border-color .2s;
}
.payment-option:hover, .payment-option.selected { border-color: var(--sage-500); }
.payment-option label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-weight: 500; }
.payment-option input[type="radio"] { accent-color: var(--sage-600); }
.virement-details {
  background: var(--sage-50); padding: 1rem; border-radius: var(--radius-sm);
  margin-top: .75rem; font-size: .85rem; display: none;
}
.virement-details.visible { display: block; }
.virement-details p { margin-bottom: .3rem; }

/* ── Checkout Form ── */
.checkout-form { margin-top: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--sage-700); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--sage-200);
  border-radius: var(--radius-sm); font-family: var(--font-body);
  font-size: .9rem; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 3px rgba(107,139,104,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FAQ ── */
.faq-page { margin-top: var(--header-height); padding: 3rem 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff; border-radius: var(--radius-md);
  margin-bottom: .75rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-question {
  width: 100%; padding: 1.25rem 1.5rem; background: none; border: none;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  color: var(--sage-800); transition: background .2s;
}
.faq-question:hover { background: var(--sage-50); }
.faq-question .icon { transition: transform .3s; font-size: 1.2rem; color: var(--sage-400); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
  padding: 0 1.5rem; color: var(--gray-500); font-size: .9rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.5rem 1.25rem; }

/* ── Guides ── */
.guides-page { margin-top: var(--header-height); padding: 3rem 0; }
.guide-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); margin-bottom: 2rem;
}
.guide-card h3 { margin-bottom: 1rem; }
.guide-card p, .guide-card li { font-size: .9rem; color: var(--gray-500); line-height: 1.8; }
.guide-card ul { padding-left: 1.5rem; list-style: disc; }
.guide-card li { margin-bottom: .3rem; }

/* ── Contact ── */
.contact-page { margin-top: var(--header-height); padding: 3rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 900px; margin: 0 auto; }
.contact-info-card { background: var(--sage-50); padding: 2rem; border-radius: var(--radius-lg); }
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-info-item { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: .9rem; }
.contact-form-card { background: #fff; padding: 2rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ── About ── */
.about-page { margin-top: var(--header-height); padding: 3rem 0; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content p { color: var(--gray-500); line-height: 1.9; font-size: .95rem; margin-bottom: 1.5rem; }

/* ── Legal Pages ── */
.legal-page { margin-top: var(--header-height); padding: 3rem 0; }
.legal-content { max-width: 800px; margin: 0 auto; background: #fff; padding: 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.legal-content h2 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--sage-700); }
.legal-content h3 { font-size: 1.05rem; margin: 1.5rem 0 .75rem; }
.legal-content p, .legal-content li { font-size: .88rem; color: var(--gray-500); line-height: 1.8; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }

/* ── Footer ── */
.site-footer { background: var(--sage-800); color: var(--sage-200); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand img { height: 50px; margin-bottom: 1rem; filter: brightness(1.5); }
.footer-brand p { font-size: .85rem; color: var(--sage-400); line-height: 1.6; }
.site-footer h4 { font-family: var(--font-heading); font-size: 1rem; color: #fff; margin-bottom: 1rem; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a { color: var(--sage-400); font-size: .85rem; transition: color .2s; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem 0; text-align: center;
  font-size: .8rem; color: var(--sage-400);
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: var(--sage-700); color: #fff; padding: 1rem 1.5rem;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  font-size: .9rem; transform: translateY(120%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translateY(0); }

/* ── Order Confirmation ── */
.order-confirmation { text-align: center; padding: 4rem 0; }
.order-confirmation .checkmark { font-size: 4rem; margin-bottom: 1rem; }
.order-ref { background: var(--sage-50); padding: 1rem; border-radius: var(--radius-sm); font-family: monospace; font-size: 1.1rem; margin: 1rem auto; display: inline-block; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }
.cart-badge.pulse { animation: pulse .3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-nav { 
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: rgba(250,248,245,.98); backdrop-filter: blur(12px);
    flex-direction: column; gap: 0; padding: 1rem 0;
    transform: translateY(-120%); transition: transform .3s;
    border-bottom: 1px solid var(--sage-200);
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav a { padding: .85rem 1.5rem; width: 100%; }
  .menu-toggle { display: block; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-logo { width: 130px; height: 130px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .product-info-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cart-item { flex-direction: column; text-align: center; }
}
