:root {
  --pink-50: #fff6fb;
  --pink-100: #ffe5f2;
  --pink-200: #f9c9e4;
  --pink-300: #f2a9d4;
  --pink-400: #e88fc5;
  --ink-900: #16141c;
  --ink-800: #262231;
  --ink-700: #3a3448;
  --cream: #fff9f5;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px rgba(22, 20, 28, 0.2);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink-900);
  background: var(--pink-50);
  line-height: 1.6;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #fbe2f1 0%, transparent 60%),
    radial-gradient(circle at 70% 10%, #ffdce9 0%, transparent 45%),
    linear-gradient(130deg, #fff6fb 0%, #fef0f7 45%, #fff9f5 100%);
  z-index: -2;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 10% 5% 15% 40%;
  border-radius: 48% 52% 60% 40%;
  background: rgba(255, 255, 255, 0.6);
  filter: blur(10px);
  z-index: -1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6vw;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1f1626;
}

.brand-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--ink-700);
  cursor: pointer;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--ink-900);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pill-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(22, 20, 28, 0.2);
}

.pill-btn.ghost {
  background: transparent;
  border: 1px solid rgba(22, 20, 28, 0.2);
  color: var(--ink-900);
  box-shadow: none;
}

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

.cart-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--pink-300);
  color: var(--ink-900);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cart-count {
  background: var(--ink-900);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

main {
  padding: 20px 6vw 80px;
}

.hero {
  display: grid;
  gap: 14px;
  padding: 12px 0 52px;
}

.hero-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 20, 28, 0.08);
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  width: 100%;
}

.marquee-track {
  flex-shrink: 0;
  min-width: 100%;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink-800);
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.hero-track {
  position: relative;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(22, 20, 28, 0.5) 8%, rgba(22, 20, 28, 0.1) 64%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: clamp(26px, 5vw, 56px);
  width: min(680px, 100%);
}

.hero-overlay h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero-cta {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 10px 30px rgba(22, 20, 28, 0.25);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-900);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}

.hero-nav.prev {
  left: 16px;
}

.hero-nav.next {
  right: 16px;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(22, 20, 28, 0.25);
  cursor: pointer;
}

.hero-dot.active {
  width: 18px;
  background: var(--ink-900);
}

.hero-counter {
  font-size: 0.9rem;
  color: var(--ink-800);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  font-size: 0.75rem;
  color: var(--ink-700);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-header h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-sub {
  max-width: 420px;
  color: var(--ink-700);
}

.collections {
  margin-bottom: 80px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 26px;
}

.filter-btn {
  border: 1px solid rgba(22, 20, 28, 0.16);
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink-900);
  color: #fff;
  border-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--glass);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 360px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.product-image {
  background: #fff;
  border-radius: var(--radius-sm);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  color: var(--ink-700);
  font-size: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 20, 28, 0.2);
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(22, 20, 28, 0.25);
  cursor: pointer;
}

.carousel-dot.active {
  width: 16px;
  background: var(--ink-900);
}

.product-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-700);
}

.product-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: var(--ink-900);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.out-of-stock-badge {
  background: #c0392b;
}

.out-of-stock-img {
  filter: grayscale(60%);
  opacity: 0.85;
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-card p {
  color: var(--ink-700);
  font-size: 0.95rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
}

.add-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(22, 20, 28, 0.2);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.price-row {
  position: relative;
  z-index: 2;
}

@media (hover: hover) {
  .add-btn:hover {
    background: var(--ink-900);
    color: #fff;
  }

  .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 70px rgba(22, 20, 28, 0.25);
  }

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

.feature-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  background: rgba(255, 255, 255, 0.72);
  padding: 50px;
  border-radius: var(--radius-lg);
  margin-bottom: 80px;
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  margin: 20px 0 28px;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  width: fit-content;
}

.feature-card {
  background: linear-gradient(140deg, #f2a9d4 0%, #fbd8ea 50%, #fff 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

.feature-card h3 {
  font-size: 1.6rem;
  font-family: "Fraunces", serif;
}

.feature-pill {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--ink-900);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.about {
  margin-bottom: 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.about-card {
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.contact {
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea,
.modal-card input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 20, 28, 0.15);
  font-family: inherit;
  font-size: 16px;
  /* Prevents auto-zoom on iOS */
}

.site-footer {
  padding: 30px 6vw 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(22, 20, 28, 0.08);
  font-size: 0.9rem;
  color: var(--ink-700);
}

.dev-credit {
  opacity: 0.78;
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal.active .modal-card {
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-card {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  width: min(420px, 92vw);
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  /* Prevents card from going off screen vertically */
  overflow-y: auto;
  /* Enables inner scroll if content is long */
}

.cart-card,
.payment-card {
  width: min(520px, 92vw);
}

.product-detail-card {
  width: min(920px, 94vw);
  padding: 26px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-image-wrap {
  background: #fff;
  border: 1px solid rgba(22, 20, 28, 0.08);
  border-radius: var(--radius-md);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.24s ease;
}

.detail-image.zoomed {
  transform: scale(1.55);
  cursor: zoom-out;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 8px;
}

.detail-thumb {
  border: 1px solid rgba(22, 20, 28, 0.15);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  height: 74px;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumb.active {
  border-color: var(--ink-900);
}

.detail-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.detail-copy h3 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.detail-copy p {
  color: var(--ink-700);
}

.detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
}

.modal-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.modal-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.modal-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-700);
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 1.6rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  display: grid;
  gap: 16px;
  margin: 18px 0;
  max-height: 240px;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(22, 20, 28, 0.08);
  padding-bottom: 12px;
}

.cart-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.qty-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.qty-controls button {
  border: none;
  background: var(--pink-200);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin: 16px 0 20px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
}

.cart-summary .total {
  font-weight: 700;
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 4vw;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .brand-tag {
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    margin-top: 16px;
    padding-bottom: 4px;
    gap: 16px;
    scrollbar-width: none;
    /* Firefox */
  }

  .nav-links::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
  }

  .header-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
  }

  .header-actions .pill-btn,
  .header-actions .cart-btn {
    padding: 10px 14px;
    font-size: 0.95rem;
    min-height: 44px;
    /* Better touch target */
  }

  main {
    padding: 12px 4vw 64px;
  }

  .hero {
    gap: 24px;
    padding: 24px 0 44px;
  }

  .hero-carousel {
    min-height: 460px;
  }

  .hero-overlay h1 {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .feature-band {
    padding: 34px 26px;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .site-header {
    row-gap: 10px;
    padding: 12px 4vw;
  }

  .brand {
    padding: 0;
  }

  .brand-name {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .brand-tag {
    font-size: 0.55rem;
    letter-spacing: 0.06rem;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .pill-btn,
  .header-actions .cart-btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-height: 38px;
    /* Better touch target */
  }

  .cart-count {
    padding: 1px 7px;
    font-size: 0.7rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-top: 16px;
    gap: 16px;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .category-filters {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card {
    min-height: auto;
  }

  .product-image {
    height: 160px;
  }

  .hero-carousel {
    min-height: 420px;
  }

  .hero-nav {
    width: 36px;
    height: 36px;
  }

  .hero-controls {
    justify-content: space-between;
    padding: 10px 12px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }

  .product-tag {
    font-size: 0.65rem;
    left: 10px;
    bottom: 10px;
  }

  .product-badge {
    font-size: 0.65rem;
    right: 10px;
    top: 10px;
  }

  .feature-band,
  .contact {
    padding: 30px 24px;
  }

  .product-detail-card {
    width: min(92vw, 560px);
    /* Leave small gap for tap-to-close */
    padding: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-image-wrap {
    min-height: 280px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Floating WhatsApp FAB ── */
.fab-whatsapp {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 20;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.fab-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55);
}

.fab-whatsapp::after {
  content: "Chat";
  position: absolute;
  top: -32px;
  background: var(--ink-900);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.fab-whatsapp:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: var(--ink-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 20, 28, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--ink-800);
  transform: translateY(-2px);
}

/* ── Product Card Hover Glow ── */
.product-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--pink-300), var(--pink-100), transparent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
}

.product-card {
  position: relative;
}

@media (hover: hover) {
  .product-card:hover::before {
    opacity: 1;
  }
}

/* ── Nav Link Underline Animation ── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--pink-400);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Hero Slide Cross-fade instead of cut ── */
.hero-slide {
  transition: opacity 0.6s ease;
  opacity: 0;
  display: block !important;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile FAB adjustments ── */
@media (max-width: 600px) {
  .fab-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 20px;
    left: 20px;
  }

  .fab-whatsapp::after {
    display: none;
  }

  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }

  .toast {
    top: 16px;
    right: 16px;
    left: 16px;
    text-align: center;
    border-radius: 16px;
  }
}

/* ── Mobile App Redesign (Option 1) ── */

/* Hidden on Desktop */
.mobile-bottom-nav,
.mobile-search-container,
.mobile-category-grid,
.mobile-delivery-location {
  display: none;
}

@media (max-width: 900px) {

  /* Blend header into page background */
  .site-header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: relative;
    /* Removes sticky nature so it scrolls up naturally */
    padding-bottom: 0;
  }

  /* Delivery Location Widget */
  .mobile-delivery-location {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-left: auto;
  }

  .delivery-label {
    color: var(--ink-700);
    font-weight: 500;
  }

  .delivery-city {
    font-weight: 800;
    color: var(--pink-400);
  }

  /* Hide the old complex header actions and nav links */
  .header-actions {
    display: none;
  }

  .nav-links {
    display: none;
  }

  /* Adjust body padding for bottom nav */
  body {
    padding-bottom: 70px;
  }

  /* Bottom Navigation Bar */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    flex: 1;
    height: 100%;
    transition: color 0.2s;
  }

  .bottom-nav-item svg {
    margin-bottom: 4px;
    transition: transform 0.2s;
  }

  .bottom-nav-item.active {
    color: var(--pink-400);
  }

  .bottom-nav-item.active svg {
    transform: translateY(-2px);
  }

  .cart-icon-wrapper {
    position: relative;
  }

  .mobile-cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--pink-400);
    color: #fff;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
  }

  /* Mobile Search Bar */
  .mobile-search-container {
    display: block;
    padding: 10px 4vw 0;
    margin-bottom: -10px;
  }

  .search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
  }

  .search-bar .search-icon {
    color: var(--gray);
    margin-right: 12px;
  }

  .search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink-900);
    background: transparent;
  }

  .search-bar input::placeholder {
    color: var(--gray);
  }

  .search-bar .mic-icon {
    color: var(--pink-400);
    margin-left: 12px;
  }

  /* Mobile Category Grid (Squircle Tiles) */
  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 24px 4vw;
    margin-top: 10px;
  }

  .category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--ink-900);
    gap: 8px;
  }

  .tile-image-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .category-tile span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
  }

  /* FAB adjustments to not overlap bottom nav */
  .fab-whatsapp {
    bottom: 80px;
  }

  .back-to-top {
    bottom: 80px;
  }
}

@media (max-width: 600px) {
  .tile-image-wrapper {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 360px) {
  .tile-image-wrapper {
    width: 50px;
    height: 50px;
  }

  .category-tile span {
    font-size: 0.65rem;
  }
}
