/* ============================================================
   MakZan — static site stylesheet
   Sunset-rustic theme. Serif (Cormorant Garamond) + sans (Manrope)
   loaded via <link> in the HTML head (see templates).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --background: #faf6ef;
  --foreground: #3b2f26;
  --cream: #faf6ef;
  --sand: #f3e9da;
  --apricot: #e8c3a0;
  --clay: #c67b5c;
  --terracotta: #b05c3c;
  --rust: #8a4430;
  --umber: #4a3527;
  --gold: #c9a24b;
  --ink: #3b2f26;
  --muted: #8a7666;
  --line: #e5d9c7;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --radius: 2px;
  --shadow-soft: 0 12px 40px rgba(74, 53, 39, 0.12);
  --header-h: 4.5rem;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: var(--clay);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--umber);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

main {
  flex: 1;
}

.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;
}

/* ---------- Decorative backgrounds ---------- */
.sunset {
  background-image: linear-gradient(
    160deg,
    #faf6ef 0%,
    #f3e9da 35%,
    #e8c3a0 72%,
    #d99a6c 100%
  );
}

.sunset-soft {
  background-image: linear-gradient(165deg, #faf6ef 0%, #f3e9da 50%, #ecd9bf 100%);
}

.placeholder-card {
  background-image: linear-gradient(150deg, #f3e9da 0%, #e8c3a0 120%);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

.serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(59, 47, 38, 0.78);
}

.muted {
  color: var(--muted);
}

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

/* Ornament divider: line — diamond — line */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 3rem;
  background: var(--clay);
  opacity: 0.55;
}

.ornament span {
  width: 6px;
  height: 6px;
  background: var(--clay);
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 2.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}

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

.btn-primary {
  background: var(--umber);
  color: var(--cream);
}

.btn-primary:hover:not(:disabled) {
  background: var(--terracotta);
}

.btn-outline {
  border-color: rgba(74, 53, 39, 0.35);
  color: var(--umber);
}

.btn-outline:hover:not(:disabled) {
  background: var(--umber);
  color: var(--cream);
}

.btn-ghost {
  border-color: rgba(74, 53, 39, 0.35);
  color: var(--umber);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--umber);
  color: var(--cream);
}

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--terracotta);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 217, 199, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.35em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 2.5rem;
  width: auto;
}

.main-nav {
  display: none;
  gap: 2.5rem;
}

.main-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(59, 47, 38, 0.8);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--clay);
}

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

.icon-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 0.5rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: var(--clay);
}

.icon-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--cream);
  font-size: 0.625rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.badge.visible {
  display: inline-flex;
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.5rem;
}

.menu-toggle:hover {
  color: var(--clay);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(229, 217, 199, 0.7);
  background: var(--cream);
  padding: 1rem 1.25rem 1.5rem;
}

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

.mobile-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(59, 47, 38, 0.8);
}

.mobile-nav a[aria-current="page"] {
  color: var(--clay);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--umber);
  color: var(--sand);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.35em;
  color: var(--cream);
  margin: 0;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.footer-blurb {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(243, 233, 218, 0.8);
  max-width: 20rem;
}

.footer-heading {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(243, 233, 218, 0.8);
  transition: color 0.2s ease;
}

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

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  color: var(--sand);
  display: inline-flex;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--clay);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(243, 233, 218, 0.8);
}

.footer-bottom {
  border-top: 1px solid rgba(243, 233, 218, 0.15);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(243, 233, 218, 0.6);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(46rem, 90vw);
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(214, 154, 108, 0.5) 0%,
    rgba(232, 195, 160, 0.22) 45%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  animation: glow-drift 14s ease-in-out infinite;
}

@keyframes glow-drift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateX(-50%) translateY(-1.2rem) scale(1.04);
    opacity: 1;
  }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 78vh;
  padding: 6rem 1.25rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(74, 53, 39, 0.7);
  margin: 0;
}

.hero-title {
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 1.5rem 0 0;
  color: var(--ink);
}

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--umber);
  margin: 0.75rem 0 0;
}

.hero-text {
  max-width: 38rem;
  margin: 1.75rem auto 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(59, 47, 38, 0.75);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

/* ---------- Page sections ---------- */
.section {
  padding: 4.5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-top: 0.75rem;
}

.section-sub {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-header {
  text-align: center;
  padding: 4rem 0 1rem;
}

.page-title {
  font-size: clamp(2.6rem, 7vw, 4rem);
  margin-top: 1rem;
}

.page-sub {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Two-column philosophy block */
.philosophy {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .philosophy {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.philosophy-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.2;
}

.philosophy-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: rgba(59, 47, 38, 0.78);
}

.philosophy-body p {
  line-height: 1.85;
}

/* Values strip */
.values-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 233, 218, 0.4);
  padding: 4rem 0;
}

.values-grid {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-item h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--umber);
}

.value-item p {
  max-width: 16rem;
  margin: 0.75rem auto 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

.product-card {
  display: block;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.product-media > a {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, opacity 0.6s ease;
  opacity: 0;
}

.product-media img.loaded {
  opacity: 1;
}

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

.product-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  letter-spacing: 0.3em;
  font-size: 1.1rem;
  color: rgba(74, 53, 39, 0.5);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(74, 53, 39, 0.85);
  color: var(--cream);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(250, 246, 239, 0.92);
  border: 1px solid rgba(59, 47, 38, 0.15);
  border-radius: 999px;
  padding: 0.55rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.wishlist-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.wishlist-btn:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.wishlist-btn.active {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}

.wishlist-btn.active svg {
  fill: currentColor;
}

@media (hover: hover) {
  .product-card .wishlist-btn {
    opacity: 0;
    transition: opacity 0.25s ease, background-color 0.2s ease,
      color 0.2s ease;
  }

  .product-card:hover .wishlist-btn,
  .product-card:focus-within .wishlist-btn {
    opacity: 1;
  }
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink);
}

.product-price {
  font-size: 0.85rem;
  color: rgba(59, 47, 38, 0.7);
  white-space: nowrap;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6rem 2rem;
  background: linear-gradient(165deg, #faf6ef 0%, #f3e9da 50%, #ecd9bf 100%);
}

.empty-state h2 {
  font-size: 1.5rem;
  color: var(--umber);
}

.empty-state p {
  max-width: 26rem;
  margin: 0.75rem auto 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.empty-state .btn {
  margin-top: 2rem;
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0;
  }
}

.product-gallery {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

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

.product-detail-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
}

.product-detail-price {
  font-size: 1.25rem;
  color: rgba(59, 47, 38, 0.7);
  margin-top: 0.75rem;
}

.product-detail-desc {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Option + size pickers */
.picker {
  margin-top: 1.75rem;
}

.picker-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.chip {
  border: 1px solid rgba(59, 47, 38, 0.2);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--umber);
}

.chip.selected {
  background: var(--umber);
  border-color: var(--umber);
  color: var(--cream);
}

.picker-toggle {
  background: none;
  border: 0;
  padding: 0;
  color: var(--clay);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.5rem;
}

.picker-toggle:hover {
  color: var(--terracotta);
}

.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.measure-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: rgba(59, 47, 38, 0.7);
}

.measure-field input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.measure-field input:focus {
  outline: none;
  border-color: var(--clay);
}

/* Purchase row */
.purchase-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(59, 47, 38, 0.2);
  border-radius: 999px;
}

.qty-stepper button {
  background: none;
  border: 0;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.qty-stepper button:hover {
  color: var(--clay);
}

.qty-stepper output {
  min-width: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.purchase-row .btn {
  flex: 1;
}

@media (max-width: 480px) {
  .purchase-row {
    flex-wrap: wrap;
  }

  .purchase-row .btn {
    flex: 1 1 100%;
    order: 3;
  }
}

.note {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
}

.alert {
  margin-top: 1rem;
  border: 1px solid rgba(201, 162, 75, 0.5);
  background: rgba(201, 162, 75, 0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--umber);
}

.alert-error {
  border-color: rgba(138, 68, 48, 0.5);
  background: rgba(138, 68, 48, 0.08);
  color: var(--rust);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--clay);
}

.form-field ::placeholder {
  color: rgba(138, 118, 102, 0.6);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-list a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-social a {
  color: var(--ink);
  display: inline-flex;
  transition: color 0.2s ease;
}

.contact-social a:hover {
  color: var(--clay);
}

.contact-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.social-with-label {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.social-with-label a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.social-with-label a:hover {
  color: var(--clay);
}

.social-with-label svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Wishlist ---------- */
.wishlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.remove-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.remove-btn:hover {
  color: var(--rust);
}

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 47, 38, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(26rem, 100%);
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}

.cart-close {
  background: none;
  border: 0;
  color: var(--ink);
  padding: 0.5rem;
  display: inline-flex;
}

.cart-close:hover {
  color: var(--clay);
}

.cart-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

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

.cart-empty-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 3rem 1rem;
  line-height: 1.7;
}

.cart-line {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 0.9rem;
  align-items: start;
}

.cart-line-thumb {
  width: 4rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.cart-line-thumb-placeholder {
  width: 4rem;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(74, 53, 39, 0.5);
}

.cart-line-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

.cart-line-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.cart-line-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-line-price {
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
}

.cart-line-qty {
  display: flex;
  align-items: center;
  border: 1px solid rgba(59, 47, 38, 0.2);
  border-radius: 999px;
}

.cart-line-qty button {
  background: none;
  border: 0;
  padding: 0.2rem 0.6rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.cart-line-qty button:hover {
  color: var(--clay);
}

.cart-line-qty output {
  min-width: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
}

.cart-line-remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-line-remove:hover {
  color: var(--rust);
}

.cart-drawer-foot {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cart-subtotal strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.cart-note {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Loading skeletons ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(250, 246, 239, 0.6),
    transparent
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-media {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}

.skeleton-line {
  height: 1rem;
  border-radius: 999px;
  margin-top: 0.75rem;
}

.skeleton-line.w-40 {
  width: 40%;
}

.skeleton-line.w-60 {
  width: 60%;
}

.skeleton-line.w-80 {
  width: 80%;
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 8rem 1.25rem;
}

.notfound-code {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--clay);
  margin: 0;
  line-height: 1;
}

.notfound h1 {
  font-size: 1.75rem;
  margin-top: 1rem;
}

.notfound p {
  max-width: 26rem;
  margin: 0.75rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.notfound .btn {
  margin-top: 2rem;
}

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
