/* ================================================
   Mahjour Mobile Shop - Professional v2
   Inspired by Iranian digital file marketplaces
   ================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: #f5f7fa;
  color: #1e293b;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

:root {
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-section: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #eff6ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #94a3b8;
  --primary: #1e40af;        /* Navy - trust, professional */
  --primary-light: #3b82f6;
  --primary-soft: rgba(30, 64, 175, 0.08);
  --primary-hover: #1e3a8a;
  --accent: #5a8c2a;          /* Green from logo */
  --accent-light: #7aac3a;
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --warning: #ea580c;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   TOP BAR
   ================================================ */
.topbar {
  background: linear-gradient(90deg, #1e40af, #1e3a8a);
  color: white;
  padding: 8px 0;
  font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.topbar a { color: white; opacity: 0.9; transition: opacity 0.2s; margin-left: 12px; }
.topbar a:hover { opacity: 1; color: white; }
.topbar a:last-child { margin-left: 0; }

/* Topbar-social icons (real brand icons) */
.topbar-social {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  margin-left: 0;
  margin-right: 0;
  opacity: 0.9;
}
.topbar-social a:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  opacity: 1;
}
.topbar-social svg {
  width: 13px;
  height: 13px;
  color: white;
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  justify-content: flex-start;
}
.footer-social a { flex-shrink: 0; }
.footer-social a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Contact page social */
.social-row {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.social-row a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.social-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ================================================
   HEADER
   ================================================ */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-top { padding: 16px 0; border-bottom: 1px solid var(--border); }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo-text-only {
  font-weight: 800;
  font-size: 28px;
  color: var(--primary);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-text-only:hover { color: var(--primary-hover); }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); font-size: 22px; color: white; }
.logo-text { display: flex; flex-direction: column; }
.logo-text small { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: -2px; }

.header-search { flex: 1; max-width: 480px; }
.search-box { display: flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-box input { flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--text); font-size: 14px; outline: none; }
.search-box button { padding: 0 20px; background: var(--primary); color: white; transition: background 0.2s; }
.search-box button:hover { background: var(--primary-hover); }

.header-actions { display: flex; gap: 12px; align-items: center; }
.header-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 13px; font-weight: 500;
  transition: all 0.2s;
}
.header-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.header-btn.primary { background: var(--primary); border-color: var(--primary); color: white; }
.header-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: white; }

.icon-btn {
  position: relative; width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 18px;
}
.icon-btn:hover { background: var(--primary-soft); border-color: var(--primary); }
.cart-badge {
  position: absolute; top: -6px; left: -6px;
  background: var(--danger); color: white;
  font-size: 11px; font-weight: 700;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 100px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-white);
}

/* Nav */
.nav-bar {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 40, 100, 0.05);
  position: sticky; top: 0; z-index: 950;
  padding: 0;
}
.nav-inner { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav-toggle { display: none; cursor: pointer; line-height: 1; font-size: 22px; color: var(--primary); background: transparent; border: 1px solid var(--border); border-radius: 9px; padding: 5px 11px; }
.nav-toggle:hover { background: var(--primary-soft); }
.nav-links { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.side-nav, .side-nav-backdrop { display: none; }
.nav-item {
  padding: 11px 16px; border-radius: 9px; color: #334155; font-weight: 600;
  font-size: 14px; transition: all 0.2s; cursor: pointer; display: inline-flex;
  align-items: center; gap: 5px; text-decoration: none;
}
.nav-item:hover, .nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-item.has-sub::after { content: '▾'; font-size: 10px; opacity: 0.6; transition: transform .2s; }
.nav-item.has-sub:hover::after, .nav-item.has-sub:focus-within::after { transform: rotate(180deg); }

/* ================================================
   HERO / BANNER
   ================================================ */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%); }
.hero::after { 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.04'%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-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.3; font-weight: 800; margin-bottom: 16px; }
.hero h1 .accent { color: #c5e87a; }
.hero p.lead { font-size: 17px; opacity: 0.95; margin-bottom: 28px; max-width: 540px; line-height: 1.8; }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat strong { display: block; font-size: 28px; font-weight: 800; color: #c5e87a; }
.hero-stat span { font-size: 13px; opacity: 0.85; }

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.hero-card:hover { transform: rotate(0deg); }
.hero-card-header { padding-bottom: 16px; border-bottom: 2px dashed var(--border); margin-bottom: 16px; }
.hero-card-title { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.hero-card h3 { font-size: 20px; color: var(--text); font-weight: 800; margin-bottom: 8px; }
.hero-card .price { font-size: 32px; color: var(--primary); font-weight: 800; }
.hero-card .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.hero-card-features { list-style: none; margin: 16px 0; }
.hero-card-features li { padding: 8px 0; color: var(--text-soft); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.hero-card-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ================================================
   BUTTONS
   ================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: all 0.2s; border: 1px solid transparent; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; box-shadow: var(--shadow-sm); }
.btn-accent:hover:not(:disabled) { background: var(--accent-light); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* ================================================
   SECTIONS
   ================================================ */
section { padding: 60px 0; }
.section-head { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.section-title { font-size: 24px; font-weight: 800; color: var(--text); position: relative; padding-bottom: 12px; }
.section-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 3px; background: var(--primary); border-radius: 100px; }
.section-subtitle { color: var(--text-soft); font-size: 14px; margin-top: 8px; }
.section-link { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--primary-hover); }

/* ================================================
   CATEGORIES
   ================================================ */
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  color: var(--text);
}
.category:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-icon { font-size: 28px; margin-bottom: 8px; }
.category-name { font-weight: 600; font-size: 13px; }
.category-count { color: var(--text-muted); font-size: 11px; margin-top: 2px; }

/* ================================================
   PRODUCTS - more professional cards
   ================================================ */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  display: flex; flex-direction: column;
  position: relative;
}
.product:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.product-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.product-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.product-badge.new { background: var(--success); }
.product-badge.hot { background: var(--danger); }

.discount-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--danger); color: white;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { color: var(--primary); font-size: 11px; font-weight: 600; margin-bottom: 6px; text-transform: uppercase; }
.product h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.5; color: var(--text); }
.product-desc { color: var(--text-soft); font-size: 13px; margin-bottom: 12px; flex: 1; line-height: 1.6; }

.product-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.product-meta-item { display: flex; align-items: center; gap: 4px; }

.product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.product-prices { display: flex; flex-direction: column; gap: 2px; }
.product-price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.product-price { font-weight: 800; font-size: 17px; color: var(--primary); }
.product-price .currency { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-right: 2px; }

.add-to-cart {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 18px; font-weight: 700;
}
.add-to-cart:hover { background: var(--primary-hover); transform: scale(1.05); }

/* ================================================
   WHY US - feature boxes
   ================================================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.why-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.why-card p { color: var(--text-soft); font-size: 13px; }

/* ================================================
   CTA BANNER
   ================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-banner p { opacity: 0.9; font-size: 14px; }

/* ================================================
   FOOTER
   ================================================ */
footer { background: #1e293b; color: #cbd5e1; padding: 60px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand h3 { color: white; font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.8; opacity: 0.8; }
.footer-col h4 { color: white; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cbd5e1; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-col p { font-size: 13px; line-height: 1.8; opacity: 0.8; }

.footer-trust { background: rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.footer-trust-item { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.footer-trust-item .icon { width: 36px; height: 36px; background: var(--primary-soft); color: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

.footer-bottom { padding-top: 24px; border-top: 1px solid #334155; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #94a3b8; font-size: 12px; align-items: center; }
.footer-bottom .fb-links a { color: #cbd5e1; text-decoration: none; }
.footer-bottom .fb-links a:hover { color: #fff; }
.footer-col h4 { position: relative; padding-bottom: 10px; margin-bottom: 14px; }
.footer-col h4::after { content: ''; position: absolute; right: 0; bottom: 0; width: 28px; height: 2px; background: var(--primary); border-radius: 2px; }
.footer-col a { display: inline-block; padding: 2px 0; }
.footer-col strong { color: #fff; display: block; font-size: 13px; }
.footer-col .footer-trust-item span { font-size: 12px; opacity: 0.7; }
.contact-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.contact-line { display: flex; align-items: center; gap: 10px; color: #cbd5e1; text-decoration: none; font-size: 13px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 12px; transition: all .18s; }
.contact-line:hover { background: rgba(255,255,255,0.08); color: #fff; }
.contact-line .cl-lbl { font-size: 11px; color: #64748b; background: rgba(255,255,255,0.06); border-radius: 6px; padding: 3px 8px; flex-shrink: 0; }
.contact-line b { font-weight: 600; letter-spacing: 0.3px; }

/* ================================================
   TOAST
   ================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: 4px solid var(--success);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all 0.3s;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-size: 14px;
  font-weight: 500;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ================================================
   MODAL
   ================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 500px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
  box-shadow: var(--shadow-xl);
}
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.modal-header h2 { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: var(--text); border: 1px solid var(--border); }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg-soft); }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.cart-item-price { color: var(--primary); font-size: 13px; font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; }
.qty-control button { width: 28px; height: 28px; border-radius: 6px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background 0.2s; color: var(--text); }
.qty-control button:hover { background: var(--primary); color: white; }
.qty-control span { min-width: 24px; text-align: center; font-weight: 600; color: var(--text); font-size: 14px; }
.remove-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.remove-btn:hover { background: var(--danger); color: white; }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 16px; color: var(--text); }
.cart-total strong { color: var(--primary); font-size: 20px; }
.empty-cart { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-group textarea { min-height: 80px; resize: vertical; font-family: inherit; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  /* footer: 2-column link grid, compact & balanced */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { font-size: 12.5px; margin-bottom: 0; }
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; padding-bottom: 8px; }
  .footer-col li { margin-bottom: 7px; }
  .footer-col a { font-size: 12.5px; }
  .contact-line { padding: 8px 10px; font-size: 12.5px; }
  .footer-social { margin-top: 2px; }
  .footer-trust { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .footer-trust-item { font-size: 12px; gap: 8px; }
  .footer-trust-item .icon { width: 32px; height: 32px; font-size: 14px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; padding-top: 18px; }
  .header-search { display: none; }
  .nav-inner { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav-item { white-space: nowrap; flex-shrink: 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { transform: rotate(0deg); order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .section-head { flex-direction: column; align-items: start; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 22px; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .topbar-social { gap: 4px; }
  .topbar-social a { width: 22px; height: 22px; }
  .topbar-social svg { width: 12px; height: 12px; }
}
@media (max-width: 480px) {
  .topbar-inner { font-size: 12px; }
  /* cart badge: smaller, tucked on corner */
  .cart-badge { top: -5px; left: -5px; min-width: 17px; height: 17px; font-size: 10px; border-width: 1.5px; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }
  .header-btn { width: 36px; height: 36px; }
  .header-btn .hb-ico { width: 16px; height: 16px; flex: 0 0 16px; }
}

.footer-trust-item.enamad-item {
  display: flex; align-items: center; justify-content: center;
  min-height: 70px; padding: 8px 10px;
  background: rgba(255,255,255,0.10);
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius);
}
.footer-trust-item.enamad-item a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; min-width: 120px;
}
.footer-trust-item.enamad-item img {
  display: block; max-width: 130px; max-height: 90px; height: auto;
  object-fit: contain;
}

.nav-item.has-sub { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; right: 0; z-index: 1000;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 40, 100, 0.14);
  min-width: 210px; padding: 8px; white-space: nowrap;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-item.has-sub:hover .nav-dropdown,
.nav-item.has-sub:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  font-size: 13px; font-weight: 500; border-radius: 8px;
  color: var(--text); text-decoration: none;
}
.nav-dropdown a:hover { background: var(--primary-soft); color: var(--primary); }
/* mobile: rom1-style slide-out drawer; hamburger sits next to the logo in header-top */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; margin-right: 6px; }
  .nav-bar { display: none; }
  .side-nav, .side-nav-backdrop { display: block; }
  .side-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: 86%; max-width: 320px;
    background: #fff; box-shadow: 0 0 26px rgba(15,40,100,0.18); z-index: 1300;
    transform: translateX(110%); transition: transform .28s ease; overflow-y: auto;
  }
  .side-nav.open { transform: translateX(0); }
  .side-nav-head {
    position: sticky; top: 0; z-index: 1; background: #fff;
    border-bottom: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  }
  .side-nav-brand { font-weight: 800; color: var(--primary); font-size: 17px; }
  .side-nav-close {
    cursor: pointer; border: none; width: 34px; height: 34px; border-radius: var(--radius);
    background: var(--primary-soft); color: var(--primary); font-size: 15px;
  }
  .side-nav-links { display: flex; flex-direction: column; padding: 6px 0; }
  .side-link {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px;
    padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--text);
    border-bottom: 1px solid var(--border); text-decoration: none;
  }
  .side-link::after { content: '←'; font-size: 14px; color: var(--text-muted); }
  .side-link:hover, .side-link:active { background: var(--primary-soft); color: var(--primary); }
  .side-acc {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    min-height: 48px; padding: 13px 18px; font-size: 15px; font-weight: 600;
    color: var(--text); background: none; border: none; text-align: right;
    cursor: pointer; border-bottom: 1px solid var(--border);
  }
  .side-acc:hover { background: var(--primary-soft); color: var(--primary); }
  .side-acc-icon { font-size: 13px; color: var(--text-muted); transition: transform .2s ease; }
  .side-acc[aria-expanded="true"] .side-acc-icon { transform: rotate(180deg); }
  .side-acc-body { display: none; }
  .side-acc-body.open { display: block; }
  .side-acc-body .side-link { font-size: 14px; padding: 11px 26px; border-bottom: 1px solid var(--border); }
  .side-nav-backdrop {
    position: fixed; inset: 0; background: rgba(15,25,50,0.45); z-index: 1290;
    opacity: 0; visibility: hidden; transition: opacity .28s ease;
  }
  .side-nav-backdrop.show { opacity: 1; visibility: visible; }
}


/* ===== about.php (page about) ===== */
.side-nav-brand { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.about-wrap { max-width: 900px; margin: 42px auto; }
.about-head { text-align: center; padding: 14px 0 6px; }
.about-head h1 { font-size: 28px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.about-head .subtitle { color: var(--text-muted); font-size: 15px; margin: 0; }
.about-photo {
  max-width: 460px; margin: 30px auto 0; border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface);
}
.about-photo img { width: 100%; height: auto; display: block; }
.about-photo-placeholder { text-align: center; color: var(--text-muted); padding: 0 20px; }
.about-photo-placeholder .big { font-size: 52px; }
.about-photo-placeholder .cap { font-size: 14px; margin-top: 10px; font-weight: 600; }
.story-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; line-height: 2.2; font-size: 14.5px; color: var(--text); text-align: justify; margin-top: 30px;
}
.story-card p { margin: 0 0 14px; }
.story-card p:last-child { margin-bottom: 0; }
.story-card .closing { font-weight: 600; color: var(--primary); }
.about-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 34px 0; }
.about-trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.about-trust-item .icon { font-size: 28px; }
.about-trust-item strong { display: block; font-weight: 700; color: var(--text); margin-top: 6px; }
.about-trust-item span { font-size: 12.5px; color: var(--text-muted); }
.about-cta {
  background: var(--primary-soft); border: 1px solid var(--primary-light); border-radius: var(--radius-lg);
  padding: 26px 28px; text-align: center; margin-top: 26px;
}
.about-cta h3 { font-size: 18px; font-weight: 800; color: var(--primary); margin: 0 0 6px; }
.about-cta p { margin: 0 0 14px; color: var(--text); font-size: 14px; }
.about-cta .btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 15px; }
.about-cta .btn:hover { background: var(--primary-hover); }
@media (max-width: 420px) {
  .about-trust { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Brand tagline (v10) ===== */
.logo-text-only { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.logo-text-only .logo-name { font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }
.logo-tagline {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  word-spacing: 3px;
  margin-top: 2px;
  transition: color .2s;
}
.logo-text-only:hover .logo-tagline { color: var(--primary); }
.logo-tagline::after {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  margin-top: 4px;
  opacity: .55;
}
.side-nav-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.25; }
.side-nav-brand .logo-name { font-weight: 800; font-size: 17px; color: var(--primary); }
.side-nav-brand .logo-tagline { font-size: 10px; letter-spacing: 1px; margin-top: 2px; }
.side-nav-brand .logo-tagline::after { width: 22px; margin-top: 3px; }
/* ===== v11: customer auth pages + header account link (appended to v10) ===== */
.header-btn { transition: all .18s ease; }
.side-link { align-items: center; }

/* ---------- Auth (login) & Account pages ---------- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fb 0%, #eef2f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.auth-wrap { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.auth-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; }
.auth-brand .logo-name { font-size: 26px; font-weight: 800; color: var(--dark, #1a1a2e); }
.auth-brand .logo-tagline { font-size: 12px; color: #8a8f9c; letter-spacing: .5px; }
.auth-card {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(26,26,46,.08);
  padding: 32px 28px;
}
.auth-title { font-size: 20px; font-weight: 700; color: var(--dark, #1a1a2e); margin: 0 0 6px; }
.auth-sub { font-size: 13.5px; color: #6b7280; line-height: 1.9; margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-input {
  width: 100%; box-sizing: border-box;
  padding: 13px 16px;
  border: 1.5px solid #e3e6ee; border-radius: 12px;
  font-family: inherit; font-size: 15px; color: #1a1a2e;
  background: #fafbfe;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input:focus { outline: none; border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.12); background: #fff; }
.auth-code { text-align: center; letter-spacing: 10px; font-size: 20px; font-weight: 700; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 18px;
  background: var(--primary, #2563eb); color: #fff;
  border: none; border-radius: 12px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.28); }
.auth-btn:active { transform: translateY(0); }
.auth-link { background: none; border: none; color: var(--primary, #2563eb); font-family: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; padding: 0; }
.auth-link:hover { text-decoration: underline; }
.auth-resend { margin-top: 14px; text-align: center; }
.auth-note { font-size: 12.5px; color: #9aa0ac; text-align: center; margin: 16px 0 0; line-height: 1.8; }
.auth-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 18px; line-height: 1.8; }
.auth-back { font-size: 13px; color: #8a8f9c; text-decoration: none; }
.auth-back:hover { color: var(--primary, #2563eb); }

/* ---------- Account page ---------- */
.account-card { padding: 26px 22px; }
.account-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.account-head .auth-title { margin-bottom: 2px; }
.account-head .auth-sub { margin: 0; font-size: 12.5px; }
.account-section-title { font-size: 15.5px; font-weight: 700; color: #1a1a2e; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #eef0f5; }
.account-products { display: flex; flex-direction: column; gap: 12px; }
.account-product {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid #eef0f5; border-radius: 14px; padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.account-product:hover { border-color: #dfe3ec; box-shadow: 0 3px 14px rgba(26,26,46,.05); }
.account-product .cart-item-info { min-width: 0; }
.account-product .cart-item-name { font-size: 14.5px; font-weight: 600; color: #1a1a2e; margin-bottom: 3px; }
.account-product .cart-item-price { font-size: 12px; color: #9aa0ac; }
.download-btn { width: auto; padding: 10px 20px; font-size: 13.5px; white-space: nowrap; }

/* ===== v13: header account/login button polish — aligned, proportional, modern ===== */
.header-btn { height: 42px; padding: 0 18px; align-items: center; justify-content: center; white-space: nowrap; flex-shrink: 0; }
.header-btn .hb-ico { width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; }
.header-btn .hb-txt { display: inline-block; line-height: 1; }
.header-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.header-btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.32); }
.header-btn.account { background: var(--primary-soft); border-color: transparent; color: var(--primary); font-weight: 600; }
.header-btn.account:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.header-actions { gap: 10px; }
@media (max-width: 780px) {
  /* mobile: account/login = icon-only square, same size as cart button */
  .header-btn { height: 38px; padding: 0; width: 38px; border-radius: 10px; }
  .header-btn .hb-txt { display: none; }
  .header-btn .hb-ico { width: 17px; height: 17px; flex: 0 0 17px; }
  .header-btn.primary .hb-txt { display: none; }
  .icon-btn { width: 38px; height: 38px; font-size: 16px; }
  .header-actions { gap: 8px; }
}

/* v16: enamad box fills its row on mobile */
@media (max-width: 768px) {
  .footer-trust-item.enamad-item { grid-column: 1 / -1; min-height: 84px; }
  .footer-trust-item strong { font-size: 12px; }
  .footer-trust-item span { font-size: 11px; }
}
