/* ---------- Palette, type scale & motion ---------- */
:root {
  /* Palette */
  --teal-darkest: #0d2f38;
  --teal-dark: #144a58;
  --teal-mid: #2a6b74;
  --aqua-light: #9ec9c6;
  --cream: #f7f4ee;
  --gold-matte: #c2a35b;

  --text-dark: #16302c;
  --text-muted: #62766f;
  --error: #a3413a;

  /* Fonts */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.85rem;
  --text-base: 0.95rem;
  --text-md: 1.1rem;
  --text-lg: 1.35rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.75rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;
}

/* ---------- Basic setup ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Motion foundation ---------- */
button,
a,
.product-card,
.cart-toggle-btn {
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

button:active {
  transform: scale(0.97);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-base);
  background-color: var(--cream);
  /* Very soft cream -> barely-tinted aqua wash, plus the existing fine
     grain and dot textures layered on top. */
  background-image: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(0, 0, 0, 0.03) 1px,
      rgba(0, 0, 0, 0.03) 2px
    ),
    radial-gradient(rgba(194, 163, 91, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(158, 201, 198, 0.16));
  background-size: auto, 22px 22px, auto;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background-color: var(--teal-dark);
  background-image: linear-gradient(180deg, var(--teal-darkest), var(--teal-dark));
}

.shop-logo {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 240px;
  height: auto;
  border: 2px solid var(--gold-matte);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.tagline {
  margin-top: 1.25rem;
  font-size: var(--text-md);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.5px;
}

/* ---------- Decorative divider (gold hairline — one of the few places
   gold appears, per the "sparingly" rule: hairlines, small icon accents,
   this divider, and thin borders only) ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 52px;
  height: 1px;
  background-color: var(--gold-matte);
  opacity: 0.8;
}

.divider span {
  width: 7px;
  height: 7px;
  background-color: var(--gold-matte);
  transform: rotate(45deg);
  display: inline-block;
}

.divider--footer {
  margin-top: 0;
  padding-top: 2.5rem;
}

/* ---------- Mobile logo (home button) and text intro, replacing the old
   hero photo (mobile only, see media query) ---------- */
.mobile-logo {
  display: none;
}

.intro {
  display: none;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2.5rem 1.75rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Product card ----------
   Now an <a> (links to product.html?id=...) rather than a div — the two
   rules below neutralize default anchor styling (underline, link color)
   that would otherwise show through on any unstyled text. */
.product-card {
  position: relative;
  z-index: 1;
  background-color: var(--cream);
  border: 1px solid rgba(194, 163, 91, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(13, 47, 56, 0.1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.product-card:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 36px rgba(13, 47, 56, 0.3);
  z-index: 2;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: var(--cream);
}

.product-info {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  background-color: var(--aqua-light);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 60%);
}

.product-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--teal-darkest);
  margin-bottom: 0.5rem;
}

.product-price {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--teal-darkest);
  margin-bottom: 1.5rem;
}

/* Deterrent only: blocks mouse/touch text selection, does not affect
   screen readers — the text stays in the DOM and accessibility tree. */
.product-name,
.product-price {
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- Primary buttons ----------
   Shared by Add to Cart, Checkout, Continue / Proceed to Payment, and the
   hero CTA: solid --teal-dark fill, --cream label, thin --gold-matte
   border. Darkens to --teal-darkest on press (and on hover, for mouse
   users who never trigger :active). */
.btn-primary {
  display: inline-block;
  background-color: var(--teal-dark);
  color: var(--cream);
  border: 1px solid var(--gold-matte);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0.4px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.btn-primary:hover,
.btn-primary:active {
  background-color: var(--teal-darkest);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.add-to-cart-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.7rem 1rem;
}

/* ---------- Product grid: loading / empty / error states ----------
   Shown in showcase-grid/product-grid while products load from Supabase,
   or in place of cards when a fetch succeeds with zero results or fails. */
.product-skeleton {
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--cream);
  border: 1px solid rgba(194, 163, 91, 0.3);
  box-shadow: 0 2px 14px rgba(13, 47, 56, 0.1);
  display: flex;
  flex-direction: column;
}

.product-skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(158, 201, 198, 0.35);
}

.product-skeleton-info {
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  background-color: var(--aqua-light);
}

.product-skeleton-line {
  height: 0.9rem;
  width: 70%;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.55);
}

.product-skeleton-line--short {
  width: 45%;
}

.product-skeleton-btn {
  width: 100%;
  height: 2.5rem;
  margin-top: 0.3rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.4);
}

.product-skeleton,
.product-skeleton * {
  animation: skeleton-pulse 1.6s var(--ease-in-out) infinite;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

.catalog-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  padding: 3rem 1rem;
}

.catalog-message--error {
  color: var(--error);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 0 1rem 2.5rem;
  background-color: var(--teal-darkest);
  color: var(--cream);
  font-size: var(--text-xs);
  letter-spacing: 0.3px;
}

.site-footer .watermark {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

/* ---------- Auth bar (header) ---------- */
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

/* ---------- Cart icon ---------- */
.cart-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: transparent;
  border: none;
  color: var(--cream);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.cart-toggle-btn:hover {
  color: var(--gold-matte);
}

.cart-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--gold-matte);
  color: var(--teal-darkest);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none;
}

.login-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--gold-matte);
  background-color: var(--teal-dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.login-btn:hover {
  background-color: var(--teal-darkest);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-email {
  font-size: var(--text-sm);
  color: var(--cream);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.4);
  background-color: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.logout-btn:hover {
  background-color: rgba(247, 244, 238, 0.15);
}

/* ---------- Auth modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 74, 88, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 88vh;
  overflow-y: auto;
  background-color: var(--cream);
  border: 1px solid rgba(194, 163, 91, 0.4);
  border-radius: 20px;
  padding: 2.5rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal--wide {
  max-width: 460px;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--teal-darkest);
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--teal-darkest);
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 0.4rem;
  margin-bottom: 1.75rem;
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 47, 56, 0.2);
  background-color: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.google-btn:hover {
  background-color: #f6f6f6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.modal-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.5rem 0;
}

.modal-or::before,
.modal-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(13, 47, 56, 0.15);
}

/* ---- Customer support modal content ----
   Universal (not viewport-scoped): a short contact list doesn't need
   different sizing on mobile vs. desktop. */
.support-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.support-info-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--teal-darkest);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.support-info-link:hover,
.support-info-link:focus-visible {
  background-color: rgba(158, 201, 198, 0.25);
}

.support-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold-matte);
}

.field-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.field-form label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.field-form .field-hint {
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.8;
}

.field-form input,
.field-form select,
.field-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(13, 47, 56, 0.2);
  background-color: #ffffff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.field-form textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.field-form input:focus,
.field-form select:focus,
.field-form textarea:focus {
  outline: none;
  border-color: var(--gold-matte);
  box-shadow: 0 0 0 3px rgba(194, 163, 91, 0.2);
}

.field-form input.invalid,
.field-form select.invalid,
.field-form textarea.invalid {
  border-color: var(--error);
}

.field-form input.invalid:focus,
.field-form select.invalid:focus,
.field-form textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(163, 65, 58, 0.15);
}

.field-error {
  margin-top: 0.3rem;
  font-size: var(--text-xs);
  color: var(--error);
  min-height: 1em;
}

#auth-submit-btn,
#checkout-proceed-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

.auth-message {
  margin-top: 1.25rem;
  font-size: var(--text-sm);
  min-height: 1.1em;
  color: var(--teal-darkest);
}

.auth-message.error {
  color: var(--error);
}

/* ---------- Order summary (checkout modal) ---------- */
.order-summary {
  text-align: left;
  background-color: var(--cream);
  border: 1px solid rgba(194, 163, 91, 0.35);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.5rem;
}

.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(13, 47, 56, 0.12);
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--text-dark);
}

.order-summary-item-price {
  color: var(--teal-darkest);
  font-weight: 500;
  flex-shrink: 0;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.order-summary-total {
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--teal-darkest);
}

/* ---------- Cart panel ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(20, 74, 88, 0.55);
  z-index: 1000;
}

.cart-overlay[hidden] {
  display: none;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100vw);
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  border-left: 1px solid rgba(194, 163, 91, 0.4);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
  z-index: 1001;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--teal-dark);
}

.cart-panel-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--cream);
}

.cart-panel-header .modal-close {
  position: static;
  color: var(--cream);
}

.cart-panel-header .modal-close:hover {
  color: var(--gold-matte);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-base);
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(194, 163, 91, 0.3);
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--teal-darkest);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: var(--text-sm);
  color: var(--teal-darkest);
  font-weight: 500;
  margin-top: 0.1rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(13, 47, 56, 0.25);
  background-color: transparent;
  color: var(--text-dark);
  font-size: var(--text-base);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.qty-btn:hover {
  background-color: var(--cream);
}

.qty-value {
  min-width: 1.2em;
  text-align: center;
  font-size: var(--text-base);
}

.cart-item-remove {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(194, 163, 91, 0.3);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--teal-darkest);
  margin-bottom: 1rem;
}

#checkout-btn {
  width: 100%;
  padding: 0.8rem 1rem;
}

/* ---------- Product detail page (product.html) ----------
   Universal: single-column on mobile by default (natural block stacking,
   no override needed), switched to a two-column grid only inside the
   min-width:769px block below. Reuses .qty-btn/.qty-value (cart panel),
   .catalog-message (loading/error states elsewhere), and .btn-primary —
   no new interaction patterns invented for this page. */
.product-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--teal-darkest);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  cursor: pointer;
  padding: 1.25rem 1.5rem 0;
}

.product-back-btn svg {
  width: 18px;
  height: 18px;
}

.product-back-btn:hover {
  color: var(--gold-matte);
}

.product-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.product-detail {
  max-width: 1100px;
  margin: 0 auto;
}

.product-gallery {
  position: relative;
}

.product-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-gallery-track::-webkit-scrollbar {
  display: none;
}

.product-gallery-image {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: start;
  background-color: var(--cream);
}

/* Arrows only ever appear on desktop (min-width:769px block) — touch
   users swipe via the scroll-snap track above instead. Hidden here by
   default regardless of viewport; JS also adds the [hidden] attribute
   when a product has 1 photo, so there's nothing to page through. */
.product-gallery-arrow {
  display: none;
}

.product-gallery-dots:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: rgba(13, 47, 56, 0.2);
  transition: background-color var(--dur-fast) var(--ease-out);
}

/* Small dot indicator — a sparing use of gold as a state accent, same
   category as the cart badge fill already permitted under the gold rule. */
.product-gallery-dot.is-active {
  background-color: var(--gold-matte);
}

.product-detail-info {
  padding: 1.75rem 1.5rem 3rem;
}

.product-detail-breadcrumb {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product-detail-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(98, 118, 111, 0.4);
}

.product-detail-breadcrumb a:hover {
  color: var(--gold-matte);
  border-color: var(--gold-matte);
}

.product-detail-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--teal-darkest);
  margin-bottom: 0.5rem;
}

.product-detail-price {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--teal-darkest);
  margin-bottom: 1rem;
}

/* Same pill treatment as the admin page's "Inactive" badge — one shared
   visual language for "unavailable" states across the site. */
.product-detail-stock {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--error);
  border: 1px solid var(--error);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  margin-bottom: 1rem;
}

.product-detail-description {
  font-size: var(--text-base);
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  white-space: pre-line;
}

.product-detail-qty {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.product-detail-qty .qty-value {
  font-size: var(--text-md);
}

.product-detail-reviews {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(13, 47, 56, 0.12);
}

.product-detail-reviews h2 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--teal-darkest);
  margin-bottom: 0.5rem;
}

.product-detail-reviews-placeholder {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ---------- Mobile restructure ----------
   Base rules below are desktop-preserving defaults (new mobile-only
   elements hidden, catalog always shown) so nothing here changes desktop
   behavior. All the actual mobile presentation lives inside the
   max-width:768px query that follows. */
.mobile-header {
  display: none;
}

.showcase-section {
  display: none;
}

.catalog-section {
  display: block;
}

/* New <h2> element added for the mobile catalog view — must stay hidden
   on desktop, otherwise it renders with unstyled browser-default <h2>
   styling above the product grid, which is a visible desktop change. */
.catalog-heading {
  display: none;
}

.mobile-nav-overlay,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 768px) {
  /* ---- Hide the desktop header, show the compact one ---- */
  .site-header .auth-bar,
  .site-header .shop-logo,
  .site-header .tagline,
  .site-header > .divider {
    display: none;
  }

  .site-header {
    padding: 0;
  }

  /* Cream strip above, teal-gradient intro below — the boundary between
     them is the seam the logo badge straddles. */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--cream);
  }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--teal-darkest);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
  }

  .hamburger-btn:hover {
    color: var(--gold-matte);
  }

  .hamburger-btn svg {
    width: 22px;
    height: 22px;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  /* .cart-toggle-btn's base (unscoped) color is --cream, for the desktop
     header where it sits on teal. On the mobile cream strip it needs to
     read dark instead — the hover color (--gold-matte) already matches
     what we want here, so only the resting color needs overriding. */
  .mobile-header .cart-toggle-btn {
    color: var(--teal-darkest);
  }

  /* ---- Logo badge: straddles the seam between the cream strip and the
     teal intro below, like a wax seal — roughly half sits in each. No
     panel/border/background behind it (it's a transparent PNG); the lift
     comes from a drop-shadow that hugs the badge's actual silhouette
     (filter, not box-shadow, so it doesn't shadow the transparent
     rectangle around the artwork). It stays the Home button. ---- */
  .mobile-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    height: 112px;
    width: auto;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
    cursor: pointer;
    z-index: 45;
  }

  /* ---- Text intro, replacing the old hero photo. Lives inside
     .site-header so it shares the header's own gradient. Top padding is
     generous enough to clear the logo badge (which extends ~56px below
     the seam) with room to spare before the headline starts. ---- */
  .intro {
    display: block;
    text-align: center;
    padding: 6rem 1.75rem 3.5rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .intro-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1.1;
    letter-spacing: 0.5px;
    color: var(--cream);
  }

  .intro-text {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--aqua-light);
  }

  .intro .btn-primary {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 0.8rem 1.75rem;
  }

  /* ---- Homepage showcase / full catalog toggle ---- */
  .showcase-section {
    display: block;
  }

  .showcase-section.is-hidden {
    display: none;
  }

  .catalog-section {
    display: none;
  }

  .catalog-section.is-active {
    display: block;
  }

  .section-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--teal-darkest);
    padding-top: 3rem;
  }

  .catalog-heading {
    display: block;
    padding-top: 3rem;
  }

  .showcase-section .divider {
    margin-top: 1.25rem;
  }

  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    padding: 2.25rem 1.25rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .showcase-card .product-info {
    padding: 1.75rem 1.5rem 1.75rem;
  }

  .showcase-card .product-name {
    font-size: var(--text-xl);
  }

  .product-description {
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1rem;
  }

  .view-all-link {
    display: table;
    margin: 1.5rem auto 3rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--gold-matte);
    border-radius: 999px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: none;
  }

  .catalog-section {
    padding-bottom: 1rem;
  }

  /* ---- Hamburger nav panel ---- */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(20, 74, 88, 0.55);
    z-index: 1000;
  }

  .mobile-nav-overlay[hidden] {
    display: none;
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background-color: var(--cream);
    border-right: 1px solid var(--gold-matte);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease-in-out);
    z-index: 1001;
  }

  .mobile-nav-panel.open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.25rem 1.5rem 1.75rem;
    background-color: var(--teal-dark);
  }

  .mobile-nav-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cream);
  }

  .mobile-nav-header .divider {
    margin-top: 0.85rem;
  }

  .mobile-nav-header .divider::before,
  .mobile-nav-header .divider::after {
    width: 34px;
  }

  .mobile-nav-header .modal-close {
    color: var(--cream);
  }

  .mobile-nav-header .modal-close:hover {
    color: var(--gold-matte);
  }

  .mobile-nav-list {
    list-style: none;
    flex-grow: 1;
    padding: 1rem 0;
    overflow-y: auto;
  }

  /* Staggered entrance as the panel opens — each row fades/slides in
     var(--dur-fast) apart by 30ms increments. Only plays going in; closing
     the panel fades everything out together (no delay declared on the
     non-.open state), which reads as snappier. */
  .mobile-nav-list > li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-panel.open .mobile-nav-list > li {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(1) {
    transition-delay: 0ms;
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(2) {
    transition-delay: 30ms;
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(3) {
    transition-delay: 60ms;
  }

  .mobile-nav-link,
  .mobile-nav-parent {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 47, 56, 0.12);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-link:hover,
  .mobile-nav-parent:hover,
  .mobile-nav-link:active,
  .mobile-nav-parent:active {
    background-color: rgba(158, 201, 198, 0.25);
  }

  .mobile-nav-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--dur-slow) var(--ease-in-out);
  }

  .mobile-nav-parent[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(90deg);
  }

  .mobile-nav-submenu-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-in-out);
  }

  .mobile-nav-submenu-wrap.expanded {
    grid-template-rows: 1fr;
  }

  .mobile-nav-submenu {
    list-style: none;
    overflow: hidden;
    min-height: 0;
  }

  /* Subcategory rows: back to Jost (category rows above are Cormorant
     Garamond), smaller, indented, with a subtle gold hairline marking the
     indent instead of the category rows' full-width border-bottom. */
  .mobile-nav-sublink {
    position: relative;
    padding-left: 2.75rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: normal;
    color: var(--text-muted);
  }

  .mobile-nav-sublink::before {
    content: "";
    position: absolute;
    left: 1.75rem;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background-color: var(--gold-matte);
    opacity: 0.7;
  }

  /* ---- Customer Support, set apart at the bottom of the panel ---- */
  .mobile-nav-support {
    border-top: 1px solid var(--gold-matte);
    padding: 0.5rem 0 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-panel.open .mobile-nav-support {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 90ms;
  }

  .mobile-nav-support-link {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.5rem;
    background-color: transparent;
    border: none;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-support-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-nav-support-link:hover,
  .mobile-nav-support-link:active {
    background-color: rgba(158, 201, 198, 0.25);
  }
}

/* ---------- Desktop (min-width: 769px) ----------
   Brings the same design language to wide viewports: cream header strip,
   seam-straddling logo badge, teal-gradient intro, the same hamburger
   menu treatment (wider fixed panel), and a featured showcase before the
   full catalog. This block is entirely separate from the
   max-width:768px block above — no selector here is ever edited inside
   that block and vice versa, so the two can never bleed into each
   other regardless of what either contains. */
@media (min-width: 769px) {
  /* ---- Retire the old desktop header content (centered logo, tagline,
     divider, auth-bar) in favor of the same header pattern as mobile ---- */
  .site-header .auth-bar,
  .site-header .shop-logo,
  .site-header .tagline,
  .site-header > .divider {
    display: none;
  }

  .site-header {
    padding: 0;
  }

  /* ---- Cream strip / teal seam, same pattern as mobile, roomier ---- */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--cream);
  }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--teal-darkest);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
  }

  .hamburger-btn:hover {
    color: var(--gold-matte);
  }

  .hamburger-btn svg {
    width: 24px;
    height: 24px;
  }

  .header-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  /* Same override as mobile: .cart-toggle-btn's base color is --cream
     for the (now-hidden) old teal desktop header; on the cream strip it
     needs to read dark. */
  .mobile-header .cart-toggle-btn {
    color: var(--teal-darkest);
  }

  /* ---- Logo badge, scaled up, same seam-straddling technique as
     mobile — top:100% targets the row's bottom edge (the seam), so it
     sits half in the cream strip and half in the teal intro below. ---- */
  .mobile-logo {
    display: block;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    height: 160px;
    width: auto;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.35));
    cursor: pointer;
    z-index: 45;
  }

  /* ---- Text intro: same teal gradient (it's still just .site-header's
     own background), constrained to a readable measure and centered
     rather than stretching full window width. Top padding comfortably
     clears the 80px the badge extends below the seam. ---- */
  .intro {
    display: block;
    text-align: center;
    padding: 9rem 2rem 5.5rem;
    max-width: 680px;
    margin: 0 auto;
  }

  .intro-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-2xl);
    line-height: 1.1;
    letter-spacing: 0.5px;
    color: var(--cream);
  }

  .intro-text {
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--aqua-light);
  }

  .intro .btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.85rem 2rem;
  }

  /* ---- Showcase / catalog toggle, same mechanism as mobile ---- */
  .showcase-section {
    display: block;
  }

  .showcase-section.is-hidden {
    display: none;
  }

  .catalog-section {
    display: none;
  }

  .catalog-section.is-active {
    display: block;
  }

  .section-heading {
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--teal-darkest);
    padding-top: 4.5rem;
  }

  .catalog-heading {
    display: block;
    padding-top: 4.5rem;
  }

  .showcase-section .divider {
    margin-top: 1.5rem;
  }

  /* minmax(320px,1fr) inside max-width:1100px yields 3 columns on wide
     screens, 2 on narrower desktop widths — "2 or 3 across" without
     hardcoding a column count. */
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 3rem 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
  }

  .showcase-card .product-info {
    padding: 2rem 1.75rem;
  }

  .showcase-card .product-name {
    font-size: var(--text-xl);
  }

  .product-description {
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
  }

  .view-all-link {
    display: table;
    margin: 2rem auto 3.5rem;
    padding: 0.65rem 1.75rem;
    border: 1px solid var(--gold-matte);
    border-radius: 999px;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-decoration: none;
  }

  .catalog-section {
    padding-bottom: 1.5rem;
  }

  /* .product-grid itself needs no desktop override — its existing
     universal rule (minmax(250px,1fr), max-width:1100px) already yields
     4 columns at this max-width, with the same content-width cap. */

  /* ---- Hamburger menu — same designed treatment as mobile (gold
     hairline, Cormorant "Menu" + divider, serif category rows, Jost
     sublinks with gold indent hairline, aqua-wash hover, staggered
     entrance), just a fixed wider panel since desktop viewports are
     always wide enough not to need the min(320px,85vw) mobile uses. ---- */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background-color: rgba(20, 74, 88, 0.55);
    z-index: 1000;
  }

  .mobile-nav-overlay[hidden] {
    display: none;
  }

  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    background-color: var(--cream);
    border-right: 1px solid var(--gold-matte);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform var(--dur-slow) var(--ease-in-out);
    z-index: 1001;
  }

  .mobile-nav-panel.open {
    transform: translateX(0);
  }

  .mobile-nav-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.75rem 2rem;
    background-color: var(--teal-dark);
  }

  .mobile-nav-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cream);
  }

  .mobile-nav-header .divider {
    margin-top: 0.85rem;
  }

  .mobile-nav-header .divider::before,
  .mobile-nav-header .divider::after {
    width: 34px;
  }

  .mobile-nav-header .modal-close {
    color: var(--cream);
  }

  .mobile-nav-header .modal-close:hover {
    color: var(--gold-matte);
  }

  .mobile-nav-list {
    list-style: none;
    flex-grow: 1;
    padding: 1.25rem 0;
    overflow-y: auto;
  }

  .mobile-nav-list > li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-panel.open .mobile-nav-list > li {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(1) {
    transition-delay: 0ms;
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(2) {
    transition-delay: 30ms;
  }

  .mobile-nav-panel.open .mobile-nav-list > li:nth-child(3) {
    transition-delay: 60ms;
  }

  .mobile-nav-link,
  .mobile-nav-parent {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 47, 56, 0.12);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-link:hover,
  .mobile-nav-parent:hover,
  .mobile-nav-link:active,
  .mobile-nav-parent:active {
    background-color: rgba(158, 201, 198, 0.25);
  }

  .mobile-nav-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--dur-slow) var(--ease-in-out);
  }

  .mobile-nav-parent[aria-expanded="true"] .mobile-nav-chevron {
    transform: rotate(90deg);
  }

  .mobile-nav-submenu-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-slow) var(--ease-in-out);
  }

  .mobile-nav-submenu-wrap.expanded {
    grid-template-rows: 1fr;
  }

  .mobile-nav-submenu {
    list-style: none;
    overflow: hidden;
    min-height: 0;
  }

  .mobile-nav-sublink {
    position: relative;
    padding-left: 3rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: normal;
    color: var(--text-muted);
  }

  .mobile-nav-sublink::before {
    content: "";
    position: absolute;
    left: 2rem;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background-color: var(--gold-matte);
    opacity: 0.7;
  }

  .mobile-nav-support {
    border-top: 1px solid var(--gold-matte);
    padding: 0.5rem 0 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-panel.open .mobile-nav-support {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 90ms;
  }

  .mobile-nav-support-link {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.75rem;
    background-color: transparent;
    border: none;
    color: var(--teal-dark);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out);
  }

  .mobile-nav-support-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .mobile-nav-support-link:hover,
  .mobile-nav-support-link:active {
    background-color: rgba(158, 201, 198, 0.25);
  }

  /* ---- Product detail page ----
     Mobile stays single-column (default block stacking, no rule needed
     there); desktop switches to a two-column grid and reveals the arrow
     controls that touch users don't need. */
  .product-back-btn {
    padding: 2rem 3rem 0;
  }

  .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 3rem 5rem;
    align-items: start;
  }

  .product-detail-info {
    padding: 0;
  }

  .product-gallery-arrow:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: var(--cream);
    border: 1px solid var(--gold-matte);
    color: var(--teal-darkest);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(13, 47, 56, 0.15);
  }

  .product-gallery-arrow:hover {
    color: var(--gold-matte);
  }

  .product-gallery-arrow--prev {
    left: 1rem;
  }

  .product-gallery-arrow--next {
    right: 1rem;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 420px) {
  .shop-logo {
    max-width: 190px;
  }

  .site-header {
    padding: 2.5rem 1.25rem 2rem;
  }

  .product-grid {
    padding: 1.75rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .auth-bar {
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .modal {
    padding: 2rem 1.25rem 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
