@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg: #fcfaf7;
  --surface: #fffdf9;
  --surface-2: #f6efe4;
  --foreground: #2f241d;
  --muted: #6d6254;
  --gold: #b8860b;
  --gold-light: #d7b56f;
  --blush: #f2dfe2;
  --cream: #f1e8d8;
  --border: #e7dccf;
  --shadow: 0 10px 40px -10px rgba(184, 134, 11, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 250, 247, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand .accent {
  color: var(--gold);
}

.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 40px;
  width: auto;
  display: block;
}
.brand-logo-footer img {
  height: 64px;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.nav-actions a,
.dropdown-toggle {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  padding: 0.45rem 0.35rem;
}

.nav-links a:hover,
.nav-actions a:hover,
.dropdown-toggle:hover,
.nav-links a.active {
  color: var(--foreground);
}

.nav-links a::after,
.nav-actions a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-actions a:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 220px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  display: none;
}

.dropdown:hover .dropdown-panel,
.dropdown.open .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
}

.dropdown-panel a:hover {
  background: var(--surface-2);
}

.dropdown-panel-right {
  left: auto;
  right: 0;
}

.account-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.account-name {
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-panel form {
  margin: 0;
}

.dropdown-logout-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  border: 0;
  background: none;
  font: inherit;
  color: #c0392b;
  cursor: pointer;
}

.dropdown-logout-btn:hover {
  background: var(--surface-2);
}

.icon-btn {
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.icon-btn:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 1rem 0 1.4rem;
  border-top: 1px solid var(--border);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a,
.mobile-nav button {
  display: block;
  padding: 0.7rem 0;
  color: var(--foreground);
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--cream) 45%, rgba(242, 223, 226, 0.5) 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: auto;
  border-radius: 999px;
  opacity: 0.8;
  pointer-events: none;
}

.hero::before {
  width: 280px;
  height: 280px;
  background: rgba(184, 134, 11, 0.16);
  right: -80px;
  bottom: 100px;
}

.hero::after {
  width: 180px;
  height: 180px;
  background: rgba(242, 223, 226, 0.7);
  left: -50px;
  top: 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.5rem;
  padding: 1.5rem 0 5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-title,
.section-title,
.page-title {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.6rem, 4.2vw, 4.6rem);
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--gold);
  font-style: italic;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  background: var(--foreground);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

.btn-secondary {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-gold {
  background: var(--gold);
  color: white;
}

.auth-form .btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 0.9rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(47, 36, 29, 0.16);
}

.stat {
  min-width: 120px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.hero-frame {
  position: absolute;
  inset: 1.25rem;
  border: 2px solid rgba(184, 134, 11, 0.26);
  border-radius: 2rem;
}

.hero-image {
  position: absolute;
  inset: 0;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.mouse {
  width: 1.45rem;
  height: 2.25rem;
  border: 2px solid rgba(47, 36, 29, 0.4);
  border-radius: 999px;
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.mouse::before {
  content: '';
  width: 0.28rem;
  height: 0.5rem;
  background: var(--gold);
  border-radius: 999px;
  position: absolute;
  top: 0.35rem;
}

.section {
  padding: 5.25rem 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(241, 232, 216, 0.45) 0%, rgba(252, 250, 247, 0) 100%);
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-heading p {
  color: var(--muted);
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 0.75rem;
}

.cards-grid {
  display: grid;
  gap: 1.2rem;
}

.cards-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.product-card,
.testimonial-card,
.collection-card,
.page-card,
.form-card,
.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.product-card {
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--cream);
  margin-bottom: 1rem;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-body {
  padding: 0;
}

.product-image-link,
.product-info-link {
  display: block;
  color: inherit;
}

.product-media .product-image-link {
  width: 100%;
  height: 100%;
}

.product-info-link:hover .product-title {
  color: var(--gold);
}

.product-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-price,
.card-copy {
  color: var(--muted);
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.price-row strong {
  color: var(--foreground);
}

.price-row .muted {
  color: var(--muted);
  text-decoration: line-through;
}

.collection-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 320px;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card:hover img {
  transform: scale(1.04);
}

.collection-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.68) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: white;
}

.collection-card h3,
.collection-card p {
  margin: 0;
}

.collection-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.story-media {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card {
  padding: 1.6rem;
  border-radius: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial-card {
  position: relative;
  min-height: 100%;
}

.testimonial-card .quote {
  color: rgba(184, 134, 11, 0.22);
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.avatar {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--blush);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--foreground);
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.instagram-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.instagram-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-card:hover img {
  transform: scale(1.06);
}

.instagram-card::after {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  background: rgba(47, 36, 29, 0.12);
  opacity: 0;
}

.instagram-card:hover::after {
  opacity: 1;
}

.newsletter {
  background: var(--foreground);
  color: white;
  padding: 4rem 0;
  border-radius: 2rem;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.08"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.7;
}

.newsletter .container {
  position: relative;
  z-index: 1;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.newsletter-form input {
  min-width: 280px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 0.95rem 1rem;
  border-radius: 999px;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.72);
}

.site-footer {
  padding: 3.4rem 0 1.4rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

body:has(.auth-split) .site-footer {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 2fr repeat(3, 1fr);
  margin-bottom: 2rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.page-hero {
  padding: 2rem 0 0;
}

.page-shell {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  padding: 2rem 0 3rem;
}

.page-card h2,
.page-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.page-card > h2,
.page-card > h3 {
  margin: 0 0 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.page-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.page-card-title h2,
.page-card-title h3 {
  margin: 0;
}

.page-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--gold), transparent 85%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-list {
  display: grid;
  gap: 1rem;
}

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.9rem 0.7rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.form-card form {
  display: grid;
  gap: 0.9rem;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  border: 1px dashed var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.85rem 0.95rem;
  color: var(--foreground);
}

.form-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236d6254' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-card textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-3 {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row-4 {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .form-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.avatar-upload-preview {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--surface-2);
  background-size: cover;
  background-position: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-upload-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.avatar-upload-dropzone:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 640px) {
  .form-row,
  .form-row-3,
  .form-row-4 {
    grid-template-columns: 1fr;
  }
}

.form-card form button[type="submit"] {
  justify-self: end;
  padding: 0.7rem 1.75rem;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: var(--surface-2);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
}

.badge-pending    { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.badge-confirmed,
.badge-shipped    { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.badge-processing { background: rgba(109, 40, 217, 0.12); color: #6d28d9; }
.badge-delivered  { background: rgba(26, 127, 55, 0.12); color: #1a7f37; }
.badge-cancelled  { background: rgba(192, 57, 43, 0.12); color: #c0392b; }
.badge-refunded   { background: var(--surface-2); color: var(--muted); }

/* Account area: nav + dashboard + orders */
.page-hero {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--cream) 45%, color-mix(in srgb, var(--blush), var(--bg) 65%) 100%);
  padding: 2.75rem 0;
  position: sticky;
  top: 76px;
  z-index: 20;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.page-hero .page-title {
  margin: 0 0 0.6rem;
}

.page-hero .lead {
  margin: 0;
}

.dash-greeting {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--gold);
  background-image: linear-gradient(135deg, var(--gold-light), var(--gold));
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(184, 134, 11, 0.45);
}

.account-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.75rem;
  align-items: start;
  padding: 2.25rem 0 3.5rem;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 280px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-nav-link svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 0.65rem;
  background: var(--surface-2);
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-nav-link:hover {
  background: var(--surface-2);
}

.account-nav-link.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(184, 134, 11, 0.55);
}

.account-nav-link.active svg {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.account-nav-logout-form {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}

.account-nav-logout {
  color: #c0392b;
}

.account-nav-logout svg {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

.account-content {
  min-width: 0;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.dash-stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--stat-color, var(--gold)), transparent 94%), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.dash-stat-card:hover {
  transform: translateY(-3px);
}

.dash-stat-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--stat-color, var(--gold)), transparent 82%);
  color: var(--stat-color, var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--foreground);
}

.dash-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.order-row-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.order-row-card::before {
  content: '';
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--gold), transparent 88%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8h12l-1 12H7L6 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.order-row-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .account-shell {
    grid-template-columns: 1fr;
  }

  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    position: static;
  }

  .account-nav-logout-form {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .dash-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Icons */
.icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm {
  width: 0.95rem;
  height: 0.95rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Nav icon buttons + cart badge */
.icon-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Trust badges section */
.trust-badges {
  padding: 3.5rem 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 0.9rem;
}

.trust-item h3 {
  font-weight: 700;
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

/* Product card badges, wishlist button, hover actions */
.product-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 2;
}

.product-badge.sale {
  background: var(--terracotta, #c1633f);
  color: #fff;
}

.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.wishlist-btn:hover {
  background: #fff;
  transform: scale(1.06);
}

.wishlist-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--foreground);
}

.wishlist-btn.active svg {
  color: var(--terracotta, #c1633f);
  fill: var(--terracotta, #c1633f);
}

.product-actions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-actions .btn {
  flex: 1;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}

.product-actions .icon-btn {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.view-all-link {
  text-align: center;
  margin-top: 2.5rem;
}

.view-all-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--foreground);
}

.view-all-link a:hover {
  color: var(--gold);
}

/* Testimonials: stars + quote icon */
.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.9rem;
  color: var(--gold);
}

.testimonial-card .quote {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: rgba(184, 134, 11, 0.18);
}

.testimonial-product {
  color: var(--gold);
  font-size: 0.85rem;
  margin: 0.6rem 0 1.1rem;
}

/* Newsletter icon */
.newsletter-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
}

/* Footer social icons + contact info */
.footer-contact {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 1.3rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.social-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--muted);
}

.social-btn:hover {
  background: var(--gold);
  color: #fff;
}

/* Contact page */
.page-intro {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(180deg, var(--blush) 0%, var(--bg) 100%);
  text-align: center;
}

.page-intro .eyebrow {
  display: block;
}

.page-intro .page-title {
  margin: 0.75rem 0 1rem;
}

.page-intro .lead {
  margin-left: auto;
  margin-right: auto;
}

.page-intro-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-intro-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(241, 232, 216, 0.9) 0%, rgba(252, 250, 247, 0.96) 100%);
}

.page-intro-photo .container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-info-card {
  background: var(--cream);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.contact-info-card h3 {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
}

.contact-info-main {
  color: var(--foreground);
  font-weight: 600;
  margin: 0;
}

.contact-info-sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.15rem 0 0;
}

.contact-social-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.contact-form-card {
  background: var(--cream);
  border-radius: 1.75rem;
  padding: 2rem;
}

.contact-form-card form {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.contact-form-card .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.85rem 0.95rem;
  color: var(--foreground);
}

.contact-form-card textarea {
  resize: vertical;
}

.map-frame {
  border-radius: 1.75rem;
  overflow: hidden;
  height: 400px;
  background: var(--surface-2);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Wishlist page */
.wishlist-hero {
  padding: 3rem 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--cream) 45%, rgba(242, 223, 226, 0.5) 100%);
  text-align: center;
}

.wishlist-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.wishlist-hero-badge svg {
  color: var(--gold);
  fill: var(--gold);
}

.wishlist-hero .page-title {
  margin: 0 0 0.75rem;
}

.wishlist-hero p {
  color: var(--muted);
  margin: 0;
}

.wishlist-list {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.wishlist-item {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.wishlist-item-image {
  width: 9rem;
  height: 9rem;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wishlist-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wishlist-item-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.wishlist-item-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.wishlist-item-price strong {
  font-size: 1.1rem;
  color: var(--foreground);
}

.wishlist-item-price .muted {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.wishlist-item-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.wishlist-remove-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(200, 60, 60, 0.35);
  color: #c0392b;
  background: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.wishlist-empty {
  text-align: center;
  padding: 4rem 0;
}

.wishlist-empty-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.wishlist-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.wishlist-empty p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

@media (max-width: 640px) {
  .wishlist-item {
    flex-direction: column;
  }

  .wishlist-item-image {
    width: 100%;
    height: 12rem;
  }
}

/* Checkout page */
.checkout-progress {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--cream) 45%, rgba(242, 223, 226, 0.5) 100%);
}

.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkout-step-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.checkout-step-badge.active,
.checkout-step-badge.done {
  background: var(--foreground);
  color: var(--surface);
}

.checkout-step-arrow {
  color: var(--muted);
  flex-shrink: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.checkout-content-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

.address-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.address-card {
  position: relative;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--border);
  cursor: pointer;
}

.address-card.selected {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.05);
}

.address-default-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  background: rgba(184, 134, 11, 0.15);
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.address-card-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.address-radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--muted);
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: grid;
  place-items: center;
  color: #fff;
}

.address-card.selected .address-radio {
  border-color: var(--gold);
  background: var(--gold);
}

.address-info {
  flex: 1;
}

.address-info h3 {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.address-info p {
  margin: 0.15rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.address-edit {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}

.address-form {
  gap: 1.25rem;
}

.address-form button[type="submit"] {
  margin-top: 0.5rem;
}

.add-address-details summary {
  list-style: none;
  cursor: pointer;
}

.add-address-details summary::-webkit-details-marker {
  display: none;
}

.add-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px dashed var(--border);
  color: var(--muted);
  font-weight: 600;
}

.add-address-details[open] .add-address-btn {
  border-color: var(--gold);
  color: var(--foreground);
}

.add-address-form {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.add-address-form .form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.add-address-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  color: var(--foreground);
}

.add-address-actions {
  display: flex;
  gap: 0.75rem;
}

.checkout-actions-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

.checkout-actions-between {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.payment-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--border);
  cursor: pointer;
  font-weight: 600;
}

.payment-card input {
  accent-color: var(--gold);
}

.payment-card.selected {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.05);
}

.payment-card svg {
  color: var(--muted);
  flex-shrink: 0;
}

.payment-detail {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-detail input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  color: var(--foreground);
}

.payment-detail[hidden] {
  display: none;
}

.checkout-fields .form-row,
.checkout-fields .form-row-3 {
  margin-bottom: 0.9rem;
}

.checkout-fields > .page-card > div:not(.page-card-title):not(.form-row):not(.form-row-3) {
  margin-bottom: 0.9rem;
}

.checkout-fields input[type="text"],
.checkout-fields input[type="email"],
.checkout-fields textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.92rem;
}

.checkout-fields input[readonly] {
  background: var(--surface-2);
  color: var(--muted);
}

.checkout-fields textarea {
  resize: vertical;
  min-height: 70px;
}

.order-confirmed {
  text-align: center;
  padding: 2rem 0;
}

.order-confirmed-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.order-confirmed h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.order-confirmed p {
  color: var(--muted);
  margin: 0.2rem 0;
}

.order-id {
  font-size: 0.9rem;
  margin-bottom: 2rem !important;
}

.order-id strong {
  color: var(--foreground);
}

.order-delivery-card {
  max-width: 360px;
  margin: 0 auto 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.3rem;
  text-align: left;
}

.order-delivery-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.order-delivery-head svg {
  color: var(--gold);
}

.order-confirmed-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.order-summary-items {
  display: grid;
  gap: 0;
}

.order-summary-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.order-summary-item-row:last-child {
  border-bottom: 0;
}

.order-summary-item-image {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.7rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.order-summary-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary-item-info {
  flex: 1;
  min-width: 0;
}

.order-summary-item-info h3 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.order-summary-item-qty {
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.order-summary-item-price {
  font-weight: 700;
  flex-shrink: 0;
  min-width: 100px;
  text-align: right;
}

.track-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.track-order-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 1.8rem 0;
}

.track-order-steps::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.track-order-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}

.track-order-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
}

.track-order-step.done .track-order-step-dot {
  background: var(--gold);
  border-color: var(--gold);
}

.track-order-step-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.track-order-step.done .track-order-step-label {
  color: var(--foreground);
}

.track-order-shipment {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.track-order-events {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.track-order-event {
  display: flex;
  gap: 0.75rem;
}

.track-order-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.track-order-event-status {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .track-order-steps {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  .track-order-steps::before {
    display: none;
  }
}

.track-order-search-form {
  display: flex;
  align-items: end;
  gap: 1rem;
}

.track-order-search-form > div:first-child {
  flex: 1;
}

.track-order-search-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .track-order-search-form {
    flex-direction: column;
    align-items: stretch;
  }
}

.order-confirm-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 767px) {
  .order-confirm-grid {
    grid-template-columns: 1fr;
  }
  .order-summary-item-row {
    flex-wrap: wrap;
  }
}

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.6rem;
  position: sticky;
  top: 6rem;
}

.checkout-summary-items {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.checkout-summary-item {
  display: flex;
  gap: 0.85rem;
}

.checkout-summary-divider {
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

.checkout-summary-subhead {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.payment-list-inline {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.payment-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.payment-pill input {
  accent-color: var(--gold);
  margin: 0;
  width: 0.85rem;
  height: 0.85rem;
}

.payment-pill.selected {
  border-color: var(--gold);
  background: rgba(184, 134, 11, 0.08);
  color: var(--gold);
}

.payment-pill[data-coming-soon] {
  border-style: dashed;
  color: var(--muted);
  opacity: 0.75;
}

.checkout-card-soon-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.checkout-notes-field {
  min-height: 60px;
}

.checkout-summary-image {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.7rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
}

.checkout-summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-summary-item p {
  margin: 0.1rem 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-summary-price {
  font-weight: 700 !important;
  color: var(--foreground) !important;
  font-size: 0.85rem !important;
}

/* Cart page */
.cart-header {
  padding: 2.5rem 0 1.5rem;
}

.cart-header .lead {
  margin: 0;
}

.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 6rem;
  height: 8rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cart-item-top h3 {
  margin: 0 0 0.3rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.cart-item-size {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

.cart-item-remove {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.cart-item-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
}

.cart-item-price {
  font-weight: 700;
  margin: 0;
}

.cart-item-price-block {
  text-align: right;
}

.cart-item-unit-price {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0 0 0.15rem;
}

.cart-summary {
  background: var(--cream);
  border-radius: 1.5rem;
  padding: 1.75rem;
  position: sticky;
  top: 6rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.5rem 0;
}

.cart-summary-total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--foreground);
}

.cart-summary-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.cart-empty {
  text-align: center;
  padding: 4rem 0;
}

.cart-empty-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
}

.cart-empty h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.cart-empty p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* FAQ page */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 3rem;
}

.faq-category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--cream);
  border-radius: 0.9rem;
  padding: 0 1.5rem;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--gold);
}

.faq-item .chevron {
  flex-shrink: 0;
  color: var(--muted);
}

.faq-item[open] .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1.3rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-cta {
  margin-top: 3rem;
  text-align: center;
  background: linear-gradient(90deg, rgba(242, 223, 226, 0.4), rgba(241, 232, 216, 0.6));
  border-radius: 1.75rem;
  padding: 3rem 2rem;
}

.faq-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.faq-cta p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Login / Signup page */
.auth-split {
  display: flex;
  align-items: stretch;
  min-height: 72vh;
}

.auth-media {
  position: relative;
  width: 60%;
  max-width: 780px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
}

.auth-media-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-form-side {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 2.5rem;
  background: var(--bg);
}

.auth-media-card {
  position: absolute;
  left: 1.75rem;
  right: 1.75rem;
  bottom: 2.25rem;
  background: rgba(255, 253, 249, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -12px rgba(24, 18, 12, 0.25);
}

.auth-media-card-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.auth-media-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--gold), transparent 82%);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-media-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.auth-media-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.auth-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--foreground);
}

.auth-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-decor {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 190px;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  object-fit: contain;
}

.auth-decor-form {
  top: -1.5rem;
  right: -1.5rem;
  width: 260px;
  opacity: 0.5;
}

.auth-card-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.auth-card-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.auth-form-wrap {
  position: relative;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 2.75rem 2.5rem;
  box-shadow: 0 20px 40px -12px rgba(24, 18, 12, 0.12);
  overflow: hidden;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-remember input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-remember label {
  cursor: pointer;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.auth-subtitle {
  color: var(--muted);
  margin: 0 0 1rem;
}

.auth-toggle {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem;
  border: 1.5px solid transparent;
  background: var(--surface-2);
  border-radius: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: var(--surface);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.auth-form-wrap.signup-mode .auth-form {
  gap: 0.55rem;
}

.auth-form-wrap.signup-mode .form-label {
  margin-bottom: 0.35rem;
}

.auth-form-wrap.signup-mode .field-error {
  margin-top: 0.15rem;
  min-height: 0;
}

.auth-form-wrap.signup-mode .field-error:empty {
  margin-top: 0;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.auth-input-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.85rem 2.6rem 0.85rem 2.6rem;
  color: var(--foreground);
}

.auth-password-toggle {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.4rem;
}

.auth-forgot {
  text-align: right;
}

.auth-forgot a {
  font-size: 0.85rem;
  color: var(--gold);
}

.auth-forgot a:hover {
  text-decoration: underline;
}

.otp-verify-section {
  text-align: center;
  padding-top: 0.5rem;
  position: relative;
}

.otp-back-link {
  position: absolute;
  left: 0;
  top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.otp-back-link:hover {
  color: var(--gold);
}

.otp-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0.5rem auto 0.9rem;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--gold);
  display: grid;
  place-items: center;
}

.otp-title {
  margin: 0 0 0.4rem;
}

.otp-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.3rem;
}

.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.otp-box {
  width: 2.9rem;
  height: 3.3rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--foreground);
}

.otp-box:focus {
  outline: none;
  border-color: var(--gold);
}

.otp-box.is-invalid {
  border-color: #c0392b;
}

.otp-status-btn {
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: default;
}

.otp-status-btn:disabled {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--muted);
  opacity: 1;
}

.otp-status-btn.is-verifying:disabled {
  color: var(--gold);
  border-color: var(--gold-light);
}

.otp-status-btn.is-verified {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.otp-resend-row {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.1rem;
}

.otp-resend-btn {
  background: none;
  border: 0;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 0.3rem;
}

.otp-resend-btn:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 2rem 0 1.5rem;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.auth-social-btn {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  border-radius: 0.9rem;
  overflow: hidden;
}

.auth-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.auth-social-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  font-weight: 600;
}

/* Product detail page */
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb .current {
  color: var(--foreground);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 0.5rem 0 4rem;
}

.pd-main-image {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--cream);
  margin-bottom: 0.9rem;
}

.pd-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.pd-nav-btn.prev {
  left: 1rem;
}

.pd-nav-btn.next {
  right: 1rem;
}

.pd-discount-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--terracotta, #c1633f);
  color: #fff;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pd-side-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pd-side-actions button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.pd-thumbs {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
}

.pd-thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 6rem;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-thumb.active {
  border-color: var(--gold);
}

.pd-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.pd-category {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
}

.pd-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.pd-rating strong {
  color: var(--foreground);
}

.pd-rating svg {
  color: var(--gold);
}

.pd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  margin: 0.5rem 0 1rem;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pd-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 600;
}

.pd-price-original {
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: line-through;
}

.pd-price-save {
  color: var(--terracotta, #c1633f);
  font-weight: 600;
}

.pd-tax-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.pd-description {
  color: var(--muted);
  line-height: 1.7;
  margin: 1.3rem 0;
}

.pd-section-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.pd-size-guide-link {
  font-size: 0.85rem;
  color: var(--gold);
  cursor: pointer;
}

.pd-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pd-size-btn {
  min-width: 3rem;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 0.7rem;
  background: var(--surface-2);
  border: 0;
  font-weight: 600;
  cursor: pointer;
  color: var(--foreground);
}

.pd-size-btn.active {
  background: var(--gold);
  color: #fff;
}

.pd-size-chart {
  margin: 0 0 1.5rem;
  background: var(--surface-2);
  border-radius: 0.9rem;
  padding: 1rem;
}

.pd-size-chart summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.pd-size-chart table {
  width: 100%;
  font-size: 0.85rem;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

.pd-size-chart th,
.pd-size-chart td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.pd-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
}

.pd-qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--foreground);
}

.pd-qty span {
  width: 2.5rem;
  text-align: center;
  font-weight: 600;
  display: inline-block;
}

.pd-qty-input {
  width: 2.5rem;
  text-align: center;
  font-weight: 600;
  border: 0;
  background: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-stock {
  color: #1a7f37;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pd-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.pd-actions .btn {
  flex: 1;
  padding: 1rem;
}

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

.pd-trust-grid .trust-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.5rem;
}

.pd-trust-grid p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.pd-details {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pd-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.pd-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.pd-spec-grid .label {
  color: var(--muted);
}

.pd-spec-grid .value {
  font-weight: 600;
  margin-left: 0.35rem;
}

.pd-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.pd-features li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.pd-features svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Collections page grid */
.collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface-2);
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-tile .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(47, 36, 29, 0.85) 0%, rgba(47, 36, 29, 0.25) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.tile-count {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.collection-tile h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.4rem;
}

.collection-tile p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  margin: 0;
}

.tile-underline {
  height: 2px;
  background: var(--gold);
  width: 0;
  margin-top: 1rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .page-shell,
  .contact-grid,
  .pd-grid,
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .auth-split {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .auth-media {
    display: none;
  }

  .auth-form-side {
    width: 100%;
    padding: 2rem 1.25rem;
    background: var(--bg);
  }

  .cart-summary,
  .checkout-summary {
    position: static;
  }

  .add-address-form .form-row-3 {
    grid-template-columns: 1fr;
  }

  .cards-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav-links,
  .nav-actions .hide-mobile {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 1.25rem 0 4rem;
  }

  .hero-media {
    min-height: 420px;
  }

  .cards-grid.cols-4,
  .cards-grid.cols-3,
  .cards-grid.cols-2,
  .instagram-grid,
  .footer-grid,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter-form input {
    min-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .trust-grid,
  .cards-grid.cols-4,
  .cards-grid.cols-3,
  .cards-grid.cols-2,
  .instagram-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Form field validation */
.required-mark {
  color: #c0392b;
}

.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}

.contact-form-card input.is-invalid,
.contact-form-card textarea.is-invalid {
  border-color: #c0392b;
}

.contact-form-card input.is-valid,
.contact-form-card textarea.is-valid {
  border-color: #1a7f37;
}

.auth-input-wrap input.is-invalid {
  border-color: #c0392b;
}

/* Generic response modal (success / error) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 36, 29, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  position: relative;
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 0;
  background: var(--surface-2);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.modal-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold);
}

.modal-icon.error {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
}

.modal-message {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Shop: category filter pills */
.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.shop-filter-pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.shop-filter-pill:hover {
  border-color: var(--gold);
  color: var(--foreground);
}
.shop-filter-pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

/* Shop: toolbar (count text + sort) */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.shop-count-text {
  color: var(--muted);
  font-size: 0.9rem;
}
.shop-sort-select {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--surface);
  padding: 0.55rem 0.9rem;
  color: var(--foreground);
  font-size: 0.88rem;
}
#sort-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* Shop: empty state */
.shop-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
}
.shop-empty-state p {
  margin-bottom: 1.2rem;
}

/* Shop: pagination */
.shop-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.shop-pager-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.6rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
}
.shop-pager-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.shop-pager-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.shop-pager-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Wishlist toggle: default hidden filled-heart (JS also injects this at runtime) */
.wishlist-btn .dz-heart-fill {
  display: none;
}

/* Add-to-cart loading state (class applied by zyra-cart.js) */
.zyra-btn-loading {
  opacity: 0.65;
  pointer-events: none;
}

/* Product detail: quantity stepper + variant swatches (shared with theme .pd-* classes) */
.pd-size-btn.active {
  background: var(--gold);
  color: #fff;
}

/* zyra-cart.js toggles these utility classes on selected variant labels */
.bg-secondary {
  background: var(--gold) !important;
}
.text-white {
  color: #fff !important;
}

/* Toastr: restyle to match the Hanaya Vastra theme instead of the default dark toasts */
#toast-container > div {
  width: 320px;
  max-width: 90vw;
  padding: 1rem 1.1rem 1rem 1.4rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  background-color: var(--surface);
  border-left: 4px solid var(--gold);
  color: var(--foreground);
  opacity: 1;
  filter: none;
  font-family: 'DM Sans', sans-serif;
}
#toast-container > div:hover {
  box-shadow: var(--shadow);
  opacity: 1;
  filter: none;
}
#toast-container > .toast-info,
#toast-container > .toast-error,
#toast-container > .toast-success,
#toast-container > .toast-warning {
  background-image: none !important;
}

.toast-success { background-color: var(--surface) !important; border-left-color: var(--gold); }
.toast-error   { background-color: var(--surface) !important; border-left-color: #c0392b; }
.toast-info    { background-color: var(--surface) !important; border-left-color: var(--muted); }
.toast-warning { background-color: var(--surface) !important; border-left-color: #b8860b; }

.toast-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--foreground);
  margin: 0 0 0.15rem;
}
.toast-message {
  color: var(--muted);
  font-size: 0.85rem;
}
.toast-close-button {
  color: var(--muted);
  text-shadow: none;
  opacity: 0.7;
}
.toast-close-button:hover,
.toast-close-button:focus {
  color: var(--foreground);
  opacity: 1;
}
.toast-progress {
  background-color: var(--gold) !important;
  height: 3px;
}

/* ── Offcanvas cart / wishlist side panels ──────────────────────────────
   zyra-core.js sets position/size/background/transition via inline style
   (BASE_CSS) when opening — background needs !important to win over that. */
#offcanvas-cart,
#offcanvas-wishlist {
  background: var(--surface) !important;
  font-family: 'DM Sans', sans-serif;
}

#zyra-click-capture {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(47, 36, 29, 0.45);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.offcanvas-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.offcanvas-header-title h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.offcanvas-header-title span {
  font-size: 0.78rem;
  color: var(--muted);
}
.offcanvas-header-title .cart-panel-count,
.offcanvas-header-title .wishlist-panel-count {
  font-weight: 700;
  color: var(--gold);
}
.offcanvas-header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.offcanvas-header-icon-wishlist {
  background: rgba(197, 48, 48, 0.1);
  color: #c53030;
}
.zyra-panel-close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 0;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.zyra-panel-close:hover {
  color: var(--foreground);
}

.offcanvas-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.offcanvas-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.offcanvas-footer {
  flex-shrink: 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
}
.offcanvas-footer .btn {
  flex: 1;
  width: auto;
  padding: 0.65rem 0.5rem;
  font-size: 0.82rem;
}

.offcanvas-cart-items,
.offcanvas-wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.offcanvas-cart-item,
.offcanvas-wishlist-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.offcanvas-cart-item-image {
  width: 4.2rem;
  height: 5.2rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
  display: block;
}
.offcanvas-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offcanvas-cart-item-body {
  flex: 1;
  min-width: 0;
}
.offcanvas-cart-item-title {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}
.offcanvas-cart-item-title:hover {
  color: var(--gold);
}
.offcanvas-cart-item-variant {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}
.offcanvas-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
}
.offcanvas-cart-item-price {
  font-weight: 700;
  color: var(--foreground);
}
.offcanvas-cart-item-qty {
  color: var(--muted);
}
.offcanvas-cart-item-remove {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 0;
  background: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.offcanvas-cart-item-remove:hover {
  background: var(--surface-2);
  color: #c0392b;
}
.offcanvas-cart-item-remove .dz-heart-fill {
  display: none;
}
.offcanvas-cart-item-remove.wishlist-toggle-btn.is-wishlisted .dz-heart-fill {
  display: block;
  color: #c53030;
}

.offcanvas-cart-summary {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.offcanvas-cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.offcanvas-cart-summary-row strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.offcanvas-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.offcanvas-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}
.offcanvas-empty p {
  color: var(--muted);
  margin: 0;
}
