/* Core theme derived from the original MHSHope palette */
:root {
  --gold: #d4af37;
  --gold-light: #f4e4a6;
  --gold-dark: #b8941f;
  --dark: #111827;
  --dark-soft: #1f2937;
  --medium: #4b5563;
  --light: #f3f4f6;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  --shadow-heavy: 0 24px 64px rgba(15, 23, 42, 0.16);
  --radius: 18px;
  --transition: 0.28s ease;
  --header-height: 86px;
  --container: 1220px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: #fafafa;
  color: var(--dark);
  direction: rtl;
  line-height: 1.7;
  padding-top: calc(var(--header-height) + var(--topbar-height, 0px));
}
body.menu-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 32px, var(--container)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:32px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom:8px; }
.section-head p { max-width: 640px; color: var(--medium); }
.badge { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px; background: rgba(212,175,55,.12); color: var(--gold-dark); font-weight:700; font-size: .92rem; }
.btn, button.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:none; border-radius: 999px; padding: 13px 22px; cursor:pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background var(--transition);
  font-weight:700;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #f0cf67); color:#161616; box-shadow: 0 14px 30px rgba(212,175,55,.26); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-light { background: #fff; color: var(--dark); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.grid { display:grid; gap:24px; }
.card {
  background:#fff; border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow:hidden;
}
.empty-state { padding: 32px; text-align: center; border:1px dashed var(--border); border-radius: var(--radius); color: var(--medium); background: rgba(255,255,255,.75); }
.topbar {
  position: fixed; top:0; inset-inline:0; z-index: 1300; background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color:#161616; display:none;
}
.topbar.is-visible { display:block; }
.topbar-inner { min-height: 42px; display:flex; align-items:center; justify-content:center; gap:14px; position:relative; padding:8px 52px 8px 20px; font-weight:700; }
.topbar-close { position:absolute; inset-inline-start:16px; top:50%; transform:translateY(-50%); width:30px; height:30px; border-radius:50%; background: rgba(0,0,0,.08); color:#111; border:none; cursor:pointer; }
.site-header {
  position: fixed; inset-inline:0; top: var(--topbar-height, 0px); z-index:1200; background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner { min-height: var(--header-height); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:800; font-size:1.15rem; }
.brand img { width: 56px; height:56px; object-fit:contain; }
.nav-links { display:flex; align-items:center; gap:22px; }
.nav-links a { font-weight:700; color: var(--medium); position:relative; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
.nav-links a.active::after { content:''; position:absolute; bottom:-12px; inset-inline:0; height:3px; border-radius:999px; background: var(--gold); }
.header-actions { display:flex; align-items:center; gap:12px; }
.whatsapp-chip { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:#0f172a; color:#fff; font-size:.95rem; }
.mobile-menu-btn { display:none; width:46px; height:46px; border-radius:14px; border:1px solid var(--border); background:#fff; }
.mobile-menu-btn span { display:block; width:22px; height:2px; background:#111; margin:5px auto; transition: var(--transition); }
.mobile-overlay { position:fixed; inset:0; background: rgba(15,23,42,.45); opacity:0; pointer-events:none; transition: var(--transition); z-index:1190; }
.mobile-overlay.is-visible { opacity:1; pointer-events:auto; }
.mobile-panel { position:fixed; top:0; right:0; left:auto; height:100vh; width:min(86vw, 360px); background:#fff; box-shadow: var(--shadow-heavy); transform: translateX(110%); transition: transform var(--transition), opacity var(--transition); z-index:1210; padding:24px; overflow:auto; opacity:0; }
.mobile-panel.is-open { transform: translateX(0); opacity:1; }
.mobile-panel nav { display:flex; flex-direction:column; gap:8px; margin-top:24px; }
.mobile-panel nav a { font-weight:700; color: var(--dark); padding:14px 0; border-bottom:1px solid var(--border); }
body.menu-open { overflow:hidden; }
.mobile-nav-heading { display:inline-flex; margin-top:10px; }
.hero-shell { position:relative; min-height: clamp(470px, 70vh, 680px); display:grid; align-items:center; overflow:hidden; background: radial-gradient(circle at top right, rgba(212,175,55,.18), transparent 30%), linear-gradient(180deg, #fff, #f8f8f8); }
.hero-slider { position:relative; }
.hero-track { position:relative; min-height: inherit; }
.hero-slide { position:absolute; inset:0; opacity:0; transform: translateX(24px); transition: opacity .55s ease, transform .55s ease; pointer-events:none; }
.hero-slide.active { opacity:1; transform:none; pointer-events:auto; }
.hero-grid { min-height: inherit; display:grid; grid-template-columns: 1.1fr .9fr; align-items:center; gap:40px; }
.hero-content h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height:1.15; margin:18px 0; }
.hero-content p { color:var(--medium); font-size:1.05rem; max-width: 620px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:28px; }
.hero-image-wrap { position:relative; }
.hero-image-wrap::before { content:''; position:absolute; inset:12% 10%; background: radial-gradient(circle, rgba(212,175,55,.18), transparent 65%); filter: blur(18px); }
.hero-image { aspect-ratio: 1 / 1; border-radius: 30px; overflow:hidden; box-shadow: var(--shadow-heavy); border:1px solid rgba(255,255,255,.45); background:#fff; }
.hero-image img { width:100%; height:100%; object-fit:cover; }
.slider-dots { display:flex; align-items:center; gap:10px; margin-top:24px; }
.slider-dots button { width:12px; height:12px; border-radius:50%; border:none; background: rgba(15,23,42,.18); cursor:pointer; }
.slider-dots button.active { width:34px; border-radius:999px; background: var(--gold); }
.features-strip { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.feature-item { padding:20px; display:flex; gap:16px; align-items:flex-start; border-radius: 20px; background:#fff; border:1px solid var(--border); box-shadow: var(--shadow); }
.feature-item i { width:48px; height:48px; border-radius:16px; display:grid; place-items:center; background: rgba(212,175,55,.15); color: var(--gold-dark); font-size:1.2rem; }
.categories-grid, .products-grid, .policy-grid, .stats-grid { display:grid; gap:24px; }
.categories-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 400px)); justify-content:center; }
.category-card { padding:24px; position:relative; max-width:400px; width:100%; margin-inline:auto; }
.category-card h3 { margin-bottom:10px; }
.category-card p { color: var(--medium); }
.category-card .discount-badge { position:absolute; inset-inline-start:18px; top:18px; background:#111827; color:#fff; padding:7px 10px; border-radius:999px; font-size:.86rem; }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); }
.product-card { position:relative; display:flex; flex-direction:column; height:100%; }
.product-thumb { aspect-ratio: 4 / 4.3; overflow:hidden; background:#f4f4f4; }
.product-thumb img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { padding:18px; display:flex; flex-direction:column; gap:12px; flex:1; }
.product-meta { display:flex; flex-wrap:wrap; gap:10px; color: var(--medium); font-size:.92rem; }
.price-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.price-row strong { font-size:1.35rem; color:#111; }
.price-row del { color:#9ca3af; }
.stock-chip, .tag-chip { display:inline-flex; padding:6px 10px; border-radius:999px; font-size:.84rem; font-weight:700; }
.stock-chip.in { background: rgba(22,163,74,.1); color: var(--success); }
.stock-chip.out { background: rgba(220,38,38,.1); color: var(--danger); }
.tag-chip { background: rgba(212,175,55,.14); color: var(--gold-dark); }
.review-carousel { position:relative; overflow:hidden; }
.review-track { display:flex; gap:18px; transition: transform .35s ease; }
.review-card { min-width: min(100%, 360px); padding:24px; }
.review-head { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.review-avatar { width:54px; height:54px; border-radius:50%; overflow:hidden; background:#f2f2f2; display:grid; place-items:center; font-weight:800; color:#666; }
.review-stars { color: var(--gold-dark); }
.footer { background: #0f172a; color:#fff; padding: 56px 0 28px; margin-top: 72px; }
.footer-grid { display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap:32px; }
.footer a, .footer p { color: rgba(255,255,255,.78); }
.footer-bottom { margin-top: 32px; padding-top:18px; border-top:1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); }
.page-hero { padding: 52px 0 28px; background: radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 30%), linear-gradient(180deg, #fff, #f8fafc); }
.filters-bar { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; margin: 24px 0 30px; }
.input, .textarea, .select { width:100%; border-radius:16px; border:1px solid var(--border); background:#fff; padding:14px 16px; }
.label { display:block; font-weight:700; margin-bottom:10px; }
.form-grid { display:grid; gap:18px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column:1/-1; }
.notice, .resume-banner { padding:14px 18px; border-radius: 16px; background: rgba(212,175,55,.12); color:#5f4a12; font-weight:700; display:none; }
.notice.is-visible, .resume-banner.is-visible { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.modal, .drawer { position:fixed; inset:0; z-index:1500; display:none; }
.modal.is-open, .drawer.is-open { display:block; }
.modal-backdrop { position:absolute; inset:0; background: rgba(15,23,42,.58); }
.modal-card, .drawer-card {
  position:relative; width:min(100% - 24px, 720px); max-height: calc(100vh - 40px); overflow:auto; margin:20px auto; background:#fff; border-radius: 24px; box-shadow: var(--shadow-heavy); padding:28px;
}
.drawer-card { width:min(100% - 24px, 1024px); }
.icon-btn { width:40px; height:40px; border:none; border-radius:14px; background:#f5f5f5; cursor:pointer; }
.loader { width:26px; height:26px; border-radius:50%; border:3px solid rgba(0,0,0,.12); border-top-color: var(--gold-dark); animation: spin 1s linear infinite; }
.hidden { display:none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1250;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.32);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 44px rgba(37, 211, 102, 0.38); }
.whatsapp-fab i { font-size: 1.95rem; }
.whatsapp-fab-label {
  position: absolute;
  right: 74px;
  bottom: 10px;
  white-space: nowrap;
  background: #0f172a;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: var(--transition);
}
.whatsapp-fab:hover .whatsapp-fab-label { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) {
  .whatsapp-fab { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  .whatsapp-fab-label { display: none; }
}

@media (max-width: 1024px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .features-strip { grid-template-columns: repeat(2, 1fr); }
  .filters-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .header-actions .whatsapp-chip { display:none; }
  .mobile-menu-btn { display:block; }
  .section { padding: 58px 0; }
  .hero-shell { min-height: auto; padding: 44px 0; }
  .hero-slide { position:relative; display:none; }
  .hero-slide.active { display:block; }
  .hero-grid { min-height:auto; }
  .form-grid, .filters-bar, .features-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { padding-top: calc(var(--header-height) + var(--topbar-height, 0px) + 6px); }
  .container { width: min(100% - 20px, var(--container)); }
  .section-head { flex-direction:column; align-items:flex-start; }
  .modal-card, .drawer-card { padding:20px; }
}


:root[data-theme="dark"] {
  --bg:#07111f;
  --surface:#0f172a;
  --surface-2:#111827;
  --dark:#e5e7eb;
  --medium:#cbd5e1;
  --border:rgba(255,255,255,.08);
  --shadow:0 10px 25px rgba(0,0,0,.34);
  --shadow-heavy:0 24px 60px rgba(0,0,0,.45);
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .hero-shell,
:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .mobile-panel,
:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .modal-card,
:root[data-theme="dark"] .drawer-card,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .feature-item,
:root[data-theme="dark"] .sidebar-box,
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .select { background: var(--surface); color: var(--dark); }
:root[data-theme="dark"] .site-header.scrolled { background: rgba(7,17,31,.92); }
:root[data-theme="dark"] .nav-links a, :root[data-theme="dark"] .footer p, :root[data-theme="dark"] .footer a { color: #cbd5e1; }
:root[data-theme="dark"] .topbar { background:#111827; }
:root[data-theme="dark"] .hero-shell { background: radial-gradient(circle at top right, rgba(212,175,55,.14), transparent 30%), linear-gradient(180deg, #07111f, #0f172a); }
:root[data-theme="dark"] .page-hero { background: radial-gradient(circle at top right, rgba(212,175,55,.14), transparent 30%), linear-gradient(180deg, #07111f, #0f172a); }
.theme-toggle { min-width:96px; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.mobile-panel-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mobile-panel-body { display:grid; gap:16px; }
.mobile-theme-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.site-loader { position:fixed; inset:0; z-index:3000; display:grid; place-items:center; background:rgba(255,255,255,.92); opacity:0; pointer-events:none; transition:opacity .35s ease; }
:root[data-theme="dark"] .site-loader { background:rgba(7,17,31,.94); }
.site-loader.is-visible { opacity:1; pointer-events:auto; }
.site-loader-card { width:min(92vw, 420px); padding:28px; border-radius:28px; background:#fff; border:1px solid var(--border); box-shadow:var(--shadow-heavy); text-align:center; }
:root[data-theme="dark"] .site-loader-card { background:#0f172a; }
.site-loader-card img { width:82px; height:82px; object-fit:contain; margin:0 auto 12px; display:block; }
.loader-lg { width:38px; height:38px; margin: 10px auto 12px; }
.fade-in-up { animation: fadeUp .6s ease both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(18px);} to {opacity:1; transform:none;} }
.whatsapp-fab { right: 20px; left:auto; }
.whatsapp-fab-label { right:74px; left:auto; transform: translateX(8px); }
.whatsapp-fab:hover .whatsapp-fab-label { transform: translateX(0); }
@media (max-width: 640px) {
  .whatsapp-fab { right: 14px; left:auto; bottom: 14px; width: 58px; height: 58px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 74px; }
  .brand span { font-size: 1.65rem; }
  .header-actions { gap: 8px; }
  .theme-toggle { min-width: 84px; }
}


/* polished hero, products, mobile menu and reveal */
.hero-slider { position:relative; min-height:560px; }
.hero-track { position:relative; min-height:560px; }
.hero-slide { position:absolute; inset:0; opacity:0; pointer-events:none; transform:translateY(16px); transition:opacity .45s ease, transform .45s ease; }
.hero-slide.active { opacity:1; pointer-events:auto; transform:translateY(0); }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap:36px; align-items:center; min-height:560px; }
.hero-content h1 { font-size: clamp(2.2rem, 5vw, 4.3rem); line-height:1.04; }
.hero-content p { font-size:1.1rem; max-width:680px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin:20px 0; }
.hero-side-points { display:grid; gap:12px; margin-top:8px; color:var(--medium); }
.hero-side-points li { display:flex; gap:10px; align-items:flex-start; font-weight:700; }
.hero-side-points i { color:var(--gold-dark); margin-top:5px; }
.hero-image-wrap { display:flex; justify-content:center; }
.hero-image { width:min(100%, 530px); aspect-ratio: 1 / .82; background:linear-gradient(135deg, #fff 0%, #f6f0dc 100%); border-radius:34px; padding:18px; box-shadow: var(--shadow-heavy); overflow:hidden; }
.hero-image img { width:100%; height:100%; object-fit:cover; border-radius:24px; }
.slider-dots { display:flex; justify-content:center; gap:10px; margin-top:24px; }
.slider-dots button { width:12px; height:12px; border:none; border-radius:999px; background:#d1d5db; cursor:pointer; transition:var(--transition); }
.slider-dots button.active { width:34px; background:linear-gradient(90deg, var(--gold), var(--gold-dark)); }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:18px; }
.product-card { border:1px solid rgba(15,23,42,.06); box-shadow: 0 14px 34px rgba(15,23,42,.06); }
.product-card:hover { transform:translateY(-6px); box-shadow: 0 20px 42px rgba(15,23,42,.12); }
.product-thumb { aspect-ratio: 4 / 4; }
.product-body h3 { font-size:1.05rem; line-height:1.45; }
.price-row strong { font-size:1.2rem; }
.review-card { box-shadow: 0 14px 34px rgba(15,23,42,.06); border:1px solid rgba(15,23,42,.05); }
.review-avatar img { width:100%; height:100%; object-fit:cover; }
.mobile-overlay { position:fixed; inset:0; background:rgba(2,6,23,.48); z-index:1190; opacity:0; visibility:hidden; transition:var(--transition); }
.mobile-overlay.is-visible { opacity:1; visibility:visible; }
.mobile-panel { position:fixed; top:0; right:0; width:min(88vw,380px); height:100vh; background:#fff; z-index:1200; box-shadow:-24px 0 60px rgba(15,23,42,.18); transform:translateX(110%); transition:transform var(--transition); display:flex; flex-direction:column; }
.mobile-panel.is-open { transform:translateX(0); }
.mobile-panel-head { padding:18px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
.mobile-panel-body { padding:18px; overflow:auto; display:grid; gap:20px; }
.mobile-panel nav { display:grid; gap:6px; }
.mobile-panel nav a { padding:14px 12px; border-radius:14px; border:1px solid transparent; font-weight:800; }
.mobile-panel nav a:hover, .mobile-panel nav a.active { background:#f8fafc; border-color:var(--border); }
.mobile-theme-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.mobile-nav-heading { width:max-content; }
html.menu-open, body.menu-open { overflow:hidden; }
.whatsapp-fab { right:20px !important; left:auto !important; bottom:20px; }
.reveal { opacity:0; transform:translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity:1; transform:translateY(0); }
.empty-state { padding:32px; text-align:center; background:#fff; border:1px dashed var(--border); border-radius:24px; color:var(--medium); font-weight:800; }
@media (max-width: 860px) {
  .hero-slider, .hero-track, .hero-grid { min-height: initial; }
  .hero-slide { position:relative; display:none; transform:none; }
  .hero-slide.active { display:block; }
  .hero-grid { grid-template-columns:1fr; gap:18px; }
  .hero-content { order:2; text-align:right; }
  .hero-image-wrap { order:1; }
  .hero-image { width:100%; aspect-ratio: 1 / .9; border-radius:28px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
  .product-body { padding:14px; gap:10px; }
  .product-body h3 { font-size:.95rem; }
  .price-row strong { font-size:1.05rem; }
  .price-row del { font-size:.85rem; }
  .stock-chip, .tag-chip { font-size:.73rem; padding:5px 8px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size:2.15rem; }
  .hero-content p { font-size:.98rem; }
  .product-thumb { aspect-ratio: 1 / 1.08; }
  .header-inner { gap:10px; }
  .brand span { font-size:1.6rem; }
}

.card, .feature-item, .category-card, .product-card, .review-card, .sidebar-box, .hero-image, .btn, .icon-btn, .mobile-panel, .site-header { transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition), opacity var(--transition); }
.card:hover, .feature-item:hover, .category-card:hover, .review-card:hover, .sidebar-box:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,23,42,.12); }
.hero-slide { position:absolute; inset:0; opacity:0; transform: translateY(14px) scale(.985); pointer-events:none; transition: opacity .5s ease, transform .5s ease; }
.hero-slide.active { opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
.hero-shell .hero-slider { position:relative; min-height: inherit; }
.hero-track { position:relative; min-height: inherit; }
.category-card { min-height: 100%; display:flex; flex-direction:column; justify-content:space-between; }
.category-card .btn { margin-top:20px; }
.category-card-image { width:100%; aspect-ratio: 4 / 3; max-height:280px; border-radius:22px; overflow:hidden; margin-bottom:18px; background:linear-gradient(135deg, #fff7dd, #f2efe6); box-shadow: inset 0 0 0 1px rgba(212,175,55,.12); display:flex; align-items:center; justify-content:center; }
.category-card-image img { width:100%; height:100%; object-fit:cover; object-position:center; }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:18px; }
.product-card { border-radius:24px; }
.product-thumb { aspect-ratio: 4 / 4; }
.product-body { padding:16px; gap:10px; }
.product-body h3 { font-size:1.08rem; line-height:1.45; }
.product-body p { font-size:.95rem; }
.price-row strong { font-size:1.2rem; }
.review-carousel { overflow:hidden; }
.review-track { display:flex; gap:18px; transition: transform .38s ease; will-change: transform; }
.review-card { min-width: clamp(260px, 32vw, 360px); border-radius:24px; }
.review-card p { margin-top:10px; }
.drawer-card { width:min(100% - 24px, 960px); }
.detail-line { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px dashed var(--border); }
.detail-line span:first-child { color:var(--medium); font-weight:700; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns:1fr; gap:20px; }
  .hero-content { order:2; }
  .hero-image-wrap { order:1; }
  .hero-image { border-radius:24px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
  .product-card { border-radius:20px; }
  .product-body { padding:14px; }
  .product-meta { gap:6px; font-size:.82rem; }
  .price-row strong { font-size:1.05rem; }
  .btn.btn-sm { padding:8px 12px; font-size:.84rem; }
}
@media (max-width: 640px) {
  .nav-links, .header-actions .whatsapp-chip { display:none; }
  .mobile-menu-btn { display:block; }
  .section-head { gap:14px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
  .review-card { min-width: 84%; }
  .hero-shell { min-height:auto; padding:20px 0 12px; }
  .hero-slide { position:relative; min-height:auto; }
  .hero-track { min-height:auto; }
  .hero-content h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

@media (max-width: 680px) {
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:14px; }
  .category-card { max-width:none; padding:14px; border-radius:18px; }
  .category-card .discount-badge { inset-inline-start:10px; top:10px; font-size:.72rem; padding:6px 8px; }
  .category-card-image { aspect-ratio: 1 / 1; max-height:150px; border-radius:16px; margin-bottom:12px; }
  .category-card h3 { font-size:1.05rem; margin-bottom:8px; }
  .category-card p { font-size:.86rem; line-height:1.65; }
  .category-card .btn { margin-top:12px; width:100%; justify-content:center; padding:10px 12px; font-size:.85rem; }
}


/* v14 cleanup: featured products, mobile admin and responsive polish */
body { overflow-x: hidden; }
.site-header, .card, .feature-item, .product-card, .category-card, .review-card { backface-visibility: hidden; }

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
  justify-content: center;
  align-items: stretch;
}
.product-card {
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
  min-height: 100%;
  overflow: hidden;
}
.product-thumb {
  height: 240px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: linear-gradient(135deg, #fffaf0 0%, #f5f5f4 100%);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-body {
  min-height: 210px;
}
.product-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-meta {
  justify-content: space-between;
}
.price-row {
  justify-content: flex-start;
}
#featuredProductsGrid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 250px));
  justify-content: center;
}
#featuredProductsGrid .product-card {
  max-width: 250px;
}
#featuredProductsGrid .product-thumb {
  height: 250px;
}
#featuredProductsGrid .product-body {
  min-height: 220px;
}
.review-carousel {
  padding-bottom: 4px;
}
.review-track {
  touch-action: pan-y;
}

.admin-shell {
  overflow-x: clip;
}
.admin-sidebar {
  overscroll-behavior: contain;
}
#adminOverlay {
  z-index: 1590;
}
.admin-sidebar {
  z-index: 1600;
}
.admin-topbar {
  border-bottom: 1px solid rgba(15,23,42,.06);
}
@media (max-width: 900px) {
  .admin-main {
    padding: 12px;
  }
  .admin-topbar {
    top: 0;
    margin-bottom: 16px;
    padding: 8px 0 12px;
  }
  .admin-mobile-toggle {
    display: inline-flex;
    position: sticky;
    top: 8px;
    z-index: 40;
  }
  .admin-title h1 {
    font-size: 1.85rem;
    line-height: 1.15;
  }
  .admin-title p {
    font-size: .94rem;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar > .btn,
  .toolbar > .input,
  .toolbar > .select,
  .toolbar > div,
  .toolbar > form {
    width: 100%;
  }
  .inline-form {
    grid-template-columns: 1fr;
  }
  .detail-line {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .modal-card, .drawer-card {
    box-shadow: 0 -20px 50px rgba(15,23,42,.18);
  }
}
@media (max-width: 860px) {
  .section {
    padding: 56px 0;
  }
  .section-head {
    align-items: flex-start;
  }
  .products-grid,
  #featuredProductsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card,
  #featuredProductsGrid .product-card {
    max-width: none;
  }
  .product-thumb,
  #featuredProductsGrid .product-thumb {
    height: 180px;
    padding: 10px;
  }
  .product-body,
  #featuredProductsGrid .product-body {
    min-height: auto;
    padding: 13px;
  }
}
@media (max-width: 640px) {
  .products-grid,
  #featuredProductsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-thumb,
  #featuredProductsGrid .product-thumb {
    height: 160px;
    border-bottom: 1px solid rgba(15,23,42,.05);
  }
  .product-body {
    gap: 8px;
  }
  .product-body h3 {
    font-size: .95rem;
  }
  .price-row strong {
    font-size: 1rem;
  }
  .price-row del {
    font-size: .82rem;
  }
  .stock-chip, .tag-chip {
    font-size: .7rem;
    padding: 4px 7px;
  }
}


.hover-lift{transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}.hover-lift:hover{transform:translateY(-6px);box-shadow:0 24px 44px rgba(15,23,42,.12)}.product-card .btn,.category-card .btn,.icon-btn,.btn{transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease,color .22s ease,border-color .22s ease}.btn:hover,.icon-btn:hover,.product-card .btn:hover,.category-card .btn:hover{transform:translateY(-2px)}.data-table{width:100%}@media (max-width:900px){.data-table td,.data-table th{word-break:break-word}}

/* v22 mobile carousel, hero, menu and social polish */
.footer-socials { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }
.footer-socials a { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.12); }
.mobile-social-links { display:grid; gap:10px; }
.mobile-social-link { display:flex; align-items:center; justify-content:center; gap:10px; padding:12px 14px; border-radius:16px; background:#f8fafc; border:1px solid var(--border); font-weight:800; }
.categories-grid.mobile-carousel,
.review-carousel,
.review-track,
.product-thumbs {
  scrollbar-width: none;
}
.categories-grid.mobile-carousel::-webkit-scrollbar,
.review-carousel::-webkit-scrollbar,
.review-track::-webkit-scrollbar,
.product-thumbs::-webkit-scrollbar { display:none; }
.review-carousel { overflow-x:auto; overflow-y:hidden; scroll-behavior:smooth; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; }
.review-track { display:flex; gap:18px; width:max-content; min-width:100%; padding:4px 2px 10px; }
.review-track > * { scroll-snap-align:center; flex:0 0 min(100%, 340px); }
.hero-slider, .review-carousel, .categories-grid.mobile-carousel { direction:ltr; }
.hero-slide, .review-card, .category-card { direction:rtl; }
@media (max-width: 860px) {
  .hero-shell { padding:0; background:#0b1220; }
  .hero-slider { min-height: unset; }
  .hero-track { min-height: unset; }
  .hero-slide {
    position:relative;
    display:none;
    overflow:hidden;
    border-radius:0 0 28px 28px;
    min-height: clamp(460px, 80vh, 620px);
    background-image:
      linear-gradient(180deg, rgba(3,7,18,.36) 0%, rgba(3,7,18,.72) 55%, rgba(3,7,18,.9) 100%),
      var(--hero-mobile-bg);
    background-size:cover;
    background-position:center;
  }
  .hero-slide.active { display:block; }
  .hero-grid { min-height: inherit; align-items:end; padding:28px 0; }
  .hero-image-wrap { display:none; }
  .hero-content { order:1; text-align:right; color:#fff; padding-top:110px; }
  .hero-content p, .hero-side-points { color:rgba(255,255,255,.88); }
  .hero-content .btn.btn-light { background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.28); }
  .hero-content .badge { background:rgba(212,175,55,.18); color:#fff; border-color:rgba(212,175,55,.35); }
  .hero-controls { top:auto; bottom:26px; left:16px; }
  .categories-grid.mobile-carousel {
    display:flex;
    direction:ltr;
    overflow-x:auto;
    overflow-y:hidden;
    gap:16px;
    padding:8px 14px 16px;
    margin:0 -14px;
    scroll-snap-type:x mandatory;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }
  .categories-grid.mobile-carousel .category-card {
    direction:rtl;
    flex:0 0 88%;
    min-width:88%;
    max-width:88%;
    scroll-snap-align:center;
    min-height: 100%;
    border:1px solid rgba(15,23,42,.08);
    box-shadow: 0 16px 36px rgba(15,23,42,.08);
  }
  .categories-grid.mobile-carousel .category-card .category-card-image {
    aspect-ratio: 16 / 11;
    min-height: 190px;
  }
  .categories-grid.mobile-carousel .category-card.is-active-mobile {
    border-color: rgba(212,175,55,.85);
    box-shadow: 0 18px 46px rgba(212,175,55,.18), 0 8px 22px rgba(15,23,42,.08);
    transform: translateY(-4px);
  }
  .categories-grid.mobile-carousel .category-card h3 { font-size:1.28rem; }
  .categories-grid.mobile-carousel .category-card p { font-size:1rem; line-height:1.8; }
  .category-carousel-dots { margin-top:10px; }
  .category-carousel-dot { width:12px; height:12px; border-radius:999px; border:none; background:#d7dbe2; transition:var(--transition); }
  .category-carousel-dot.active { width:34px; background:linear-gradient(90deg, var(--gold), var(--gold-dark)); }
  .mobile-panel {
    width:min(92vw, 360px);
    border-radius: 22px 0 0 22px;
    overflow:hidden;
  }
  .mobile-panel-head { padding:14px 16px; }
  .mobile-panel .brand { min-width:0; gap:10px; }
  .mobile-panel .brand img { width:42px; height:42px; }
  .mobile-panel .brand span {
    font-size:1.15rem;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width: 180px;
  }
  .mobile-panel-body { padding:14px; gap:16px; }
  .mobile-panel nav a, .mobile-panel .mobile-brand-link {
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height:54px;
    padding:14px 12px;
    border-radius:16px;
    background:#fff;
    border:1px solid var(--border);
    box-shadow:0 8px 24px rgba(15,23,42,.05);
  }
  .mobile-theme-row { display:grid; grid-template-columns:1fr; }
  .mobile-theme-row .btn, .mobile-theme-row .whatsapp-chip, .mobile-social-link { width:100%; justify-content:center; }
}
@media (max-width: 540px) {
  .categories-grid.mobile-carousel .category-card { flex-basis: 90%; min-width: 90%; max-width: 90%; }
  .categories-grid.mobile-carousel .category-card .category-card-image { min-height: 200px; }
  .review-track > * { flex-basis: 88vw; }
}


/* v24 professional polish */
.cart-chip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#111827;color:#fff;position:relative}
.cart-chip-count{display:none;min-width:22px;height:22px;border-radius:999px;background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#161616;font-size:.75rem;font-weight:900;align-items:center;justify-content:center;padding:0 6px}
.cart-chip-count.is-visible{display:inline-flex}
.product-discount-badge{position:absolute;top:14px;left:14px;z-index:3;background:linear-gradient(135deg,#ef4444,#b91c1c);color:#fff;padding:8px 12px;border-radius:999px;font-size:.8rem;font-weight:900;box-shadow:0 12px 24px rgba(185,28,28,.24)}
.save-badge-inline{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:rgba(212,175,55,.14);color:var(--gold-dark);font-size:.74rem;font-weight:900}
.review-card{background:linear-gradient(180deg,#fff,#fcfaf2);border:1px solid rgba(212,175,55,.18);position:relative}
.review-card::after{content:'';position:absolute;inset:auto 18px 0 18px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--gold),transparent)}
.review-head strong{font-size:1.04rem}
.review-card p{font-size:.98rem;line-height:1.95;color:#374151}
:root[data-theme='dark'] body{background:linear-gradient(180deg,#06101e,#0b1324 28%,#111827)}
:root[data-theme='dark'] .site-header,:root[data-theme='dark'] .mobile-panel,:root[data-theme='dark'] .card,:root[data-theme='dark'] .feature-item,:root[data-theme='dark'] .modal-card,:root[data-theme='dark'] .drawer-card,:root[data-theme='dark'] .input,:root[data-theme='dark'] .textarea,:root[data-theme='dark'] .select{background:rgba(15,23,42,.92)!important;color:#e5e7eb;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .hero-shell,:root[data-theme='dark'] .page-hero{background:radial-gradient(circle at top right, rgba(212,175,55,.16), transparent 30%), linear-gradient(180deg,#07111f,#0b1324)}
:root[data-theme='dark'] .product-card,:root[data-theme='dark'] .review-card,:root[data-theme='dark'] .category-card{background:linear-gradient(180deg,#0f172a,#111827)!important;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .product-thumb,:root[data-theme='dark'] .category-card-image,:root[data-theme='dark'] .hero-image{background:linear-gradient(135deg,#0b1220,#172133)}
:root[data-theme='dark'] .btn-light{background:#162133;color:#e5e7eb;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .btn-dark{background:#f3f4f6;color:#111827}
:root[data-theme='dark'] .notice,:root[data-theme='dark'] .resume-banner{background:rgba(212,175,55,.16);color:#f4e4a6}
:root[data-theme='dark'] .mobile-panel nav a:hover,:root[data-theme='dark'] .mobile-panel nav a.active{background:#162133;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .review-card p,:root[data-theme='dark'] .section-head p,:root[data-theme='dark'] .product-meta,:root[data-theme='dark'] .product-page-desc{color:#cbd5e1}
.mobile-panel-head .brand span{font-size:1.4rem}
.mobile-social-links{display:grid;gap:10px}
.mobile-social-link{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:#0f172a;color:#fff}
.cart-drawer-card{width:min(100% - 24px,780px)}
.cart-items-list{display:grid;gap:12px}
.cart-line{display:grid;grid-template-columns:88px 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:18px;background:rgba(255,255,255,.65)}
.cart-line img{width:88px;height:88px;object-fit:cover;border-radius:14px}
.cart-line-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cart-coupon-box,.cart-summary-box{margin-top:16px;padding:16px;border-radius:18px;background:#f8fafc;border:1px solid var(--border)}
.coupon-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.quiz-result-card{width:100%;text-align:start;border:1px solid var(--border);background:#fff;border-radius:18px;padding:12px;display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:center}
.quiz-result-card img{width:92px;height:92px;object-fit:cover;border-radius:14px}
.quiz-result-card.is-selected{border-color:var(--gold);box-shadow:0 18px 34px rgba(212,175,55,.18);background:linear-gradient(180deg,#fffdf5,#fff)}
@media (max-width:860px){.cart-chip{display:none}.mobile-panel{border-top-left-radius:28px;border-bottom-left-radius:28px}.mobile-panel-head{padding:16px 16px 14px}.mobile-panel-body{padding:16px}.mobile-panel nav a{padding:16px 14px;font-size:1.02rem}.cart-line{grid-template-columns:72px 1fr}.cart-line img{width:72px;height:72px}.cart-line-actions{grid-column:1/-1;justify-content:flex-start}.review-card{min-width:88%}}
.review-carousel{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth}
.review-track{display:flex;gap:18px;width:max-content;min-width:100%;padding:4px 2px 10px;justify-content:center}
.review-track>.review-card,.review-track>.empty-state{flex:0 0 min(100%,360px);scroll-snap-align:center}
.review-card{min-height:190px;border:1px solid rgba(212,175,55,.18);background:linear-gradient(180deg,#fffef8,#fff);position:relative;overflow:hidden}
.review-card:before{content:'';position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,var(--gold),var(--gold-dark))}
.review-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.review-avatar{width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f8f2dd,#efe1aa);font-weight:900;color:#8b6b16;overflow:hidden;box-shadow:0 10px 24px rgba(212,175,55,.18)}
.review-avatar img{width:100%;height:100%;object-fit:cover}
.review-card p{margin:0;color:#475569;font-weight:700;line-height:1.95}
.available-note{font-size:.76rem;color:#8b6b16;font-weight:800}
.product-cart-wide{width:100%;justify-content:center;min-height:48px;border-radius:16px;box-shadow:0 14px 30px rgba(15,23,42,.14)}
.product-discount-badge{background:linear-gradient(135deg,#ef4444,#f59e0b);color:#fff;box-shadow:0 14px 24px rgba(239,68,68,.26)}
.product-card{overflow:hidden}
.product-card:hover .product-thumb img{transform:scale(1.06)}
.product-thumb img{transition:transform .45s ease,filter .35s ease}
.product-card:hover .product-cart-wide,.category-card:hover .btn,.review-card:hover,.feature-item:hover,.about-value-card:hover{box-shadow:0 24px 44px rgba(15,23,42,.14)}
.product-card:hover .tag-chip,.category-card:hover .discount-badge{transform:translateY(-2px)}
.tag-chip,.discount-badge,.stock-chip,.save-badge-inline{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease,color .25s ease}
.category-card{position:relative;overflow:hidden}
.category-card:after{content:'';position:absolute;inset:auto -35% -35% auto;width:140px;height:140px;background:radial-gradient(circle,rgba(212,175,55,.12),transparent 65%);pointer-events:none;transition:transform .45s ease}
.category-card:hover:after{transform:translate(-18px,-18px) scale(1.08)}
.categories-grid-carousel,.categories-grid.mobile-carousel{direction:ltr}
.categories-grid-carousel .category-card,.categories-grid.mobile-carousel .category-card{direction:rtl}
.categories-grid-carousel .category-card.is-active-mobile,.categories-grid.mobile-carousel .category-card.is-active-mobile{border-color:rgba(212,175,55,.55);box-shadow:0 28px 50px rgba(212,175,55,.18);transform:scale(1) translateY(-4px)}
.policy-grid .card,.about-value-card{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.about-value-card i,.policy-grid .card i{font-size:1.5rem;color:var(--gold-dark)}
.thumb-placeholder{display:inline-flex;align-items:center;justify-content:center;color:#94a3b8}
.thumb-placeholder i{font-size:1.1rem}
:root[data-theme='dark'] .review-card{background:linear-gradient(180deg,#0f172a,#111827);border-color:rgba(212,175,55,.18)}
:root[data-theme='dark'] .review-card p{color:#cbd5e1}
:root[data-theme='dark'] .site-header,:root[data-theme='dark'] .mobile-panel,:root[data-theme='dark'] .modal-card,:root[data-theme='dark'] .drawer-card{background:linear-gradient(180deg,#0b1220,#0f172a)!important;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .site-header .nav-links a,:root[data-theme='dark'] .brand,:root[data-theme='dark'] .mobile-panel nav a{color:#e5e7eb}
:root[data-theme='dark'] .tag-chip,:root[data-theme='dark'] .stock-chip.in{background:rgba(255,255,255,.06);color:#f8fafc;border-color:rgba(255,255,255,.08)}
:root[data-theme='dark'] .cart-chip,:root[data-theme='dark'] .whatsapp-chip,:root[data-theme='dark'] .theme-toggle{box-shadow:none}
@media (max-width:768px){.review-track{justify-content:flex-start;padding-inline:8px}.review-track>.review-card,.review-track>.empty-state{flex-basis:86vw}.review-card{min-height:unset;padding:18px 16px}.review-card p{font-size:.95rem;line-height:1.9}.review-head{align-items:flex-start}}
