/* ============================================
   MERAKI BY AISHWARYA — Full Rebuild v3
   LimerickSerial Xbold + Splash Intro + Search Box
   ============================================ */

@font-face {
  font-family: 'LimerickSerial';
  src: url('./assets/LimerickSerial Xbold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Magnolia Script';
  src: url('./Magnolia Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: #3D2B1F; overflow-x: hidden; position: relative; }
/* Prevent iOS input zoom — needs font-size >= 16px on all inputs */
input, textarea, select { font-size: 16px; }
body::before {
  content: '';
  position: fixed;
  inset: 0; /* Align perfectly to viewport */
  background: url('./Meraki Packaging Label.png') repeat;
  background-size: 600px;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.04;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.2px); /* Tiny blur can sometimes mask hairline seams */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --cream: #fefcf0; --cream-dark: #EDE0CE;
  --brown: #946846; --brown-light: #AD8362;
  --caramel: #C8956C; --gold: #D4A853; --blush: #E8C9A0;
  --text: #3D2B1F; --text-muted: #9A7B6B; --white: #FFFFFF;
  --nails-bg: #3D0C22; --nails-accent: #C9748A; --nails-gold: #D4AF7A;
  --font-hero: 'Magnolia Script', serif;
  --font-sans: 'Inter', sans-serif;
  --shadow: 0 8px 40px rgba(92,59,30,0.12);
  --shadow-sm: 0 4px 20px rgba(92,59,30,0.08);
  --radius: 20px; --radius-sm: 12px; --radius-full: 100px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.4s var(--ease);
}

/* ========== SPLASH BG + FLOATING LOGO ========== */
.splash-bg {
  position: fixed; inset: 0; z-index: 9998;
  background: var(--cream);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.splash-bg.gone { opacity: 0; }
.splash-bg.removed { display: none; }

.floating-logo {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  transition: top 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  display: block;
}
.floating-logo img {
  width: 280px; height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.88);
  transition: width 1.1s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.55s ease,
              transform 0.55s var(--ease);
}
.floating-logo.appear img { opacity: 1; transform: scale(1); }
.floating-logo.docked { top: 36px; transition: top 1.1s cubic-bezier(0.65, 0, 0.35, 1); }
.floating-logo.docked.compact { top: 30px; transition: top 0.4s ease; }
.floating-logo.docked img { width: 52px; }
.floating-logo.docked.compact img { width: 40px; transition: width 0.4s ease; }

@media (max-width: 768px) {
  .floating-logo img { width: 220px; }
  .floating-logo.docked { top: 28px; }
  .floating-logo.docked.compact { top: 20px; }
  .floating-logo.docked img { width: 42px; }
  .floating-logo.docked.compact img { width: 28px; }
}

/* Hide in-header nav-logo on pages with a floating logo */
body.has-floating-logo .nav-logo { display: none; }

/* Intro stagger reveals */
.intro-hide { opacity: 0; transform: translateY(24px); }
body.intro-go .intro-hide {
  animation: introReveal 0.7s var(--ease) forwards;
}
body.intro-go .intro-hide.s1 { animation-delay: 0s; }
body.intro-go .intro-hide.s2 { animation-delay: 0.15s; }
body.intro-go .intro-hide.s3 { animation-delay: 0.3s; }
body.intro-go .intro-hide.s4 { animation-delay: 0.45s; }
body.intro-go .intro-hide.s5 { animation-delay: 0.6s; }

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

.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: waveLetter 0.6s var(--ease-elastic) forwards;
  white-space: pre;
}

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

.wave-title {
  font-family: var(--font-hero);
  color: var(--brown);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  line-height: 1.2;
}

/* ========== HEADER / NAV ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10000;
  background: transparent;
  backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 10px 40px;
  background: rgba(254, 252, 240, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(148, 104, 70, 0.08);
}

.header-hidden { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.header.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Nav Left */
.nav-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-full);
  padding: 4px;
  transition: var(--transition);
}

.nav-menu-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; padding: 8px 14px;
  color: var(--brown); font-family: var(--font-sans);
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-menu-btn:hover { background: rgba(148, 104, 70, 0.08); }
.nav-menu-label { display: inline; }

.hamburger-icon {
  display: flex; flex-direction: column; gap: 4px;
  width: 20px; height: 20px;
  justify-content: center; align-items: center;
  transition: all 0.3s ease;
}
.hamburger-icon span {
  display: block; width: 16px; height: 1.5px;
  background: var(--brown); border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-tabs { display: flex; gap: 2px; }
.nav-tab {
  padding: 8px 14px; font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brown); border-radius: var(--radius-full);
  transition: var(--transition);
  opacity: 0.7;
}
.nav-tab:hover { background: rgba(148, 104, 70, 0.08); opacity: 1; }

.header.scrolled .hide-on-scroll {
  opacity: 0; visibility: hidden; max-width: 0;
  padding: 0; overflow: hidden;
  transition: all 0.3s ease;
}

/* Pill state when web menu open — Thinking Gifts style */
.header.menu-open .nav-left {
  background: var(--cream-dark);
  box-shadow: 0 6px 18px rgba(92, 59, 30, 0.08);
}
.header.menu-open .nav-menu-btn {
  background: var(--gold);
  color: var(--brown);
}
/* Tabs stay normal (no darkening) by default; only press/active state darkens */
.header.menu-open .nav-tab {
  opacity: 0.85;
}
.header.menu-open .nav-tab:hover,
.header.menu-open .nav-tab:active {
  background: var(--gold);
  color: var(--brown);
  opacity: 1;
}
.header.menu-open .nav-menu-btn .hamburger-icon span {
  background: var(--brown);
}
.header.menu-open .nav-menu-btn .hamburger-icon span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.header.menu-open .nav-menu-btn .hamburger-icon span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}
/* Force tabs to remain visible when menu is open even on scroll */
.header.menu-open.scrolled .hide-on-scroll {
  opacity: 0.85; visibility: visible; max-width: 200px; padding: 8px 14px;
}

/* Nav Logo (Center) */
.nav-logo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}
.nav-logo img {
  height: 52px; width: auto;
  transition: height 0.4s ease;
}
.header.scrolled .nav-logo img { height: 40px; }

/* Nav Right */
.nav-right {
  display: flex; align-items: center; gap: 8px;
}
.nav-search-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none; background: transparent;
  color: var(--brown);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.nav-search-btn:hover { background: rgba(148, 104, 70, 0.08); }

/* ========== UNIVERSAL SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(40, 24, 12, 0.45);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 90px 5% 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-overlay.open .search-overlay-input { transform: translateY(0); opacity: 1; }
.search-overlay-input { transform: translateY(-12px); opacity: 0; transition: all 0.4s var(--ease) 0.05s; }

.search-overlay-input {
  width: 100%;
  max-width: 640px;
  position: relative;
  margin-bottom: 40px;
}

.search-overlay-input input {
  width: 100%;
  padding: 18px 24px 18px 52px;
  font-size: 17px;
  font-family: var(--font-sans);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.search-overlay-input input:focus {
  border-color: var(--brown-light);
  box-shadow: 0 4px 20px rgba(148, 104, 70, 0.1);
}
.search-overlay-input input::placeholder { color: var(--text-muted); }
.search-overlay-input .search-icon {
  position: absolute;
  left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16px;
  pointer-events: none;
}

.search-overlay-header {
  width: 100%;
  max-width: 800px;
  margin-bottom: 24px;
  text-align: left;
}

.search-overlay-header h2 {
  font-family: var(--font-hero);
  font-size: clamp(24px, 3vw, 32px);
  color: #fff;
  margin-bottom: 4px;
}

.search-overlay-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.search-results-container {
  width: 100%;
  max-width: 1200px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: none;
}
.search-results-container::-webkit-scrollbar { display: none; }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 60px;
}

.search-result-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--cream-dark);
}

.search-result-card:hover {
  transform: translateY(-3px);
  border-color: var(--blush);
  box-shadow: var(--shadow-sm);
}

.search-result-image {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream-dark);
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-result-name {
  font-family: var(--font-hero);
  font-size: 18px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.search-result-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--brown);
}

.search-highlight {
  background: #FFEBB7;
  color: #5C3B1E;
  border-radius: 2px;
  padding: 0 2px;
}

.search-no-results {
  text-align: center;
  padding: 100px 20px;
  color: var(--text-muted);
  width: 100%;
}

.search-no-results i {
  font-size: 56px;
  margin-bottom: 24px;
  opacity: 0.2;
  display: block;
}

.search-close-btn {
  position: absolute;
  top: 32px;
  right: 5%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.recent-searches {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
}

.recent-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-tag {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--brown);
  cursor: pointer;
  transition: var(--transition);
}

.recent-tag:hover {
  border-color: var(--blush);
  background: var(--blush);
  color: #fff;
}

@media (max-width: 768px) {
  .search-overlay { padding-top: 80px; }
  .search-results-grid { grid-template-columns: 1fr; }
  .search-close-btn { top: 20px; right: 20px; width: 36px; height: 36px; }
}


/* ========== HERO SLIDER ========== */
.hero { padding: 100px 5% 40px; }
.home-slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  overflow: hidden;
  background: var(--cream-dark);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(92, 59, 30, 0.1);
}
.slide-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
.slide.active {
  opacity: 1;
  visibility: visible;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Anti-magnetic i-dot system */
.hero-i-wrap {
  display: inline-block;
  position: relative;
}



/* ========== SECTIONS ========== */
section { padding: 80px 5%; }
.section-tag { display: inline-block; background: var(--blush); color: var(--brown); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 16px; border-radius: var(--radius-full); margin-bottom: 16px; }
.section-title { font-family: var(--font-hero); font-size: clamp(28px, 4vw, 48px); color: var(--brown); margin-bottom: 16px; line-height: 1.2; }
.section-sub { color: var(--text-muted); font-size: 16px; line-height: 1.7; max-width: 560px; }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }

/* ========== CATEGORIES ========== */
.categories { background: transparent; margin-top: -1px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-radius 0.8s var(--ease); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-radius: 32px; }
.cat-card-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.cat-icon { font-size: 48px; margin-bottom: 16px; }
.cat-name { font-family: var(--font-hero); font-size: 20px; color: var(--brown); font-weight: 600; text-align: center; }
.cat-cta { font-size: 13px; color: var(--brown-light); margin-top: 8px; opacity: 0; transform: translateY(8px); transition: var(--transition); }
.cat-card:hover .cat-cta { opacity: 1; transform: translateY(0); }
.cat-c1 { background: linear-gradient(135deg, #FFF0DB, #FFD89B); }
.cat-c2 { background: linear-gradient(135deg, #F5E8D3, #E8C9A0); }
.cat-c3 { background: linear-gradient(135deg, #EFDCDC, #F5B8B8); }
.cat-c4 { background: linear-gradient(135deg, #DCE8F0, #B8D5E8); }
.cat-c5 { background: linear-gradient(135deg, #E2EDDB, #B8DCA8); }
.cat-c6 { background: linear-gradient(135deg, #EDE0F5, #D4B8E8); }

/* ========== HANDWRITTEN UNDERLINE ========== */
.handwritten-underline {
  position: relative;
  display: inline-block;
  color: var(--brown);
}
.handwritten-underline::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -8px;
  height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'><path d='M2 10 C 40 2, 90 14, 150 8 S 260 14, 298 6' stroke='%23946846' stroke-width='3' stroke-linecap='round' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.reveal.visible .handwritten-underline::after,
.handwritten-underline.draw::after {
  background-size: 100% 100%;
}

/* ========== PRODUCTS ========== */
.products-section { background: transparent; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; background: #F8F6F4; border-radius: 24px; overflow: hidden; transition: border-radius 0.8s var(--ease), box-shadow 0.4s var(--ease); }
.product-card:hover .product-image { border-radius: 32px; box-shadow: var(--shadow); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--brown); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); }
.product-info { padding: 16px 16px 16px 16px; }
.product-name { font-family: var(--font-hero); font-size: 18px; font-weight: 600; color: var(--brown); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; text-transform: capitalize; }
.product-tags-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.product-tag-chip {
  font-size: 10px; padding: 2px 9px; border-radius: 999px;
  background: var(--cream-dark); color: var(--text-muted); font-weight: 500;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { font-size: 17px; font-weight: 700; color: var(--brown); margin-bottom: 0; }
.btn-order { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brown); color: #fff; padding: 10px 18px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; transition: var(--transition); border: none; cursor: pointer; text-decoration: none; width: auto; }
.btn-order i { font-size: 17px; }
.btn-order:hover { background: #25D366; transform: scale(1.05); }

/* ========== ABOUT ========== */
.about-section { background: transparent; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap {
  border-radius: 24px; aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blush), var(--caramel));
  background-size: cover; background-position: center top;
  overflow: hidden; position: relative;
}
.about-text .section-title { margin-bottom: 20px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 16px; }
.about-stats { display: flex; gap: 32px; margin: 32px 0; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-hero); font-size: 36px; color: var(--brown); font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ========== NAILS ========== */
.nails-section { background: var(--nails-bg); color: #fff; position: relative; overflow: hidden; }
.nails-bg-img { position: absolute; inset: 0; background-image: url('./assets/nails-bg.png'); background-size: cover; background-position: center; opacity: 0.25; }
.nails-inner { position: relative; z-index: 2; }
.nails-tag { background: rgba(201,116,138,0.3); color: var(--nails-accent); border: 1px solid var(--nails-accent); }
.nails-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nail-card { background: rgba(255,255,255,0.07); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-radius 0.8s var(--ease); }
.nail-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); border-radius: 32px; }
.nail-image { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.nail-info { padding: 16px; }
.nail-name { font-family: var(--font-hero); font-size: 16px; color: #fff; margin-bottom: 4px; }
.nail-price { font-size: 14px; color: var(--nails-gold); font-weight: 700; margin-bottom: 12px; }
.btn-nail { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--nails-accent); color: #fff; padding: 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); }
.btn-nail:hover { background: #25D366; }

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: transparent; overflow: hidden; }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marqueeScroll 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 28px; width: 300px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.t-stars { color: var(--gold); font-size: 16px; margin-bottom: 12px; }
.t-text { font-size: 14px; line-height: 1.7; color: var(--text-muted); font-style: italic; margin-bottom: 16px; }
.t-author { font-weight: 700; color: var(--brown); font-size: 14px; }
.t-occasion { font-size: 12px; color: var(--caramel); }

/* ========== CTA ========== */
.cta-banner { 
  position: relative;
  background: var(--brown); 
  text-align: center; padding: 80px 5%; color: #fff; 
}
.cta-banner h2 { font-family: var(--font-hero); font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 40px; font-size: 16px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-cta-wa { background: #25D366; color: #fff; padding: 16px 36px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-cta-wa:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.4); }
.btn-cta-insta { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); padding: 15px 36px; border-radius: var(--radius-full); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-cta-insta:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ========== FOOTER ========== */
footer { 
  position: relative;
  background: var(--brown); color: rgba(255,255,255,0.85); padding: 60px 5% 30px; 
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 48px; }
.footer-brand { text-align: left; }
.footer-brand img { height: 64px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.9; margin-left: 0; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 260px; margin-left: 0; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: var(--transition); }
.footer-socials a:hover { background: var(--caramel); border-color: var(--caramel); }
.footer-col h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blush); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul a:hover { color: var(--caramel); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ========== PRODUCT DETAILS PAGE ========== */
.product-details-container {
  padding: 120px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: start;
}

@media (max-width: 968px) {
  .product-details-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
  }
  .product-details-container {
    padding-top: 100px;
  }
  .pd-name { font-size: 32px; text-align: left; width: 100%; }
  .pd-price { text-align: left; width: 100%; }
  .pd-long-desc { text-align: left; max-width: 100%; }
  .pd-actions { text-align: left; width: 100%; }
}

.product-media-gallery {
  position: relative;
  width: 100%;
}

.pd-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.media-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.media-slider::-webkit-scrollbar { display: none; }

.media-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: transparent;
}

.media-slide img, .media-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blush);
  transition: var(--transition);
  cursor: pointer;
}

.dot.active {
  background: var(--brown);
  transform: scale(1.4);
}

.product-main-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}



/* Accent Brown Tag Style */
.product-badge {
  background: var(--blush);
  color: var(--brown);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pd-name {
  font-family: var(--font-hero);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--brown);
  margin-bottom: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.pd-price {
  font-size: 24px;
  font-weight: 500;
  color: var(--brown-light);
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.pd-price::before { display: none; }

.pd-description-section {
  padding-top: 0;
  margin-bottom: 40px;
}

.pd-section-title {
  display: none; /* Hide 'Description' label like reference */
}

.pd-long-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-line;
  max-width: 600px;
}

.pd-actions {
  margin-top: 20px;
}

.btn-pd-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--brown);
  color: #fff;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-pd-order:hover {
  background: #25D366; /* Green on hover as requested */
  transform: translateY(-2px);
}

.related-section {
  padding: 60px 5% 80px;
  background: transparent;
  border-top: 1px solid var(--cream-dark);
}

.related-section .section-title {
  font-family: var(--font-hero);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brown);
  text-align: left;
  margin-bottom: 32px;
}

.related-section .products-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

#relatedProducts {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 20px !important;
}

@media (max-width: 768px) {
  .related-section {
    padding: 40px 12px 60px;
  }
  #relatedProducts {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 0;
  }
}



/* ========== WHATSAPP FLOAT ========== */
.wa-float { position: fixed; bottom: 28px; right: 28px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; box-shadow: 0 6px 24px rgba(37,211,102,0.5); z-index: 999; transition: var(--transition); animation: pulseWa 2.5s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.1); animation: none; }
@keyframes pulseWa { 0%,100%{ box-shadow: 0 6px 24px rgba(37,211,102,0.5); } 50%{ box-shadow: 0 6px 36px rgba(37,211,102,0.8); } }

/* ========== SCROLL REVEAL ========== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Card pop — scale + rise on scroll into view */
.product-card.reveal { transform: translateY(28px) scale(0.96); }
.product-card.reveal.visible { transform: translateY(0) scale(1); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34,1.56,0.64,1); }

/* Product detail page entrance */
.pd-entering { opacity: 0; transform: translateY(20px); }
.pd-entered  { opacity: 1; transform: translateY(0); transition: opacity 0.5s ease, transform 0.5s ease; }

/* Gallery image pop */
@keyframes mediaPop {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
.media-slide img, .media-slide video {
  animation: mediaPop 0.5s cubic-bezier(0.34,1.4,0.64,1) both;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* Starts transparent */
  z-index: 20000;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.4); /* Darkens */
}

.mobile-menu-container {
  position: absolute;
  top: 14px;
  left: 20px;
  width: calc(100% - 40px);
  max-width: 400px;
  display: flex;
  flex-direction: column;
}



.mobile-menu-header {
  background: var(--brown); /* Brown as requested */
  color: #fff;
  padding: 0 15px;
  height: 40px;
  border-radius: 20px; /* Pill form! */
  display: flex;
  align-items: center;
  justify-content: center; /* Center text! */
  position: relative; /* For absolute close button! */
  width: 40px; /* Starts as a dot/pill */
  overflow: hidden;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s ease;
  white-space: nowrap;
}

.mobile-menu.open .mobile-menu-header {
  width: 100%; /* Expands to full container width */
  border-radius: 20px; /* Stays pill shape */
}

.mobile-menu-close {
  background: rgba(0,0,0,0.3);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #fff;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.menu-title {
  font-weight: 600;
  color: #fff;
  font-size: 16px;
}

.mobile-menu-content {
  width: 100%;
  background: #fff;
  border-radius: 24px;
  margin-top: 10px;
  overflow: hidden;
  max-height: 0; /* Starts closed */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-menu.open .mobile-menu-content {
  max-height: 500px; /* Drops down! */
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  padding: 10px 20px 20px;
}

.mobile-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: background 0.2s;
  font-family: var(--font-sans);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

.mobile-menu-item i {
  color: #aaa;
  font-size: 14px;
}

.menu-title, .mobile-menu-close, .menu-header-center, .menu-header-right {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-menu.open .menu-title, 
.mobile-menu.open .mobile-menu-close, 
.mobile-menu.open .menu-header-center, 
.mobile-menu.open .menu-header-right {
  opacity: 1;
  transition-delay: 0.2s; /* Fade in after expansion starts */
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .nails-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header { padding: 10px 16px; }
  .header.scrolled { padding: 4px 14px; background: rgba(254, 252, 240, 0.9); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: rgba(148, 104, 70, 0.06); }
  .nav-tabs { display: none; }
  .nav-menu-label { display: none; }
  .nav-menu-btn { padding: 8px; }
  .nav-logo img { height: 42px; }
  .header.scrolled .nav-logo img { height: 28px; }
  .header.scrolled .nav-menu-btn,
  .header.scrolled .nav-search-btn { width: 32px; height: 32px; padding: 6px; }
  .header.scrolled .hamburger-icon { width: 16px; height: 16px; }
  .header.scrolled .hamburger-icon span { width: 14px; }
  .nav-search-btn { width: 36px; height: 36px; font-size: 18px; }

  .search-overlay { padding-top: 70px; }
  .search-overlay-input input { padding: 16px 20px 16px 46px; font-size: 16px; }
  .search-results-grid { grid-template-columns: 1fr; }
  .search-close-btn { top: 16px; right: 16px; width: 36px; height: 36px; }

  .hero { padding: 76px 16px 24px; }
  .home-slider { aspect-ratio: 16 / 9; border-radius: 20px; max-height: none; }
  .section-header { margin-bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { aspect-ratio: 3/2; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  section { padding: 60px 5%; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .related-section { padding: 40px 16px 60px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .nails-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nails-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* Custom Web Menu Dropdown */
.custom-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.3s var(--ease);
}

.custom-menu-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-menu-content {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(92, 59, 30, 0.18);
  max-height: 0;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-menu-dropdown.open .custom-menu-content {
  max-height: 500px;
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid #f4eee5;
  opacity: 0;
  border-radius: 10px;
  transition: background 0.2s ease, padding 0.2s ease;
}

.custom-menu-dropdown.open .menu-item {
  animation: dropDown 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; /* Even Slower! */
}

@keyframes dropDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item span {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s, opacity 0.3s ease;
}

.menu-item:hover {
  background: var(--cream);
  border-radius: 12px;
}

.menu-list:hover .menu-item {
  opacity: 0.5 !important;
}
.menu-list:hover .menu-item:hover {
  opacity: 1 !important;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item i {
  color: #aaa;
  font-size: 14px;
}

.menu-footer {
  margin-top: 20px;
  text-align: center;
}

.btn-shop-all {
  display: inline-block;
  background: var(--cream);
  color: var(--brown);
  padding: 14px 30px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: var(--transition);
  transition: background 0.2s;
}

.btn-shop-all:hover {
  background: var(--brown);
  color: #fff;
}

