/* Créations Lunabelle — boutique artisanale */

:root {
  --cream: #faf6f0;
  --cream-deep: #f0e8dc;
  --terracotta: #c4714a;
  --terracotta-dark: #9a5238;
  --sage: #7a9b76;
  --sage-light: #b8cdb4;
  --lavender: #9b8ab8;
  --lavender-soft: #ddd4ea;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --ink: #2c2420;
  --ink-soft: #5c4f48;
  --white: #fffcf8;
  --shadow: rgba(44, 36, 32, 0.08);
  --shadow-deep: rgba(44, 36, 32, 0.14);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Decorative background ── */
.bg-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(155, 138, 184, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(122, 155, 118, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
    var(--cream);
}

.bg-float {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  animation: float 18s ease-in-out infinite;
}

.bg-float--1 { top: 8%; left: 4%; width: 120px; animation-delay: 0s; }
.bg-float--2 { top: 60%; right: 6%; width: 90px; animation-delay: -6s; }
.bg-float--3 { bottom: 15%; left: 12%; width: 70px; animation-delay: -12s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ── Layout ── */
.page-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
  backdrop-filter: blur(8px);
  background: rgba(250, 246, 240, 0.85);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.logo-text span {
  display: block;
  font-size: 0.55em;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-top: 0.15em;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--transition);
}

.nav-link:hover { color: var(--terracotta); }

/* ── Hero ── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
}

.hero-ornament {
  width: min(280px, 60vw);
  margin: 0 auto 2rem;
  opacity: 0.85;
}

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ── Shop section ── */
.shop-section {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--ink-soft);
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow-deep);
}

.product-card__image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--cream-deep);
  position: relative;
}

.product-card__image-wrap img,
.product-card__image-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__image-wrap img,
.product-card:hover .product-card__image-wrap svg {
  transform: scale(1.04);
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.5;
}

.product-card__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(44, 36, 32, 0.06);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}

.product-card__shipping {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.product-card__cta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.5rem;
}

/* ── Product page ── */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 1.5rem 0 0.5rem;
}

.breadcrumb a {
  color: var(--terracotta);
  transition: opacity var(--transition);
}

.breadcrumb a:hover { opacity: 0.7; }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 1rem 0 clamp(4rem, 8vw, 6rem);
  align-items: start;
}

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* Gallery — style eBay */
.gallery {
  position: sticky;
  top: 5rem;
}

.gallery__main {
  aspect-ratio: 1;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow);
  margin-bottom: 0.75rem;
  cursor: zoom-in;
}

.gallery__main img,
.gallery__main svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--cream-deep);
  cursor: pointer;
  transition: border-color var(--transition), opacity var(--transition);
  flex-shrink: 0;
}

.gallery__thumb img,
.gallery__thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb:hover { opacity: 0.85; }

.gallery__thumb.is-active {
  border-color: var(--terracotta);
}

.product-info__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
}

.product-info__price-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px var(--shadow);
}

.product-info__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracotta-dark);
}

.product-info__shipping {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.product-info__total {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--sage);
  margin-top: 0.5rem;
  font-weight: 600;
}

.product-info__sizes {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(44, 36, 32, 0.08);
  border-bottom: 1px solid rgba(44, 36, 32, 0.08);
}

.product-info__sizes-icon {
  width: 24px;
  flex-shrink: 0;
  color: var(--sage);
  margin-top: 0.15rem;
}

.product-info__sizes-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.product-info__sizes-value {
  font-size: 1rem;
  color: var(--ink);
}

.product-info__description {
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.btn-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  padding: 1rem 2.25rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(196, 113, 74, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
  max-width: 360px;
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 113, 74, 0.4);
}

.btn-order svg {
  width: 18px;
  height: 18px;
}

.product-note {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  font-style: italic;
}

/* ── About strip ── */
.about-strip {
  background: linear-gradient(135deg, var(--lavender-soft) 0%, var(--cream-deep) 50%, var(--sage-light) 100%);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}

.about-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 1rem;
}

.about-strip__text {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(44, 36, 32, 0.06);
  margin-top: auto;
}

.footer-text {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-text a {
  color: var(--terracotta);
  transition: opacity var(--transition);
}

.footer-text a:hover { opacity: 0.7; }

/* ── Loading / error ── */
.loading, .error-msg {
  text-align: center;
  padding: 4rem 1rem;
  font-family: var(--font-ui);
  color: var(--ink-soft);
}

.error-msg a { color: var(--terracotta); text-decoration: underline; }
