:root {
  --blush:    #f6d9c7;
  --blush-dk: #f0c8b0;
  --cream:    #fdf6f0;
  --warm:     #faf0e8;
  --sand:     #e8d5c4;
  --stone:    #c4a898;
  --ink:      #1e1610;
  --ink-mid:  #5c4033;
  --ink-soft: #8a6e62;
  --red:      #c8363c;
  --gold:     #a07840;

  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-serif:   'Lora', Georgia, serif;
  --ff-sans:    'DM Sans', system-ui, sans-serif;

  --nav-h: 64px;
  --max:   1400px;
  --r-sm:  4px;
  --r-md:  10px;
  --r-lg:  20px;
  --r-pill: 100px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 1px 8px rgba(42,31,26,.06);
  --shadow-md: 0 4px 24px rgba(42,31,26,.10);
  --shadow-lg: 0 16px 48px rgba(42,31,26,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h); /* ADD THIS LINE */
}
img, video { display: block; width: 100%; height: 100%; object-fit: contain; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s var(--ease-out), visibility .4s;
}
#loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--ff-display);
  font-size: 1.8rem; font-style: italic; color: var(--ink-mid);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.25} 50%{opacity:1} }


.nav-wrap {
  position: fixed; /* Upgraded from sticky */
  top: 0;
  left: 0;         /* Added to lock left side */
  right: 0;        /* Added to lock right side */
  width: 100%;     /* Ensure it stretches full width */
  z-index: 700;    
  background: rgba(253,246,240,.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(200,168,152,.25);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 62px; width: auto; display: block; }

.nav-list { display: flex; gap: 0; }
.nav-item a {
  display: block; padding: 0 18px;
  line-height: var(--nav-h);
  font-family: var(--ff-sans);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav-item a::after {
  content: '';
  position: absolute; bottom: 0; left: 18px; right: 18px;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-item a:hover,
.nav-item a.active { color: var(--ink); }
.nav-item a:hover::after,
.nav-item a.active::after { transform: scaleX(1); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-sm);
  /* bigger tap target on mobile */
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: .3s var(--ease-out);
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 6px 0 14px;
  box-shadow: var(--shadow-md);
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block; padding: 14px 28px;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mid);
  transition: color .2s, background .2s;
  /* bigger tap target */
  min-height: 48px; display: flex; align-items: center;
}
.nav-drawer a:hover,
.nav-drawer a.active { color: var(--ink); background: var(--warm); }

/* ── SECTION SHARED ── */
.sec { padding: 96px 48px; }
.sec-inner { max-width: var(--max); margin: 0 auto; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .63rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 18px;
}
.sec-label::before { content: ''; display: block; width: 18px; height: 1px; background: var(--stone); }
.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05; color: var(--ink); margin-bottom: 16px;
}
.sec-title em { font-style: italic; color: var(--ink-mid); }
.sec-body {
    font-family: var(--ff-serif);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink-mid);
    max-width: 560px;
}

/* ── GALLERY ── */
.gallery-sec { background: var(--cream); }
.gallery-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-tab {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: var(--r-pill);
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--sand); color: var(--ink-soft);
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
  /* tap target */
  min-height: 44px;
}
.gallery-tab:hover { border-color: var(--stone); color: var(--ink-mid); }
.gallery-tab.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.gallery-tabs-skeleton { display: flex; gap: 8px; }
.tab-skel {
  width: 110px; height: 36px; border-radius: var(--r-pill);
  background: var(--blush);
  background-image: linear-gradient(90deg, var(--blush) 0%, var(--warm) 50%, var(--blush) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

/* ── GALLERY GRID — fixed aspect ratios to prevent jump ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  /* prevent CLS by reserving grid height during skeleton */
  min-height: 0;
}
.gallery-item {
  position: relative; overflow: visible;
  cursor: pointer;
  box-shadow: 0 0 9px var(--sand);
  border-radius: var(--r-md);
  /* fixed aspect ratio prevents layout jump when images load */
 
  will-change: transform;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .6s var(--ease-out);
  /* fade in when loaded to avoid flicker */
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .3s ease;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,22,16,.7) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end;
  padding: 16px;
  border-radius: var(--r-md);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay-links { display: flex; gap: 8px; }
.ov-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(253,246,240,.92);
  font-size: .63rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); transition: background .2s;
}
.ov-link:hover { background: var(--cream); }
.ov-link.etsy i { color: #f1641e; }
.ov-link.pin i { color: #e60023; }

/* skeleton shimmer */
.skel-item {
  aspect-ratio: 1; border-radius: var(--r-md);
  background: var(--blush);
  background-image: linear-gradient(90deg, var(--blush) 0%, var(--warm) 50%, var(--blush) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── ITEM DETAIL OVERLAY ── */
/* Uses a slide-up panel instead of full page replace — no scroll position loss */
.item-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: var(--cream);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(100%);
  transition: transform .38s var(--ease-out);
  will-change: transform;
}
.item-overlay.open {
  transform: translateY(0);
}
/* Backdrop dimmer */
.item-overlay-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 599;
  background: rgba(30,22,16,.45);
  opacity: 0; transition: opacity .35s;
}
.item-overlay-backdrop.open { display: block; opacity: 1; }

.item-detail-sec { 
  padding: calc(var(--nav-h) + 20px) 48px 96px; /* Account for sticky nav */
  min-height: 100vh; 
}
.item-detail-inner { max-width: 1060px; margin: 0 auto; }

.item-back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 24px;
  transition: color .2s; cursor: pointer;
  background: none; border: none;
  padding: 0;
  /* tap target */
  min-height: 44px;
}
.item-back:hover { color: var(--ink-mid); }
.item-back:hover i { transform: translateX(-3px); }
.item-back i { font-size: .85rem; transition: transform .2s var(--ease-out); }

.item-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
.item-image-wrap {
  position: sticky; top: calc(var(--nav-h) + 32px);
  border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  max-height: calc(100vh - var(--nav-h) - 80px);
  background: var(--warm);
}
.item-image-wrap img {
  width: 100%; height: 100%; object-fit: contain; padding: 24px;
}
.item-info { padding-top: 4px; }
.item-collection-label {
  font-size: .63rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.item-collection-label::before { content: ''; display: block; width: 16px; height: 1px; background: var(--stone); }
.item-title {
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.05; color: var(--ink); margin-bottom: 16px;
}
.item-description {
  font-family: var(--ff-serif);
  font-size: .95rem; line-height: 1.75;
  color: var(--ink-soft); margin-bottom: 28px;
}
.item-divider { border: none; border-top: 1px solid var(--sand); margin-bottom: 28px; }
.item-actions { display: flex; flex-direction: column; gap: 10px; }

.item-btn-etsy {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid var(--sand); color: var(--ink-mid);
  transition: background .25s, color .25s, transform .2s var(--ease-spring);
  width: 100%;
  min-height: 52px;
}
.item-btn-etsy:hover { background: var(--ink-mid); color: var(--cream); transform: translateY(-2px); }
.item-btn-etsy i { color: #f1641e; font-size: .9rem; }

.item-btn-pin {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid var(--sand); color: var(--ink-mid);
  transition: border-color .25s, color .25s, transform .2s var(--ease-spring);
  width: 100%;
  min-height: 52px;
}
.item-btn-pin:hover { border-color: #e60023; color: #e60023; transform: translateY(-2px); }
.item-btn-pin i { color: #e60023; font-size: .9rem; }

.item-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.item-tag {
  display: inline-block;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .62rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: var(--warm); color: var(--ink-soft);
  border: 1px solid var(--sand);
}
.item-loading {
  display: flex; align-items: center; justify-content: center; min-height: 60vh;
}
.item-loading-mark {
  font-family: var(--ff-display);
  font-size: 1.4rem; font-style: italic; color: var(--ink-mid);
  animation: pulse 1.4s ease-in-out infinite;
}

/* ── FOOTER ── */
.site-footer { background: var(--warm); border-top: 1px solid var(--sand); }
.footer-top {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 0;
}
.footer-col { padding: 52px 48px; border-right: 1px solid var(--sand); }
.footer-col:last-child { border-right: none; }
.footer-col h4 {
  font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: .8rem; color: var(--ink-soft); transition: color .2s;
  display: flex; align-items: center; gap: 10px;
  min-height: 44px;
}
.footer-links a:hover { color: var(--ink); }
.footer-links i { width: 13px; text-align: center; font-size: .75rem; }
.footer-brand { font-family: var(--ff-display); font-size: 1.15rem; font-style: italic; color: var(--ink-mid); margin-bottom: 12px; }
.footer-tagline { font-size: .8rem; color: var(--ink-soft); line-height: 1.65; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  border-top: 1px solid var(--sand);
  font-size: .68rem; color: var(--ink-soft); letter-spacing: .04em;
}
.footer-bottom a { color: var(--ink-soft); transition: color .2s; }
.footer-bottom a:hover { color: var(--ink-mid); }

/* ── BTN ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  transition: background .25s, transform .2s var(--ease-spring);
  min-height: 48px;
}
.btn-primary:hover { background: var(--ink-mid); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--stone); color: var(--ink-mid);
  transition: border-color .25s, color .25s, transform .2s var(--ease-spring);
  min-height: 48px;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }

/* ── SEO hidden fields ── */
.item-description,
.item-tags { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0.01; pointer-events: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .item-layout { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 960px) {
  .nav-inner { padding: 0 20px; }
  .nav-list { display: none; }
  .nav-burger { display: flex; }
  .sec { padding: 64px 24px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 16px; }
 .item-detail-sec { padding: calc(var(--nav-h) + 16px) 20px 80px; }
  .item-layout { grid-template-columns: 1fr; gap: 24px; }
  .item-image-wrap {
    position: relative; top: 0;
    max-height: 65vw;
    aspect-ratio: 1;
  }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col { padding: 36px 24px; }
  .footer-col:nth-child(3) { grid-column: 1/-1; border-right: none; border-top: 1px solid var(--sand); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 24px; }
}
@media (max-width: 640px) {
  .sec { padding: 48px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item-detail-sec { padding: calc(var(--nav-h) + 12px) 16px 80px; }
      .item-image-wrap {
        max-height: 80vw;
        margin-left: auto;
        margin-right: auto;
        background: #faf0e800;
    }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col { border-right: none !important; padding: 24px 20px; }
  .footer-col:nth-child(n+2) { border-top: 1px solid var(--sand); }
  .footer-bottom { padding: 14px 20px; }
  /* Show overlay links on mobile tap */
  .gallery-overlay { opacity: 0 !important; background: linear-gradient(to top, rgba(30,22,16,.55) 0%, transparent 55%); }

.gallery-tab {
      min-height: 34px;
      padding: 0px 10px;
    border-radius: var(--r-pill);
    font-size: .64rem;
}
}
.best-seller-badge {
    position: fixed;
    top: -10px;
    left: -10px;
    width: 65px !important;
    height: auto !important;
    z-index: 2;
    pointer-events: none;
   
   
    border-radius: 50%;
}
@media (min-width: 959px) {
  .best-seller-badge {
   
    width: 75px !important;
  
}
 } 
@media (max-width: 960px) {
.item-back {
  
    margin-bottom: 0px;
   
    min-height: 34px;
}
  

 }
