﻿:root {
  --paper: #f7f1e8;
  --paper-strong: #fcdcc0;
  --paper-soft: #e7f4ee;
  --ink: #1f1a17;
  --muted: #6c625c;
  --accent: #f46f3b;
  --accent-dark: #cc4e22;
  --accent-soft: rgba(244, 111, 59, 0.15);
  --teal: #2c8b8b;
  --teal-dark: #1f6d6d;
  --teal-soft: rgba(44, 139, 139, 0.18);
  --card: #ffffff;
  --shadow: rgba(31, 26, 23, 0.12);
  --shadow-strong: rgba(31, 26, 23, 0.2);
  --ink-soft: rgba(31, 26, 23, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(
    135deg,
    var(--paper) 0%,
    var(--paper-strong) 35%,
    var(--paper-soft) 100%
  );
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 10% 20%, var(--accent-soft), transparent 40%),
    radial-gradient(circle at 80% 10%, var(--teal-soft), transparent 45%),
    radial-gradient(circle at 50% 80%, var(--ink-soft), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.product-page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.product-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-family: "Fraunces", serif;
  font-size: 24px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(31, 26, 23, 0.2);
}

.brand-title {
  font-family: "Fraunces", serif;
  font-size: 20px;
}

.brand-sub {
  font-size: 14px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.lang-switch select {
  width: auto;
  min-width: 90px;
  padding: 6px 10px;
  border-radius: 999px;
}

.status-pill {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.08);
}

.link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 20px;
}

.product-card {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 36px var(--shadow);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.product-header h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 34px;
}

.price {
  font-weight: 700;
  color: var(--teal);
  font-size: 22px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.meta-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.product-description {
  margin-top: 18px;
  line-height: 1.7;
  color: var(--ink);
}

.product-description p {
  margin-top: 0;
}

.order-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(244, 111, 59, 0.08);
}

.price-tier-panel {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(31, 26, 23, 0.08);
  display: grid;
  gap: 8px;
}

.price-tier-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.price-tier-title {
  font-weight: 700;
}

.price-tier-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.price-tier-applied {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(44, 139, 139, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: center;
}

.price-tier-table {
  display: grid;
  gap: 6px;
}

.price-tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(31, 26, 23, 0.04);
  font-size: 13px;
}

.price-tier-row.header {
  background: transparent;
  padding: 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price-tier-row.active {
  background: rgba(44, 139, 139, 0.18);
  color: var(--teal-dark);
  font-weight: 600;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.order-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.session-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(44, 139, 139, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
}

.guest-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 26, 23, 0.15);
  font-family: inherit;
  background: white;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 24px rgba(244, 111, 59, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(31, 26, 23, 0.2);
}

.btn.ghost {
  background: rgba(31, 26, 23, 0.05);
}

.order-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.review-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 26, 23, 0.08);
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-title {
  font-weight: 700;
}

.review-summary {
  font-size: 13px;
}

.review-list {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.review-card {
  background: rgba(31, 26, 23, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
}

.review-stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--accent-dark);
}

.review-title-line {
  font-weight: 600;
  margin-top: 6px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.review-verified {
  background: rgba(44, 139, 139, 0.2);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.review-body {
  margin-top: 8px;
  line-height: 1.6;
}

.review-empty {
  padding: 12px 0;
}

.review-form {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(31, 26, 23, 0.04);
  display: grid;
  gap: 12px;
}

.review-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.review-form-title {
  font-weight: 700;
}

.review-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.review-form select,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(31, 26, 23, 0.15);
  font-family: inherit;
  background: white;
}

.review-guest {
  display: grid;
  gap: 10px;
}

.review-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 26, 23, 0.15);
  background: white;
  font-size: 13px;
  font-family: inherit;
}

.qty-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-label {
  font-size: 13px;
  color: var(--muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 26, 23, 0.05);
  padding: 6px 10px;
  border-radius: 999px;
}

.qty-control input {
  width: 84px;
  text-align: left;
  border: none;
  background: transparent;
  padding: 4px 0;
  -moz-appearance: textfield;
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: white;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(31, 26, 23, 0.12);
}

.side-card {
  background: var(--card);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 32px var(--shadow);
  height: fit-content;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.account-name {
  font-size: 20px;
  font-weight: 700;
}

.account-meta {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: rgba(31, 26, 23, 0.1);
  margin: 16px 0;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(31, 26, 23, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .product-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .order-row {
    flex-direction: column;
    align-items: stretch;
  }
}
