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

:root {
  --bg: #f7f3f8;
  --bg-soft: #efe8f2;
  --surface: #ffffff;
  --ink: #2c2433;
  --muted: #6f6478;
  --line: #e4dce9;
  --accent: #7b4f9a;
  --accent-2: #9b6bb5;
  --accent-soft: #f0e6f6;
  --sale: #b73d3d;
  --ok: #1d976c;
  --shadow: 0 18px 50px rgba(74, 40, 96, 0.08);
  --radius: 18px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #f3e7fb 0%, transparent 60%),
    radial-gradient(900px 420px at 100% 0%, #e9f5f2 0%, transparent 55%),
    var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, .serif { font-family: Lora, Georgia, serif; font-weight: 600; letter-spacing: -0.02em; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  background: var(--accent); color: #fff; font-weight: 600; transition: .2s ease;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 248, 0.88);
  border-bottom: 1px solid rgba(228, 220, 233, 0.8);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: Lora, serif; font-size: 24px; font-weight: 700;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #c9a0e0, #7b4f9a 55%, #4d8f86);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45);
}
.nav { display: flex; gap: 22px; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.cart-count {
  position: absolute; top: -6px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px;
  display: grid; place-items: center; padding: 0 4px;
}

.hero {
  padding: 54px 0 28px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center;
}
.hero-copy .eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 0 0 14px; }
.hero p { margin: 0 0 24px; color: var(--muted); font-size: 17px; max-width: 48ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  border-radius: 28px; overflow: hidden; min-height: 420px; position: relative;
  background: #ddd center/cover no-repeat; box-shadow: var(--shadow);
}
.hero-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(34,20,42,.55));
}
.hero-card-caption {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; color: #fff;
}
.hero-card-caption strong { display: block; font-family: Lora, serif; font-size: 28px; }
.sale-pill {
  display: inline-block; margin-bottom: 8px; background: #fff; color: var(--sale);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700;
}

.section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin: 0 auto; color: var(--muted); max-width: 54ch; }

.collection-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.collection-card {
  border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); transition: .2s ease;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.collection-card img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.collection-card .meta { padding: 14px 16px 18px; }
.collection-card h3 { margin: 0 0 4px; font-size: 18px; }
.collection-card p { margin: 0; color: var(--muted); font-size: 14px; }

.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .2s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 1; background: #f4eef7 center/cover no-repeat; position: relative;
}
.product-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { margin: 0; font-size: 17px; }
.product-card .cats { color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-weight: 700; font-size: 18px; color: var(--accent); }
.price-old { color: #9ca3af; text-decoration: line-through; font-size: 14px; }
.product-actions { display: flex; gap: 8px; margin-top: 8px; }
.product-actions .btn { flex: 1; }

.types-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.type-card {
  background: linear-gradient(180deg, #fff, #f8f1fb);
  border: 1px solid var(--line); border-radius: 18px; padding: 18px;
}
.type-card h3 { margin: 0 0 6px; font-size: 18px; }
.type-card p { margin: 0; color: var(--muted); font-size: 14px; }

.banner-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.banner {
  border-radius: 22px; min-height: 220px; position: relative; overflow: hidden;
  background: #ccc center/cover no-repeat;
}
.banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(24,16,30,.55));
}
.banner .cap {
  position: absolute; left: 18px; bottom: 18px; z-index: 1; color: #fff;
}
.banner .cap strong { display: block; font-family: Lora, serif; font-size: 24px; }

.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.quote {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.quote p { margin: 0 0 14px; color: var(--muted); }
.quote strong { font-family: Lora, serif; }

.site-footer {
  margin-top: 40px; padding: 40px 0 28px;
  background: #2c2433; color: #ddd2e6;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
}
.site-footer h4 { margin: 0 0 12px; color: #fff; font-family: Lora, serif; }
.site-footer a { color: #cbbfda; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: #a998b8;
}

.page-hero {
  padding: 36px 0 10px; text-align: center;
}
.page-hero h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); }
.page-hero p { margin: 0; color: var(--muted); }

.shop-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0 50px;
}
.filters {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; height: fit-content; position: sticky; top: 96px;
}
.filters h3 { margin: 0 0 12px; font-size: 16px; }
.filter-list { display: grid; gap: 8px; }
.filter-list button {
  text-align: left; border: 0; background: transparent; padding: 8px 10px;
  border-radius: 10px; cursor: pointer; color: var(--muted);
}
.filter-list button.active, .filter-list button:hover {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px;
}
.search {
  flex: 1; max-width: 360px; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 14px; background: #fff;
}

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px 0 60px;
}
.gallery {
  border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line);
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); }
.detail .desc { color: var(--muted); }
.qty-row { display: flex; align-items: center; gap: 10px; margin: 18px 0; }
.qty-row input {
  width: 72px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center;
}

.cart-table, .checkout-grid { padding: 20px 0 60px; }
.cart-item, .order-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px;
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px;
}
.form-card, .order-summary {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.form-grid { display: grid; gap: 12px; }
.form-grid label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form-grid input, .form-grid textarea, .form-grid select {
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff;
}
.summary-line { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 700; }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  background: #2c2433; color: #fff; padding: 12px 16px; border-radius: 12px;
  transform: translateY(120%); transition: .25s ease; box-shadow: var(--shadow);
}
.toast.show { transform: translateY(0); }

@media (max-width: 980px) {
  .hero, .product-detail, .checkout-grid, .shop-layout, .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .collection-grid, .types-grid, .banner-row, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .filters { position: static; }
}
@media (max-width: 640px) {
  .product-grid, .collection-grid, .types-grid, .banner-row, .testimonials { grid-template-columns: 1fr; }
  .hero-card { min-height: 300px; }
}
