:root {
  --bg: #fffaf7;
  --primary: #6e2142;
  --primary-dark: #4b112b;
  --text: #1e1a1c;
  --muted: #6d6368;
  --card: #ffffff;
  --line: #eadde3;
  --soft: #f8eef2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fffaf7 0%, #fff7fb 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.logo span { color: var(--primary); }

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a.active {
  color: var(--primary);
  font-weight: 700;
}

main.filtered-view .page-section {
  display: none;
}

main.filtered-view .page-section.visible-section {
  display: block;
}


.hero { padding: 80px 0 56px; }

.hero-grid,
.about-grid,
.contact-grid,
.payment-grid,
.qr-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.badge,
.mini-title,
.tag {
  display: inline-block;
  background: var(--soft);
  color: var(--primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.tag {
  margin-bottom: 10px;
  font-size: 0.78rem;
  padding: 6px 10px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.hero-text,
.section-head p,
.about-grid p,
.payment-grid p,
.qr-grid p { color: var(--muted); max-width: 60ch; }

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.highlight-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.compact-actions { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: white; color: var(--primary); border: 1px solid var(--line); }

.hero-card,
.about-box,
.contact-form,
.card,
.payment-box,
.qr-card,
.note-box,
.family-head {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card,
.about-box,
.payment-box,
.qr-card,
.note-box,
.family-head { padding: 28px; }

.hero-card ul,
.about-box ul { margin-top: 16px; padding-left: 20px; }

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-cover {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}

.floating-card {
  position: static;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}


.section { padding: 72px 0; }
.muted { background: rgba(255,255,255,0.75); }
.section-head { margin-bottom: 28px; }

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: white;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.products { display: grid; gap: 28px; }
.family-block { display: grid; gap: 18px; }
.family-head p { color: var(--muted); }
.family-tag { margin-bottom: 12px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card { overflow: hidden; }

.product-image,
.image-placeholder {
  height: 340px;
  width: 100%;
  object-fit: cover;
}

.image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f7dfe7, #ead4de);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 16px;
  text-align: center;
}

.card-content { padding: 18px; }
.card-content p { color: var(--muted); margin: 8px 0 14px; }

.price-list {
  background: var(--soft);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.price-list p { margin: 0 0 4px; }

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.card-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.payment-methods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-methods span {
  padding: 12px 16px;
  background: var(--soft);
  border-radius: 999px;
  font-weight: 700;
  color: var(--primary);
}

.payment-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark) !important;
  margin: 6px 0 12px !important;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

#qrcode canvas,
#qrcode img {
  max-width: 100%;
  border-radius: 18px;
}

.note-box { margin-top: 18px; }
.small-note { font-size: 0.95rem; }

.contact-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
}

.contact-form {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.footer {
  padding: 26px 0 40px;
  text-align: center;
  color: var(--muted);
}

.hidden { display: none !important; }

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .payment-grid,
  .qr-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .payment-grid,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cover {
    max-height: 560px;
  }
}

@media (max-width: 640px) {
  nav { gap: 12px; }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .floating-card {
    margin-top: 0;
  }

  .hero-cover {
    max-height: none;
  }
}


.product-order-box {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-order-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-size-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
  font: inherit;
  background: #fff;
}

.order-help {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}


.cart-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: start;
}

.cart-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.cart-item p,
.empty-cart {
  color: var(--muted);
}

.remove-cart-item {
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-summary {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.card-footer-stack {
  align-items: flex-start;
}

.order-link.btn {
  color: white;
}

@media (max-width: 960px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
}


.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  background: #111827;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .cart-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}
