/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brown:      #6B3A2A;
  --brown-dark: #4A2518;
  --brown-light:#A0522D;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --cream:      #FAF6F0;
  --cream-dark: #F0E8D8;
  --text:       #2C1810;
  --text-mid:   #5C3D2E;
  --text-light: #8B6A50;
  --white:      #FFFFFF;
  --shadow:     0 4px 20px rgba(107,58,42,0.15);
  --radius:     12px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Heebo', sans-serif;
  background: var(--cream);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, video { max-width: 100%; height: auto; }
a { -webkit-tap-highlight-color: transparent; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brown-dark);
  /* iOS safe area top */
  padding-top: env(safe-area-inset-top);
}

.header-top {
  background: var(--brown);
  text-align: center;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 14px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-icon { font-size: 28px; line-height: 1; }

.nav-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
  transition: var(--transition);
}

.nav-logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.7));
  transform: scale(1.04);
}

.hero-logo-img {
  height: 160px;
  width: auto;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  border-radius: 24px;
  filter: drop-shadow(0 4px 24px rgba(201,168,76,0.5));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 4px 24px rgba(201,168,76,0.5)); }
  50%       { filter: drop-shadow(0 4px 36px rgba(201,168,76,0.9)); }
}

.about-logo-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(107,58,42,0.25));
}

.footer-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.3));
}

@media (max-width: 768px) {
  .nav-logo-img { height: 52px; }
  .hero-logo-img { height: 110px; }
  .about-logo-img { height: 150px; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 44px; }
  .hero-logo-img { height: 90px; }
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  white-space: nowrap;
}

.logo-accent { color: var(--gold); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--brown-dark);
  padding: 8px 20px;
  /* iOS safe area */
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.mobile-menu a {
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: 48px;
  display: flex;
  align-items: center;
  text-align: right;
  direction: rtl;
  width: 100%;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu a:active { color: var(--gold); }

.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2C1810 0%, #6B3A2A 40%, #A0522D 70%, #C9A84C 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 700px;
}

.hero-sub {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(44px, 12vw, 96px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-title span { color: var(--gold); }

.hero-desc {
  font-size: clamp(15px, 3vw, 18px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  z-index: 2;
}

.scroll-arrow {
  font-size: 20px;
  animation: bounce 2s infinite;
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  min-height: 48px;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--gold);
  color: var(--brown-dark);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--white);
  color: var(--brown-dark);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--brown-dark);
}

.feature-card {
  text-align: center;
  padding: 36px 24px;
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}

.feature-card:last-child { border-left: none; }
.feature-card:hover { background: rgba(255,255,255,0.05); }

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
  line-height: 1;
}

.feature-card h3 {
  color: var(--gold);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
}

.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,0.7); }

/* ===== CATEGORIES ===== */
.categories-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.category-card {
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
}

.category-card:hover, .category-card:active {
  border-color: var(--gold);
  background: var(--cream);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-icon { font-size: 36px; margin-bottom: 10px; line-height: 1; }

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.category-card span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== PRODUCTS ===== */
.products-section {
  padding: 80px 40px;
  background: var(--cream-dark);
}

.products-section .section-header { margin-bottom: 32px; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid var(--brown-light);
  background: transparent;
  color: var(--brown);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  white-space: nowrap;
  touch-action: manipulation;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--brown);
  color: var(--white);
  border-color: var(--brown);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  touch-action: manipulation;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(107,58,42,0.25);
}

.product-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
}

.product-body { padding: 18px; }

.product-category {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.6;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--brown);
}

.product-price span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 400;
}

.order-btn {
  background: var(--brown);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
  touch-action: manipulation;
}

.order-btn:hover, .order-btn:active {
  background: var(--gold);
  color: var(--brown-dark);
}

/* ===== CART BUTTON ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: 50px;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 14px;
  min-height: 44px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  touch-action: manipulation;
}

.cart-btn:hover { background: rgba(201,168,76,0.2); border-color: var(--gold); }

.cart-badge {
  background: var(--gold);
  color: var(--brown-dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 50px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
  font-family: 'Heebo', sans-serif;
}

/* ===== CART PANEL ===== */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}

.cart-overlay.open { display: block; }

.cart-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--white);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  box-shadow: 4px 0 30px rgba(0,0,0,0.2);
  padding-bottom: env(safe-area-inset-bottom);
}

.cart-panel.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  background: var(--brown-dark);
  color: var(--white);
  flex-shrink: 0;
}

.cart-header h3 { font-size: 18px; font-weight: 700; }

.cart-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close:hover { background: rgba(255,255,255,0.3); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--cream-dark);
}

.cart-item-emoji { font-size: 32px; flex-shrink: 0; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 13px;
  color: var(--brown);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  background: var(--brown);
  color: var(--white);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
  flex-shrink: 0;
}

.qty-btn:hover { background: var(--gold); color: var(--brown-dark); }

.qty-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--brown-dark);
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #ccc;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: var(--transition);
  touch-action: manipulation;
}

.cart-item-remove:hover { color: #e74c3c; background: #ffeaea; }

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}

.cart-empty-icon { font-size: 64px; opacity: 0.3; }
.cart-empty p { font-size: 16px; color: var(--text-light); }

.cart-footer {
  padding: 20px;
  border-top: 2px solid var(--cream-dark);
  background: var(--cream);
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 60vh;
  -webkit-overflow-scrolling: touch;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-dark);
}

.cart-total-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

@media (max-width: 480px) {
  .cart-panel { width: 100vw; }
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

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

.modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: calc(90vh - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
  padding: 0;
  max-width: 560px;
  border-radius: 20px;
  overflow: hidden;
}

.pm-img-wrap {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.pm-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.pm-emoji { font-size: 90px; }

.card-slide-img { transition: opacity 0.3s ease; }

.pm-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px;
  background: rgba(0,0,0,0.15);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.pm-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
  opacity: 0.7;
}

.pm-thumb.active, .pm-thumb:hover {
  border-color: var(--gold);
  opacity: 1;
}

.pm-body {
  padding: 24px 24px 32px;
  overflow-y: auto;
  max-height: calc(90vh - 260px);
  -webkit-overflow-scrolling: touch;
}

.pm-category {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pm-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pm-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.pm-stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.pm-rating-num { font-weight: 700; font-size: 15px; color: var(--brown); }
.pm-rating-count { font-size: 13px; color: var(--text-light); }

.pm-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 20px;
}

.pm-price span { font-size: 14px; font-weight: 400; color: var(--text-light); }

.pm-section { margin-bottom: 18px; }

.pm-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.pm-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

.pm-sizes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-btn {
  padding: 8px 18px;
  border-radius: 8px;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  color: var(--brown-dark);
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  touch-action: manipulation;
}

.size-btn:hover { border-color: var(--brown); }
.size-btn.selected { background: var(--brown); color: var(--white); border-color: var(--brown); }

.pm-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  touch-action: manipulation;
}

.color-swatch.selected { border-color: var(--gold); transform: scale(1.2); }
.color-swatch:hover { transform: scale(1.1); }

.pm-color-name {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 600;
}

.pm-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}

.pm-qty-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border-radius: 50px;
  padding: 4px 12px;
}

.pm-reviews-section { margin-top: 28px; border-top: 2px solid var(--cream-dark); padding-top: 20px; }

.pm-reviews-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.pm-review {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}

.pm-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pm-review-name { font-size: 14px; font-weight: 700; color: var(--brown-dark); }
.pm-review-stars { color: var(--gold); font-size: 13px; }
.pm-review-text { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

@media (max-width: 768px) {
  .product-modal { border-radius: 20px 20px 0 0; max-width: 100%; }
  .pm-img-wrap { height: 200px; }
  .pm-body { max-height: calc(92vh - 200px); padding: 20px 16px 28px; }
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--cream-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  touch-action: manipulation;
}

.modal-close:hover, .modal-close:active { background: var(--brown); color: white; }

.modal-product-info {
  background: var(--cream);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
  font-weight: 600;
  color: var(--brown-dark);
  font-size: 15px;
  text-align: center;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 24px;
  text-align: center;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  direction: rtl;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(30px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--brown-dark);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  z-index: 3000;
  transition: transform 0.4s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
  line-height: 1.4;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== ABOUT ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  max-width: 1200px;
  margin: 80px auto;
  gap: 60px;
  padding: 0 40px;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  box-shadow: var(--shadow);
}

.about-content h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--brown-dark);
  padding: 80px 40px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.contact-item strong {
  display: block;
  color: var(--gold);
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-item p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  line-height: 1.6;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-form .form-group label { color: rgba(255,255,255,0.8); }

.contact-form .form-group input,
.contact-form .form-group textarea {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--gold);
}

/* ===== FOOTER ===== */
.footer {
  background: #1A0E08;
  padding: 50px 40px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer-content { margin-bottom: 32px; }

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */

/* Tablet landscape – 1024px */
@media (max-width: 1024px) {
  .navbar { padding: 14px 24px; }
  .categories-section { padding: 64px 24px; }
  .products-section { padding: 64px 24px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature-card { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .about-section { gap: 40px; padding: 0 24px; }
  .contact-grid { gap: 40px; }
}

/* Tablet portrait – 768px */
@media (max-width: 768px) {
  .header-top { font-size: 11px; padding: 5px 12px; }

  .navbar { padding: 12px 16px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .logo-text { font-size: 19px; }
  .logo-icon { font-size: 22px; }

  .hero { min-height: 85vh; min-height: 85svh; }
  .hero-content { padding: 32px 20px; }
  .hero-sub { font-size: 11px; letter-spacing: 2px; }
  .hero-buttons .btn { min-width: 200px; }

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

  .categories-section { padding: 56px 16px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .products-section { padding: 56px 16px; }

  /* Filter bar scrolls horizontally on small screens */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

  .about-section {
    grid-template-columns: 1fr;
    padding: 0 16px;
    margin: 56px auto;
    gap: 28px;
  }
  .about-image-placeholder { height: 240px; font-size: 80px; }
  .about-stats { gap: 20px; justify-content: flex-start; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-section { padding: 56px 16px; }
  .contact-form { padding: 24px 16px; }

  /* Modal – bottom sheet on mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92svh;
    padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .footer { padding: 40px 16px calc(16px + env(safe-area-inset-bottom)); }
}

/* Mobile – 480px */
@media (max-width: 480px) {
  .header-top { font-size: 10px; padding: 4px 8px; }

  .navbar { padding: 10px 12px; }
  .logo-text { font-size: 17px; letter-spacing: 1px; }
  .logo-icon { font-size: 20px; }

  .hero { min-height: 80vh; min-height: 80svh; }
  .hero-content { padding: 28px 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }

  .features { grid-template-columns: 1fr; }
  .feature-card { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }

  .categories-section { padding: 48px 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-card { padding: 18px 10px; }
  .cat-icon { font-size: 28px; }
  .category-card h3 { font-size: 13px; }

  .products-section { padding: 48px 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-img { height: 140px; font-size: 52px; }
  .product-body { padding: 12px; }
  .product-name { font-size: 14px; margin-bottom: 6px; }
  .product-desc {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .product-price { font-size: 16px; }
  .order-btn { padding: 8px 12px; font-size: 13px; }

  .about-section { margin: 48px auto; padding: 0 12px; }
  .about-image-placeholder { height: 200px; font-size: 72px; }
  .about-stats { gap: 16px; }
  .stat-num { font-size: 30px; }

  .contact-section { padding: 48px 12px; }
  .contact-form { padding: 20px 14px; }

  .modal { padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-title { font-size: 19px; }

  .section-header { margin-bottom: 32px; }
  .section-header p { font-size: 14px; }
}

/* Small phones – 360px (Galaxy A, old iPhones) */
@media (max-width: 360px) {
  .logo-text { font-size: 15px; }
  .logo-icon { font-size: 18px; }

  .hero-content { padding: 24px 14px; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .category-card { padding: 14px 8px; }
  .category-card h3 { font-size: 12px; }
  .cat-icon { font-size: 24px; }

  .products-grid { grid-template-columns: 1fr; }
  .product-img { height: 160px; font-size: 64px; }

  .about-stats { flex-direction: column; align-items: flex-start; gap: 12px; }

  .contact-form { padding: 16px 12px; }
}
