/* ============================================================
   HERAT SAFFRON — Classic Luxury Stylesheet
   Minimal, timeless, performance-first. No heavy effects.
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --ivory: #f2eadf;
  --cream: #e2d3be;
  --gold: #c5a05d;
  --gold-soft: #d4bc85;
  --burgundy: #651e30;
  --dark-brown: #30251f;
  --text: #30251f;
  --text-muted: #6b5d4f;
  --line: #d4c3aa;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(48, 37, 31, 0.06);
  --shadow-md: 0 4px 20px rgba(48, 37, 31, 0.08);
  --shadow-lg: 0 10px 40px rgba(48, 37, 31, 0.1);
  --radius: 4px;
  --maxw: 1200px;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-brown);
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}
h4 {
  font-size: 1.15rem;
}
p {
  margin-bottom: 1rem;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* --- Layout --- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-tight {
  padding: 3rem 0;
}
.center {
  text-align: center;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-brown);
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand .brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--dark-brown);
  font-weight: 500;
}
.cart-count {
  background: var(--burgundy);
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark-brown);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--burgundy);
  color: var(--ivory);
}
.btn-primary:hover {
  background: #4a1623;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #b08a4f;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--dark-brown);
  border: 1px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(170deg, var(--ivory) 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 2rem;
}
.hero .eyebrow {
  margin-bottom: 1.5rem;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero h1 .gold-text {
  color: var(--gold);
  font-style: italic;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-image {
  position: absolute;
  bottom: 0;
  right: 5%;
  width: 38%;
  max-width: 420px;
  opacity: 0.95;
  border-radius: 200px 200px 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero-image {
    display: none;
  }
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  max-width: 200px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-soft);
}
.divider span {
  color: var(--gold);
  font-size: 0.8rem;
}

/* --- Feature Cards --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature {
  text-align: center;
  padding: 2rem 1rem;
}
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.feature p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Split Section --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse .split-img {
  order: -1;
}
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-content h2 {
  margin-bottom: 1.25rem;
}
.split-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split.reverse .split-img {
    order: 0;
  }
}

/* --- Image Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}

/* --- Shop / Products --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--cream);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}
.product-weight {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.product-price {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 1rem;
}
.product-card-body .btn {
  margin-top: auto;
  width: 100%;
}

/* --- Custom Amount --- */
.custom-amount {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}
.custom-amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.custom-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.custom-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.custom-input-wrap input {
  flex: 1;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 1.1rem;
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--text);
  outline: none;
}
.custom-input-wrap .unit {
  padding: 0 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--cream);
  height: 100%;
  display: flex;
  align-items: center;
}
.custom-price-display {
  text-align: center;
}
.custom-price-display .label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.custom-price-display .value {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--burgundy);
}
.custom-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
}
@media (max-width: 640px) {
  .custom-amount-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(48, 37, 31, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: var(--ivory);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-header h3 {
  font-size: 1.5rem;
}
.cart-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
}
.cart-item-info h4 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.cart-item-price {
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 600;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.qty-display {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}
.cart-item-remove {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
  text-decoration: underline;
}
.cart-item-remove:hover {
  color: var(--burgundy);
}
.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}
.cart-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-brown);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.cart-footer .btn {
  width: 100%;
  margin-top: 1rem;
}
.cart-free-shipping {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* --- Checkout --- */
.checkout-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.checkout-section h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.checkout-section > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.checkout-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--ivory);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.order-summary {
  background: var(--cream);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.order-summary h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.guest-notice {
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.guest-notice strong {
  color: var(--dark-brown);
}
.stripe-container {
  margin-top: 1.5rem;
}
#payment-element {
  padding: 0.5rem 0;
}
.payment-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}
.payment-message.error {
  display: block;
  background: #fdf0f0;
  color: var(--burgundy);
  border: 1px solid #e8c4c4;
}
.payment-message.info {
  display: block;
  background: var(--ivory);
  color: var(--text-muted);
  border: 1px solid var(--gold-soft);
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .checkout-form {
    padding: 1.5rem;
  }
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 {
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:last-child {
  border-bottom: none;
}
.contact-detail .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-detail .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-detail .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-brown);
}
.contact-detail a:hover .value {
  color: var(--burgundy);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Heritage Timeline --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold-soft);
}
.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
}
.timeline-item h3 {
  margin-bottom: 0.5rem;
}
.timeline-item p {
  color: var(--text-muted);
}

/* --- About Saffron --- */
.about-saffron-hero {
  background: linear-gradient(170deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 5rem 0;
  text-align: center;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.info-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.info-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.info-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.safety-notice {
  background: var(--cream);
  border-left: 4px solid var(--burgundy);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.safety-notice h3 {
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}
.safety-notice p {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-brown);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand h3 {
  color: var(--cream);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  color: var(--gold-soft);
  font-size: 0.85rem;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid rgba(197, 160, 93, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gold-soft);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-brown);
  color: var(--ivory);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Page Header (non-home pages) --- */
.page-header {
  background: linear-gradient(170deg, var(--cream) 0%, var(--ivory) 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-header h1 {
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* --- QR Note --- */
.qr-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gold);
  margin-top: 1rem;
}

/* --- Utility --- */
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Responsive Nav --- */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links a {
    padding: 1rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after {
    display: none;
  }
}

/* Classic refresh */
.home-hero {
  min-height: 78vh;
  min-height: 78svh;
  background: #21150e;
  isolation: isolate;
}
.home-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: -2;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 10, 5, 0.91),
    rgba(18, 10, 5, 0.68) 36%,
    rgba(18, 10, 5, 0.13) 78%
  );
  z-index: -1;
}
.home-hero .hero-content {
  width: 100%;
  max-width: 1200px;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem;
  text-align: left;
}
.home-hero h1 {
  color: #fff8ed;
  font-size: clamp(3rem, 6vw, 5rem);
  max-width: 650px;
}
.home-hero h1 .gold-text,
.home-hero .eyebrow {
  color: #f1cb83;
}
.home-hero p {
  color: #fff4e5;
  max-width: 440px;
  margin: 0 0 2rem;
  font-size: 1.2rem;
}
.home-hero .hero-actions {
  justify-content: flex-start;
}
.home-hero .btn-outline {
  color: #fff8ed;
  border-color: #e8c481;
  background: #26160c99;
}
.home-hero .btn-primary {
  background: #e5bd77;
  color: #30251f;
}
.product-card-body h3 {
  font-size: clamp(1.6rem, 2vw, 1.9rem);
}
.product-weight {
  font-size: 1.15rem;
  color: #765221;
  letter-spacing: 0.025em;
  font-weight: 600;
}
.product-price {
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
}
.product-card-body .btn,
.custom-amount .btn,
.checkout-form .btn,
.cart-footer .btn {
  font-size: 1rem;
  min-height: 48px;
  white-space: normal;
}
.custom-label {
  font-size: 1.15rem;
  font-weight: 650;
}
.custom-input-wrap input {
  font-size: 1.5rem;
  min-width: 0;
  width: 100%;
}
.custom-input-wrap .unit {
  font-size: 1.25rem;
  padding: 1rem;
  align-self: stretch;
}
.custom-price-display .label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.custom-price-display .value {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-variant-numeric: tabular-nums;
}
.custom-note,
.custom-error {
  font-size: 1rem;
}
.custom-error {
  color: var(--burgundy);
  min-height: 1.2em;
}
.checkout-section {
  max-width: 800px;
}
.checkout-form h3,
.order-summary h3 {
  font-size: 1.8rem;
}
.form-group label,
.form-group input,
.form-group select,
.guest-notice,
.payment-message,
.cart-row {
  font-size: 1.1rem;
}
.form-group input,
.form-group select {
  min-height: 48px;
}
.cart-row.total {
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.cart-item-price,
.cart-free-shipping,
.cart-item-remove {
  font-size: 1rem;
}
.cart-item-info h4 {
  font-size: 1.2rem;
}
.qty-btn {
  width: 36px;
  height: 36px;
}
.info-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .home-hero {
    min-height: 74svh;
    align-items: flex-end;
  }
  .home-hero-photo {
    object-position: 55% center;
  }
  .home-hero::before {
    background: linear-gradient(
      0deg,
      rgba(18, 10, 5, 0.94),
      rgba(18, 10, 5, 0.65) 48%,
      rgba(18, 10, 5, 0.12)
    );
  }
  .home-hero .hero-content {
    padding: 3rem 1.25rem;
  }
  .home-hero h1 {
    font-size: clamp(2.65rem, 10vw, 4rem);
  }
  .home-hero p {
    font-size: 1.05rem;
  }
  .custom-amount {
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Compact shop navigation and restrained editorial layout */
:root {
  --ivory: #faf6ef;
  --cream: #efe5d6;
  --gold: #967032;
  --text-muted: #66594c;
  --serif: Georgia, "Times New Roman", serif;
}
.nav {
  height: auto;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 20px;
  position: relative;
  padding-top: 14px;
  padding-bottom: 12px;
}
.nav .brand {
  text-align: center;
  justify-self: center;
  grid-column: 3;
  grid-row: 1;
}
.nav-toggle {
  display: block;
  grid-column: 1;
  grid-row: 1;
  font-size: 24px;
  min-width: 44px;
  min-height: 44px;
}
.account-link {
  grid-column: 2;
  grid-row: 1;
}
.search-link {
  grid-column: 4;
  grid-row: 1;
}
.cart-btn {
  grid-column: 5;
  grid-row: 1;
}
.nav-links {
  grid-row: 2;
  grid-column: 1/-1;
  justify-content: center;
  gap: 28px;
  position: static;
  max-height: none;
  border: 0;
  background: transparent;
}
.nav-links a {
  font-size: 0.85rem;
}
.brand-sub {
  color: #80602c !important;
}
.home-hero {
  min-height: 410px;
  max-height: none;
  background: #651e30;
}
.home-hero-photo {
  display: none;
}
.home-hero::before {
  background: radial-gradient(ellipse at 85% 20%, #ab805b44, transparent 60%);
}
.home-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.home-hero .hero-content {
  padding: 48px 24px;
}
.home-hero p {
  font-size: 1.05rem;
}
.section {
  padding: 48px 0;
}
.split-img {
  aspect-ratio: 4/3;
  max-height: 330px;
  box-shadow: none;
}
.gallery {
  grid-template-columns: repeat(4, 1fr);
}
.gallery-item {
  aspect-ratio: 4/3;
  box-shadow: none;
}
.art-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 10px;
  padding-bottom: 16px;
}
.prose {
  max-width: 850px;
  padding-top: 48px;
  padding-bottom: 64px;
  min-height: 45vh;
}
.prose h1 {
  margin-bottom: 24px;
}
.prose h2 {
  font-size: 1.6rem;
  margin: 28px 0 12px;
}
.prose a:not(.btn),
.checkout-section p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose form {
  max-width: 480px;
  margin: 24px 0;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guide-grid > a {
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.footer-col a {
  overflow-wrap: anywhere;
}
.skip-link {
  position: fixed;
  top: -80px;
  background: #fff;
  padding: 12px;
  z-index: 400;
}
.skip-link:focus {
  top: 0;
}
:focus-visible {
  outline: 3px solid #916b2c !important;
  outline-offset: 4px;
}
button,
a.btn {
  min-height: 44px;
}
.product-card-img {
  aspect-ratio: 4/3;
}
.product-card-body h3 {
  font-size: 1.3rem;
}
.product-price {
  font-size: 1.5rem;
}
.search-box {
  max-width: 520px;
  margin: 0 auto 24px;
  display: block;
}
.search-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  font: inherit;
  background: white;
}
.payment-message:not(:empty) {
  display: block;
  padding: 16px;
  background: var(--cream);
}
[hidden] {
  display: none !important;
}
@media (max-width: 860px) {
  .nav {
    min-height: 70px;
    padding: 8px 12px;
    gap: 4px;
    grid-template-columns: 40px 48px 1fr 43px 49px;
  }
  .nav .brand {
    font-size: clamp(0.85rem, 3.2vw, 1.2rem);
    letter-spacing: 0;
  }
  .brand .brand-sub {
    font-size: 0.43rem;
    letter-spacing: 0.08em;
  }
  .account-link,
  .search-link,
  .cart-btn {
    font-size: 0.65rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0;
  }
  .nav-links {
    display: none;
    grid-row: 2;
    gap: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open {
    display: flex;
    max-height: none;
  }
  .nav-links a {
    padding: 12px;
    width: 100%;
  }
  .home-hero {
    min-height: 350px;
    align-items: center;
  }
  .home-hero .hero-content {
    padding: 36px 20px;
  }
  .home-hero h1 {
    font-size: 2.6rem;
  }
  .section {
    padding: 32px 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card-body {
    padding: 12px;
  }
  .product-card-body h3 {
    font-size: 1.05rem;
  }
  .product-weight {
    font-size: 0.85rem;
  }
  .product-price {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }
  .product-card-body .btn {
    padding: 10px 5px;
    font-size: 0.8rem;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feature {
    padding: 16px 4px;
  }
  .feature p {
    font-size: 0.85rem;
  }
  .feature h3 {
    font-size: 1.15rem;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .prose {
    padding-top: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-section {
    padding: 24px 12px;
  }
  .checkout-form {
    padding: 18px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .btn {
    font-size: 0.75rem;
    padding: 12px 16px;
  }
}
/* Phase 2: a calm, accessible business desk and finer shop details. */
.admin-shell {
  max-width: 1280px;
  padding-top: 40px;
  padding-bottom: 64px;
}
.admin-heading {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-heading h1 {
  font-size: 2.6rem;
}
.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  margin: 24px 0;
  border-radius: 8px;
}
.admin-panel h2 {
  margin-bottom: 16px;
}
.admin-panel h3 {
  font-size: 1.25rem;
  margin: 16px 0;
}
.admin-panel form {
  margin: 16px 0;
}
.admin-panel label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-panel input:not([type="checkbox"]),
.admin-panel textarea,
.admin-panel select {
  display: block;
  width: 100%;
  max-width: 600px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font: inherit;
  border-radius: 4px;
}
.admin-panel input[type="checkbox"] {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.admin-panel button {
  margin-top: 12px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  padding: 20px;
  background: #651e30;
  color: #fff8ed;
  border-radius: 6px;
}
.metric span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.metric strong {
  display: block;
  font-size: 1.8rem;
  margin-top: 8px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.admin-tabs button {
  border: 1px solid var(--line);
  padding: 10px 16px;
  font: inherit;
  border-radius: 4px;
}
.admin-tabs button[aria-current="true"] {
  background: var(--burgundy);
  color: #fff;
}
.table-scroll {
  overflow: auto;
  margin: 20px 0;
}
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.table-scroll th,
.table-scroll td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-scroll th {
  background: var(--ivory);
  white-space: nowrap;
}
.table-scroll td {
  max-width: 300px;
  overflow-wrap: anywhere;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.admin-product {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.admin-panel a {
  text-decoration: underline;
}
.nav-links a.active {
  color: var(--burgundy);
  font-weight: 700;
}
.btn-gold {
  background: #916c32;
  color: #fff;
}
.eyebrow {
  color: #805a20;
}
.home-hero .eyebrow {
  color: #f1cb83;
}
.product-card {
  border: 1px solid #e8dece;
  box-shadow: none;
}
.product-card-body .btn {
  letter-spacing: 0.04em;
}
.product-card-body .btn:hover {
  box-shadow: none;
}
.product-card-img img {
  object-fit: contain;
}
.product-grid {
  align-items: stretch;
}
.cart-drawer {
  max-width: 100vw;
}
.cart-close {
  min-width: 44px;
  min-height: 44px;
}
.qty-btn {
  width: 44px;
  height: 44px;
}
.toast {
  max-width: calc(100vw - 24px);
  text-align: center;
}
.home-hero .hero-content {
  max-width: 1120px;
}
.brand {
  color: #651e30;
}
.prose {
  line-height: 1.85;
}
.prose h2 {
  color: #651e30;
}
.site-footer a:focus-visible {
  outline-color: #f1cb83 !important;
}
@media (max-width: 640px) {
  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-panel {
    padding: 16px;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    display: block;
  }
  .admin-tabs {
    gap: 6px;
  }
  .admin-tabs button {
    font-size: 0.85rem;
    padding: 8px;
  }
  .product-grid {
    gap: 10px;
  }
  .product-card-body {
    padding: 11px;
  }
  .product-card-body h3 {
    font-size: 1rem;
  }
  .product-card-body .btn {
    min-height: 44px;
  }
  .product-weight {
    margin-bottom: 8px;
  }
  .product-card-img {
    aspect-ratio: 1.2;
  }
  .features {
    gap: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col a {
    font-size: 0.8rem;
  }
  .contact-info-card {
    padding: 20px;
  }
  .contact-detail {
    gap: 10px;
  }
  .contact-detail .value {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }
  .guide-grid > a {
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .page-header {
    padding: 28px 0 24px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.9rem;
  }
  .home-hero h1 {
    font-size: 2.35rem;
  }
  .hero-actions .btn {
    padding: 12px;
  }
  .checkout-form .cart-row {
    gap: 12px;
    font-size: 0.95rem;
  }
}
.prose .guide-grid > a {
  text-decoration: none;
}
.guide-grid > a:focus-visible,
.guide-grid > a:hover {
  border-color: var(--gold);
  background: #fffdf9;
}
.prose details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.prose summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--burgundy);
  min-height: 32px;
}
.prose details p {
  margin-top: 12px;
}
.prose ol {
  padding-left: 24px;
}
.prose li {
  margin: 8px 0;
}
.account-link,
.search-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-icon {
  flex: none;
}
.cart-btn .cart-count {
  flex: none;
}
@media (max-width: 860px) {
  .nav {
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    gap: 0;
    padding: 8px 10px;
  }
  .nav-label {
    display: none;
  }
  .nav .brand {
    font-size: clamp(0.8rem, 3.2vw, 1.2rem);
  }
  .nav-icon {
    width: 20px;
    height: 20px;
  }
  .nav-toggle {
    width: 44px;
  }
  .account-link,
  .search-link,
  .cart-btn {
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  .cart-btn .cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    font-size: 0.6rem;
  }
  .nav-links {
    grid-template-columns: none;
  }
}
/* Phase 3: consistent operational controls and resilient narrow layouts. */
.admin-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}
.admin-filters label {
  margin: 0;
}
.admin-filters input,
.admin-filters select {
  max-width: none;
}
.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-product {
  min-width: 0;
  overflow-wrap: anywhere;
}
.table-scroll {
  max-width: 100%;
}
.admin-tabs button {
  min-height: 44px;
}
.prose details summary {
  min-height: 44px;
}
.cart-items {
  min-height: 0;
}
.cart-footer {
  flex-shrink: 0;
}
.cart-drawer {
  height: 100vh;
  height: 100dvh;
}
.brand {
  min-width: 0;
}
.nav-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.admin-panel textarea {
  resize: vertical;
}
.admin-tabs [hidden] {
  display: none !important;
}
input,
textarea,
select {
  font-size: 16px;
}
.form-group input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.product-card-body {
  min-width: 0;
}
.prose {
  overflow-wrap: break-word;
}
#admin-message:empty {
  display: none;
}
#report-summary,
#stock-alert {
  padding: 12px;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}
@media (max-width: 600px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }
  .admin-heading h1 {
    font-size: 2rem;
  }
  .admin-heading {
    padding-bottom: 12px;
  }
  .admin-panel {
    margin: 16px 0;
  }
  .nav .brand {
    font-size: clamp(0.75rem, 3.3vw, 1.2rem);
  }
  .product-card-body h3 {
    font-size: 1rem;
    overflow-wrap: break-word;
  }
  .checkout-form .cart-row {
    font-size: 1rem;
  }
  .cart-footer {
    padding: 16px;
  }
  .cart-row.total {
    font-size: 1.35rem;
  }
  .site-footer .footer-brand {
    grid-column: 1/-1;
  }
  .btn {
    letter-spacing: 0.07em;
  }
  .product-card-body .btn {
    letter-spacing: 0.015em;
  }
  .form-row {
    min-width: 0;
  }
  .form-row > * {
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Gold headings remain legible on the burgundy footer. */
.footer-col h4 {
  color: #eed49d;
}

/* Calm, readable shopping and account states. No remote font dependency. */
.unit-price {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: -0.25rem 0 0.8rem;
}
.catalogue-status,
.field-help,
.checkout-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.catalogue-status {
  min-height: 1.6em;
  margin: 0 0 1.25rem;
}
.order-card {
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.order-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.order-card .order-status {
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.order-card time {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.order-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.4rem 0.8rem;
  margin: 1rem 0;
}
.order-facts dt {
  font-weight: 600;
}
.order-facts dd {
  margin: 0;
}
.order-card .btn {
  margin: 0.5rem 0;
}
.order-card .field-help {
  margin-bottom: 0;
}
#postcode {
  text-transform: uppercase;
}
@media (max-width: 420px) {
  .order-card {
    padding: 1rem;
  }
  .order-facts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .unit-price {
    font-size: 0.78rem;
  }
}

.cart-free-shipping {
  color: var(--burgundy);
}
.qty-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
