/* =========================================================
   TUNISIE TSOWERTY — E-COMMERCE HOMEPAGE
   تصوّرتي تونس
   ========================================================= */

:root {
  --bg: #faf8f5;
  --white: #ffffff;
  --cream: #f5ede3;
  --cream-dark: #eee1d1;

  --text: #38281d;
  --text-soft: #6f5b4b;
  --muted: #927f70;

  --primary: #d97720;
  --primary-dark: #b95e0d;
  --primary-light: #fff0df;

  --green: #20b15a;
  --border: #e8e0d7;

  --shadow-sm: 0 4px 16px rgba(56, 40, 29, 0.06);
  --shadow-md: 0 12px 30px rgba(56, 40, 29, 0.09);
  --shadow-lg: 0 24px 55px rgba(56, 40, 29, 0.13);

  font-family: "Cairo", "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.page-shell {
  min-height: 100vh;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 82px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}


/* BRAND */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  flex-shrink: 0;
}

.brand-mark,
.brand-mark-logo {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  background: var(--primary);
  color: white;

  border-radius: 12px;

  box-shadow: 0 6px 15px rgba(217, 119, 32, 0.2);
}

.brand-mark-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.brand-name {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.brand-ar {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}


/* NAVIGATION */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  flex: 1;
}

.nav-links a {
  position: relative;

  padding: 10px 15px;

  color: var(--text-soft);

  font-size: 0.95rem;
  font-weight: 700;

  border-radius: 10px;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a:first-child {
  color: var(--primary);
}

.nav-links a:first-child::after {
  content: "";

  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 3px;

  height: 2px;

  background: var(--primary);
  border-radius: 999px;
}


/* NAV ACTIONS */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-shrink: 0;
}

.icon-button {
  position: relative;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--white);

  color: var(--text);

  font-size: 1.15rem;

  transition: 0.2s ease;
}

.icon-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.whatsapp-button {
  background: #eaf8ef;
  color: #168c45;

  border: 1px solid #ccebd8;

  font-weight: 800;
}

.whatsapp-button:hover {
  background: #d9f3e3;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  min-height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 12px 22px;

  border-radius: 12px;
  border: 1px solid transparent;

  font-weight: 800;
  font-size: 0.95rem;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.primary {
  background: var(--primary);
  color: white;

  box-shadow: 0 7px 18px rgba(217, 119, 32, 0.18);
}

.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 25px rgba(217, 119, 32, 0.25);
}

.secondary {
  background: white;
  color: var(--text);

  border-color: #cdbfaf;
}

.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}


/* =========================================================
   HERO
   ========================================================= */

/* =========================================
   HERO IMAGE CAROUSEL
========================================= */

.hero-section {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

/* Background container */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;

  opacity: 0;

  transform: scale(1.04);

  transition:
    opacity 1.4s ease-in-out,
    transform 7s ease-out;

  will-change: opacity, transform;
}

/* Active slide */
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Warm readable overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(247, 242, 235, 0.96) 0%,
      rgba(247, 242, 235, 0.82) 25%,
      rgba(247, 242, 235, 0.48) 55%,
      rgba(247, 242, 235, 0.25) 100%
    );

  pointer-events: none;
}

/* Extra bottom fade */
.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 130px;

  background: linear-gradient(
    to top,
    rgba(247, 242, 235, 0.95),
    rgba(247, 242, 235, 0)
  );

  z-index: -1;
  pointer-events: none;
}


/* =========================================
   HERO CONTENT
========================================= */

.hero-content {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 3rem;

  align-items: center;

  min-height: 80vh;
}


/* Text area */

.hero-copy {
  padding: 5rem 0;
  max-width: 720px;
}


/* Small label */

.hero-tag {
  display: inline-flex;
  align-items: center;

  padding: 0.7rem 1.2rem;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.652);
  
  border : 1px solid rgb(217, 119, 32);

  color:  #302217;

  font-weight: 700;

  box-shadow:
    0 8px 25px rgba(61, 48, 36, 0.08);

  backdrop-filter: blur(8px);
}


/* Main title */

.hero-copy h1 {
  margin: 1.5rem 0 0;

  font-size: clamp(
    2.8rem,
    5vw,
    5rem
  );

  line-height: 1.08;

  font-weight: 800;

  color: #302217;

  letter-spacing: -0.04em;

  text-shadow:
    0 2px 12px rgba(255, 255, 255, 0.25);
}


/* Description */

.hero-copy p {
  margin: 1.5rem 0 0;

  max-width: 650px;

  color: #5f4a38;

  font-size: 1.5rem;

  font-family : bold;

  line-height: 1.9;

  font-weight: 500;
  
  
}


/* Buttons */

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  margin-top: 2rem;
}


/* =========================================
   HERO CARD
========================================= */

.hero-banner {
  display: flex;

  align-items: center;

  justify-content: center;
}


.hero-card {
  width: min(100%, 400px);

  padding: 2rem;

  border-radius: 28px;

  background: rgba(255, 255, 255, 0.652);

  border: 1px solid rgb(217, 119, 32);

  box-shadow:
    0 25px 60px rgba(61, 48, 36, 0.15);

  backdrop-filter: blur(12px);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.hero-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 30px 70px rgba(61, 48, 36, 0.2);
}


.hero-card strong {
  display: block;

  color: #33271e;

  font-size: 1.25rem;
}


.hero-card p {
  margin: 0.7rem 0 0;

  color: #6b5848;

  line-height: 1.8;
}


/* =========================================
   CAROUSEL DOTS
========================================= */

.hero-dots {
  position: absolute;

  bottom: 35px;

  left: 50%;

  transform: translateX(-50%);

  z-index: 5;

  display: flex;

  align-items: center;

  gap: 8px;
}


.hero-dot {
  width: 9px;
  height: 9px;

  padding: 0;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.65);

  cursor: pointer;

  transition:
    width 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}


.hero-dot:hover {
  transform: scale(1.2);
}


.hero-dot.active {
  width: 28px;

  border-radius: 999px;

  background: #d89b5f;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 980px) {

  .hero-content {
    grid-template-columns: 1fr;

    text-align: center;

    gap: 1rem;
  }

  .hero-copy {
    margin: 0 auto;

    padding: 4rem 0 2rem;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-banner {
    padding-bottom: 5rem;
  }

  .hero-card {
    max-width: 420px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(247, 242, 235, 0.82) 0%,
        rgba(247, 242, 235, 0.7) 50%,
        rgba(247, 242, 235, 0.9) 100%
      );
  }
}


@media (max-width: 600px) {

  .hero-section {
    min-height: 900px;
  }

  .hero-content {
    min-height: 900px;
  }

  .hero-copy {
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-dots {
    bottom: 20px;
  }
}
  

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 7px 0 0;

  font-size: clamp(1.9rem, 3vw, 2.7rem);

  line-height: 1.3;

  font-weight: 800;
}

.section-head > div {
  text-align: center;
}

.section-head > div p:last-child {
  margin-top: 8px;
  color: var(--text-soft);
}

.section-label {
  display: inline-block;

  margin: 0;

  color: var(--primary);

  font-size: 0.85rem;
  font-weight: 800;

  letter-spacing: 0.05em;
}


/* =========================================================
   OFFERS
   ========================================================= */

.offers-section {
  background: var(--white);
}

.offers-slider-wrapper {
  position: relative;
  overflow: visible;
}

.offers-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 10px 0 20px 0;
}

.offers-slider::-webkit-scrollbar {
  display: none;
}

.offers-slider .offer-card {
  flex: 0 0 calc(33.333% - 12px);
  scroll-snap-align: start;
  min-width: 280px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 20px rgba(217, 119, 32, 0.3);
}

.slider-arrow-right {
  right: -24px;
}

.slider-arrow-left {
  left: -24px;
}

.offers-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.offers-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.offers-slider-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}


/* PRODUCT CARD */

.offer-card {
  position: relative;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: white;

  border: 1px solid var(--border);

  border-radius: 18px;

  box-shadow: var(--shadow-sm);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

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

  border-color: #e2c4a5;

  box-shadow: var(--shadow-lg);
}


/* PRODUCT IMAGE */

.offer-image {
  position: relative;
  height: 200px;
  min-height: 200px;
  flex-shrink: 0;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}

.offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.offer-card:hover .offer-image img {
  transform: scale(1.035);
}


/* PRODUCT BODY */

.offer-body {
  flex-grow: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.offer-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;
}

.offer-header h3 {
  margin: 0;

  font-size: 1.02rem;

  line-height: 1.5;

  font-weight: 800;
}

.offer-price {
  flex-shrink: 0;

  color: var(--primary);

  font-size: 1.1rem;

  font-weight: 900;

  white-space: nowrap;
}

.offer-body p {
  margin: 10px 0 0;

  color: var(--text-soft);

  font-size: 0.88rem;

  line-height: 1.7;
}


/* PRODUCT BUTTON */

.offer-body .button {
  width: 100%;

  margin-top: auto;
  padding-top: 11px;

  min-height: 45px;

  margin-top: 18px;
}


/* BEST VALUE */

.offer-badge {
  position: absolute;

  top: 0;
  right: 20px;

  z-index: 5;

  display: inline-flex;
  align-items: center;

  padding: 5px 14px;

  background: var(--primary);

  color: white;

  border-radius: 0 0 10px 10px;

  font-size: 0.75rem;

  font-weight: 800;

  box-shadow: 0 4px 10px rgba(217, 119, 32, 0.2);
}


/* Highlight the combo */

.offer-card:has(.offer-badge) {
  border: 2px solid var(--primary);
}


/* =========================================================
   TRUST BAR
   ========================================================= */

.offers-section::after {
  content: "";

  display: block;

  width: min(1140px, calc(100% - 40px));

  height: 1px;

  margin: 48px auto 0;

  background: var(--border);
}


/* =========================================================
   ORDER SECTION
   ========================================================= */

.order-section {
  width: min(1160px, calc(100% - 40px));

  margin: 60px auto;

  padding: 65px 0;

  background: white;

  border: 1px solid var(--border);

  border-radius: 28px;

  box-shadow: var(--shadow-md);
}

.order-card {
  width: min(700px, calc(100% - 40px));

  margin: 0 auto;

  padding: 28px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 20px;
}

.order-form {
  display: grid;

  gap: 9px;
}

.order-form label {
  margin-top: 10px;

  color: var(--text);

  font-size: 0.92rem;

  font-weight: 800;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;

  padding: 13px 15px;

  border: 1px solid #ddd2c7;

  border-radius: 12px;

  background: #fff;

  color: var(--text);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.order-form input::placeholder,
.order-form textarea::placeholder {
  color: #a79789;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(217, 119, 32, 0.1);
}

.order-form textarea {
  resize: vertical;
  min-height: 110px;
}

.order-form input[type="file"] {
  padding: 11px;

  background: #faf7f3;

  cursor: pointer;
}

.hint {
  margin: 0 0 5px;

  color: var(--muted);

  font-size: 0.82rem;
}

.form-status {
  border: 1px solid transparent;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-section {
  width: min(1160px, calc(100% - 40px));

  margin: 60px auto;

  padding: 65px 30px;

  background: white;

  border: 1px solid var(--border);

  border-radius: 28px;

  box-shadow: var(--shadow-sm);
}

.center-head {
  text-align: center;
}

.steps-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.step-card {
  padding: 30px 22px;

  text-align: center;

  background: #fdf9f5;

  border: 1px solid var(--border);

  border-radius: 18px;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-sm);
}

.step-card strong {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  margin: 0 auto 15px;

  background: var(--primary);

  color: white;

  border-radius: 50%;

  font-size: 1.05rem;
  font-weight: 800;
}

.step-card h3 {
  margin: 0 0 7px;

  font-size: 1.05rem;
}

.step-card p {
  margin: 0;

  color: var(--text-soft);

  font-size: 0.9rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 45px 0 35px;

  background: #fff;

  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 30px;

  flex-wrap: wrap;
}

.footer h3 {
  margin: 0 0 7px;

  font-size: 1.1rem;
}

.footer p {
  margin: 5px 0 0;

  color: var(--text-soft);

  font-size: 0.9rem;
}


/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */

.whatsapp-floating {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 999;

  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  background: #25d366;

  color: white;

  border-radius: 50%;

  font-size: 1.65rem;

  box-shadow:
    0 10px 25px rgba(37, 211, 102, 0.3),
    0 0 0 5px rgba(37, 211, 102, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.08);

  box-shadow:
    0 14px 30px rgba(37, 211, 102, 0.35),
    0 0 0 7px rgba(37, 211, 102, 0.08);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

  .offers-slider .offer-card {
    flex: 0 0 calc(50% - 9px);
  }

  .hero-content {
    grid-template-columns: 1fr 0.7fr;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .nav-links {
    gap: 0;
  }

  .nav-links a {
    padding-inline: 9px;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .container {
    width: min(100% - 28px, 600px);
  }

  /* HERO */

  .hero-section {
    min-height: 620px;
  }

  .hero-section::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 238, 227, 0.96) 0%,
        rgba(247, 238, 227, 0.88) 48%,
        rgba(247, 238, 227, 0.35) 100%
      ),
      url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1200&q=90");

    background-position: center;
  }

  .hero-content {
    min-height: 620px;

    display: flex;
    flex-direction: column;

    align-items: stretch;

    justify-content: center;

    gap: 20px;
  }

  .hero-copy {
    padding: 50px 0 0;

    text-align: center;

    margin-inline: auto;
  }

  .hero-tag {
    font-size: 0.78rem;
    
  }

  .hero-copy h1 {
    margin-top: 18px;

    font-size: 2.35rem;

    letter-spacing: -0.7px;
  }

  .hero-copy p {
    font-size: 0.95rem;

    line-height: 1.8;

    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;

    margin-top: 23px;
  }

  .hero-buttons .button {
    flex: 1;

    min-width: 145px;
  }

  .hero-banner {
    display: none;
  }

  /* SECTIONS */

  section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 25px;
  }

  .section-head h2 {
    font-size: 1.75rem;
  }

  /* PRODUCTS */

  .offers-slider {
    padding: 10px 15% 20px 15% !important;
    gap: 16px;
  }

  .offers-slider .offer-card {
    flex: 0 0 70% !important;
  }

  .offer-card {
    border-radius: 14px;
  }

  .offer-image {
    height: 145px;
  }

  .offer-body {
    padding: 13px;
  }

  .offer-header {
    display: block;
  }

  .offer-header h3 {
    font-size: 0.9rem;
  }

  .offer-price {
    display: block;

    margin-top: 5px;

    font-size: 1rem;
  }

  .offer-body p {
    font-size: 0.76rem;

    line-height: 1.55;

    margin-top: 7px;
  }

  .offer-body .button {
    min-height: 40px;

    margin-top: 12px;

    padding: 8px;

    font-size: 0.78rem;
  }

  .offer-badge {
    right: 10px;

    padding: 4px 9px;

    font-size: 0.65rem;
  }

  /* ORDER */

  .order-section,
  .how-section {
    width: calc(100% - 28px);

    border-radius: 20px;

    margin-block: 30px;
  }

  .order-section {
    padding: 48px 0;
  }

  .order-card {
    width: calc(100% - 28px);

    padding: 18px;
  }

  /* HOW */

  .how-section {
    padding: 48px 15px;
  }

  .steps-grid {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .step-card {
    padding: 22px;
  }

  /* FOOTER */

  .footer-inner {
    flex-direction: column;
  }

  /* WHATSAPP */

  .whatsapp-floating {
    right: 16px;
    bottom: 16px;

    width: 55px;
    height: 55px;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(217, 119, 32, 0.35);
  outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =========================================================
   CART BADGE & NAV ACTIONS
   ========================================================= */

.nav-actions {
  position: relative;
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
  box-shadow: 0 3px 8px rgba(217, 119, 32, 0.35);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.active {
  transform: scale(1);
}


/* =========================================================
   OFF-CANVAS CART SIDEBAR DRAWER
   ========================================================= */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 14, 0.55);
  backdrop-filter: blur(6px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--white);
  z-index: 2001;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-sidebar-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-soft);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.cart-sidebar-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.cart-empty-state p {
  color: var(--text-soft);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.cart-item-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-card:hover {
  border-color: var(--cream-dark);
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.qty-num {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #d32f2f;
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  opacity: 1;
  background: #ffebee;
}

.cart-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.cart-subtotal-row strong {
  font-size: 1.25rem;
  color: var(--primary);
}


/* =========================================================
   CHECKOUT SECTION & FORM ENHANCEMENT
   ========================================================= */

/* Override modal width for checkout — needs more room for the 2-col grid */
.checkout-modal {
  width: min(1100px, 94vw) !important;
  max-height: 92vh;
}

.checkout-modal .all-products-modal-body {
  display: block !important;
  padding: 28px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-modal {
    width: 96vw !important;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.order-summary-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.order-summary-box h3 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}




.campus-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(217, 119, 32, 0.2);
}

/* Order form card in checkout grid */
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.order-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 8px;
  margin-top: 16px;
}

.order-form label:first-child {
  margin-top: 0;
}

.order-form input[type="text"],
.order-form input[type="tel"],
.order-form input[type="email"],
.order-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.order-form .hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* UPLOAD PREVIEW DROPZONE */

.file-dropzone-wrapper {
  margin-top: 12px;
  margin-bottom: 16px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-photo-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.preview-item .remove-photo-btn:hover {
  background: #d32f2f;
}


/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */

.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--text);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 5px solid var(--primary);
  animation: toastSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* =========================================================
   ALL PRODUCTS CATALOG SECTION
   ========================================================= */

.catalog-section {
  padding-block: 70px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-block: 28px 36px;
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.catalog-tab-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.catalog-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.catalog-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(217, 119, 32, 0.25);
}

.catalog-search-wrapper {
  position: relative;
  min-width: 280px;
}

.catalog-search-input {
  width: 100%;
  padding: 11px 18px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.product-catalog-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

/* =====================================================
   ALL PRODUCTS MODAL
   ===================================================== */

.all-products-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(900px, 92vw);
  max-height: 88vh;
  background: var(--white);
  z-index: 2001;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.all-products-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.all-products-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(217,119,32,0.06) 0%, rgba(255,255,255,0.95) 100%);
  backdrop-filter: blur(8px);
  gap: 12px;
}

.all-products-modal-header h2 {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.all-products-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.all-products-modal-body::-webkit-scrollbar {
  width: 6px;
}

.all-products-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.all-products-modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 100px;
}

/* Product card inside modal */
.modal-product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.modal-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(217,119,32,0.15);
}

.modal-product-card .card-image {
  position: relative;
  width: 100%;
  height: 195px;
  min-height: 195px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg);
}

.modal-product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.modal-product-card:hover .card-image img {
  transform: scale(1.06);
}

.modal-product-card .card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(217,119,32,0.3);
  z-index: 1;
}

.modal-product-card .card-content {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
}

.modal-product-card .card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.45;
}

.modal-product-card .card-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 16px 0;
  flex: 1;
  line-height: 1.6;
}

.modal-product-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.modal-product-card .card-price {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--primary);
  white-space: nowrap;
}

.modal-product-card .card-add-btn {
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.modal-product-card .card-add-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(217,119,32,0.3);
}

.modal-product-card .card-add-btn:active {
  transform: scale(0.97);
}

/* Modal overlay reuses .cart-overlay but for allProducts it needs .active */

/* Responsive */
@media (max-width: 640px) {
  .all-products-modal {
    width: 96vw;
    max-height: 92vh;
    border-radius: 18px;
  }

  .all-products-modal-body {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    padding: 14px;
    gap: 12px;
  }

  .modal-product-card .card-image {
    height: 110px;
  }

  .modal-product-card .card-content {
    padding: 10px 12px 12px;
  }

  .modal-product-card .card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-product-card .card-add-btn {
    text-align: center;
  }
}

/* =====================================================
   CUSTOM CAMPUS DROPDOWN WITH LOGOS
   ===================================================== */
.campus-dropdown {
  position: relative;
  width: 100%;
}

.campus-dropdown-trigger {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  text-align: right;
}

.campus-dropdown-trigger:hover,
.campus-dropdown-trigger:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.campus-dropdown-trigger.active {
  border-color: var(--primary);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.campus-dropdown-arrow {
  transition: transform 0.2s ease;
  color: var(--text-soft);
  font-size: 1.2rem;
}

.campus-dropdown-trigger.active .campus-dropdown-arrow {
  transform: rotate(180deg);
}

.campus-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--primary);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.campus-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.campus-dropdown-group-label {
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  background: var(--bg);
}

.campus-dropdown-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.campus-dropdown-item:hover {
  background: var(--primary-light);
}

.campus-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 28px;
  border-radius: 6px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campus-logo-emoji {
  background: transparent;
  box-shadow: none;
  font-size: 1.4rem;
  color: initial;
}

.campus-item-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.campus-item-other {
  color: var(--primary);
  font-weight: 600;
}

.campus-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.campus-logo-img {
  width: 48px;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

/* =====================================================
   CHECKOUT SUMMARY TABLE STYLES
   ===================================================== */
.checkout-items-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.checkout-items-table th {
  padding: 12px 8px;
  border-bottom: 2px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.9rem;
}

.checkout-items-table td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.checkout-items-table tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   SOCIAL MEDIA LINKS
   ========================================================= */

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(217, 119, 32, 0.3);
}

.social-icon.facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

/* =========================================================
   SPECIAL OFFER HEADER BUTTON
   ========================================================= */
.special-offer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(217, 119, 32, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 32, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.special-offer-btn:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(217, 119, 32, 0.3);
}

.special-offer-btn:hover .pulsing-dot {
  background-color: var(--white);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.pulsing-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.4;
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* =========================================================
   BUNDLES SECTION
   ========================================================= */
.bundles-section {
  padding: 60px 0;
  background: linear-gradient(to bottom, var(--bg) 0%, #fff 100%);
}

.bundles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 992px) {
  .bundles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bundles-grid {
    grid-template-columns: 1fr;
  }
}

.bundle-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.bundle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(217, 119, 32, 0.1);
  border-color: rgba(217, 119, 32, 0.3);
}

.bundle-image {
  width: calc(100% + 48px);
  margin: -24px -24px 16px -24px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.bundle-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.bundle-ribbon {
  position: absolute;
  top: 16px;
  left: -35px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  color: white;
  padding: 6px 36px;
  font-size: 0.8rem;
  font-weight: 800;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.3);
  z-index: 10;
}

.value-ribbon {
  background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
  box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.bundle-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.bundle-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.bundle-save-badge {
  align-self: flex-start;
  background-color: #27ae60;
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.bundle-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.bundle-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bundle-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

.check-icon {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.bundle-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.bundle-price-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.old-price {
  font-size: 1.05rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 700;
}

.new-price {
  font-size: 1.9rem;
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
}

.bundle-order-btn {
  padding: 10px 20px;
  border-radius: 12px;
}

/* Scroll Animation */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop-only utility */
.desktop-only {
  display: flex;
}

/* Mobile nav social (hidden on desktop) */
.mobile-nav-social {
  display: none;
}


/* =========================================================
   MOBILE RESPONSIVE — 760px & below
   ========================================================= */

@media (max-width: 760px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
    order: 2;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }

  /* Hide special offer btn on mobile header (it's in the nav now) */
  .special-offer-btn {
    display: none;
  }

  /* Nav links become mobile drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 0;
    z-index: 999;
    animation: slideDown 0.3s ease forwards;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    color: var(--text);
    transition: background 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: var(--primary-light);
    color: var(--primary);
  }

  /* Show mobile social links inside drawer */
  .mobile-nav-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 4px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
  }

  .mobile-nav-social .whatsapp-button {
    display: inline-flex !important;
    margin-right: auto;
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  /* Nav inner layout */
  .nav-inner {
    min-height: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
  }

  /* Nav actions: just the cart icon on mobile */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    order: 3;
  }

  /* Brand */
  .brand-mark-logo {
    width: 40px;
    height: 40px;
  }

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

  .brand-ar {
    font-size: 0.78rem;
  }

  /* ========== BUNDLES SECTION ========== */

  .bundles-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .bundle-card {
    padding: 0 0 20px 0;
    border-radius: 16px;
  }

  .bundle-image {
    width: 100%;
    margin: 0 0 0 0;
    border-radius: 16px 16px 0 0;
  }

  .bundle-image img {
    height: 180px;
  }

  .bundle-header,
  .bundle-desc,
  .bundle-features,
  .bundle-footer {
    padding-inline: 20px;
  }

  .bundle-ribbon {
    top: 12px;
    left: -32px;
    font-size: 0.72rem;
    padding: 5px 34px;
  }

  .bundle-title {
    font-size: 1.1rem;
  }

  .new-price {
    font-size: 1.6rem;
  }

  .bundle-footer {
    flex-direction: column;
    gap: 12px;
  }

  .bundle-order-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.95rem;
  }

  /* ========== CART SIDEBAR ========== */

  .cart-sidebar {
    width: 100vw !important;
    max-width: 100vw;
  }

  /* ========== CHECKOUT MODAL ========== */

  .checkout-modal {
    width: 100vw !important;
    max-height: 100vh;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
  }

  .checkout-modal .all-products-modal-body {
    padding: 16px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .order-summary-box {
    padding: 16px;
    border-radius: 16px;
  }

  .order-card {
    padding: 16px;
    border-radius: 16px;
  }

  /* ========== ALL PRODUCTS MODAL ========== */

  .all-products-modal {
    width: 100vw !important;
    max-height: 100vh;
    border-radius: 0 !important;
  }

  /* ========== GENERAL MOBILE TOUCH TARGETS ========== */

  .button {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .button.primary {
    padding: 12px 20px;
  }

  /* ========== FOOTER ========== */

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-inner h3 {
    font-size: 1.1rem;
  }

  /* ========== SECTION HEADS ========== */

  .section-head {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }

  .section-head .button {
    align-self: center;
  }
}


/* =========================================================
   VERY SMALL PHONES (override)
   ========================================================= */

@media (max-width: 390px) {

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

  .brand-ar {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .bundle-image img {
    height: 150px;
  }

  .offers-slider {
    padding: 10px 10% 20px 10% !important;
    gap: 12px;
  }

  .offers-slider .offer-card {
    flex: 0 0 80% !important;
  }

  .offer-image {
    height: 190px;
  }
}