:root {
  --bg: #faf9f7;
  --bg-warm: #f3f1ec;
  --card: #ffffff;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5a;
  --muted: #8a8a9a;
  --line: #e8e4dc;
  --accent: #0f6b4a;
  --accent-deep: #0a4f37;
  --gold: #c9a227;
  --sale: #b91c1c;
  --shadow: 0 2px 16px rgba(26,26,46,0.07);
  --shadow-hover: 0 12px 32px rgba(26,26,46,0.14);
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #14141c;
  --bg-warm: #1c1c28;
  --card: #22222f;
  --ink: #f0ede8;
  --ink-soft: #b8b8c8;
  --muted: #6a6a7a;
  --line: #2e2e3e;
  --accent: #3fb950;
  --accent-deep: #2da44e;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Sale strip */
.sale-strip {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.header-inner { max-width: 720px; margin: 0 auto; }

.logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-hover);
  margin-bottom: 1.25rem;
  border: 4px solid #fff;
}

.site-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.tagline {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

/* Hero CTA buttons */
.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}
.hero-cta {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.hero-cta-primary {
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.hero-cta-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.hero-cta-secondary {
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
}
.hero-cta-secondary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.hero-cta:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 1rem; }
  .hero-cta { width: 100%; }
}
/* Keep anchored catalog grid clear of the sticky nav */
#catalog { scroll-margin-top: 90px; }

/* Social icons */
.social-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: all 0.22s cubic-bezier(0.2,0.8,0.3,1);
  box-shadow: var(--shadow);
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  transform: translateY(-3px) scale(1.06);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-hover);
}

.social-icon[aria-label="Instagram"]:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon[aria-label="Facebook"]:hover { background: #1877f2; }
.social-icon[aria-label="Email"]:hover { background: var(--accent); }

/* Animated hero */
.site-header {
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(201,162,39,0.07) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(15,107,74,0.06) 0%, transparent 50%);
  animation: heroDrift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(2deg); }
}

.header-inner { position: relative; z-index: 1; }

.logo {
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll reveal for cards */
.card {
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn 0.5s cubic-bezier(0.2,0.8,0.3,1) forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.grid .card:nth-child(1) { animation-delay: 0.02s; }
.grid .card:nth-child(2) { animation-delay: 0.05s; }
.grid .card:nth-child(3) { animation-delay: 0.08s; }
.grid .card:nth-child(4) { animation-delay: 0.11s; }
.grid .card:nth-child(5) { animation-delay: 0.14s; }
.grid .card:nth-child(6) { animation-delay: 0.17s; }
.grid .card:nth-child(7) { animation-delay: 0.20s; }
.grid .card:nth-child(8) { animation-delay: 0.23s; }
.grid .card:nth-child(n+9) { animation-delay: 0.25s; }

.theme-toggle {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover { transform: scale(1.1); }

.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-hover);
  z-index: 60;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 1;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top:hover { transform: translateY(-3px); }

/* Sticky nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-filters { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.filter-btn {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--sans);
}

.filter-btn:hover { background: var(--bg-warm); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; }

.color-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0.3rem 0.2rem; }
.color-swatch {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--sw); border: 2px solid transparent;
  cursor: pointer; padding: 0; align-self: center;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--sw); }

.nav-tools { display: flex; gap: 0.6rem; }

.nav-tools input[type="search"],
.nav-tools select {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-family: var(--sans);
  transition: border-color 0.18s;
}

.nav-tools input[type="search"] { width: 170px; }
.nav-tools input:focus, .nav-tools select:focus {
  outline: none;
  border-color: var(--ink);
}

/* Grid */
main { flex: 1; max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.25rem; width: 100%; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.25s;
  border: 1px solid rgba(0,0,0,0.04);
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-warm);
  cursor: zoom-in;
}

.size-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(15,15,25,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.photo-count {
  position: absolute;
  bottom: 0.75rem; right: 0.75rem;
  background: rgba(15,15,25,0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.video-badge {
  position: absolute;
  bottom: 0.75rem; left: 0.75rem;
  background: rgba(185,28,28,0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.new-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15,107,74,0.4);
}

.sold-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: rgba(15,15,25,0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.modal-share {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  font-family: var(--sans);
  z-index: 2;
}

.modal-share:hover { transform: scale(1.05); }

/* Sold gallery */
.sold-gallery {
  background: var(--bg-warm);
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--line);
}

.sold-inner { max-width: 1240px; margin: 0 auto; }

.sold-gallery h2 {
  font-family: var(--serif);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.25rem;
}

.sold-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.sold-card { opacity: 0.92; }
.sold-card .img-wrap img { filter: saturate(0.85); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  border: none;
  font-size: 2rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  box-shadow: var(--shadow-hover);
  transition: transform 0.15s;
  z-index: 2;
}

.modal-nav:hover { transform: translateY(-50%) scale(1.1); }
.modal-prev { left: 1rem; }
.modal-next { right: 1rem; }

.modal-counter {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(15,15,25,0.75);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}

.card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.3,1);
}

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

.card .img-wrap .hover-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.card:hover .img-wrap .hover-video { opacity: 1; }
.card:hover .img-wrap img { opacity: 0; }

.card-body { padding: 1.2rem 1.25rem 1.35rem; cursor: pointer; }

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .price { margin: 0.6rem 0 0.5rem; font-size: 1.05rem; }

.original-price {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 0.92rem;
  margin-right: 0.4rem;
}

.sale-price { color: var(--sale); font-weight: 700; }

.regular-price { font-weight: 700; color: var(--ink); }

.card-body .desc {
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.card-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.card-body:hover .card-cta { color: var(--accent-deep); text-decoration: underline; }

.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.hidden { display: none !important; }

/* Reviews */
.reviews {
  background: var(--bg-warm);
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.reviews-inner { max-width: 900px; margin: 0 auto; }

.reviews h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stars {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.stars span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-family: var(--sans);
  letter-spacing: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.review-grid blockquote {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.review-grid blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.review-grid cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 500;
}

/* About */
.about {
  background: var(--ink);
  color: #f0ede8;
  padding: 4rem 1.5rem;
  text-align: center;
}

.about-inner { max-width: 640px; margin: 0 auto; }

.about h2 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about p {
  line-height: 1.75;
  font-weight: 300;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(15,15,25,0.88);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1.5rem;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-image-only {
  background: transparent;
  max-width: min(92vw, 900px);
  position: relative;
}

.modal-image-only img,
.modal-image-only video {
  max-width: 100%;
  max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal-image-only video {
  background: #000;
}

.modal-close {
  position: absolute;
  top: -0.75rem; right: -0.75rem;
  background: #fff; color: var(--ink);
  border: none; font-size: 1.4rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%; cursor: pointer;
  line-height: 1; box-shadow: var(--shadow-hover);
  transition: transform 0.15s;
}

.modal-close:hover { transform: scale(1.08); }

/* Footer */
footer { background: var(--bg-warm); border-top: 1px solid var(--line); }

.footer-inner {
  max-width: 720px; margin: 0 auto;
  text-align: center; padding: 3rem 1.5rem 2rem;
}

.footer-logo { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 0.75rem; }

.footer-tag { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1.25rem; font-weight: 300; }

.footer-links { margin-bottom: 1.5rem; }

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

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

.copyright { color: var(--muted); font-size: 0.8rem; }

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: stretch; }
  .nav-filters { justify-content: center; }
  .nav-tools { justify-content: center; }
  .nav-tools input[type="search"] { flex: 1; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .card-body { padding: 0.85rem; }
  .card-body h3 { font-size: 0.95rem; }
  .logo { width: 100px; height: 100px; }
}

/* Pinch zoom */
#modal-media img {
  touch-action: none;
  transition: transform 0.15s;
}

/* Product detail modal */
.modal-product {
  background: var(--card);
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  animation: fadeIn 0.2s;
}

.modal-gallery {
  position: relative;
  background: var(--bg-warm);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

.modal-gallery #modal-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery #modal-media img,
.modal-gallery #modal-media video {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.modal-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.modal-details h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.modal-details #modal-price {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

#modal-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.meta-size, .meta-cat {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--ink-soft);
  text-transform: capitalize;
}

#modal-desc {
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
  flex: 1;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-buy-hero {
  width: 100%;
  flex: none;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

.modal-actions-secondary {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.btn-buy {
  flex: 1;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, background 0.15s;
}

.btn-buy:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-buy-now {
  flex: 1;
  background: #2d7d46;
  color: #fff;
  text-align: center;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.15s;
}

.btn-buy-now:hover {
  background: #236b3a;
  transform: translateY(-2px);
}

.btn-buy-now:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-buy-etsy {
  background: transparent !important;
  color: #2d7d46 !important;
  border: 2px solid #2d7d46;
}

.btn-buy-etsy:hover {
  background: rgba(45,125,70,0.08) !important;
}

.etsy-link {
  display: block;
  text-align: center;
  color: var(--text-muted, #888);
  font-size: 0.85rem;
  text-decoration: none;
  margin-top: 4px;
}

.etsy-link:hover {
  text-decoration: underline;
  color: var(--text, #555);
}

.direct-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted, #888);
  margin: 6px 0 2px;
}

.buy-error {
  color: #c0392b;
  margin-top: 8px;
  font-size: 0.9rem;
}

.btn-share {
  background: var(--bg-warm);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.15s;
}

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

.modal-related h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.related-card {
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-warm);
  transition: transform 0.2s;
}

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

.related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.related-title {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.5rem 0.5rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sale);
  padding: 0.15rem 0.5rem 0.5rem;
}

/* Modal nav buttons inside gallery */
.modal-gallery .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.modal-gallery .modal-prev { left: 0.75rem; }
.modal-gallery .modal-next { right: 0.75rem; }

.modal-gallery .modal-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

/* Old modal-image-only styles no longer needed but kept for safety */
.modal-image-only { display: none; }

@media (max-width: 768px) {
  .modal-product {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .modal-gallery {
    border-radius: 16px 16px 0 0;
    min-height: 300px;
  }
  .modal-gallery #modal-media img,
  .modal-gallery #modal-media video {
    max-height: 45vh;
  }
  .modal-details { padding: 1.5rem; }
}

/* FAQ - Card Grid */
.faq {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  border-top: 1px solid var(--line);
}

.faq-inner { max-width: 1000px; margin: 0 auto; }

.faq h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.faq-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
  font-size: 1.05rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 1rem;
}

.faq-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.3,1), box-shadow 0.25s, border-color 0.25s;
}

.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.faq-card[open] {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(15,107,74,0.12);
}

.faq-card summary {
  padding: 1.2rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  user-select: none;
}

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

.faq-icon {
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--bg-warm), var(--bg));
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.25s;
}

.faq-card[open] .faq-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  transform: scale(1.05);
}

.faq-q {
  flex: 1;
  font-weight: 600;
  font-size: 1.02rem;
}

.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--ink-soft);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 2px rgba(255,255,255,0.6);
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.3,1), background 0.25s, color 0.25s;
}

.faq-chevron svg { width: 18px; height: 18px; }

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,107,74,0.3);
}

.faq-card p {
  padding: 0 1.25rem 1.4rem 4.4rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  animation: faqSlide 0.25s ease-out;
}

@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-card p a { color: var(--accent); font-weight: 500; }

@media (max-width: 600px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* Favorites */

.fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
  z-index: 2;
}

.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { color: #e63946; }

.card .img-wrap .new-badge { right: 3.25rem; }

.nav-fav {
  position: relative;
}

.fav-count {
  position: absolute;
  top: -6px; right: -6px;
  background: #e63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fancy FAQ */
.faq-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

.faq-icon {
  font-size: 1.3rem;
  margin-right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-warm);
  border-radius: 10px;
  flex-shrink: 0;
}

.faq summary {
  display: flex;
  align-items: center;
}

.faq details {
  transition: transform 0.2s, box-shadow 0.2s;
}

.faq details:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.faq details[open] {
  border-color: var(--accent);
}

.faq details[open] .faq-icon {
  background: var(--accent);
}

/* Stand note */
.stand-note {
  background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(201,162,39,0.05));
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

/* FAQ chevron fix - force size */
.faq-chevron svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  flex-shrink: 0;
}

.faq-card summary {
  min-width: 0;
}

.faq-q {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Newsletter signup */
.newsletter { background: #1a1a2e; color: #fff; padding: 50px 20px; text-align: center; }
.newsletter-inner { max-width: 500px; margin: 0 auto; }
.newsletter h2 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 10px; }
.newsletter p { color: #ccc; margin-bottom: 20px; font-size: 0.95rem; }
.newsletter form { display: flex; gap: 10px; max-width: 400px; margin: 0 auto; }
.newsletter input[type="email"] { flex: 1; padding: 12px 16px; border: none; border-radius: 8px; font-size: 1rem; }
.newsletter button { background: #2d7d46; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.newsletter button:hover { background: #236b3a; }
.newsletter-msg { margin-top: 12px; font-size: 0.9rem; min-height: 1.2em; }
.newsletter-msg.success { color: #7fdb8a; }
.newsletter-msg.error { color: #ff8a8a; }
@media (max-width: 500px) { .newsletter form { flex-direction: column; } }

/* Past Work Carousel */
.carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #333;
}
.carousel-btn:hover {
  background: #f0f0f0;
}
[data-theme="dark"] .carousel-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}
[data-theme="dark"] .carousel-btn:hover {
  background: #3a3a3a;
}
@media (max-width: 900px) {
  .carousel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .carousel-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-btn { width: 36px; height: 36px; font-size: 20px; }
}

/* Load more pagination */
.load-more-wrap { text-align: center; padding: 2.5rem 1rem 3.5rem; }
.load-more-btn {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.8rem;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.load-more-btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.load-more-btn:active { transform: translateY(0); }
.load-more-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.load-more-count { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* ============ Mobile overhaul (≤768px) ============ */
@media (max-width: 768px) {
  /* Safety net: never allow horizontal page scroll */
  html, body { overflow-x: hidden; }

  /* --- Header / hero --- */
  .site-header { padding: 2.25rem 1rem 1.75rem; }
  .logo { width: 96px; height: 96px; }
  .sale-strip { font-size: 0.72rem; padding: 0.55rem 0.75rem; }

  /* --- Sticky nav: stacked, thumb-friendly --- */
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
  }
  /* Filter chips: wrap on mobile so nothing is cut off */
  .nav-filters {
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 0.5rem;
  }
  .filter-btn {
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  /* Tools: search on its own full-width row, controls in a compact row */
  .nav-tools {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .nav-tools input[type="search"] {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
  .nav-tools select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
  }
  /* Fix: allow sort + links row to wrap on narrow screens */
  .nav-tools > a {
    flex-shrink: 0;
  }
  .nav-tools > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px !important;
    font-size: 0.92rem;
  }
  .theme-toggle {
    width: 44px;
    flex-shrink: 0;
  }
  /* Narrow screens: stack sort dropdown full-width, links wrap below */
  .nav-tools select {
    flex: 1 1 100% !important;
    width: 100%;
  }
    height: 44px;
    flex-shrink: 0;
  }
  /* Anchored jumps must clear the taller stacked nav */
  #catalog { scroll-margin-top: 190px; }

  /* --- Grid: 2 clean columns --- */
  main { padding: 1.5rem 0.75rem; }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }
  .card-body { padding: 0.8rem 0.85rem 0.9rem; }
  .card-body h3 { font-size: 0.92rem; }
  .card-body .price { font-size: 1rem; }
  .card-body .desc { font-size: 0.82rem; }

  /* --- Modal: full-screen sheet, reachable close --- */
  .modal { padding: 0.75rem; }
  .modal-product { border-radius: 14px; }
  .modal-close {
    top: 0.6rem;
    right: 0.6rem;
    z-index: 5;
  }
  .modal-gallery { min-height: 280px; }
  .modal-details { padding: 1.25rem; }
  .modal-details h2 { font-size: 1.35rem; }
  .modal-actions { gap: 0.6rem; }
  .btn-buy, .btn-share { min-height: 48px; }

  /* --- Sections --- */
  .reviews, .sold-gallery, .faq, .about { padding-left: 1rem; padding-right: 1rem; }
  .reviews h2, .sold-gallery h2, .faq h2, .about h2 { font-size: 1.7rem; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-card summary { padding: 1rem; }
  .faq-card p { padding: 0 1rem 1.2rem 1rem; }

  /* --- Past Work carousel --- */
  .carousel-wrap { gap: 8px; }
  .carousel-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .carousel-btn { width: 44px; height: 44px; font-size: 22px; }

  /* --- Footer --- */
  .footer-links { line-height: 2.4; }
}

/* Dark mode: sticky nav background was hardcoded light */
[data-theme="dark"] .sticky-nav {
  background: rgba(20, 20, 28, 0.92);
}
[data-theme="dark"] .nav-tools > a {
  color: var(--accent);
}

/* Sold page custom order CTA */
.sold-custom-cta {
  background: var(--bg-warm, #faf6f0);
  border: 1px solid var(--line, #e5ddd2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 1.02rem;
}
.sold-custom-cta a {
  font-weight: 700;
  color: var(--accent, #2d7d46);
  text-decoration: none;
  white-space: nowrap;
}
.sold-custom-cta a:hover {
  text-decoration: underline;
}

/* Welcome discount promo code */
.promo-code {
  background: #2d7d46;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-family: monospace;
  font-size: 1.05em;
  letter-spacing: 0.05em;
}

/* Starter Set bundle section */
.starter-set {
  padding: 3rem 1.25rem;
  background: var(--bg-warm, #faf6f0);
  border-top: 1px solid var(--line, #e5ddd2);
  border-bottom: 1px solid var(--line, #e5ddd2);
}
.starter-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.starter-set h2 {
  font-family: var(--serif, Georgia, serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.starter-sub {
  color: var(--ink-soft, #666);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.starter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.starter-tab {
  background: transparent;
  border: 2px solid var(--line, #e5ddd2);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft, #666);
  cursor: pointer;
  transition: all 0.15s;
}
.starter-tab:hover {
  border-color: var(--accent, #2d7d46);
  color: var(--ink, #222);
}
.starter-tab.active {
  background: var(--ink, #222);
  border-color: var(--ink, #222);
  color: #fff;
}
.starter-panel {
  display: none;
}
.starter-panel.active {
  display: block;
}
.starter-set-blurb {
  color: var(--ink-soft, #666);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.starter-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line, #e5ddd2);
  background: #fff;
  text-decoration: none;
  transition: transform 0.15s;
}
.starter-card:hover {
  transform: translateY(-3px);
}
.starter-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.starter-label {
  display: block;
  padding: 0.6rem;
  font-weight: 600;
  color: var(--ink, #222);
}
.starter-buy {
  margin-top: 1rem;
}
.starter-price {
  margin-bottom: 1rem;
}
.starter-price-was {
  text-decoration: line-through;
  color: var(--ink-soft, #888);
  font-size: 1.1rem;
  margin-right: 0.5rem;
}
.starter-price-now {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink, #222);
  margin-right: 0.5rem;
}
.starter-save {
  background: #2d7d46;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.starter-btn {
  display: inline-block;
  background: #2d7d46;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.starter-btn:hover:not(:disabled) {
  transform: scale(1.03);
  background: #256b3c;
}
.starter-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}
.starter-note {
  color: var(--ink-soft, #666);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}
.starter-msg {
  color: #c81e1e;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
@media (max-width: 600px) {
  .starter-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto 1.5rem;
  }
}

/* Ship-to state picker (sales tax) */
.ship-state-label { display: block; font-weight: 600; font-size: 0.9rem; margin: 10px 0 4px; text-align: left; }
.ship-state-select { width: 100%; padding: 11px 12px; border-radius: var(--radius, 8px); border: 1px solid var(--line, #ccc); font-size: 1rem; font-family: inherit; background: var(--card, #fff); color: var(--ink, #222); margin-bottom: 10px; }
.starter-ship { max-width: 340px; margin: 14px auto 4px; }
