[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

/* Signature: thin red rule with corner ticks and a centered title,
   used between homepage sections instead of a heavy decorative divider. */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.section-divider .rule {
  flex: 1;
  height: 1px;
  background: #e21f26;
  position: relative;
}
.section-divider .tick {
  width: 1px;
  height: 14px;
  background: #e21f26;
  flex: none;
}
.section-divider h2 {
  white-space: nowrap;
  flex: none;
}

/* Hero backdrop: soft, flat, no heavy gradients */
.hero-panel {
  background: #f7f7f7;
}

/* Price ticker pulse */
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.live-dot { animation: pulseDot 1.6s ease-in-out infinite; }

/* Carousel-style pagination dots under the hero */
.hero-dots span {
  display: inline-block;
  height: 6px;
  width: 6px;
  border-radius: 999px;
  background: #e3d3d3;
  transition: width .25s ease, background .25s ease;
}
.hero-dots span.active {
  width: 22px;
  background: #e21f26;
}

/* Card lift */
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-6px); }

/* Number input arrows removed for a cleaner qty stepper */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin:0; }
input[type=number] { -moz-appearance: textfield; }

::selection { background: #fad6d6; }

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #e21f26; border-radius: 8px; }

/* Mobile hero alignment: keep the copy on the empty white side of the hero image without covering the saffron bowl. */
@media (max-width: 1023px) {
  .home-hero {
    min-height: 400px;
    background: #fff;
  }
  .home-hero .hero-image-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: #fff;
  }
  .home-hero .hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }
  .home-hero .hero-inner {
    min-height: 400px;
    position: relative;
  }
  .home-hero .hero-copy {
    width: min(46%, 300px);
    margin-right: auto;
    margin-left: 0;
    padding: 42px 12px 0 10px;
    text-align: center;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(1.28rem, 5.9vw, 1.82rem);
    line-height: 1.34;
    max-width: 100%;
  }
  .home-hero .hero-copy p {
    max-width: 100%;
    font-size: clamp(.7rem, 2.45vw, .84rem);
    line-height: 1.82;
    margin-top: .64rem;
  }
  .home-hero .hero-actions {
    margin-top: .72rem;
    gap: .5rem;
    align-items: center;
  }
  .home-hero .hero-actions a {
    width: min(176px, 45vw);
    min-width: 0;
    justify-content: space-between;
    white-space: nowrap;
    font-size: .76rem;
    padding: .34rem .72rem .34rem .32rem;
    gap: .42rem;
  }
  .home-hero .hero-actions a > span:last-child {
    width: 1.68rem;
    height: 1.68rem;
    flex: 0 0 1.68rem;
  }
  .home-hero .hero-actions a svg {
    width: .78rem;
    height: .78rem;
  }
  .home-hero .hero-dots {
    margin-top: .9rem;
    justify-content: center;
  }
  .home-hero + section {
    padding-top: .5rem !important;
  }
}

@media (max-width: 420px) {
  .home-hero {
    min-height: 365px;
  }
  .home-hero .hero-inner {
    min-height: 365px;
  }
  .home-hero .hero-copy {
    width: 47%;
    padding-top: 34px;
    padding-right: 9px;
    padding-left: 8px;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(1.08rem, 5.38vw, 1.42rem);
    line-height: 1.34;
  }
  .home-hero .hero-copy p {
    font-size: .64rem;
    line-height: 1.7;
    margin-top: .48rem;
  }
  .home-hero .hero-actions {
    margin-top: .62rem;
    gap: .42rem;
  }
  .home-hero .hero-actions a {
    width: min(150px, 43vw);
    font-size: .66rem;
    padding-top: .28rem;
    padding-bottom: .28rem;
    padding-right: .58rem;
    padding-left: .25rem;
  }
  .home-hero .hero-actions a > span:last-child {
    width: 1.46rem;
    height: 1.46rem;
    flex-basis: 1.46rem;
  }
  .home-hero .hero-dots {
    margin-top: .72rem;
  }
  .home-hero + section {
    padding-top: .25rem !important;
  }
}

/* Mobile trust cards: show the four "why us" cards as a compact 2x2 grid. */
@media (max-width: 639px) {
  .home-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .home-trust-card {
    padding: 1rem .55rem;
    border-radius: 1.1rem;
  }
  .home-trust-icon {
    width: 2.55rem;
    height: 2.55rem;
    margin-bottom: .7rem;
  }
  .home-trust-icon svg {
    width: 1.15rem;
    height: 1.15rem;
  }
  .home-trust-card h3 {
    font-size: .86rem;
    line-height: 1.6;
  }
  .home-trust-card p {
    font-size: .72rem;
    line-height: 1.7;
    margin-top: .18rem;
  }
}


/* Featured products carousel: one product is visible; users can swipe/drag left and right, and it auto-advances every 10 seconds. */
.featured-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.featured-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin-top: 1rem;
}
.featured-carousel-btn {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid #f1d6d6;
  background: rgba(255,255,255,.95);
  color: #7a0c10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px -18px rgba(122, 12, 16, .45);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.featured-carousel-btn:hover {
  background: #7a0c10;
  color: #fff;
  box-shadow: 0 14px 32px -18px rgba(122, 12, 16, .58);
}
.featured-carousel-btn:active {
  transform: scale(.97);
}
.featured-carousel-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.featured-carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  direction: ltr;
  touch-action: pan-y;
}
.featured-carousel-track::-webkit-scrollbar {
  display: none;
}
.featured-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}
.featured-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  padding: 0 2px;
}
.featured-product-card {
  width: min(100%, 620px);
}
.featured-product-card:hover {
  box-shadow: 0 18px 48px -22px rgba(122, 12, 16, .32);
}

@media (max-width: 639px) {
  .featured-products-section {
    padding-top: 1.75rem;
    padding-bottom: 2.75rem;
  }
  .featured-products-section .section-divider {
    margin-bottom: 2rem;
  }
  .featured-carousel {
    max-width: 100%;
  }
  .featured-carousel-controls {
    gap: .7rem;
    margin-top: .85rem;
  }
  .featured-carousel-btn {
    width: 2.4rem;
    height: 2.4rem;
  }
  .featured-carousel-btn svg {
    width: 1rem;
    height: 1rem;
  }
  .featured-slide {
    padding: 0 0.05rem;
  }
  .featured-product-card {
    width: 100%;
  }
}


/* Product image rendering fix for iPhone/Safari:
   use explicit width/height and min-width:0 so product photos never get clipped. */
.product-card-media,
.featured-product-media {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.product-card-image,
.featured-product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

@supports (-webkit-touch-callout: none) {
  .product-card-media,
  .featured-product-media {
    padding: 1rem;
  }

  .product-card-image,
  .featured-product-image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .product-card-media,
  .featured-product-media {
    padding: 1rem;
  }

  .product-card-image,
  .featured-product-image {
    min-width: 0;
  }
}
