/* ==========================================================
   AMELY BEAUTY — stylesheet principal
   Paletă & tipografie extrase din Carte de Brand, secțiunile 5.2–5.6
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Paletă oficială AMELY */
  --blush-pink: #F7E5E2;
  --nude-peach: #E3BBA0;
  --golden-peach: #F4AE8F;
  --dusty-rose: #C97569;
  --terracotta: #7C3321;
  --espresso: #5A3A2D;
  --wine-burgundy: #551210;
  --ivory-cream: #F3E4DA;
  --white: #FFFFFF;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-soft: 0 8px 24px rgba(90, 58, 45, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--blush-pink);
  line-height: 1.6;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  color: var(--espresso);
  margin: 0 0 0.5em;
}

h1 { font-size: 40px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 26px; font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { color: rgba(90, 58, 45, 0.85); }

a { color: var(--dusty-rose); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--golden-peach);
  color: var(--espresso);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #f19c76; }

.btn-secondary {
  background: transparent;
  color: var(--dusty-rose);
  border: 2px solid var(--dusty-rose);
}
.btn-secondary:hover { background: rgba(201, 117, 105, 0.08); }

.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform:none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(90,58,45,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--espresso);
  text-transform: lowercase;
}
.logo span { font-weight: 500; font-size: 15px; color: var(--dusty-rose); margin-left: 4px; }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--espresso); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--dusty-rose); text-decoration: none; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ivory-cream);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.cart-badge {
  background: var(--terracotta);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}
.hero-copy .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dusty-rose);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  margin-bottom: 12px;
  display: block;
}
.hero-copy p { font-size: 18px; margin-bottom: 28px; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(247,229,226,0.35), transparent 40%);
  pointer-events: none;
}

/* ---------- Secțiuni generice ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--ivory-cream); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { max-width: 560px; margin: 8px auto 0; }

/* ---------- Grid de produse ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(90,58,45,0.16); }
.product-card-img {
  aspect-ratio: 1 / 1;
  background: var(--nude-peach);
  overflow: hidden;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.badge {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: fit-content;
}
.badge-kids { background: var(--wine-burgundy); }
.product-card-tagline { font-size: 14px; color: var(--dusty-rose); font-style: italic; }
.product-card-price { font-family: var(--font-heading); font-weight: 700; font-size: 19px; margin-top: auto; padding-top: 10px; }

/* ---------- Pagina de produs ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}
.product-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.product-gallery-thumbs { display: flex; gap: 10px; }
.product-gallery-thumbs img {
  width: 76px; height: 76px; object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
}
.product-gallery-thumbs img.active { border-color: var(--golden-peach); }

.product-price-row { display: flex; align-items: baseline; gap: 12px; margin: 12px 0 20px; }
.product-price { font-family: var(--font-heading); font-size: 30px; font-weight: 700; }
.product-price-old { text-decoration: line-through; color: var(--dusty-rose); font-size: 18px; }

.variant-picker { margin: 20px 0; }
.variant-picker label { font-weight: 600; font-family: var(--font-heading); display: block; margin-bottom: 10px; }
.variant-options { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-swatch {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--ivory-cream);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  background: var(--white);
}
.variant-swatch input { display: none; }
.variant-swatch .dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.variant-swatch:has(input:checked) { border-color: var(--golden-peach); background: rgba(244,174,143,0.15); }

.qty-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.qty-control { display: flex; align-items: center; border: 2px solid var(--ivory-cream); border-radius: 999px; overflow: hidden; }
.qty-control button { background: none; border: none; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--espresso); }
.qty-control input { width: 44px; text-align: center; border: none; font-size: 16px; font-family: var(--font-body); }

.accordion-item { border-bottom: 1px solid var(--nude-peach); padding: 16px 0; }
.accordion-item summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; }
.accordion-item p { margin-top: 10px; }

.kids-safe-note {
  background: var(--ivory-cream);
  border-left: 4px solid var(--wine-burgundy);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin: 20px 0;
}

/* ---------- Story / Despre ---------- */
.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story-section img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.doodle-underline { position: relative; display: inline-block; }

.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.value-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.value-card .icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--golden-peach);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
}

/* ---------- Coș ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ivory-cream); }
.cart-line img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); background: var(--nude-peach); }
.cart-summary { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-row.total { font-family: var(--font-heading); font-weight: 700; font-size: 20px; border-top: 1px solid var(--ivory-cream); margin-top: 8px; padding-top: 16px; }
.empty-cart { text-align: center; padding: 80px 0; }

/* ---------- Checkout / forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 14px; font-family: var(--font-heading); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  border: 2px solid var(--ivory-cream);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--espresso);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--golden-peach); }

.payment-options { display: flex; gap: 14px; margin: 16px 0 24px; }
.payment-option {
  flex: 1; border: 2px solid var(--ivory-cream); border-radius: var(--radius-md);
  padding: 16px; cursor: pointer; text-align: center; font-weight: 600;
}
.payment-option:has(input:checked) { border-color: var(--golden-peach); background: rgba(244,174,143,0.12); }
.payment-option input { display:none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--espresso);
  color: var(--ivory-cream);
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: var(--ivory-cream); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-family: var(--font-heading); font-weight: 700; font-size: 22px; text-transform: lowercase; color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(243,228,218,0.2); padding-top: 20px; font-size: 13px; opacity: .8; display:flex; justify-content: space-between; }

.peach-divider {
  height: 3px;
  width: 60px;
  background: var(--terracotta);
  border: none;
  border-radius: 999px;
  margin: 16px auto;
}

/* ---------- Toast / mesaje ---------- */
.flash-message {
  background: var(--golden-peach);
  color: var(--espresso);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}
.flash-error { background: var(--wine-burgundy); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero, .product-detail, .story-section { grid-template-columns: 1fr; }
  .hero { padding: 32px 0; }
  .main-nav { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 60px 1fr; grid-template-areas: "img name" "img qty" "img price"; }
  h1 { font-size: 30px; }
}
