:root {
  --g1: #3B1760;
  --g2: #D1207D;
  --g3: #FF6E45;
  --gradient: linear-gradient(90deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  --ink: #2A1642;
  --muted: #6E6580;
  --gold: #F0A93A;
  --bg: #FFFFFF;
  --bg-tint-1: #F6EFFB;
  --bg-tint-2: #FFF1EA;
  --bg-tint-3: #FDEBF4;
  --card-bg: #FFFFFF;
  --border: #EAE3F0;
  --text: var(--ink);
  --text-muted: var(--muted);
  --font-display: 'Fredoka', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1, h2, .hero-copy h1, .section-title h2 {
  font-family: var(--font-display);
}

/* Announcement bar */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 9px 12px;
}
.announce span { color: var(--g3); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img, .logo-mark { height: 72px; width: auto; display: block; }
.footer-logo { height: 60px; width: auto; display: block; margin-bottom: 10px; }
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a.active, nav.main-nav a:hover { border-bottom-color: var(--g2); }
.header-icons { display: flex; gap: 16px; align-items: center; font-size: 14px; color: var(--text-muted); }
.cart-pill {
  background: var(--gradient);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 13px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--bg-tint-1);
  background-image:
    radial-gradient(circle, rgba(59,23,96,0.10) 2.5px, transparent 2.5px);
  background-size: 26px 26px;
  padding: 72px 24px 56px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
}
.hero-copy { flex: 1 1 380px; }
.hero-copy .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--g2);
  background: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.hero-copy h1 {
  font-weight: 600;
  font-size: 50px;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--g2);
}
.hero-copy h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p { font-size: 17.5px; color: var(--text-muted); margin-bottom: 28px; max-width: 460px; }
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(209,32,125,0.30); transition: transform .1s, box-shadow .1s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(209,32,125,0.38); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-art-badge {
  position: absolute;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-12deg);
  top: 6%;
  right: 6%;
  box-shadow: 0 4px 14px rgba(59,23,96,0.25);
}

/* Trust badges row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 26px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.trust-row div { display: flex; align-items: center; gap: 8px; }
.trust-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g2); flex: none; }

/* Ratings */
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.rating-row { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }

/* Card badges */
.card { position: relative; }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
}
.card-tag.bestseller { background: var(--gradient); color: #fff; }
.card-tag.new { background: var(--g1); color: #fff; }

/* Story section */
.story {
  background: var(--bg-tint-2);
  padding: 60px 24px;
}
.story-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.story-inner h2 { font-size: 30px; color: var(--ink); margin: 0 0 16px; }
.story-inner p { font-size: 17px; color: var(--ink); opacity: .85; line-height: 1.7; }

/* Filter pills */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  border: 1.5px solid var(--border);
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Section titles */
.section-title { text-align: center; margin: 64px 0 8px; }
.section-title h2 { font-size: 28px; color: var(--ink); margin: 0 0 8px; }
.section-title p { color: var(--text-muted); margin: 0; }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin: 32px 0 64px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 10px 26px rgba(59,23,96,0.14); transform: translateY(-2px); }
.card-img { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-tint-1); }
.card-img svg { width: 78%; height: 78%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-body .slogan { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--ink); margin: 0 0 6px; }
.card-body .price { color: var(--g2); font-weight: 700; font-size: 14px; }
.price-original { color: var(--text-muted); text-decoration: line-through; font-weight: 500; font-size: 0.8em; margin-right: 7px; }
.price-sale { color: #D1207D; font-weight: 800; }

/* Hero card (homepage hero image, styled like a shop card) */
.hero-card { max-width: 270px; width: 100%; text-decoration: none; box-shadow: 0 14px 34px rgba(59,23,96,0.16); }

/* Filter bar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-toolbar h1 { margin: 0; font-size: 26px; color: var(--ink); }
.shop-toolbar .count { color: var(--text-muted); font-size: 14px; }

/* Product detail */
.product-detail {
  display: flex;
  gap: 56px;
  padding: 48px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.product-media { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; background: var(--bg-tint-3); border-radius: 18px; padding: 40px; overflow: hidden; }
.product-media svg { width: 100%; max-width: 340px; }
.product-media img { width: 100%; max-width: 420px; border-radius: 12px; object-fit: cover; }
.product-info { flex: 1 1 380px; }
.product-info .breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.product-info h1 { font-size: 30px; color: var(--ink); margin: 0 0 10px; }
.product-info .price { font-size: 22px; font-weight: 700; color: var(--g2); margin-bottom: 18px; }
.product-info .desc { color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.field-label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin-bottom: 8px; display: block; }
.size-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.size-pill {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
}
.size-pill.selected { border-color: var(--g2); background: var(--bg-tint-3); color: var(--g2); }
.add-cart-row { display: flex; gap: 12px; margin-bottom: 28px; }
.qty-box { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 30px; overflow: hidden; }
.qty-box button { border: none; background: none; width: 38px; height: 44px; font-size: 16px; cursor: pointer; color: var(--ink); }
.qty-box span { width: 30px; text-align: center; font-weight: 700; }
.meta-list { border-top: 1px solid var(--border); padding-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.meta-list div { margin-bottom: 6px; }

/* Footer */
footer.site-footer {
  background: var(--ink);
  color: #EDE7F2;
  padding: 40px 24px;
  margin-top: 40px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-inner .tagline { font-size: 13px; color: #C6BAD6; }
.footer-links { display: flex; gap: 24px; font-size: 13px; }
.footer-links a { color: #DCD2E8; }
.footer-links a:hover { color: #fff; }

/* Toast (mock add to cart) */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  nav.main-nav { order: 3; width: 100%; justify-content: center; }
  .hero-copy h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { text-align: center; }
}
