/* ============================================================
 * LOOP COFFEE CO. — Multi-page Design
 * Brand: Instagram orange gradient
 * ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --orange: #F2690D;
  --orange-light: #FB8A31;
  --orange-deep: #DD4A08;
  --grad-orange: linear-gradient(135deg, #FF9D45 0%, #FB8A31 28%, #F2690D 62%, #DD4A08 100%);
  --grad-orange-soft: linear-gradient(135deg, rgba(251,138,49,0.12), rgba(221,74,8,0.10));
  --orange-soft: rgba(242, 105, 13, 0.08);
  --orange-glow: rgba(242, 105, 13, 0.12);

  --ink: #201510;
  --text-main: #33241B;
  --text-secondary: #8A7568;
  --bg: #FFFFFF;
  --bg-soft: #FAF6F1;
  --line: #F0E8DF;
  --white: #FFFFFF;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 12px rgba(32, 21, 16, 0.05);
  --shadow-md: 0 10px 32px rgba(32, 21, 16, 0.08);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --whatsapp: #25D366;
  --green: #22c55e;
  --red: #ef4444;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Tajawal', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: 50px;
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; line-height: 1.4;
}
.btn:active { transform: scale(0.96) !important; }
.btn--primary {
  background: var(--grad-orange); color: var(--white);
  box-shadow: 0 6px 20px rgba(242,105,13,0.28), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0) 55%);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242,105,13,0.38), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn--sm { padding: 10px 24px; font-size: 0.9rem; }
.btn--lg { padding: 16px 48px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.text-accent {
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--orange);
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header__badge {
  display: inline-block; padding: 6px 20px; background: var(--orange-soft);
  color: var(--orange); font-weight: 700; font-size: 0.82rem;
  border-radius: 50px; margin-bottom: 14px; letter-spacing: 0.3px;
}
.section-header__title { font-size: clamp(1.7rem,3.5vw,2.3rem); font-weight: 800; color: var(--ink); line-height: 1.45; }
.section-header__subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 10px; line-height: 1.8; }

/* ===== PAGE SECTION (top padding for subpages) ===== */
.page-section { padding-top: 140px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: all var(--transition);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.05); padding: 12px 0;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.navbar__logo { display: flex; align-items: center; }
.navbar__logo-img { height: 44px; width: auto; border-radius: 8px; }
.navbar__nav { display: flex; align-items: center; gap: 32px; }
.navbar__link { font-weight: 500; color: var(--text-secondary); transition: color var(--transition); font-size: 0.95rem; }
.navbar__link:hover { color: var(--orange); }
.navbar__link--active { color: var(--orange); font-weight: 700; }
.navbar__cart-link { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--grad-orange); color: var(--white); font-size: 0.7rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
}
.navbar__mobile-actions { display: none; align-items: center; gap: 12px; }
.navbar__cart-mobile {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 8px; display: flex; align-items: center;
}
.cart-count-mobile {
  position: absolute; top: 0; right: 0;
  background: var(--grad-orange); color: var(--white); font-size: 0.6rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  display: flex; align-items: center; position: relative;
  padding: 150px 0 80px; background: var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 340px at 85% -5%, rgba(251,138,49,0.07), transparent 72%);
}
.hero__content { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.hero__badge {
  display: block; width: fit-content; margin: 0 auto 22px; padding: 8px 22px; background: var(--orange-soft);
  color: var(--orange); font-weight: 700; font-size: 0.88rem;
  border-radius: 50px;
}
.hero__title { font-size: clamp(2rem,5vw,3.1rem); font-weight: 900; color: var(--ink); line-height: 1.5; margin-bottom: 16px; }
.hero__title .text-accent { display: inline-block; padding-bottom: 0.08em; line-height: 1.4; }
.hero__desc { font-size: clamp(0.98rem,2vw,1.08rem); color: var(--text-secondary); margin: 0 auto 30px; line-height: 1.9; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 52px; }
.hero__link { font-weight: 600; font-size: 0.93rem; color: var(--text-secondary); transition: color var(--transition); }
.hero__link:hover { color: var(--orange); }
.hero__stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat-number {
  display: block; font-size: 1.5rem; font-weight: 900;
  background: var(--grad-orange);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stat-label { font-size: 0.84rem; color: var(--text-secondary); font-weight: 500; }

/* ===== TRUST STRIP ===== */
.trust {
  padding: 44px 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-soft) 78%);
}
.trust__inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 18px;
  box-shadow: var(--shadow-md);
}
.trust__item:not(:last-child) { border-left: 1px solid var(--line); }
.trust__item { display: flex; align-items: center; gap: 12px; justify-content: center; }
.trust__icon {
  width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--orange-soft); color: var(--orange);
}
.trust__text { display: flex; flex-direction: column; line-height: 1.35; }
.trust__text strong { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.trust__text span { font-size: 0.76rem; color: var(--text-secondary); }

/* ===== ABOUT ===== */
.about { padding: 90px 0; background: var(--bg-soft); }
.about__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about__visual { display: flex; justify-content: center; align-items: center; }
.about__visual-block {
  width: 250px; height: 290px;
  background: var(--grad-orange);
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; flex-direction: column;
  box-shadow: 0 20px 48px rgba(242,105,13,0.28);
}
.about__steam { display: flex; gap: 8px; margin-bottom: 12px; }
.about__steam span { width: 3px; height: 24px; background: rgba(255,255,255,0.45); border-radius: 3px; animation: steam 2s ease-in-out infinite; }
.about__steam span:nth-child(2) { animation-delay: 0.3s; height: 32px; }
.about__steam span:nth-child(3) { animation-delay: 0.6s; height: 20px; }
@keyframes steam { 0%,100% { opacity:0.3; transform:translateY(0) scaleY(1); } 50% { opacity:0.8; transform:translateY(-10px) scaleY(1.2); } }
.about__text .section-header__badge { margin-bottom: 12px; }
.about__text .section-header__title { text-align: right; }
.about__desc { font-size: 1rem; color: var(--text-secondary); margin: 16px 0 26px; line-height: 1.9; }
.about__features { display: flex; flex-direction: column; gap: 13px; }
.about__feature { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.about__check {
  width: 26px; height: 26px; min-width: 26px; display: flex; align-items: center;
  justify-content: center; background: var(--grad-orange); color: var(--white);
  border-radius: 50%; font-weight: 700; font-size: 0.75rem;
}

/* ===== DEALERS / PARTNERS ===== */
.dealers { padding: 90px 0; background: var(--bg); }
.dealers__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  max-width: 900px; margin: 0 auto;
}
.dealer-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 40px 28px 28px;
  text-align: center; transition: all var(--transition);
  text-decoration: none; color: inherit;
}
.dealer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.dealer-card__logo-wrap {
  width: 140px; height: 140px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: var(--radius-lg);
  margin-bottom: 24px; padding: 16px; overflow: hidden;
}
.dealer-card__logo {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.dealer-card__info { flex: 1; margin-bottom: 20px; }
.dealer-card__name {
  font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 2px;
}
.dealer-card__name-en {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px;
  direction: ltr;
}
.dealer-card__desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8;
}
.dealer-card__cta {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  background: var(--orange-soft); color: var(--orange);
  font-weight: 700; font-size: 0.85rem;
  transition: all var(--transition);
}
.dealer-card:hover .dealer-card__cta {
  background: var(--grad-orange); color: var(--white);
}

/* ===== CTA SECTION ===== */
.cta-section { padding: 56px 0; background: var(--bg-soft); }
.cta-section__inner {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  background: var(--grad-orange);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: 0 14px 32px rgba(242,105,13,0.22);
}
.cta-section__icon {
  flex-shrink: 0; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); border-radius: 50%;
  color: var(--white);
}
.cta-section__text { text-align: start; }
.cta-section__title {
  font-size: 1.15rem; font-weight: 900;
  color: var(--white); margin-bottom: 2px;
}
.cta-section__desc {
  font-size: 0.87rem; color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.cta-section__btn {
  flex-shrink: 0; margin-inline-start: auto;
  padding: 12px 22px !important; font-size: 0.92rem !important;
}
.cta-section .btn--primary {
  background: var(--white); color: var(--orange);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.cta-section .btn--primary::before { display: none; }
.cta-section .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* ===== SERVICES HERO ===== */
.services-hero {
  padding: 140px 0 60px;
  background: var(--bg-soft);
  text-align: center;
}
.services-hero__content { max-width: 600px; margin: 0 auto; }
.services-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900;
  color: var(--ink); margin-bottom: 14px; line-height: 1.4;
}
.services-hero__desc {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.9;
}

/* ===== SERVICES ===== */
.services { padding: 60px 0 90px; background: var(--bg-soft); }
.services__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-bottom: 48px;
}

/* Service Card (services page — larger) */
.service-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 36px 28px;
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card__icon {
  width: 64px; height: 64px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-orange); color: var(--white);
  border-radius: 20px;
}
.service-card__title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.service-card__desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px; }
.service-card__features { display: flex; flex-direction: column; gap: 8px; }
.service-card__features li {
  font-size: 0.85rem; font-weight: 500; color: var(--text-main);
  padding-right: 20px; position: relative;
}
.service-card__features li::before {
  content: ''; position: absolute; right: 0; top: 10px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-orange);
}

/* Services CTA */
.services__cta { text-align: center; }
.services__cta-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.services__cta-text { text-align: right; }
.services__cta-text h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.services__cta-text p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== STORE ===== */
.store { padding-bottom: 100px; background: var(--bg); }
.page-section .store__tabs { margin-top: 0; }

.store__tabs {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.store__tab {
  padding: 10px 26px; border-radius: 50px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--text-secondary);
  font-family: 'Tajawal', sans-serif; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
}
.store__tab:hover { border-color: var(--orange); color: var(--orange); }
.store__tab.active { background: var(--grad-orange); color: var(--white); border-color: transparent; }

.store__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

/* Product Card */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--line);
  transition: all var(--transition);
  display: flex; flex-direction: column; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card__image {
  height: 190px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card__image svg { opacity: 0.5; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700;
}
.product-card__badge--sale { background: var(--grad-orange); color: var(--white); }
.product-card__badge--out { background: var(--text-secondary); color: var(--white); }

.product-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-card__category {
  font-size: 0.72rem; font-weight: 700; color: var(--orange);
  letter-spacing: 1px; margin-bottom: 5px;
}
.product-card__name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.product-card__weight { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 12px; }
.product-card__pricing { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; margin-top: auto; }
.product-card__price { font-size: 1.15rem; font-weight: 800; color: var(--orange-deep); }
.product-card__price-prefix { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); }
.product-card__price-old {
  font-size: 0.83rem; color: var(--text-secondary);
  text-decoration: line-through; font-weight: 500;
}
.product-card__actions { display: flex; gap: 8px; }
.product-card__add-btn {
  flex: 1; padding: 11px 16px; border-radius: 50px;
  background: var(--grad-orange); color: var(--white); border: none;
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.product-card__add-btn:active { transform: scale(0.95); }
.product-card__add-btn:hover { filter: brightness(1.06); }
.product-card__add-btn:disabled { background: var(--text-secondary); cursor: not-allowed; filter: none; }
.product-card__remove-btn {
  width: 38px; height: 38px; min-width: 38px; border: 1.5px solid var(--red);
  border-radius: 50%; background: rgba(239,68,68,0.06);
  color: var(--red); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition); padding: 0;
}
.product-card__remove-btn:hover { background: var(--red); color: var(--white); }
.product-card__remove-btn:active { transform: scale(0.9); }

.product-card__qty {
  display: flex; align-items: center; gap: 0; border-radius: 50px;
  overflow: hidden; border: 1.5px solid var(--orange);
}
.product-card__qty button {
  width: 36px; height: 36px; border: none; background: var(--orange-soft);
  color: var(--orange); font-size: 1.1rem; font-weight: 700; cursor: pointer;
  transition: background var(--transition); display: flex; align-items: center; justify-content: center;
}
.product-card__qty button:hover,
.product-card__qty button:active { background: var(--orange); color: var(--white); }
.product-card__qty span {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; background: var(--white);
}

/* ===== CART PAGE ===== */
.cart-page { padding-bottom: 80px; }
.cart-page__empty {
  text-align: center; padding: 80px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.cart-page__empty h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
.cart-page__empty p { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 8px; }

.cart-page__layout {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px;
  align-items: start;
}
.cart-page__items-header {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 2px solid var(--line);
  font-size: 0.85rem; font-weight: 700; color: var(--text-secondary);
}

/* Cart Item Row */
.cart-page-item {
  display: flex; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.cart-page-item__img {
  width: 72px; height: 72px; min-width: 72px; border-radius: var(--radius-sm);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cart-page-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item__info { flex: 1; min-width: 0; }
.cart-page-item__name { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.cart-page-item__weight { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.cart-page-item__controls { display: flex; align-items: center; gap: 10px; }
.cart-page-item__controls .product-card__qty { border-width: 1px; }
.cart-page-item__controls .product-card__qty button { width: 32px; height: 32px; font-size: 1rem; }
.cart-page-item__controls .product-card__qty span { width: 32px; height: 32px; font-size: 0.9rem; }
.cart-page-item__remove {
  background: none; border: none; cursor: pointer; color: var(--red);
  font-size: 0.8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px;
  transition: background var(--transition);
}
.cart-page-item__remove:hover { background: rgba(239,68,68,0.08); }
.cart-page-item__total {
  font-size: 1rem; font-weight: 800; color: var(--orange-deep);
  min-width: 90px; text-align: left;
}

/* Cart Sidebar (summary + form) */
.cart-page__sidebar { position: sticky; top: 100px; }
.cart-page__summary {
  background: var(--bg-soft); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px; border: 1px solid var(--line);
}
.cart-page__summary-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.cart-page__summary-item {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 0.85rem; color: var(--text-secondary); gap: 12px;
}
.cart-page__summary-total {
  display: flex; justify-content: space-between; padding: 14px 0 0;
  border-top: 2px solid var(--line); margin-top: 12px;
  font-size: 1.15rem; font-weight: 900; color: var(--ink);
}
.cart-page__recipe-note {
  display: none; align-items: center; gap: 8px;
  background: var(--orange-soft); color: var(--orange);
  font-weight: 700; font-size: 0.82rem;
  padding: 10px 14px; border-radius: var(--radius-md);
  margin-top: 14px;
}
.cart-page__recipe-note svg { flex-shrink: 0; }
.cart-page__form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--line);
}
.cart-page__form-title { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin-bottom: 20px; }
.cart-page__submit { width: 100%; font-size: 1.05rem; padding: 16px; }

/* Form groups */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  font-size: 0.9rem; color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); font-family: 'Tajawal', sans-serif;
  font-size: 1rem; background: var(--bg-soft); transition: border-color var(--transition);
  color: var(--text-main); appearance: none; -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7568' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--orange); background: var(--white);
  box-shadow: 0 0 0 4px rgba(242,105,13,0.1);
}
.form-group textarea { resize: vertical; }

/* ===== PRODUCT DETAIL PANEL ===== */
.product-detail-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 2500; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.product-detail-overlay.open { opacity: 1; pointer-events: all; }

.product-detail {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.92);
  width: 480px; max-width: 92vw; max-height: 85vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-xl); z-index: 2501;
  opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  -webkit-overflow-scrolling: touch;
}
.product-detail.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.product-detail__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; position: sticky; top: 0; background: var(--white); z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.product-detail__header h3 { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.product-detail__close { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 8px; }

.product-detail__body { padding: 16px 24px 28px; }

.product-detail__image {
  width: 100%; aspect-ratio: 1 / 1; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
  overflow: hidden; position: relative;
}
.product-detail__image svg { width: 80px; height: 80px; opacity: 0.5; }
.product-detail__image img { width: 100%; height: 100%; object-fit: contain; }

.product-detail__thumbs { display: none; gap: 8px; margin-bottom: 18px; }
.product-detail__thumbs.has-multi { display: flex; }
.product-detail__thumb {
  width: 56px; height: 56px; flex-shrink: 0; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: var(--white);
  border: 2px solid var(--line); transition: border-color var(--transition);
}
.product-detail__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-detail__thumb.active { border-color: var(--orange); }
.product-detail__image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.product-detail__sizes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.product-detail__sizes-label { font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); margin-left: 4px; }
.product-detail__size-btn {
  padding: 9px 20px; border-radius: 50px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--text-main);
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; transition: all var(--transition);
}
.product-detail__size-btn:hover { border-color: var(--orange); color: var(--orange); }
.product-detail__size-btn.active { background: var(--grad-orange); color: var(--white); border-color: transparent; }
.product-detail__size-btn:active { transform: scale(0.95); }

.product-detail__category {
  display: inline-block; padding: 4px 14px; background: var(--orange-soft);
  color: var(--orange); font-weight: 700; font-size: 0.75rem;
  border-radius: 50px; margin-bottom: 10px; letter-spacing: 1px;
}
.product-detail__name { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.product-detail__weight { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 16px; }
.product-detail__pricing { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.product-detail__pricing .product-card__price { font-size: 1.4rem; }
.product-detail__pricing .product-card__price-old { font-size: 0.95rem; }
.product-detail__stock { margin-bottom: 20px; }
.product-detail__stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.product-detail__stock-badge--in { background: rgba(34,197,94,0.1); color: var(--green); }
.product-detail__stock-badge--out { background: rgba(239,68,68,0.1); color: var(--red); }
.product-detail__stock-badge__dot { width: 6px; height: 6px; border-radius: 50%; }
.product-detail__stock-badge--in .product-detail__stock-badge__dot { background: var(--green); }
.product-detail__stock-badge--out .product-detail__stock-badge__dot { background: var(--red); }

.product-detail__section { margin-bottom: 18px; }
.product-detail__section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.product-detail__section-title svg { color: var(--orange); flex-shrink: 0; }
.product-detail__section-text {
  font-size: 0.92rem; line-height: 1.85; color: var(--text-secondary);
}
.product-detail__section--uses {
  background: var(--orange-soft); border-radius: var(--radius-md);
  padding: 14px 16px; border: 1px solid rgba(242,105,13,0.12);
}
.product-detail__section--uses .product-detail__section-text { color: var(--ink); }

.product-detail__details {
  display: none; margin-bottom: 16px; padding: 12px 14px;
  background: var(--bg-soft); border-radius: var(--radius-md);
}
.product-detail__detail-row {
  font-size: 0.86rem; color: var(--text-secondary); line-height: 1.7;
}
.product-detail__detail-row strong { color: var(--orange); font-weight: 700; }

.product-detail__notes-list { display: flex; flex-direction: column; gap: 10px; }
.product-detail__note-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary);
}
.product-detail__note-emoji { flex-shrink: 0; }
.product-detail__note-item strong { color: var(--ink); }

.product-detail__outro { font-size: 0.92rem; line-height: 1.85; color: var(--text-secondary); }

.product-detail__recipe-note {
  display: none; align-items: center; gap: 8px;
  background: var(--orange-soft); color: var(--orange);
  font-weight: 700; font-size: 0.84rem;
  padding: 10px 14px; border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.product-detail__recipe-note svg { flex-shrink: 0; }

.product-detail__actions { display: flex; gap: 10px; align-items: center; }
.product-detail__actions .product-card__add-btn { flex: 1; padding: 14px 24px; font-size: 1rem; }
.product-detail__actions .product-card__qty button { width: 48px; height: 48px; font-size: 1.3rem; }
.product-detail__actions .product-card__qty span { width: 48px; height: 48px; font-size: 1.1rem; }

.product-detail__remove-btn {
  width: 48px; height: 48px; min-width: 48px; border: 2px solid var(--red);
  border-radius: 50%; background: rgba(239,68,68,0.06);
  color: var(--red); cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all var(--transition);
}
.product-detail__remove-btn:hover { background: var(--red); color: var(--white); }
.product-detail__remove-btn:active { transform: scale(0.92); }

.product-detail__go-cart-btn {
  flex: 1; padding: 14px 16px; border-radius: 50px;
  background: var(--ink); color: var(--white); border: none;
  font-family: 'Tajawal', sans-serif; font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all var(--transition);
}
.product-detail__go-cart-btn:hover { background: #3A2A20; }
.product-detail__go-cart-btn:active { transform: scale(0.96); }

/* ===== FOOTER ===== */
.footer { background: var(--ink); padding: 36px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__logo { display: flex; align-items: center; justify-content: center; }
.footer__logo-img { height: 56px; width: auto; border-radius: 10px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.85rem; color: rgba(255,255,255,0.55); font-weight: 500; transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__social { display: flex; gap: 10px; }
.footer__social-link {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65);
  transition: all var(--transition);
}
.footer__social-link svg { width: 17px; height: 17px; }
.footer__social-link:hover { background: var(--grad-orange); color: var(--white); transform: translateY(-3px); }
.footer__copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ===== MOBILE BOTTOM TAB BAR ===== */
.bottom-bar { display: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: -80px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--white); padding: 14px 28px;
  border-radius: var(--radius-md); display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; z-index: 5000;
  transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); white-space: nowrap;
}
.toast.show { bottom: 32px; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .about__steam span { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== HERO BRAND ===== */
.hero__brand-link {
  display: flex; width: 92px; height: 92px; margin: 0 auto 14px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-md); overflow: hidden;
  transition: all var(--transition);
}
.hero__brand-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hero__brand-link img { width: 100%; height: 100%; object-fit: contain; }
.hero__dealers-label {
  display: block; font-size: 0.82rem; color: var(--text-secondary);
  font-weight: 600; margin-bottom: 14px;
}

/* ===== HERO DEALERS ===== */
.hero__dealers {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 32px;
}
.hero__dealers-link {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 10px;
  transition: all var(--transition);
}
.hero__dealers-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md); border-color: transparent;
}
.hero__dealers-link img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 6px;
}
.hero__dealers-sep {
  font-size: 1.3rem; color: var(--text-secondary); font-weight: 300;
}

/* ===== FEATURED PRODUCTS ===== */
.featured { padding: 80px 0; background: var(--bg-soft); }
.featured__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 40px;
}
.featured__card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); text-decoration: none; color: inherit;
}
.featured__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md); border-color: transparent;
}
.featured__card-img {
  height: 180px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.featured__card-img img { width: 100%; height: 100%; object-fit: cover; }
.featured__card-body {
  padding: 16px; flex: 1; display: flex; flex-direction: column;
}
.featured__card-cat {
  font-size: 0.72rem; font-weight: 700; color: var(--orange);
  letter-spacing: 1px; margin-bottom: 4px;
}
.featured__card-name {
  font-size: 0.95rem; font-weight: 700; color: var(--ink);
  line-height: 1.4; margin-bottom: 8px;
}
.featured__card-price {
  margin-top: auto; display: flex; align-items: center; gap: 6px;
}
.featured__more { text-align: center; }

/* ===== BUTTON OUTLINE ===== */
.btn--outline {
  background: transparent; border: 2px solid var(--orange); color: var(--orange);
}
.btn--outline:hover {
  background: var(--orange-soft); transform: translateY(-2px);
}

/* ===== ABOUT REDESIGN ===== */
.about__header { text-align: center; margin-bottom: 48px; }
.about__intro {
  font-size: 1.05rem; color: var(--text-secondary);
  line-height: 1.9; max-width: 640px; margin: 16px auto 0;
}
.about__points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.about__point {
  text-align: center; padding: 32px 24px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: all var(--transition);
}
.about__point:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md); border-color: transparent;
}
.about__point-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-orange); color: var(--white);
  border-radius: 16px; margin: 0 auto 16px;
}
.about__point-title {
  font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 8px;
}
.about__point-desc {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8;
}

/* ================================================================
 * RESPONSIVE — TABLET
 * ================================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { gap: 40px; }
  .cart-page__layout { grid-template-columns: 1fr; }
  .cart-page__sidebar { position: static; }
}

/* ================================================================
 * RESPONSIVE — MOBILE (<=768px)
 * ================================================================ */
@media (max-width: 768px) {

  body { padding-bottom: calc(72px + var(--safe-bottom)); }
  .container { padding: 0 20px; }

  /* Navbar */
  .navbar { padding: 12px 0; }
  .navbar.scrolled { padding: 8px 0; }
  .navbar__logo { font-size: 1.1rem; }
  .navbar__nav { display: none; }
  .navbar__mobile-actions { display: flex; }

  /* Page section */
  .page-section { padding-top: 110px; }

  /* Hero */
  .hero { padding: 124px 0 60px; }
  .hero__badge { font-size: 0.78rem; padding: 7px 18px; margin-bottom: 20px; }
  .hero__title { font-size: 1.95rem; line-height: 1.5; margin-bottom: 14px; letter-spacing: -0.2px; }
  .hero__desc { font-size: 0.93rem; margin-bottom: 28px; }
  .hero__actions { gap: 14px; margin-bottom: 40px; }
  .hero__actions .btn { width: 100%; max-width: 300px; padding: 16px 32px; font-size: 1.02rem; }
  .hero__stats { gap: 0; justify-content: space-between; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero__stat { flex: 1; }
  .hero__stat-number { font-size: 1.25rem; }
  .hero__stat-label { font-size: 0.74rem; }

  /* Trust strip */
  .trust__inner { gap: 6px; padding: 14px 8px; border-radius: var(--radius-md); }
  .trust__item { flex-direction: column; gap: 7px; text-align: center; }
  .trust__icon { width: 38px; height: 38px; min-width: 38px; border-radius: 12px; }
  .trust__icon svg { width: 19px; height: 19px; }
  .trust__text strong { font-size: 0.74rem; }
  .trust__text span { font-size: 0.63rem; }

  /* About */
  .about { padding: 56px 0; }
  .about__inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .about__visual { order: -1; }
  .about__visual-block { width: 190px; height: 225px; }
  .about__text .section-header__title { text-align: center; }
  .about__features { align-items: center; }
  .about__desc { font-size: 0.93rem; }

  /* Dealers */
  .dealers { padding: 56px 0; }
  .dealers__grid { grid-template-columns: 1fr; gap: 18px; max-width: 400px; }
  .dealer-card { padding: 28px 22px 22px; }
  .dealer-card__logo-wrap { width: 110px; height: 110px; margin-bottom: 18px; padding: 12px; }
  .dealer-card__name { font-size: 1.05rem; }
  .dealer-card__desc { font-size: 0.82rem; }
  .dealer-card__cta { font-size: 0.78rem; padding: 10px 18px; }

  /* Hero brand */
  .hero__brand-link { width: 72px; height: 72px; margin-bottom: 12px; }
  .hero__dealers-label { font-size: 0.76rem; margin-bottom: 12px; }

  /* Hero dealers */
  .hero__dealers { gap: 14px; margin-bottom: 24px; }
  .hero__dealers-link { width: 64px; height: 64px; padding: 8px; }
  .hero__dealers-sep { font-size: 1.1rem; }

  /* Featured */
  .featured { padding: 48px 0; }
  .featured__grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
  .featured__card-img { height: 140px; }
  .featured__card-body { padding: 12px; }
  .featured__card-name { font-size: 0.85rem; }
  .featured__card:hover { transform: none; }

  /* About redesigned */
  .about__header { margin-bottom: 32px; }
  .about__intro { font-size: 0.93rem; }
  .about__points { grid-template-columns: 1fr; gap: 14px; }
  .about__point { padding: 24px 20px; }

  /* CTA Section */
  .cta-section { padding: 36px 0; }
  .cta-section__inner {
    flex-direction: column; text-align: center; gap: 12px;
    padding: 26px 22px;
  }
  .cta-section__text { text-align: center; }
  .cta-section__title { font-size: 1.1rem; }
  .cta-section__desc { font-size: 0.85rem; }
  .cta-section__btn { margin-inline-start: 0; width: 100%; justify-content: center; }

  /* Services hero */
  .services-hero { padding: 110px 0 40px; }
  .services-hero__title { font-size: 1.7rem; }
  .services-hero__desc { font-size: 0.93rem; }

  /* Services */
  .services { padding: 40px 0 56px; }
  .services__grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
  .service-card { padding: 24px 20px; border-radius: var(--radius-lg); }
  .service-card__icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 14px; }
  .service-card__icon svg { width: 26px; height: 26px; }
  .service-card__title { font-size: 1.02rem; }
  .service-card__desc { font-size: 0.85rem; margin-bottom: 14px; }
  .service-card__features li { font-size: 0.8rem; }
  .services__cta-card { flex-direction: column; text-align: center; padding: 24px 20px; gap: 16px; }
  .services__cta-text { text-align: center; }
  .services__cta .btn { width: 100%; max-width: 340px; padding: 14px; font-size: 0.92rem; }

  /* Section headers */
  .section-header { margin-bottom: 26px; }
  .section-header__title { font-size: 1.55rem; }

  /* Store */
  .store { padding-bottom: 76px; }
  .store__tabs {
    justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -20px 22px; padding: 0 20px 12px;
    scrollbar-width: none; gap: 8px;
    position: sticky; top: 56px; z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow: 0 8px 12px -10px rgba(32,21,16,0.25);
  }
  .store__tabs::-webkit-scrollbar { display: none; }
  .store__tab { padding: 9px 20px; font-size: 0.85rem; flex-shrink: 0; }
  .store__tab:active { transform: scale(0.95); }

  .store__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
  .product-card:active { transform: scale(0.98); }
  .product-card__image { height: 140px; }
  .product-card__badge { top: 8px; right: 8px; padding: 3px 8px; font-size: 0.6rem; }
  .product-card__body { padding: 12px; }
  .product-card__category { font-size: 0.64rem; margin-bottom: 3px; letter-spacing: 0.5px; }
  .product-card__name { font-size: 0.82rem; margin-bottom: 2px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card__weight { font-size: 0.7rem; margin-bottom: 8px; }
  .product-card__pricing { margin-bottom: 10px; gap: 6px; }
  .product-card__price { font-size: 0.95rem; }
  .product-card__price-old { font-size: 0.7rem; }
  .product-card__add-btn { padding: 11px 8px; font-size: 0.8rem; min-height: 44px; }
  .product-card__qty { flex: 1; justify-content: space-between; }
  .product-card__qty button { width: 40px; height: 44px; font-size: 1.25rem; }
  .product-card__qty span { flex: 1; height: 44px; font-size: 0.95rem; }

  /* Cart page */
  .cart-page { padding-bottom: 40px; }
  .cart-page__empty { padding: 50px 0; }
  .cart-page__layout { grid-template-columns: 1fr; gap: 24px; }
  .cart-page__sidebar { position: static; }
  .cart-page-item__img { width: 56px; height: 56px; min-width: 56px; }
  .cart-page-item__name { font-size: 0.85rem; }
  .cart-page-item__total { min-width: 70px; font-size: 0.88rem; }
  .cart-page__summary { padding: 20px; }
  .cart-page__form { padding: 20px; }

  /* Footer */
  .footer { padding: 28px 0 calc(28px + var(--safe-bottom)); }
  .footer__inner { gap: 14px; }
  .footer__links { gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 0.8rem; }
  .footer__social-link { width: 36px; height: 36px; }
  .footer__social-link svg { width: 16px; height: 16px; }
  .footer__copy { font-size: 0.72rem; }

  /* Bottom bar */
  .bottom-bar {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1500;
    border-top: 0.5px solid rgba(0,0,0,0.08);
    padding: 6px 0 calc(6px + var(--safe-bottom));
  }
  .bottom-bar__tab {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 16px; border-radius: 12px; background: none; border: none;
    color: var(--text-secondary); font-family: 'Tajawal', sans-serif;
    font-size: 0.68rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none; position: relative;
    min-width: 60px;
  }
  .bottom-bar__tab svg { width: 24px; height: 24px; transition: all 0.2s ease; }
  .bottom-bar__tab:active { transform: scale(0.9); }
  .bottom-bar__tab--active { color: var(--orange); }
  .bottom-bar__tab--active svg { stroke: var(--orange); transform: translateY(-1px); }
  .bottom-bar__tab--active::after {
    content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--orange-soft); z-index: -1;
  }
  .bottom-bar__badge {
    position: absolute; top: 0; right: 6px;
    background: var(--grad-orange); color: var(--white); font-size: 0.55rem; font-weight: 800;
    min-width: 16px; height: 16px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; line-height: 1;
  }
  .bottom-bar__badge:empty { display: none; }

  /* Product detail: bottom sheet */
  .product-detail {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(100%);
    width: 100%; max-width: 100%; max-height: 88vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
  }
  .product-detail.open { transform: translateY(0); opacity: 1; }
  .product-detail__header { padding: 16px 20px 0; position: relative; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .product-detail__header::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); width: 36px; height: 4px;
    background: var(--line); border-radius: 4px;
  }
  .product-detail__body { padding: 12px 20px calc(14px + var(--safe-bottom)); }
  .product-detail__image { border-radius: 14px; max-height: 46vh; }
  .product-detail__name { font-size: 1.15rem; }
  .product-detail__actions {
    position: sticky; bottom: 0; z-index: 2;
    margin: 4px -20px 0; padding: 12px 20px calc(12px + var(--safe-bottom));
    background: var(--white);
    box-shadow: 0 -8px 20px rgba(0,0,0,0.05);
  }
  .product-detail__actions .product-card__add-btn { flex: 1; padding: 16px; }
  .product-detail__actions .product-card__qty button { width: 44px; height: 44px; }
  .product-detail__actions .product-card__qty span { width: 44px; height: 44px; }

  /* Toast */
  .toast { border-radius: 14px; font-size: 0.85rem; padding: 12px 22px; }
  .toast.show { bottom: calc(80px + var(--safe-bottom)); }
}

/* ================================================================
 * RESPONSIVE — SMALL PHONES (<=380px)
 * ================================================================ */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero__title { font-size: 1.6rem; }
  .hero__badge { font-size: 0.7rem; padding: 5px 14px; }
  .hero__actions .btn { font-size: 0.95rem; }
  .store__grid { gap: 8px; }
  .product-card__body { padding: 10px; }
  .product-card__name { font-size: 0.78rem; }
  .product-card__price { font-size: 0.88rem; }
  .product-card__image { height: 120px; }
  .product-card__add-btn { font-size: 0.72rem; padding: 8px 6px; }
  .product-card__qty button { width: 30px; height: 34px; }
  .product-card__qty span { width: 26px; height: 34px; font-size: 0.8rem; }
  .bottom-bar__tab { padding: 6px 12px; font-size: 0.62rem; min-width: 52px; }
  .bottom-bar__tab svg { width: 22px; height: 22px; }
  .dealer-card { padding: 22px 16px 18px; }
  .dealer-card__logo-wrap { width: 90px; height: 90px; padding: 10px; }
  .hero__dealers-link { width: 56px; height: 56px; }
  .featured__card-img { height: 120px; }
  .featured__card-name { font-size: 0.78rem; }
}
