:root {
  --bg: #faf9f7;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #8b3a62;
  --accent-dark: #6b2d4c;
  --border: #e8e4df;
  --white: #fff;
  --radius: 4px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); font-size: 0.95rem; }

.announcement {
  background: var(--text);
  color: var(--white);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}
.announcement a { color: #f5d0e0; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.main-nav a { color: var(--text); text-decoration: none; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-link { font-weight: 600; color: var(--text); text-decoration: none; }
.badge {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4rem 0;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1rem; }
.hero p { margin-bottom: 1.5rem; max-width: 32rem; }
.hero-media {
  aspect-ratio: 4/5;
  background: #ddd;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; color: white; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

.section { padding: 3.5rem 0; }
.section-title { text-align: center; margin-bottom: 2rem; font-size: 2rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-image { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}
.product-info { padding: 1rem; }
.product-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.product-info h3 { font-size: 1rem; margin: 0.35rem 0; }
.product-info h3 a { color: var(--text); text-decoration: none; }
.price { font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--muted); margin-right: 0.5rem; }
.price-sale { color: var(--accent); font-weight: 600; }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.site-footer {
  background: var(--text);
  color: #ddd;
  padding: 3rem 4vw 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.site-footer h3, .site-footer h4 { color: white; margin-bottom: 0.75rem; }
.site-footer a { color: #e8c4d4; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.copyright { text-align: center; font-size: 0.85rem; color: #999; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 4vw;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-actions { display: flex; gap: 0.5rem; }

.toast {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  background: var(--text);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 300;
  max-width: 320px;
}
.toast.show { opacity: 1; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 0 4rem; }
.shop-sidebar a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
}
.shop-sidebar a.active { color: var(--accent); font-weight: 600; }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0 4rem; }
.pdp-gallery img { border-radius: var(--radius); border: 1px solid var(--border); }
.size-options { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
.size-options button {
  min-width: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
}
.size-options button.selected { border-color: var(--accent); background: #fdf5f8; }
.qty-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.qty-row input { width: 4rem; padding: 0.5rem; text-align: center; }

/* Cart & checkout */
.cart-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.cart-table th, .cart-table td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.cart-item-img { width: 80px; border-radius: var(--radius); }
.cart-summary {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: 380px;
  margin-left: auto;
}
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; padding: 2rem 0 4rem; }

/* Legal / content pages */
.legal-page { padding: 2rem 0 4rem; max-width: 800px; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.legal-page h3 { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; }
.legal-page p, .legal-page li { margin-bottom: 0.75rem; }
.legal-page ul, .legal-page ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding-bottom: 3rem;
}
.legal-layout [data-legal-main] { max-width: none; padding: 2rem 0 0; }
.legal-sidebar {
  padding: 2rem 0;
  font-size: 0.9rem;
  border-right: 1px solid var(--border);
}
.legal-sidebar h2 { font-size: 1rem; margin-bottom: 1rem; font-family: var(--font); }
.legal-sidebar ul { list-style: none; padding: 0; }
.legal-sidebar li { margin-bottom: 0.4rem; }
.legal-sidebar a { color: var(--text); text-decoration: none; }
.legal-sidebar a.active, .legal-sidebar a:hover { color: var(--accent); }
.policy-toc { background: var(--white); border: 1px solid var(--border); padding: 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; }
.compliance-note {
  background: #f5f0f2;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.footer-policies { font-size: 0.85rem; line-height: 1.7; }
.footer-policies a { display: inline-block; margin-right: 0.75rem; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-sidebar { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
}

/* Payment methods */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}
.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option .payment-logos {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}
.payment-option .payment-logos img {
  height: 28px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}
.payment-option .payment-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.checkout-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-root.open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.modal-dialog {
  position: relative;
  background: var(--white);
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.modal-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.modal-icon--error { background: #fdecea; color: #c62828; }
.modal-icon--success { background: #e8f5e9; color: #2e7d32; }
.modal-icon--info { background: #f5f0f2; color: var(--accent); }
.modal-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
}
.modal-body {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.modal-body p { margin-bottom: 0.65rem; }
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 0 4rem; }
.alert {
  padding: 1rem;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .hero, .pdp, .checkout-grid, .contact-grid, .shop-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 4vw;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .trust-bar { grid-template-columns: 1fr; }
  .cart-table { font-size: 0.85rem; }
}
