/* ===== Deal Section ===== */
.deal-section {
  padding: 50px 20px;
  background: #fafafa;
}

.deal-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #222;
}

/* 2 equal cards per row (desktop default) */
.deal-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Deal Card with background image */
/* Deal Card */
.deal-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background: #000; /* fallback */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Background image covers whole card */
.deal-card .deal-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}

.deal-card:hover .deal-image {
  transform: scale(1.05);
}

/* Dark overlay for readability */
.deal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 2;
}

/* Text content on top */
.deal-text {
  position: relative;
  z-index: 3;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 25px
}

.deal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: -10px;
  color: #fff;
}

.deal-desc {
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 100%;
  color: #eee;
}

/* CTA button */
.deal-btn {
  padding: 12px 22px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.deal-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}





/* Price tag in top-right */
.deal-price {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4c4c;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 4; /* above overlay and image */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .deal-container {
    grid-template-columns: repeat(2, 1fr); /* keep 2 per row on mobile */
    gap: 16px;
  }

  .deal-card {
    height: 160px; /* slightly shorter on mobile */
  }

  .deal-title {
    font-size: 0.8rem;
  }
  .deal-desc {
    font-size: 0.7rem;
  }

  /* CTA button */
  .deal-btn {
    padding: 9px 12px;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 0.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }


  .deal-price {
    position: absolute;
    top: 9px;
    right: 8px;
    background: #ff4c4c;
    color: #fff;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 4; /* above overlay and image */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .deal-section {
    padding: 50px 20px;
    background: #fafafa;
    margin-top: -30px;
  }

  .deal-banner-content {
    padding: 22px 16px;
  }


}

/* Text block */
.deal-banner-content {
  position: relative;
  z-index: 2;                     /* above overlay */
  max-width: 900px;
  width: min(92vw, 900px);
  text-align: center;
  color: #fff;
  padding: 28px 20px;
  margin: 0 auto;
}





/* ===============================
   Deal Main Banner
=================================*/
.deal-main-banner {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  background: #f5f5f5;
  overflow: hidden;
}

.deal-main-banner .deal-banner-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #fff;
  padding: 40px 20px;
  margin: 0 auto;        /* ensure centered horizontally */
}


.deal-main-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.deal-main-banner h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: #f9f9f9;
}

.deal-main-banner p {
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #eaeaea;
}

.deal-main-banner .btn-primary {
  padding: 12px 24px;
  background: #111;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.deal-main-banner .btn-primary:hover {
  background: #444;
}

/* Background image */
.deal-main-banner.has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay for readability */
.deal-main-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .deal-main-banner {
    min-height: 250px;
  }
  .deal-main-banner h1 {
    font-size: 1.6rem;
  }
  .deal-main-banner h2 {
    font-size: 1.2rem;
  }
  .deal-main-banner p {
    font-size: 0.95rem;
  }
}





/* Keep header/nav above the deal banner (if not already set) */
header, .site-header, .main-nav, .navbar, .topbar {
  position: relative;
  z-index: 1000;
}

/* Deal banner sits under the header */
.deal-main-banner {
  position: relative;   /* already present */
  z-index: 0;           /* below header/menu */
}

/* Overlay shouldn't block dropdown clicks */
.deal-main-banner::before {
  z-index: 1;
  pointer-events: none; /* let pointer events pass through */
}

/* Banner text above its own overlay but still below header */
.deal-main-banner .deal-banner-content {
  position: relative;
  z-index: 2;
}

/* Ensure dropdowns stack above everything in the banner area */
.dropdown-content,
.user-menu,
.user-menu .user-menu-dropdown {
  position: absolute;
  z-index: 1100;
}

/* In case a parent was clipping the dropdown */
.navbar, .nav-links, .user-menu-wrap {
  overflow: visible;
}





/* ───────── Contemporary Deal Modal ───────── */
.deal-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;             /* toggle via .open */
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  padding: 20px;
}

.deal-modal-overlay.open { display: flex; }

.deal-modal {
  width: 100%;
  max-width: 820px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  animation: dealPop .26s ease forwards;
}

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

/* Hero */
.deal-modal-hero {
  position: relative;
  min-height: 200px;
  background: #111 center/cover no-repeat;
  display: grid;
  align-items: end;
}

.deal-modal-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}

.deal-hero-content {
  position: relative; z-index: 2;
  padding: 20px 22px;
  color: #fff;
}

#dealHeroTitle {
  margin: 0 0 8px 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .2px;
}

#dealHeroSub {
  margin: 0;
  opacity: .92;
  font-size: .98rem;
}

/* Close pill */
.deal-modal-close {
  position: absolute;
  top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 20px;
  line-height: 0;
  display: inline-grid; place-items: center;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.deal-modal-close:hover { transform: scale(1.05); background: rgba(0,0,0,.5); }

/* Body */
.deal-modal-body {
  padding: 18px 20px 4px;
}

/* Products grid */
.deal-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.deal-product-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #eef0f3;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none; color: #16181d;
}

.deal-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 20, 30, .08);
  border-color: #e6eaf0;
}

.deal-product-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f4f7;
  border: 1px solid #eef0f3;
}

.deal-product-title {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}

.deal-product-price {
  font-size: .92rem;
  color: #4a5568;
}

/* Footer */
.deal-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef0f3;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.deal-btn {
  appearance: none; border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700; letter-spacing: .2px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .2s ease, background .2s ease;
}

.deal-btn-primary {
  background: #111; color: #fff;
  box-shadow: 0 8px 22px rgba(20,20,30,.15);
}
.deal-btn-primary:hover { transform: translateY(-1px); background: #000; }

.deal-btn-secondary {
  background: #fff; color: #111; border: 1px solid #e6eaf0;
}
.deal-btn-secondary:hover { background: #f7f8fa; }
