/* =====================================================
   PATCH UI – Cakeschahiye
   (Safe overrides only)
===================================================== */

/* =============================
   OFFER SLIDER (HOME PAGE)
============================= */

.offer-slider {
  padding: 40px 0;
  background: #fff5ef;
  overflow: hidden;
}

.offer-slider h2 {
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #5a1f1f;
}

/* wrapper */
.offer-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

/* track */
.offer-track {
  display: flex;
  gap: 16px;
  align-items: stretch;
  will-change: transform;
}

/* individual card */
.offer-card {
  flex: 0 0 220px;            /* 👈 FIXED WIDTH */
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.offer-card:hover {
  transform: translateY(-6px);
}

/* image */
.offer-card img {
  width: 100%;
  height: 140px;              /* 👈 FIX IMAGE SIZE */
  object-fit: cover;
  border-radius: 10px;
}

/* text */
.offer-text {
  margin-top: 8px;
  text-align: center;
}

.offer-text strong {
  display: block;
  font-size: 0.95rem;
  color: #4b1f1f;
}

.offer-text p {
  font-size: 0.85rem;
  color: #7a4a4a;
  margin: 2px 0 0;
}

/* =============================
   PRODUCT CARD – SAFE FIX
============================= */

.product-card {
  position: relative;
  overflow: hidden;
}

/* remove pink full overlay issue */
.product-card .btn-primary {
  position: static;
  margin-top: 10px;
}

/* =============================
   CART ICON (HEADER)
============================= */

.cart-icon {
  position: relative;
  margin-left: 12px;
  cursor: pointer;
}

.cart-icon span {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e45b8a;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* ================================
   HERO FIX — PAGE SPECIFIC
================================ */

/* ❌ REMOVE ANY GLOBAL .hero BACKGROUND EFFECT */
.hero {
  background: none;
}

/* ==============================
   HERO – GLOBAL BASE
============================== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
}

/* ==============================
   HOME PAGE HERO – FULL CLARITY
============================== */
.page-home .hero {
  position: relative;
  background: url("/public/images/hero/hero-cartoon.png") center/cover no-repeat;
}

/* soft overlay ONLY behind text, not image */
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.65) 40%,
    rgba(255, 255, 255, 0.25) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 0;
}

.page-home .hero > * {
  position: relative;
  z-index: 1;
}

/* ==============================
   PRODUCTS PAGE HERO (RESTORED)
============================== */
.page-products .hero {
  background:
    radial-gradient(circle at right, rgba(255, 182, 193, 0.35), transparent 55%),
    linear-gradient(135deg, #fff7f9, #fdecef);
}

/* ==============================
   HERO CONTENT
============================== */
.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #3a1d1d;
}

.hero-content p {
  font-size: 1.15rem;
  color: #6b4b4b;
}

/* ==============================
   MOBILE FIX
============================== */
@media (max-width: 768px) {
  .hero {
    min-height: 320px;
    text-align: center;
  }
}
