/* ===== VARIABLES ===== */
:root {
  --orange: #E8731A;
  --orange-light: #F5943D;
  --orange-glow: rgba(232, 115, 26, 0.12);
  --brown-dark: #1A0E08;
  --brown-mid: #3D2517;
  --cream: #FDF8F3;
  --cream-dark: #F5EDE4;
  --white: #FFFFFF;
  --text-main: #2C1810;
  --text-secondary: #7A6558;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 12px rgba(26, 14, 8, 0.06);
  --shadow-md: 0 8px 32px rgba(26, 14, 8, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 14, 8, 0.1);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --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(--cream);
  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 ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-sm);
  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;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96) !important; }
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,115,26,0.3); }
.btn--outline { background: transparent; color: var(--text-main); border: 2px solid var(--brown-mid); }
.btn--outline:hover { background: var(--brown-dark); color: var(--white); border-color: var(--brown-dark); }
.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:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.text-accent { color: var(--orange); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header__badge {
  display: inline-block; padding: 6px 20px; background: var(--orange-glow);
  color: var(--orange); font-weight: 700; font-size: 0.85rem;
  border-radius: 50px; margin-bottom: 16px;
}
.section-header__title { font-size: clamp(1.8rem,4vw,2.5rem); font-weight: 800; color: var(--brown-dark); line-height: 1.3; }
.section-header--light .section-header__title { color: var(--white); }
.section-header__badge--light { background: rgba(232,115,26,0.2); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(253,248,243,0.85); backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 1px 0 rgba(0,0,0,0.06); padding: 10px 0;
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; }
.navbar__logo { font-size: 1.4rem; font-weight: 900; letter-spacing: 3px; color: var(--brown-dark); }
.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__cart-btn { position: relative; }
.cart-count {
  background: var(--white); color: var(--orange); font-size: 0.75rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; margin-right: -4px;
}
.navbar__mobile-actions { display: none; align-items: center; gap: 12px; }
.navbar__cart-mobile {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--brown-dark); padding: 8px;
}
.cart-count-mobile {
  position: absolute; top: 0px; right: 0px;
  background: var(--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 {
  min-height: 70vh; display: flex; align-items: center; position: relative;
  overflow: hidden; padding: 120px 0 60px;
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
}
.hero__bg-circles { position: absolute; inset: 0; pointer-events: none; }
.hero__circle { position: absolute; border-radius: 50%; background: var(--orange-glow); }
.hero__circle--1 { width: 400px; height: 400px; top: -120px; left: -80px; }
.hero__circle--2 { width: 250px; height: 250px; bottom: -40px; right: -40px; background: rgba(232,115,26,0.07); }
.hero__content { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.hero__badge {
  display: inline-block; padding: 8px 24px; background: var(--orange-glow);
  color: var(--orange); font-weight: 700; font-size: 0.9rem;
  border-radius: 50px; margin-bottom: 24px;
}
.hero__title { font-size: clamp(2rem,5vw,3.2rem); font-weight: 900; color: var(--brown-dark); line-height: 1.25; margin-bottom: 16px; }
.hero__desc { font-size: clamp(1rem,2vw,1.1rem); color: var(--text-secondary); max-width: 520px; margin: 0 auto 28px; line-height: 1.8; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero__stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero__stat { text-align: center; }
.hero__stat-number { display: block; font-size: 1.5rem; font-weight: 900; color: var(--orange); }
.hero__stat-label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* ===== STORE ===== */
.store { padding: 80px 0 100px; background: var(--cream); }

/* Category Tabs */
.store__tabs {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.store__tab {
  padding: 10px 28px; border-radius: 50px; border: 2px solid var(--cream-dark);
  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(--orange); color: var(--white); border-color: var(--orange); }

/* Products Grid */
.store__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Product Card */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); border: 1px solid rgba(0,0,0,0.04);
  display: flex; flex-direction: column; cursor: pointer;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card__image {
  height: 200px; background: var(--cream-dark);
  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(--red); color: var(--white); }
.product-card__badge--out { background: var(--text-secondary); color: var(--white); }

.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__category {
  font-size: 0.75rem; font-weight: 600; color: var(--orange);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.product-card__name { font-size: 1.05rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 6px; 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: 16px; margin-top: auto; }
.product-card__price { font-size: 1.2rem; font-weight: 800; color: var(--orange); }
.product-card__price-old {
  font-size: 0.85rem; 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: 10px 16px; border-radius: var(--radius-sm);
  background: var(--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 { background: var(--orange-light); }
.product-card__add-btn:disabled { background: var(--text-secondary); cursor: not-allowed; }
.product-card__remove-btn {
  width: 36px; height: 36px; min-width: 36px; border: 1.5px solid var(--red);
  border-radius: 10px; 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: var(--radius-sm);
  overflow: hidden; border: 2px solid var(--orange);
}
.product-card__qty button {
  width: 36px; height: 36px; border: none; background: var(--orange-glow);
  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:active { background: var(--orange); color: var(--white); }
.product-card__qty button:hover { 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);
}

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--cream-dark); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__visual { position: relative; display: flex; justify-content: center; align-items: center; }
.about__visual-block {
  width: 260px; height: 300px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: var(--radius-xl); display: flex; align-items: center;
  justify-content: center; position: relative; flex-direction: column;
}
.about__steam { display: flex; gap: 8px; margin-bottom: 12px; }
.about__steam span { width: 3px; height: 24px; background: rgba(255,255,255,0.4); 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__floating-card {
  position: absolute; bottom: -20px; left: -30px; background: var(--white);
  border-radius: var(--radius-md); padding: 16px 24px; box-shadow: var(--shadow-md);
  text-align: center; animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }
.about__floating-number { display: block; font-size: 1.4rem; font-weight: 900; color: var(--orange); }
.about__floating-label { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.about__desc { font-size: 1.05rem; color: var(--text-secondary); margin: 20px 0 28px; line-height: 1.8; }
.about__features { display: flex; flex-direction: column; gap: 14px; }
.about__feature { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.about__check {
  width: 28px; height: 28px; min-width: 28px; display: flex; align-items: center;
  justify-content: center; background: var(--orange-glow); color: var(--orange);
  border-radius: 50%; font-weight: 700; font-size: 0.8rem;
}

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--brown-dark); }
.services__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.service-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 36px 32px; transition: all var(--transition);
}
.service-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.service-card__icon {
  width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: rgba(232,115,26,0.12); border-radius: var(--radius-sm); margin-bottom: 20px;
}
.service-card__title { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.service-card__desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 24px; line-height: 1.7; }

/* ===== FOOTER ===== */
.footer { background: var(--brown-dark); padding: 48px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer__logo { font-size: 1.3rem; font-weight: 900; letter-spacing: 3px; color: var(--white); }
.footer__social { display: flex; gap: 16px; }
.footer__social-link {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer__social-link:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

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

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 2000; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; left: -420px; width: 400px; max-width: 90vw;
  height: 100vh; background: var(--white); z-index: 2001;
  display: flex; flex-direction: column; transition: left var(--transition);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.cart-sidebar.open { left: 0; }

.cart-sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--cream-dark);
}
.cart-sidebar__header h3 { font-size: 1.2rem; font-weight: 800; color: var(--brown-dark); }
.cart-sidebar__close { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 8px; }

.cart-sidebar__body { flex: 1; overflow-y: auto; padding: 20px 24px; -webkit-overflow-scrolling: touch; }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-secondary); }
.cart-empty p { margin-top: 16px; font-size: 1rem; }

.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--cream-dark); align-items: center;
}
.cart-item__icon {
  width: 56px; height: 56px; min-width: 56px; border-radius: var(--radius-sm);
  background: var(--cream-dark); display: flex; align-items: center; justify-content: center;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.9rem; font-weight: 700; color: var(--brown-dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__price-line { font-size: 0.8rem; color: var(--text-secondary); }
.cart-item__controls { display: flex; align-items: center; gap: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--cream-dark); }
.cart-item__controls button {
  width: 34px; height: 34px; border: none; background: var(--cream-dark);
  color: var(--text-main); font-size: 1.1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-item__controls button:active { background: var(--orange); color: var(--white); }
.cart-item__controls span {
  width: 32px; height: 34px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; background: var(--white);
}
.cart-item__remove {
  background: none; border: none; cursor: pointer; color: var(--red);
  padding: 8px; margin-right: 4px; font-size: 0.85rem; transition: opacity var(--transition);
}

.cart-sidebar__footer {
  padding: 20px 24px; border-top: 1px solid var(--cream-dark); background: var(--cream);
}
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 1.1rem; font-weight: 800; color: var(--brown-dark);
}
.cart-checkout-btn { width: 100%; }

/* ===== CHECKOUT MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 3000; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: 520px; max-width: 92vw; max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-xl); z-index: 3001;
  opacity: 0; pointer-events: none; transition: all var(--transition);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  -webkit-overflow-scrolling: touch;
}
.modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--cream-dark);
  position: sticky; top: 0; background: var(--white); z-index: 1;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal__header h3 { font-size: 1.3rem; font-weight: 800; color: var(--brown-dark); }
.modal__close { background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 8px; }

.modal__form { padding: 24px 28px 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; margin-bottom: 6px; font-weight: 600;
  font-size: 0.9rem; color: var(--brown-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm); font-family: 'Tajawal', sans-serif;
  font-size: 1rem; background: var(--cream); 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='%237A6558' 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(232,115,26,0.1);
}
.form-group textarea { resize: vertical; }

.checkout-summary {
  background: var(--cream); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 20px;
}
.checkout-summary__item {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 0.85rem; color: var(--text-secondary); gap: 12px;
}
.checkout-summary__total {
  display: flex; justify-content: space-between; padding: 12px 0 0;
  border-top: 2px solid var(--cream-dark); margin-top: 8px;
  font-size: 1.1rem; font-weight: 800; color: var(--brown-dark);
}
.checkout-submit-btn { width: 100%; font-size: 1.05rem; padding: 16px; }

/* ===== 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%; height: 220px; background: var(--cream-dark); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  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: cover; }

.product-detail__category {
  display: inline-block; padding: 4px 14px; background: var(--orange-glow);
  color: var(--orange); font-weight: 700; font-size: 0.75rem;
  border-radius: 50px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.product-detail__name { font-size: 1.3rem; font-weight: 800; color: var(--brown-dark); 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__actions { display: flex; gap: 10px; align-items: center; }
.product-detail__actions .product-card__add-btn { flex: 1; padding: 14px 24px; font-size: 1rem; border-radius: var(--radius-md); }
.product-detail__actions .product-card__qty { border-radius: var(--radius-md); }
.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: var(--radius-sm); 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: var(--radius-sm);
  background: var(--brown-dark); 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: var(--brown-mid); }
.product-detail__go-cart-btn:active { transform: scale(0.96); }

/* ===== 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(30px); 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, .about__floating-card { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

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

/* ================================================================
 * RESPONSIVE — MOBILE (≤768px)  —  iOS-LEVEL POLISH
 * ================================================================ */
@media (max-width: 768px) {

  /* --- Body & Layout --- */
  body { padding-bottom: calc(72px + var(--safe-bottom)); }

  .container { padding: 0 20px; }

  /* --- Navbar: compact, glass, no hamburger --- */
  .navbar { padding: 12px 0; }
  .navbar.scrolled { padding: 8px 0; }
  .navbar__logo { font-size: 1.15rem; letter-spacing: 2px; }
  .navbar__nav { display: none; }
  .navbar__mobile-actions { display: flex; }
  .navbar__cart-btn { display: none; }

  /* --- Hero: tighter, punchier --- */
  .hero { min-height: auto; padding: 100px 0 48px; }
  .hero__badge { font-size: 0.78rem; padding: 6px 18px; margin-bottom: 18px; }
  .hero__title { font-size: 1.85rem; line-height: 1.3; margin-bottom: 12px; }
  .hero__title br { display: none; }
  .hero__desc { font-size: 0.92rem; margin-bottom: 24px; line-height: 1.7; }
  .hero__actions { margin-bottom: 36px; }
  .hero__actions .btn { width: 100%; max-width: 300px; padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius-md); }
  .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.3rem; }
  .hero__stat-label { font-size: 0.75rem; }
  .hero__circle--1 { width: 250px; height: 250px; top: -80px; left: -60px; }
  .hero__circle--2 { width: 150px; height: 150px; }

  /* --- Store Section --- */
  .store { padding: 60px 0 80px; }
  .section-header { margin-bottom: 28px; }
  .section-header__title { font-size: 1.6rem; }

  /* Tabs: horizontal scroll, sticky */
  .store__tabs {
    justify-content: flex-start; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -20px 24px; padding: 0 20px 12px;
    scrollbar-width: none; gap: 8px;
    position: sticky; top: 56px; z-index: 100;
    background: var(--cream);
  }
  .store__tabs::-webkit-scrollbar { display: none; }
  .store__tab {
    padding: 10px 22px; font-size: 0.85rem;
    flex-shrink: 0; border-width: 1.5px;
  }
  .store__tab:active { transform: scale(0.95); }

  /* Product Grid: 2 columns, tight, card-like */
  .store__grid {
    grid-template-columns: 1fr 1fr; gap: 12px;
  }

  .product-card {
    border-radius: var(--radius-md); box-shadow: none;
    border: 1px solid rgba(0,0,0,0.06);
  }
  .product-card:hover { transform: none; box-shadow: none; }
  .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.65rem; margin-bottom: 4px; 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: 10px 8px; font-size: 0.78rem; border-radius: 10px;
    min-height: 40px;
  }
  .product-card__qty { border-radius: 10px; border-width: 1.5px; }
  .product-card__qty button { width: 34px; height: 38px; font-size: 1.2rem; }
  .product-card__qty span { width: 30px; height: 38px; font-size: 0.9rem; }

  /* --- About --- */
  .about { padding: 60px 0; }
  .about__inner { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .about__visual { order: -1; }
  .about__visual-block { width: 200px; height: 240px; }
  .about__features { align-items: center; }
  .about__floating-card { left: auto; right: -10px; bottom: -15px; padding: 12px 18px; }
  .about__floating-number { font-size: 1.1rem; }
  .about__desc { font-size: 0.95rem; }

  /* --- Services --- */
  .services { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card {
    padding: 24px 20px; border-radius: var(--radius-md);
    display: flex; flex-direction: row; align-items: center; gap: 16px;
    flex-wrap: wrap;
  }
  .service-card__icon { width: 48px; height: 48px; min-width: 48px; margin-bottom: 0; border-radius: 12px; }
  .service-card__icon svg { width: 24px; height: 24px; }
  .service-card__title { flex: 1; margin-bottom: 0; font-size: 1rem; }
  .service-card__desc { width: 100%; margin-bottom: 12px; font-size: 0.82rem; line-height: 1.6; }
  .service-card .btn { width: 100%; justify-content: center; padding: 12px; border-radius: 10px; }

  /* --- Footer --- */
  .footer { padding: 40px 0 calc(40px + var(--safe-bottom)); }
  .footer__social-link { width: 48px; height: 48px; }

  /* --- Cart: Bottom Sheet style --- */
  .cart-sidebar {
    top: auto; bottom: 0; left: 0 !important; right: 0;
    width: 100%; max-width: 100vw;
    height: auto; max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  }
  .cart-sidebar.open { transform: translateY(0); left: 0 !important; }

  .cart-sidebar__header {
    padding: 16px 20px; position: relative;
  }
  .cart-sidebar__header::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); width: 36px; height: 4px;
    background: var(--cream-dark); border-radius: 4px;
  }
  .cart-sidebar__body { padding: 12px 20px; max-height: 45vh; }
  .cart-item { padding: 14px 0; }
  .cart-item__icon { width: 48px; height: 48px; min-width: 48px; }
  .cart-item__name { font-size: 0.82rem; }
  .cart-item__price-line { font-size: 0.75rem; }
  .cart-item__controls button { width: 36px; height: 36px; font-size: 1.1rem; }
  .cart-item__controls span { width: 34px; height: 36px; }
  .cart-item__remove { padding: 10px; font-size: 0.9rem; }
  .cart-sidebar__footer { padding: 16px 20px calc(16px + var(--safe-bottom)); }
  .cart-checkout-btn { padding: 16px; border-radius: var(--radius-md); font-size: 1rem; }

  /* --- Checkout: Full-screen sheet --- */
  .modal {
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(100%);
    width: 100%; max-width: 100%; max-height: 92vh;
    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;
  }
  .modal.open { transform: translateY(0); opacity: 1; }

  .modal__header {
    padding: 16px 20px; position: relative;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal__header::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    transform: translateX(-50%); width: 36px; height: 4px;
    background: var(--cream-dark); border-radius: 4px;
  }
  .modal__header h3 { font-size: 1.15rem; }
  .modal__form { padding: 16px 20px calc(20px + var(--safe-bottom)); }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 0.82rem; margin-bottom: 5px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 14px; font-size: 1rem; border-radius: 10px;
  }
  .checkout-summary { padding: 14px 16px; border-radius: 12px; }
  .checkout-summary__item { font-size: 0.8rem; padding: 6px 0; }
  .checkout-submit-btn { padding: 18px; border-radius: var(--radius-md); font-size: 1.05rem; }

  /* --- Bottom bar --- */
  .bottom-bar {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(253,248,243,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 20px; 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: 64px;
  }
  .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); }
  .bottom-bar__badge {
    position: absolute; top: 0; right: 10px;
    background: var(--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 on mobile --- */
  .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(--cream-dark); border-radius: 4px;
  }
  .product-detail__body { padding: 12px 20px calc(20px + var(--safe-bottom)); }
  .product-detail__image { height: 200px; border-radius: 14px; }
  .product-detail__name { font-size: 1.15rem; }
  .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.55rem; }
  .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 14px; font-size: 0.62rem; min-width: 56px; }
  .bottom-bar__tab svg { width: 22px; height: 22px; }
}
