/* =========================================================
   EKAM BY SERI — Premium Brand Design System v2
   Warm Ivory · Terracotta · Cormorant Garamond + Inter
   A $10,000 website experience
   ========================================================= */

/* Google Fonts are loaded via a <link> in app/layout.tsx — a CSS @import
   here would fetch the same stylesheet a second time and block render
   while doing it, so it's deliberately not duplicated in this file. */

/* ---------- Design tokens ---------- */
:root {
  --ivory: #f5f1ea;
  --ivory-dark: #efe8dc;
  --cream: #fbf7f1;
  --limestone: #e8dfd2;
  --sand: #cdbba4;
  --taupe: #a98b74;
  --terracotta: #b96a42;
  --terra-dark: #a65c38;
  --terra-light: #d4896a;
  --charcoal: #2b2926;
  --stone: #5c534a;
  --line: #d9cfc2;
  --line-faint: #eae3d8;
  --mirror-silver: #c9c4bc;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(43, 41, 38, 0.07);
  --shadow-md: 0 8px 32px rgba(43, 41, 38, 0.12);
  --shadow-lg: 0 20px 60px rgba(43, 41, 38, 0.16);
  --shadow-xl: 0 30px 80px rgba(43, 41, 38, 0.2);
  --radius-sm: 2px;
  --radius-md: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
img,
svg {
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  cursor: none;
  overflow-x: hidden;
}

/* ---------- Custom cursor ---------- */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100002;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition:
    width 0.2s var(--ease-out),
    height 0.2s var(--ease-out),
    background 0.3s;
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transition:
    width 0.45s var(--ease-out),
    height 0.45s var(--ease-out),
    border-color 0.3s,
    opacity 0.3s;
  opacity: 0.55;
  will-change: transform;
}
body:hover #cursor-dot,
body:hover #cursor-ring {
  opacity: 1;
}
.cursor-hover #cursor-dot {
  width: 11px;
  height: 11px;
  background: var(--terra-dark);
}
.cursor-hover #cursor-ring {
  width: 58px;
  height: 58px;
  opacity: 0.3;
}
.cursor-press #cursor-dot {
  width: 4px;
  height: 4px;
}
.cursor-press #cursor-ring {
  width: 28px;
  height: 28px;
}
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

/* The mobile nav panel is only z-50, below the WhatsApp FAB's z-9999, so the
   FAB would otherwise float on top of (and on short viewports, block taps on)
   the last few links while the menu is open. */
body.mobile-nav-open #wa-fab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.8) !important;
}

/* ---------- Page loader ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    opacity 0.8s var(--ease-out),
    visibility 0.8s;
}
#page-loader.out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  animation: loaderFadeUp 0.9s var(--ease-out) 0.2s forwards;
}
.loader-sub {
  font-family: "Inter", sans-serif;
  font-size: 9px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--taupe);
  /* Center + bound the width so the wide letter-spaced tagline wraps inside the
     viewport instead of overflowing and clipping off the left edge on phones. */
  text-align: center;
  max-width: min(520px, 88vw);
  padding: 0 1.25rem;
  line-height: 1.9;
  opacity: 0;
  animation: loaderFadeUp 0.9s var(--ease-out) 0.5s forwards;
}
.loader-line {
  width: 0;
  height: 1px;
  background: var(--terracotta);
  animation: loaderExpand 1.2s var(--ease-out) 0.3s forwards;
}
@keyframes loaderFadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes loaderExpand {
  to {
    width: 120px;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.06;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 1.05rem 2.2rem;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition:
    color 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
  cursor: none;
  line-height: 1;
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-105%) skewX(-12deg);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover::after {
  transform: translateX(105%) skewX(-12deg);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--ivory);
  border-color: var(--terracotta);
  box-shadow: 0 4px 20px rgba(185, 106, 66, 0.25);
}
.btn-primary:hover {
  background: var(--terra-dark);
  border-color: var(--terra-dark);
  box-shadow: 0 8px 30px rgba(185, 106, 66, 0.35);
}
.btn-outline {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 2px 12px rgba(43, 41, 38, 0.06);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
  box-shadow: 0 8px 26px rgba(43, 41, 38, 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--taupe);
  background: var(--limestone);
}

/* ---------- Center mark divider ---------- */
.center-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.center-mark::before,
.center-mark::after {
  content: "";
  height: 1px;
  width: 50px;
  background: var(--line);
}
.center-mark span {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--taupe);
  display: block;
}

/* ---------- Links ---------- */
.ulink {
  position: relative;
}
.ulink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}
.ulink:hover::after {
  width: 100%;
}

/* ---------- Announcement marquee ---------- */
.bar-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
}
.bar-track span {
  padding: 0 3rem;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Header scroll state ---------- */
header {
  transition:
    box-shadow 0.4s var(--ease-out),
    background 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out),
    border-bottom 0.4s var(--ease-out);
}
header.scrolled {
  box-shadow: 0 2px 12px rgba(43, 41, 38, 0.07);
  background: rgba(247, 242, 234, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 207, 194, 0.5);
}

/* ---------- Motif / SVG frames ---------- */
.motif {
  width: 100%;
  height: 100%;
  display: block;
}
.motif-wrap {
  position: relative;
  overflow: hidden;
  background: var(--limestone);
}
.motif-wrap .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  background:
    radial-gradient(
      130% 90% at 70% 10%,
      rgba(255, 255, 255, 0.4),
      transparent 55%
    ),
    radial-gradient(
      100% 120% at 20% 100%,
      rgba(43, 41, 38, 0.08),
      transparent 60%
    );
}

/* ---------- Collection card ---------- */
.collection-card {
  position: relative;
  overflow: hidden;
  cursor: none;
}
.collection-card .img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.collection-card:hover .img {
  transform: scale(1.07);
}
.collection-card .scrim {
  position: absolute;
  inset: 0;
  /* Darker, earlier-starting gradient so the white eyebrow/title text stays
     readable even over the lighter category photos (e.g. Trays & Serving,
     Home Decor) — bumped further still (was capping at .84) since text-only
     shadow wasn't enough contrast on the busiest/brightest photos. */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.32) 40%,
    rgba(0, 0, 0, 0.72) 70%,
    rgba(0, 0, 0, 0.92) 100%
  );
  transition: opacity 0.5s;
}
.collection-card:hover .scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.95) 100%
  );
}
/* Always-visible "explore" affordance in the top-right corner — replaces the
   old bottom-stacked "Explore" text link, which only appeared on hover (so
   never showed at all on touch devices, since :hover isn't a real affordance
   there). Matches the circular-arrow style the "Explore More" tile already
   used, so both tile types now share one consistent cue. */
.collection-card .card-cta-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
  z-index: 2;
}
.collection-card:hover .card-cta-badge {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: rotate(45deg);
}

/* ---------- Product card ---------- */
.product-card {
  cursor: none;
  position: relative;
}
.product-card .img-wrap {
  overflow: hidden;
  position: relative;
}
.product-card .img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.product-card:hover .img {
  transform: scale(1.06);
}
.product-card .card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 242, 234, 0);
  transition: background 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.product-card:hover .card-overlay {
  background: rgba(247, 242, 234, 0.04);
}

/* ---------- Tabs ---------- */
.tab {
  position: relative;
  padding-bottom: 0.75rem;
  color: var(--stone);
  cursor: none;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
  transition: color 0.35s;
  background: none;
  border: none;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 0;
  background: var(--terracotta);
  transition: width 0.45s var(--ease-out);
}
.tab:hover {
  color: var(--charcoal);
}
.tab.active {
  color: var(--terracotta);
}
.tab.active::after {
  width: 100%;
}

/* ---------- Thumbnails ---------- */
.thumb {
  border: 1px solid var(--line);
  transition: border-color 0.3s;
  cursor: none;
  overflow: hidden;
}
.thumb.active {
  border-color: var(--terracotta);
}
.thumb:hover {
  border-color: var(--taupe);
}

/* ---------- No-scrollbar ---------- */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.reveal-left.in {
  opacity: 1;
  transform: none;
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
}
.reveal-right.in {
  opacity: 1;
  transform: none;
}

/* Stagger delays for children */
.stagger > *:nth-child(1) {
  transition-delay: 0s;
}
.stagger > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger > *:nth-child(3) {
  transition-delay: 0.2s;
}
.stagger > *:nth-child(4) {
  transition-delay: 0.3s;
}
.stagger > *:nth-child(5) {
  transition-delay: 0.4s;
}
.stagger > *:nth-child(6) {
  transition-delay: 0.5s;
}

/* ---------- Decorative pattern ---------- */
.pattern-fade {
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- Values marquee ---------- */
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeValues 28s linear infinite;
  gap: 0;
}
.marquee-track-rev {
  animation-direction: reverse;
  animation-duration: 32s;
}
@keyframes marqueeValues {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Hero word animation ---------- */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.hero-word.in {
  opacity: 1;
  transform: none;
}

/* ---------- Parallax ---------- */
.parallax-wrap {
  overflow: hidden;
}
.parallax-el {
  will-change: transform;
}

/* ---------- Number counter ---------- */
.count-up {
  display: inline-block;
}

/* ---------- Wishlist ---------- */
.wishlist-btn {
  background: none;
  border: none;
  cursor: none;
  padding: 0.3rem;
  color: var(--stone);
  transition:
    color 0.3s,
    transform 0.3s var(--ease-out);
}
.wishlist-btn:hover {
  color: var(--terracotta);
  transform: scale(1.15);
}
.wishlist-btn.active {
  color: var(--terracotta);
}
.wishlist-btn.active svg {
  fill: var(--terracotta);
}

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  z-index: 200;
  transform: translateY(80px);
  opacity: 0;
  transition:
    transform 0.6s var(--ease-out),
    opacity 0.6s var(--ease-out);
}
.sticky-cta.show {
  transform: none;
  opacity: 1;
}
/* On phones, a small floating pill at the right edge is an easy mis-tap and
   can clip against the viewport edge. Anchor it as a full-width bar instead
   — a standard, comfortably-tappable mobile commerce pattern. */
@media (max-width: 640px) {
  .sticky-cta {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: translateY(40px);
  }
  .sticky-cta a {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Image zoom cursor ---------- */
.zoom-cursor {
  cursor: none;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ---------- Section divider ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--sand);
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: 80px;
  background: var(--line);
}

/* ---------- Quote pull ---------- */
.pull-quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.35;
}

/* ---------- Smooth image reveal overlay ---------- */
.img-reveal-wrap {
  position: relative;
  overflow: hidden;
}
.img-reveal-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--limestone);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.9s var(--ease-out);
}
.img-reveal-wrap.in::after {
  transform: scaleX(0);
}

/* ---------- Carousel nav ---------- */
.carousel-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ivory);
  display: grid;
  place-items: center;
  color: var(--stone);
  cursor: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    color 0.3s,
    transform 0.3s var(--ease-out);
  font-size: 16px;
}
.carousel-nav:hover {
  border-color: var(--taupe);
  background: var(--charcoal);
  color: var(--cream);
  transform: scale(1.08);
}

/* ---------- Filter chips ---------- */
.filter-chip {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--line);
  color: var(--stone);
  background: transparent;
  cursor: none;
  transition:
    border-color 0.35s,
    color 0.35s,
    background 0.35s;
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: var(--taupe);
  color: var(--charcoal);
}
.filter-chip.active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

/* ---------- Scrollable pill row (components/scrollable-pill-row.tsx) ---------- */
.pill-row-wrap {
  position: relative;
}
.pill-row-track {
  cursor: grab;
}
.pill-row-track:active {
  cursor: grabbing;
}
.pill-row-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  pointer-events: none;
  z-index: 2;
}
.pill-row-fade-l {
  left: 0;
  background: linear-gradient(90deg, var(--ivory) 0%, transparent 100%);
}
.pill-row-fade-r {
  right: 0;
  background: linear-gradient(270deg, var(--ivory) 0%, transparent 100%);
}
.pill-row-nudge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  z-index: 3;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s, border-color 0.25s, color 0.25s;
}
.pill-row-wrap:hover .pill-row-nudge {
  opacity: 1;
}
.pill-row-nudge:hover {
  border-color: var(--taupe);
  color: var(--charcoal);
}
.pill-row-nudge-l {
  left: 2px;
}
.pill-row-nudge-r {
  right: 2px;
}
@media (hover: none) {
  .pill-row-nudge {
    display: none;
  }
}

/* ---------- Spec row ---------- */
.spec-row {
  display: grid;
  grid-template-columns: 1.4rem 130px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-faint);
  font-size: 13px;
  align-items: start;
}
.spec-row:last-child {
  border-bottom: none;
}
.spec-icon {
  color: var(--taupe);
  margin-top: 2px;
}
.spec-label {
  color: var(--stone);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.spec-value {
  color: var(--charcoal);
}

/* ---------- Product variant pills ---------- */
.variant-group + .variant-group {
  margin-top: 18px;
}
.variant-group-label {
  color: var(--stone);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 6px;
}
.variant-group-hint {
  color: var(--stone);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 10px;
}
/* The "All" pill carries no swatch, so balance the padding the swatch left. */
.variant-pill--all {
  padding-left: 14px;
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.variant-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: var(--charcoal);
}
.variant-pill-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.variant-pill-thumb {
  border-radius: 6px;
}
.variant-pill:hover {
  border-color: var(--taupe);
}
.variant-pill.active {
  border-color: var(--terracotta);
  background: var(--ivory-dark);
}
.variant-pill.active .variant-pill-label {
  color: var(--terracotta);
  font-weight: 500;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
  .hero-word {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   WISHLIST DRAWER
   ========================================================= */
#wishlist-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100%;
  background: var(--cream);
  box-shadow: -4px 0 30px rgba(43, 41, 38, 0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--line);
}
#wishlist-drawer.open {
  transform: translate3d(0, 0, 0);
}
#wishlist-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 41, 38, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#wishlist-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Wishlist Drawer Layout */
.wishlist-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--line-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wishlist-close {
  background: none;
  border: none;
  color: var(--stone);
  cursor: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}
.wishlist-close:hover {
  color: var(--terracotta);
}
.wishlist-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}
.wishlist-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.wishlist-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-faint);
  align-items: center;
}
.wishlist-item-img {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  background: var(--field);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.wishlist-item-img svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wishlist-item-info {
  flex: 1;
}
.wishlist-item-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: var(--charcoal);
  line-height: 1.2;
}
.wishlist-item-size {
  font-size: 10px;
  color: var(--stone);
  margin-top: 2px;
}
.wishlist-item-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  margin-top: 4px;
}
.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.wishlist-item-enquire {
  font-size: 9px;
  color: var(--stone);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wishlist-item-enquire:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}
.wishlist-item-remove {
  background: none;
  border: none;
  color: var(--stone);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: none;
  transition: color 0.3s;
}
.wishlist-item-remove:hover {
  color: var(--terracotta);
}

.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.wishlist-empty-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.wishlist-empty-text {
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Quantity Picker */
.wishlist-qty-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--field);
  border: 1px solid var(--line-faint);
  border-radius: 4px;
  width: fit-content;
  padding: 2px 4px;
}
.wishlist-qty-btn {
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 14px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  font-weight: 600;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.wishlist-qty-btn:hover {
  color: var(--terracotta);
}
.wishlist-qty-val {
  font-size: 11px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
  color: var(--charcoal);
  font-family: "Inter", sans-serif;
}

/* Bulk Enquiry Footer */
.wishlist-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line-faint);
  background: var(--cream);
  flex-shrink: 0;
}
.wishlist-bulk-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Cart Drawer — same slide-in panel as the wishlist drawer (separate id so
   both can exist independently), item rows reuse .wishlist-item-* classes. */
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100%;
  background: var(--cream);
  box-shadow: -4px 0 30px rgba(43, 41, 38, 0.15);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid var(--line);
}
#cart-drawer.open {
  transform: translate3d(0, 0, 0);
}
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 41, 38, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-summary {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--line-faint);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cart-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--stone);
}
.cart-summary-row.discount {
  color: var(--terra-dark);
}
.cart-summary-row.total {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  color: var(--charcoal);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-faint);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--terracotta);
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  font-family: "Inter", sans-serif;
}

/* =========================================================
   SEARCH OVERLAY
   ========================================================= */
#search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(43, 41, 38, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
#search-overlay.open {
  opacity: 1;
  visibility: visible;
}
#search-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 1.5rem;
  transform: translateY(-24px);
  transition: transform 0.4s var(--ease-out);
}
#search-overlay.open #search-panel {
  transform: translateY(0);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0 20px;
  box-shadow: var(--shadow-lg);
}
.search-input-wrap svg {
  color: var(--taupe);
  flex-shrink: 0;
}
#search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  padding: 18px 0;
  letter-spacing: 0.02em;
}
#search-input::placeholder {
  color: var(--sand);
  font-style: italic;
}
.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  flex-shrink: 0;
}
.search-close-btn:hover {
  color: var(--terracotta);
}
#search-results {
  margin-top: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  display: none;
}
#search-results.has-results {
  display: block;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-faint);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
  cursor: pointer;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: var(--ivory-dark);
}
.search-result-thumb {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--limestone);
  flex-shrink: 0;
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-result-thumb svg {
  width: 100%;
  height: 100%;
  padding: 10px;
  opacity: 0.35;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 2px;
}
.search-result-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  color: var(--terracotta);
  flex-shrink: 0;
}
.search-no-results {
  padding: 28px 20px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  color: var(--taupe);
  font-style: italic;
}
.search-hint {
  margin-top: 10px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- Featured Pieces Slider Custom Styles ---------- */
.scrollbar-none {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.scrollbar-none::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}
.featured-slider-item {
  flex-shrink: 0;
  width: 80%; /* mobile */
}
@media (min-width: 640px) {
  .featured-slider-item {
    width: 45%; /* tablet */
  }
}
@media (min-width: 1024px) {
  .featured-slider-item {
    width: calc(20% - 22.4px); /* desktop (5 columns with 28px gaps) */
  }
}
#featuredGrid {
  cursor: grab;
}
#featuredGrid.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

/* ---------- Enquire CTA — WhatsApp badge on product/hamper cards ---------- */
.enquire {
  padding: 6px 12px;
  margin: -6px -4px;
  border-radius: 999px;
  background-color: #25d366;
  color: #fff !important;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.enquire:hover,
.enquire:active {
  background-color: #1ebe57;
  transform: translateY(-1px);
}


