:root {
  --midnight: #17171f;
  --rose-gold: #dba6a6;
  --cream: #fff8f0;
  --sage: #b7c4a0;
  --mist: #e9ecef;
  --shadow: 0 30px 60px rgba(23, 23, 31, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--midnight), #2d1f28 40%, var(--cream));
  color: #f7f7f7;
}

header.hero {
  min-height: 100vh;
  position: relative;
  padding: 24px clamp(20px, 4vw, 60px) 80px;
  overflow: hidden;
}

header .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(219, 166, 166, 0.4), transparent 40%);
  pointer-events: none;
}

nav.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.cta {
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: var(--rose-gold);
  color: var(--midnight);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cta.secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta.ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.cta:hover {
  transform: translateY(-2px);
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero .subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

main {
  padding-bottom: 120px;
}

.panel {
  padding: clamp(60px, 5vw, 90px) clamp(20px, 8vw, 100px);
  background: #fff;
  color: #1b1b1b;
}

.panel + .panel {
  margin-top: -4px;
}

.panel h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin-bottom: 1rem;
}

.panel .eyebrow {
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--rose-gold);
  margin-bottom: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.grid article {
  background: var(--mist);
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--cream), var(--sage));
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.placeholder-img {
  color: var(--midnight);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.grid article h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.grid article h3:hover {
  color: var(--rose-gold);
}

.grid article p {
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #666;
}

.volume {
  font-weight: 600;
  color: var(--sage);
}

.ingredients {
  font-style: italic;
}

.price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--rose-gold);
  margin-bottom: 1rem;
}

.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  background: linear-gradient(135deg, #fff, #f9f3ee);
}

.story-card {
  border-radius: 22px;
  padding: 2rem;
  background: #1c1c1c;
  color: #f6f6f6;
  box-shadow: var(--shadow);
}

.payment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  background: #fff5f0;
}

.payment-card {
  padding: 2rem;
  background: #1f1f1f;
  color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.payment-card strong {
  font-size: 2rem;
  display: block;
}

.payment-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.merchant-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.merchant-info h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--rose-gold);
}

.merchant-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.detail-row span {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-weight: 600;
}

.payment-steps {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-steps h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--rose-gold);
  font-size: 1rem;
}

.payment-steps ol {
  margin: 0;
  padding-left: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}

.payment-steps li {
  margin-bottom: 0.5rem;
}

.contact {
  background: #1f1f1f;
  color: #f0efe9;
}

.contact form {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
}

footer {
  padding: 40px 20px;
  text-align: center;
  color: #dcd7d0;
  background: #0f0f0f;
}

/* Cart Styles */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-toggle {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--rose-gold);
  color: var(--midnight);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #1f1f1f;
  color: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.cart-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  margin: 2rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cart-item-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
}

.cart-item-price {
  color: var(--rose-gold);
  font-size: 0.85rem;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
}

.quantity {
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.cart-item-remove:hover {
  color: #fff;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.cart-total span:last-child {
  font-weight: 600;
  color: var(--rose-gold);
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--rose-gold);
  color: var(--midnight);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform: translateY(-100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2000;
  font-weight: 500;
}

.notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* QR Code Modal */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.qr-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.qr-modal-content h3 {
  margin-top: 0;
  color: var(--midnight);
  margin-bottom: 1rem;
}

.qr-code-container {
  background: #fff;
  border: 2px solid var(--rose-gold);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
}

.qr-code-container img {
  max-width: 200px;
  max-height: 200px;
}

.qr-modal-content p {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .qr-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
}
