/* =========================================================
   Abu Khaled Sweets — Homepage (index.css)
   Mobile-first. ~90% of visitors are on phones, so every rule
   below is written for small screens first; desktop refinements
   are layered on top inside min-width queries.
   Header / side-drawer styling lives in header.css — this file
   intentionally does NOT redeclare those selectors anymore.
   ========================================================= */

[hidden] { display: none !important; }
* { box-sizing: border-box; }

:root {
  --panel-shadow: 0 14px 30px rgba(74, 41, 21, 0.1);
  --card-shadow: 0 10px 22px rgba(77, 46, 24, 0.11);
  --active-green: #9fcc84;
  --sweet-glow: 0 18px 40px rgba(176, 80, 36, 0.22);
}

body {
  background: radial-gradient(circle at 85% -10%, #fff2dc 0, var(--bg) 36%, #f3ece4 100%);
}

.container { width: min(1280px, 94vw); margin: 0 auto; }

/* ---------------------------------------------------------
   HERO — big, appetizing, fluid height so it never dominates
   a small phone screen but still feels grand on desktop.
   --------------------------------------------------------- */
.hero-section {
  padding: 10px 0 18px;
  background: linear-gradient(to bottom, var(--surface-soft), #fff);
}

.hero-carousel {
  position: relative;
  height: clamp(230px, 58vw, 460px);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--beige), #f0e4d7);
  border: 1px solid #e3cfba;
  box-shadow: var(--sweet-glow);
}

.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease, transform 8s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide.active img { transform: scale(1.06); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,10,5,0.78) 0%, rgba(20,10,5,0.28) 42%, rgba(20,10,5,0.02) 70%);
}

.hero-content {
  position: absolute;
  inset: auto 16px 16px 16px;
  color: #fff;
}

.hero-content h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 5vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-content p {
  margin: 0 0 12px;
  font-size: clamp(12.5px, 2.6vw, 17px);
  max-width: 560px;
  color: #f4e9dd;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-content a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #2a1408;
  background: linear-gradient(135deg, #ffd28a, var(--gold));
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}
.hero-content a::after { content: "←"; font-weight: 900; }
.hero-content a:hover { text-decoration: none; }

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(25,15,10,0.32);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.hero-nav.prev { right: 12px; }
.hero-nav.next { left: 12px; }

.hero-dots {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dots button { width: 7px; height: 7px; border: none; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.55); padding: 0; }
.hero-dots button.active { width: 20px; background: var(--gold); }

/* ---------------------------------------------------------
   Quick shortcuts row
   --------------------------------------------------------- */
.home-shortcuts-wrap { padding-bottom: 18px; }

.home-shortcuts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--panel-shadow);
}

.shortcut-pill {
  flex: 1;
  max-width: 220px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
  padding: 11px 12px;
  font-weight: 800;
  font-size: 13.5px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.shortcut-pill:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(74, 41, 21, 0.18); text-decoration: none; }
.shortcut-pill:focus, .shortcut-pill:visited, .shortcut-pill:active { text-decoration: none; }
.products-pill { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); }
.offers-pill { background: linear-gradient(135deg, #c06a33, var(--brand)); }

/* ---------------------------------------------------------
   USP / trust features — icon-first, tappable cards
   --------------------------------------------------------- */
.features {
  background: linear-gradient(120deg, var(--beige), var(--honey));
  padding: 22px 0;
  border-top: 1px solid #ead7c4;
  border-bottom: 1px solid #ead7c4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-card {
  text-align: center;
  background: linear-gradient(180deg, #fffdfb, var(--beige));
  border: 1px solid rgba(214,176,122,0.25);
  border-radius: 16px;
  padding: 14px 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow); }

.feature-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 8px 16px rgba(176, 80, 36, 0.28);
}

.feature-card h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 800; color: var(--brand-strong); }
.feature-card p { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ---------------------------------------------------------
   Shared section head / badge / CTA
   --------------------------------------------------------- */
.section { padding: 30px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  gap: 12px;
}
.section-head.one-line { align-items: center; }
.section-head h2 { margin: 5px 0; font-size: clamp(20px, 4.5vw, 32px); color: #352719; }
.section-head p { margin: 0; color: #756558; font-size: 13.5px; }

.badge {
  background: #ffe6d5;
  color: var(--brand-strong);
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  display: inline-block;
  border: 1px solid #efccaf;
}

.badge.badge-live {
  background: linear-gradient(135deg, #fde3e3, #fbd0d0);
  color: #a3271f;
  border-color: #f3b3b3;
}
.badge.badge-live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e0433a;
  margin-inline-end: 6px;
  animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,67,58,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(224,67,58,0); }
}

.cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Offers section
   --------------------------------------------------------- */
.offers-section { padding-top: 8px; }

/* ---------------------------------------------------------
   Categories — warm circular grid
   --------------------------------------------------------- */
.categories {
  background: linear-gradient(135deg, #b05024, #833a17);
  color: #fff;
  padding: 30px 0;
  text-align: center;
}
.categories h2 { margin: 0 0 6px; font-size: clamp(20px, 4.5vw, 32px); }
.categories p { margin: 0 0 18px; color: #ffe2c8; font-size: 13.5px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.category-card {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.24); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); text-decoration: none; }

.category-img-wrapper {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 8px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: transform 0.3s ease;
}
.category-card:hover .category-img-wrapper { transform: scale(1.06); }
.category-img { width: 100%; height: 100%; object-fit: cover; }
.category-name { font-weight: 800; font-size: 12.5px; text-align: center; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

/* ---------------------------------------------------------
   Offer / product cards (Swiper carousels)
   --------------------------------------------------------- */
.offersCarousel, .productsCarousel { padding: 1rem 0 2.4rem; overflow: hidden; }
.offersCarousel .swiper-slide, .productsCarousel .swiper-slide { height: auto; padding: 6px; }

.offer-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(139, 69, 19, 0.16); text-decoration: none; }
.offer-card img { width: 100%; aspect-ratio: 16/10; object-fit: contain; transition: transform 0.8s ease; }
.offer-card:hover img { transform: scale(1.08); }
.offer-card .content { padding: 1.1rem 1.1rem 1.2rem; flex-grow: 1; display: flex; flex-direction: column; }
.offer-card h3 { font-size: 1.02rem; color: #4a3424; margin: 0 0 0.45rem; font-weight: 800; line-height: 1.4; }
.offer-card .desc {
  font-size: 0.85rem; color: #6d6d6d; margin-bottom: 0.9rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.offer-card .timer-wrap { background: #fdf5e6; border-radius: 12px; padding: 0.65rem; display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1.1rem; border: 1px solid #faebd7; }
.offer-card .timer-item { text-align: center; min-width: 40px; }
.offer-card .timer-val { display: block; font-size: 1.02rem; font-weight: 900; color: #8b4513; }
.offer-card .timer-label { display: block; font-size: 0.58rem; color: #a0522d; text-transform: uppercase; font-weight: bold; }

.offer-card .footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid #f5eee6; }
.offer-card .price-info { display: flex; flex-direction: column; }
.offer-card .current-price { font-size: 1.15rem; font-weight: 900; color: #27ae60; }
.offer-card .old-price { font-size: 0.8rem; color: #b2b2b2; text-decoration: line-through; }
.offer-card .cta-btn { background: linear-gradient(135deg, #8b4513, #5d2e0d); color: white; padding: 0.55rem 1rem; border-radius: 10px; font-size: 0.85rem; font-weight: 700; box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2); }

.offer-card .discount-badge { position: absolute; top: 12px; left: 12px; background: #e74c3c; color: white; padding: 4px 9px; border-radius: 8px; font-weight: 800; font-size: 0.78rem; z-index: 5; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3); }
.offer-type-tag { position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 8px; font-weight: 800; font-size: 0.78rem; z-index: 5; color: white; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }
.type-daily { background: linear-gradient(135deg, #f59e0b, #d97706); }
.type-limited { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.offersCarousel .swiper-button-next, .offersCarousel .swiper-button-prev,
.productsCarousel .swiper-button-next, .productsCarousel .swiper-button-prev {
  color: #8b4513; background: white; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 10;
}
.offersCarousel .swiper-button-next:after, .offersCarousel .swiper-button-prev:after,
.productsCarousel .swiper-button-next:after, .productsCarousel .swiper-button-prev:after { font-size: 0.9rem; font-weight: bold; }
.offersCarousel .swiper-pagination-bullet-active, .productsCarousel .swiper-pagination-bullet-active { background: #8b4513; }

/* ---------------------------------------------------------
   Testimonials
   --------------------------------------------------------- */
.testimonials { padding: 32px 0 36px; background: linear-gradient(135deg, #fff8ef, #fff2e5); text-align: center; }
.testimonials h2 { margin: 8px 0 16px; font-size: clamp(20px, 4.5vw, 30px); color: #352719; }

.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }

.testimonial { background: #fffdfb; border: 1px solid #e6d9cb; border-radius: 16px; padding: 20px 18px; box-shadow: var(--card-shadow); }
.testimonial .stars { color: #f59e0b; margin-bottom: 8px; font-size: 15px; letter-spacing: 2px; }
.testimonial p { margin: 0 0 8px; color: #4b3f35; }
.testimonial strong { color: var(--brand-strong); }

.testimonials-slider-mode .testimonials-grid { grid-template-columns: 1fr; }
.testimonial-active { animation: testimonialFadeIn 0.5s ease; }
@keyframes testimonialFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.testimonial-avatar {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

.testimonial-active p { font-size: 15.5px; line-height: 1.75; font-style: italic; color: #4b3f35; margin: 0 0 14px; }
.testimonial-active strong { font-size: 14.5px; color: var(--brand-strong); display: block; margin-bottom: 16px; }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3cfba; cursor: pointer; border: none; transition: background 0.3s ease, transform 0.2s ease; }
.t-dot.active { background: var(--brand); transform: scale(1.25); }
.t-dot:hover { background: var(--brand-strong); }

/* ---------------------------------------------------------
   Closing WhatsApp / order-now CTA band
   --------------------------------------------------------- */
.order-cta {
  position: relative;
  overflow: hidden;
  padding: 34px 0;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, #ffe6c9 0, transparent 55%),
              linear-gradient(135deg, var(--brand-strong), #5c260f);
  color: #fff;
}
.order-cta .container { position: relative; z-index: 1; }
.order-cta h2 { margin: 0 0 8px; font-size: clamp(20px, 4.5vw, 30px); }
.order-cta p { margin: 0 0 20px; color: #ffe2c8; font-size: 13.5px; max-width: 480px; margin-inline: auto; }

.order-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.order-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 800; font-size: 14px;
  padding: 13px 22px; border-radius: 999px;
  min-height: 46px;
}
.order-cta-btn.whatsapp { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35); }
.order-cta-btn.outline { background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); }
.order-cta-btn:hover { text-decoration: none; transform: translateY(-2px); }

/* =====================================================
   Tablet / Desktop refinements
   ===================================================== */
@media (min-width: 560px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-grid { max-width: 720px; }
}

@media (min-width: 700px) {
  .hero-nav { display: block; }
  .hero-content { inset: auto 32px 30px 32px; }
  .productsCarousel .swiper-slide, .offersCarousel .swiper-slide { padding: 10px; }
}

@media (min-width: 900px) {
  .categories-grid { grid-template-columns: repeat(5, 1fr); }
  .order-cta-actions { gap: 14px; }
}
