:root {
  --green: #003d2f;
  --green-2: #0f6b52;
  --button: #005f3b;
  --gold: #d9a91a;
  --beige: #f8f3e7;
  --ink: #17201c;
  --muted: #68736e;
  --line: #e5ddcc;
  --white: #fff;
  --danger: #b42318;
  --surface: #f7faf8;
  --shadow-sm: 0 4px 14px rgba(0,61,47,.07);
  --shadow-md: 0 14px 36px rgba(0,61,47,.11);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, Manrope, Arial, sans-serif;
  overflow-x: hidden;
}
html[dir="rtl"] body { font-family: Tajawal, "IBM Plex Sans Arabic", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
main { min-height: 60vh; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.98); box-shadow: 0 5px 22px rgba(0,61,47,.08); border-bottom: 1px solid rgba(0,61,47,.08); }
.topbar { min-height: 34px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: var(--green); color: white; font-size: 14px; }
.topbar .spacer { flex: 1; }
.language-link { display: inline-flex; align-items: center; gap: 7px; }
.language-link span { font-size: 19px; line-height: 1; }
.mainbar { display: grid; grid-template-columns: 190px 190px minmax(280px, 1fr) 132px; gap: 14px; align-items: center; padding: 13px 32px; }
.brand { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; color: var(--green); }
.brand-ar { font-size: 26px; }
.category-trigger, .search-form button, .btn {
  border: 0; border-radius: 8px; min-height: 44px; padding: 0 16px; cursor: pointer; font-weight: 700;
}
.category-trigger { display: flex; gap: 8px; align-items: center; justify-content: center; background: var(--beige); color: var(--green); border: 1px solid var(--line); }
.category-trigger.active { outline: 3px solid rgba(217,169,26,.24); }
.search-form { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 120px; border: 2px solid var(--green-2); border-radius: 8px; overflow: visible; background: white; box-shadow: 0 0 0 4px rgba(15,107,82,.08); transition: box-shadow .18s ease, border-color .18s ease; }
.search-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(217,169,26,.16); }
.search-form input { width: 100%; border: 0; padding: 0 14px; min-height: 44px; outline: 0; }
.search-form button, .btn.primary { background: var(--button); color: white; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-actions a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #f1f7f4; border: 1px solid #dce9e3; position: relative; transition: transform .16s ease, background .16s ease; }
.header-actions a:hover { transform: translateY(-2px); background: #e8f3ee; }
.cart-link b { position: absolute; inset-block-start: -6px; inset-inline-end: -5px; background: var(--gold); color: var(--green); border-radius: 999px; min-width: 20px; font-size: 12px; }
.subnav { display: flex; gap: 22px; overflow-x: auto; padding: 0 32px 12px; color: var(--green); font-weight: 700; white-space: nowrap; }
.mega-menu { position: absolute; inset-inline: 50%; transform: translateX(-50%); top: 100%; width: min(1200px, calc(100vw - 32px)); max-height: 68vh; overflow-y: auto; overflow-x: hidden; background: #fff; border: 1px solid #dce9e3; box-shadow: 0 26px 70px rgba(0,61,47,.2); border-radius: 8px; display: none; }
html[dir="rtl"] .mega-menu { transform: translateX(50%); }
.mega-menu.open { display: block; }
.mega-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--green); }
.mega-head button { width: 44px; height: 44px; border: 0; background: var(--beige); border-radius: 8px; font-size: 24px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; padding: 18px; }
.mega-reset, .mega-block { border: 1px solid #e0eae5; border-radius: 8px; padding: 14px; background: white; transition: border-color .16s ease, box-shadow .16s ease; }
.mega-block:hover { border-color: #a8cbbc; box-shadow: var(--shadow-sm); }
.mega-block { display: flex; flex-direction: column; gap: 8px; }
.mega-title { color: var(--green); font-weight: 800; font-size: 17px; }
.mega-block a:not(.mega-title) { color: var(--muted); font-size: 14px; }
.see-all { color: var(--green-2) !important; font-weight: 700; }
.suggestions { position: absolute; inset-inline: 0; top: calc(100% + 6px); background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 45px rgba(0,0,0,.16); display: none; max-height: 420px; overflow-y: auto; z-index: 60; }
.suggestions.open { display: block; }
.suggestions a { display: grid; grid-template-columns: 54px 1fr auto auto; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line); }
.suggestions img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.suggestions small, .suggestions em { color: var(--muted); font-style: normal; }
.suggestion-state { padding: 14px; color: var(--muted); }
.flash { max-width: 1180px; margin: 16px auto; background: #fff7d6; border: 1px solid #e8cb66; padding: 12px 16px; border-radius: 8px; }
.hero { min-height: min(720px, calc(100vh - 145px)); display: grid; grid-template-columns: minmax(300px, 500px) minmax(320px, 1fr); align-items: center; gap: 48px; padding: 38px max(32px, calc((100vw - 1180px)/2)); background: linear-gradient(135deg,#fff 0%,#f4faf7 58%,#fff9e7 100%); border-bottom: 1px solid #e3ece7; }
html[dir="rtl"] .hero { direction: ltr; }
.hero-copy { direction: rtl; text-align: right; }
.hero-art img { border-radius: 8px; box-shadow: 0 24px 64px rgba(0,61,47,.16); }
.eyebrow { display: inline-block; color: var(--green); background: rgba(217,169,26,.22); border: 1px solid rgba(217,169,26,.45); padding: 8px 14px; border-radius: 999px; font-weight: 800; }
.hero h1 { font-size: clamp(34px, 5vw, 66px); line-height: 1.05; margin: 18px 0; color: var(--green); letter-spacing: 0; }
.hero p { font-size: 21px; color: var(--muted); max-width: 620px; }
.hero-actions, .section-head, .price-row, .buy-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); filter: brightness(1.03); }
.btn.ghost { background: white; color: var(--green); border: 1px solid var(--line); }
.btn.light { background: var(--beige); color: var(--green); border: 1px solid var(--line); }
.btn.small { min-height: 38px; font-size: 14px; width: 100%; }
.benefits, .home-banners, .section, .brands, .testimonials, .page, .catalog-header, .catalog-layout, .product-detail { max-width: 1180px; margin: 0 auto; padding: 32px; }
.benefits { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.benefits div, .brands, .testimonials blockquote, .empty-state, .form-panel, .summary { background: white; border: 1px solid #e0eae5; border-radius: 8px; padding: 18px; box-shadow: var(--shadow-sm); }
.benefits strong { color: var(--green); display: block; }
.benefits span, .product-card p, .catalog-header p, .catalog-header span { color: var(--muted); }
.home-banners { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; padding-top: 0; }
.home-banner { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 18px 45px rgba(0,61,47,.08); }
.home-banner img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home-banner.wide img { aspect-ratio: 16 / 7.5; }
.section-head { justify-content: space-between; margin-bottom: 18px; }
.section-head h2, .catalog-header h1, .page h1 { margin: 0; color: var(--green); font-size: 32px; }
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.category-strip a { min-height: 112px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.category-strip span { color: var(--gold); font-size: 22px; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.product-card { background: white; border: 1px solid #e1eae5; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 3px 12px rgba(0,61,47,.045); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #b7d2c6; box-shadow: var(--shadow-md); }
.product-image { position: relative; aspect-ratio: 1; background: var(--beige); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; padding: 5px 8px; border-radius: 8px; font-weight: 800; font-size: 12px; }
.badge.gold { background: var(--gold); color: var(--green); }
.badge.green { background: var(--green); color: white; inset-inline-start: auto; inset-inline-end: 10px; }
.product-info { padding: 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-info h3 { font-size: 15px; line-height: 1.35; min-height: 41px; margin: 0; }
.product-info p { font-size: 12px; margin: 0; }
.price-row strong, .detail-price strong { color: var(--green); font-size: 19px; }
del { color: var(--muted); }
.brands { display: flex; gap: 24px; align-items: center; }
.brands > strong { color: var(--green); white-space: nowrap; }
.brand-logos { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); align-items: center; gap: 38px; width: 100%; }
.brand-logos img { width: 100%; height: 56px; object-fit: contain; }
.testimonials { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.footer { margin-top: 48px; background: #002f25; color: white; padding: 46px max(32px, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; border-top: 4px solid var(--gold); }
.footer a, .footer span { display: block; color: #e9f5f0; margin-top: 8px; }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters, .summary { position: sticky; top: 150px; }
.filters form, .admin-form, .form-panel { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea { border: 1px solid var(--line); border-radius: 8px; min-height: 42px; padding: 9px 12px; background: white; max-width: 100%; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { min-height: auto; }
.pagination { display: flex; gap: 8px; margin-top: 22px; }
.pagination a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: white; }
.pagination .active { background: var(--green); color: white; }
.product-detail { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: 36px; }
.product-detail > * { min-width: 0; }
.detail-image img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: white; }
.detail-copy h1 { color: var(--green); font-size: 42px; margin-bottom: 8px; }
.detail-copy h2 { color: var(--muted); margin-top: 0; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.specs { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.specs dt { color: var(--muted); }
.cart-table { display: grid; gap: 10px; margin-bottom: 18px; }
.cart-row { display: grid; grid-template-columns: 72px minmax(150px,1fr) 110px 90px 110px auto; align-items: center; gap: 12px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.cart-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-remove { width:max-content; padding:7px 10px; color:#a43125; background:#fff3f1; border:1px solid #efc9c4; border-radius:8px; font-size:12px; font-weight:800; cursor:pointer; }
.cart-remove:hover { color:white; background:#b83b2e; border-color:#b83b2e; }
.checkout-item-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; align-items:center; padding-bottom:10px; border-bottom:1px solid var(--line); }
.checkout-item-row .cart-remove { grid-column:1 / -1; }
.summary { display: grid; gap: 10px; max-width: 420px; margin-inline-start: auto; }
.summary p { display: flex; justify-content: space-between; gap: 14px; margin: 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.admin-body { display: grid; grid-template-columns: 272px minmax(0,1fr); min-height: 100vh; background: #f6f7f4; }
.admin-body.admin-guest { display: block; }
.admin-sidebar { height: 100vh; background: var(--green); color: white; padding: 20px 16px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--gold); color: var(--green); font-weight: 900; }
.admin-brand strong { display: grid; gap: 2px; line-height: 1.2; }
.admin-brand strong small { color: #cce1d9; font-weight: 500; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a { color: #e7f1ed; display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 9px 11px; border-radius: 9px; font-weight: 650; transition: background .16s ease, color .16s ease, transform .16s ease; }
.admin-nav a:hover { background: rgba(255,255,255,.1); color: white; transform: translateX(2px); }
.admin-nav a.active { background: white; color: var(--green); box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.admin-nav-icon { width: 24px; text-align: center; font-size: 19px; line-height: 1; }
.admin-account { display: flex; align-items: center; gap: 10px; padding: 12px 8px; border-top: 1px solid rgba(255,255,255,.15); }
.admin-account > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.admin-account small { color: #cce1d9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #dceae4; color: var(--green); font-weight: 900; }
.admin-logout { width: 100%; display: flex; align-items: center; gap: 10px; color: white; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; padding: 10px 12px; cursor: pointer; }
.admin-mobile-header { display: none; }
.language-switcher { display: flex; gap: 8px; }
.language-switcher a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 8px 10px; }
.language-switcher a.active { background: white; color: var(--green); }
.admin-language { margin-top: auto; flex-wrap: wrap; }
html[dir="rtl"] .admin-body { grid-template-columns: 1fr 250px; }
html[dir="rtl"] .admin-sidebar { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .admin-main { grid-column: 1; grid-row: 1; }
.admin-main { padding: 28px; overflow-x: auto; }
.admin-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.admin-cards div, .admin-login form, .barcode-tool, .category-admin section { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.admin-cards strong { display: block; color: var(--green); font-size: 28px; margin-top: 8px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-table { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: start; }
th { color: var(--green); background: #fffaf0; }
.danger { color: var(--danger); font-weight: 800; }
.admin-form { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 1000px; }
.product-form-head { max-width: 1060px; margin-bottom: 22px; }
.product-form-head h1 { margin: 8px 0 0; }
.product-form-simple { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1060px; }
.form-section { background: white; border: 1px solid #dfe9e4; border-radius: 8px; padding: 22px; box-shadow: var(--shadow-sm); }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-section-title > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--green); color: white; border-radius: 50%; font-weight: 800; }
.form-section-title h2 { font-size: 19px; margin: 0; color: var(--green); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.full-field { grid-column: 1 / -1; }
.rtl-field { direction: rtl; text-align: right; font-family: Tajawal, Arial, sans-serif; }
.media-price-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.image-uploader > input { position: absolute; opacity: 0; pointer-events: none; }
.image-preview { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed #b8cec4; background: #f7faf8; border-radius: 8px; padding: 14px; cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.image-preview:hover { border-color: var(--green-2); background: #f0f7f3; }
.image-preview img { width: 150px; height: 150px; object-fit: contain; border-radius: 8px; background: white; }
.image-preview small, label small { color: var(--muted); font-weight: 500; }
.pricing-fields { display: grid; gap: 16px; }
.input-suffix { display: grid; grid-template-columns: 1fr 52px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.input-suffix input { border: 0; border-radius: 0; }
.input-suffix b { display: grid; place-items: center; background: #eef5f1; color: var(--green); border-inline-start: 1px solid var(--line); }
.promo-preview { display: block; background: #fff8dc; border: 1px solid #ead073; color: var(--green); border-radius: 8px; padding: 13px; font-weight: 800; }
.compact-section { padding-block: 18px; }
.form-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; background: rgba(247,250,248,.96); border-top: 1px solid #dfe9e4; padding: 14px 0; }
.form-errors { max-width: 1060px; background: #fff3f2; border: 1px solid #f1b5b0; color: #8f1d14; border-radius: 8px; padding: 16px 20px; margin-bottom: 18px; }
.form-errors ul { margin-bottom: 0; }
.book-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; }
.admin-login form { width: min(420px, calc(100vw - 32px)); display: grid; gap: 14px; }
.category-admin { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.category-admin span { display: inline-block; margin: 4px; padding: 6px 10px; border-radius: 999px; background: var(--beige); }
.barcode-tool { max-width: 620px; display: grid; gap: 14px; }
@media (max-width: 920px) {
  .topbar { padding: 0 16px; }
  .mainbar { grid-template-columns: 1fr auto; padding: 12px 16px; }
  .brand { grid-column: 1; }
  .category-trigger { grid-column: 2; min-width: 44px; }
  .category-trigger .category-label-full { display: inline; }
  .category-trigger .category-label-short { display: none; }
  .search-form { grid-column: 1 / -1; grid-template-columns: 1fr 96px; }
  .header-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .subnav { padding-inline: 16px; }
  .mega-menu { position: fixed; inset: 0; transform: none !important; width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
  .mega-grid { grid-template-columns: 1fr; }
  .hero, .product-detail, .catalog-layout, .checkout-grid, .footer { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 30px 16px; }
  .benefits, .home-banners, .category-strip, .testimonials, .admin-cards, .category-admin { grid-template-columns: repeat(2, minmax(0,1fr)); padding-inline: 16px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .section, .brands, .page, .catalog-header, .catalog-layout, .product-detail { padding-inline: 16px; }
  .filters, .summary { position: static; max-width: none; }
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row span, .cart-row input, .cart-row b, .cart-row .cart-remove { grid-column: 2; }
  .admin-body { grid-template-columns: 1fr; }
  html[dir="rtl"] .admin-body { grid-template-columns: 1fr; }
  html[dir="rtl"] .admin-sidebar, html[dir="rtl"] .admin-main { grid-column: 1; grid-row: auto; }
  .admin-sidebar { display: none; position: fixed; inset-block: 0; inset-inline-start: 0; width: min(300px, 86vw); height: 100vh; z-index: 50; box-shadow: 12px 0 32px rgba(0,0,0,.22); }
  .admin-sidebar.open { display: flex; }
  .admin-mobile-header { display: flex; align-items: center; justify-content: space-between; margin: -12px -12px 22px; padding: 12px 14px; background: white; border-bottom: 1px solid var(--line); }
  .admin-menu-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: white; color: var(--green); border-radius: 8px; padding: 9px 12px; font-weight: 800; cursor: pointer; }
  .admin-main { padding: 12px; }
  .admin-form, .book-fields { grid-template-columns: 1fr; }
  .media-price-grid { grid-template-columns: 230px 1fr; }
}
@media (max-width: 560px) {
  .benefits, .home-banners, .category-strip, .testimonials, .admin-cards { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .hero h1 { font-size: 34px; }
  .suggestions a { grid-template-columns: 44px 1fr; }
  .suggestions b, .suggestions em { grid-column: 2; }
  .brands { align-items: stretch; flex-direction: column; }
  .brand-logos { grid-template-columns: 1fr; gap: 20px; }
  .form-grid, .media-price-grid { grid-template-columns: 1fr; }
  .form-section { padding: 16px; }
  .image-preview { min-height: 210px; }
  .form-actions .btn { width: 100%; }
  .product-info { padding: 10px; }
  .product-info h3 { font-size: 14px; }
}

/* Modern storefront refresh */
:root {
  --green: #064c3b;
  --green-2: #0b7457;
  --button: #086447;
  --gold: #e0ad2f;
  --beige: #fbf7ed;
  --ink: #18211e;
  --muted: #66736e;
  --line: #e3e9e6;
  --surface: #f7f9f8;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 5px 18px rgba(5,76,59,.07);
  --shadow-md: 0 18px 44px rgba(5,76,59,.13);
}
body { line-height: 1.55; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 3px 18px rgba(5,76,59,.07); }
.topbar { min-height: 30px; padding-inline: max(20px, calc((100vw - 1240px)/2)); font-size: 12px; letter-spacing: .01em; }
.topbar-message, .topbar-whatsapp, .language-link { display: inline-flex; align-items: center; gap: 6px; }
.topbar-whatsapp .whatsapp-logo { width:17px; height:17px; }
.language-selector img { width:22px; height:15px; object-fit:cover; border-radius:2px; box-shadow:0 0 0 1px rgba(0,0,0,.12); }
.language-selector { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; }
.language-selector a { min-height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 1px solid transparent; border-radius: 6px; font-size: 11px; }
.language-selector a.active { color: var(--green); background: white; border-color: white; }
.language-selector a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar-message > span, .topbar-whatsapp > span { color: #ffd66e; }
.mainbar { max-width: 1304px; margin: auto; grid-template-columns: 205px 175px minmax(300px,1fr) auto; gap: 12px; padding: 11px 32px 9px; }
.brand { flex-direction: row; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(145deg,var(--gold),#f2ca60); color: var(--green); font-size: 14px; box-shadow: 0 5px 14px rgba(224,173,47,.24); }
.brand-logo { width: 52px; height: 52px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(5,76,59,.14)); }
.brand-copy { display: grid; line-height: 1.02; }
.brand-copy .brand-ar { font-size: 23px; }
.brand-copy small { font-size: 11px; letter-spacing: .04em; margin-top: 3px; }
.category-trigger, .search-form button, .btn { border-radius: var(--radius-sm); }
.category-trigger { min-height: 46px; justify-content: flex-start; color: #153d2e; background: linear-gradient(135deg,#f6c34c,#e8a91e); border: 1px solid #d79a12; font-size: 14px; font-weight: 900; box-shadow: 0 7px 18px rgba(214,151,16,.25); animation: category-attention 1.15s ease .45s both; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.category-trigger:hover { transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 10px 24px rgba(214,151,16,.34); }
.category-trigger:focus-visible { outline: 3px solid rgba(6,76,59,.25); outline-offset: 2px; }
.category-trigger.active { color: white; background: var(--green); border-color: var(--green); outline: 3px solid rgba(224,173,47,.3); }
.category-trigger .menu-icon { width: 26px; height: 26px; display: grid; place-items: center; color: white; background: rgba(6,76,59,.78); border-radius: 7px; font-size: 18px; }
.category-label-short { display: none; }
.category-trigger.active .menu-icon { color: var(--green); background: var(--gold); }
.category-trigger .chevron { margin-inline-start: auto; }
@keyframes category-attention { 0% { transform: translateY(-5px); opacity:.72; box-shadow:0 0 0 rgba(214,151,16,0); } 55% { transform:translateY(1px); opacity:1; box-shadow:0 0 0 7px rgba(224,173,47,.12); } 100% { transform:none; box-shadow:0 7px 18px rgba(214,151,16,.25); } }
.search-form { grid-template-columns: 38px minmax(0,1fr) 106px; align-items: center; min-height: 46px; border: 1.5px solid var(--green-2); border-radius: 13px; box-shadow: 0 0 0 3px rgba(11,116,87,.06); }
.search-icon { color: var(--green-2); font-size: 24px; text-align: center; transform: rotate(-20deg); }
.search-form input { padding-inline: 2px 12px; font-size: 14px; }
.search-form button { min-height: 42px; margin: 2px; }
.header-actions { gap: 6px; }
.header-actions a { width: auto; min-width: 44px; height: 42px; gap: 6px; padding-inline: 10px; background: transparent; border-color: transparent; }
.header-actions a:hover { background: #f0f6f3; border-color: #dbe9e3; }
.header-actions small { font-size: 11px; font-weight: 700; }
.cart-link b { display: grid; place-items: center; min-height: 20px; padding-inline: 5px; }
.subnav { max-width: 1240px; margin: auto; padding: 5px 18px 10px; gap: 6px; scrollbar-width: none; font-size: 13px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 5px 10px; border-radius: 999px; transition: color .16s ease, background .16s ease; }
.subnav a:hover { color: var(--green-2); background: #edf5f1; }
.subnav-promo { color: #9a6810; background: #fff7dc; }
.mega-menu { width: min(1240px,calc(100vw - 32px)); max-height: 72vh; border-radius: var(--radius-md); border-color: #d8e5df; }
.mega-head { position: sticky; top: 0; z-index: 2; padding: 14px 18px; background: rgba(255,255,255,.97); }
.mega-head > div { display: grid; }
.mega-head small { color: var(--muted); font-weight: 500; }
.mega-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 14px; }
.mega-reset, .mega-block { border-radius: 12px; padding: 13px; }
.mega-reset { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: var(--green); background: var(--beige); }
.mega-reset > span { font-size: 25px; }
.mega-title { font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mega-block a:not(.mega-title) { font-size: 12.5px; }
.see-all { margin-top: auto; }
.suggestions { border-radius: 13px; }

.hero-slider { position: relative; min-height: clamp(500px,64vw,680px); max-height: 720px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--green); color: white; }
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { opacity: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transform: scale(1.025); transition: opacity .6s ease, transform .6s ease; }
.hero-slide.active { opacity: .8; transform: scale(1); }
.hero-overlay { z-index: 1; background: linear-gradient(90deg,rgba(2,38,29,.66) 0%,rgba(2,48,36,.36) 48%,rgba(2,38,29,.08) 100%); }
html[dir="rtl"] .hero-overlay { background: linear-gradient(270deg,rgba(2,38,29,.66) 0%,rgba(2,48,36,.36) 48%,rgba(2,38,29,.08) 100%); }
.hero-content { position: relative; z-index: 2; width: min(1240px,calc(100% - 64px)); margin: auto; }
.hero-content > * { max-width: 690px; }
.hero-content .eyebrow { color: #fff8dc; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.hero-content h1 { max-width: 790px; margin: 18px 0; color: white; font-size: clamp(38px,5.4vw,72px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 3px 24px rgba(0,0,0,.22); }
html[dir="rtl"] .hero-content h1 { letter-spacing: 0; }
.hero-content p { color: rgba(255,255,255,.88); font-size: clamp(17px,1.8vw,21px); line-height: 1.7; }
.hero-content .btn { min-height: 50px; padding-inline: 22px; }
.hero-secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.hero-arrow { position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; color: white; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 31px; cursor: pointer; backdrop-filter: blur(6px); transform: translateY(-50%); transition: background .16s ease; }
.hero-arrow:hover { background: rgba(0,0,0,.4); }
.hero-prev { inset-inline-start: 18px; }
.hero-next { inset-inline-end: 18px; }
.hero-dots { position: absolute; z-index: 3; inset-inline-start: 50%; bottom: 22px; display: flex; gap: 7px; transform: translateX(-50%); }
html[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.52); cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-dots button.active { width: 28px; background: var(--gold); }

.benefits, .section, .brands, .shop-cta, .page, .catalog-header, .catalog-layout, .product-detail { max-width: 1240px; padding-inline: 24px; }
.benefits { position: relative; z-index: 4; margin-top: -24px; padding-block: 0 26px; gap: 10px; }
.benefits div { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 13px; padding: 15px; box-shadow: 0 8px 25px rgba(5,76,59,.1); }
.benefits > div,.benefits p { min-width:0; }
.benefits p { margin: 0; }
.benefit-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green); background: #edf6f2; border-radius: 12px; font-weight: 900; }
.benefits span:not(.benefit-icon) { display: block; font-size: 12px; }
.section { padding-block: 34px; }
.section-head { align-items: end; margin-bottom: 20px; }
.section-head > div { display: grid; gap: 3px; }
.section-head h2, .catalog-header h1, .page h1 { font-size: clamp(25px,3vw,34px); letter-spacing: -.02em; }
html[dir="rtl"] .section-head h2 { letter-spacing: 0; }
.section-kicker { color: var(--green-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-head > a { color: var(--green-2); font-size: 13px; font-weight: 800; }
.category-section { padding-top: 22px; }
.category-strip { grid-template-columns: repeat(8,minmax(0,1fr)); gap: 10px; }
.category-strip a { min-height: 132px; align-items: center; text-align: center; border-color: #e5ebe8; border-radius: 14px; padding: 12px 8px; box-shadow: 0 3px 14px rgba(5,76,59,.04); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-strip a:hover { transform: translateY(-4px); border-color: #abd0c1; box-shadow: var(--shadow-sm); }
.category-icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--beige); border-radius: 50%; font-size: 21px !important; }
.category-strip strong { color: var(--green); font-size: 13px; line-height: 1.3; }
.category-strip small { color: var(--muted); font-size: 10px; }
.product-section:nth-of-type(even) { background: linear-gradient(180deg,transparent,#f0f6f3 35%,#f0f6f3 85%,transparent); max-width: none; padding-inline: max(24px,calc((100vw - 1192px)/2)); }
.product-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.product-card { border-radius: 14px; border-color: #e3e9e6; box-shadow: 0 3px 13px rgba(5,76,59,.045); }
.product-card:hover { transform: translateY(-5px); }
.product-image { aspect-ratio: 1 / .93; overflow: hidden; }
.product-image img { object-fit: contain; padding: 8px; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.badge { top: 9px; border-radius: 999px; padding: 4px 8px; }
.product-info { gap: 7px; padding: 11px; }
.product-category { color: var(--green-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info h3 { min-height: 39px; font-size: 14px; }
.price-row { gap: 7px; margin-top: auto; }
.price-row strong { color: var(--green); font-size: 18px; }
.price-row del { font-size: 11px; }
.product-cart-button { min-height: 37px; gap: 5px; background: var(--button); color: white; border: 0; }
.product-cart-button:disabled { opacity: .48; cursor: not-allowed; }
.school-level-filter { display: grid; gap: 7px; margin: 4px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbf9; }
.school-level-filter legend { padding-inline: 5px; color: var(--green); font-weight: 800; }
.school-level-filter strong { margin-top: 5px; color: var(--green-2); font-size: 12px; }
.school-level-filter .check { font-size: 12px; font-weight: 600; }
.filter-default { color: var(--muted); font-size: 12px; }
.settings-form,.account-form { grid-template-columns:1fr; max-width:1060px; }
.order-status-form { display:grid; grid-template-columns:minmax(130px,1fr) minmax(120px,1fr) auto; gap:6px; align-items:center; min-width:440px; }
.order-status-form select { min-height:36px; font-size:12px; }
.orders-admin-table table { min-width:1180px; }
.orders-admin-table td small { display:block; margin-top:5px; color:var(--muted); }
.dashboard-logout { margin-top:24px; max-width:220px; }
.dashboard-logout .admin-logout { color:white; background:var(--green); }
.whatsapp-button,.whatsapp-action { color:white !important; background:#168a58 !important; border-color:#168a58 !important; }
.whatsapp-button,.whatsapp-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.whatsapp-logo { width:22px; height:22px; flex:0 0 auto; }
.checkout-submit { width:100%; min-height:52px; font-size:15px; }
.checkout-submit:disabled { opacity:.72; cursor:wait; }
.checkout-submit-note { margin:4px 0 0 !important; color:var(--muted); font-size:12px; text-align:center; }
.checkout-total { padding-top:10px; border-top:1px solid var(--line); font-size:17px; }
.order-confirmed { min-height:60vh; display:grid; place-items:center; }
.order-confirmed .empty-state { max-width:650px; width:100%; text-align:center; display:grid; justify-items:center; gap:12px; }
.success-mark { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; color:white; background:#168a58; font-size:32px; font-weight:900; }
.site-footer { grid-template-columns:1.35fr 1fr 1.35fr; align-items:start; gap:34px; }
.footer-brand,.footer-links,.footer-whatsapp { display:grid; align-content:start; gap:7px; }
.footer h3,.footer h4 { margin:0 0 8px; color:white; }
.footer h4 { color:#ffd66e; font-size:14px; }
.footer p { margin:0 0 5px; color:#d7e8e1; line-height:1.65; }
.footer-brand span { margin-top:0; }
.footer-links a { width:max-content; max-width:100%; margin-top:0; text-decoration:none; transition:color .18s ease,transform .18s ease; }
.footer-links a:hover { color:#ffd66e; transform:translateX(3px); }
html[dir="rtl"] .footer-links a:hover { transform:translateX(-3px); }
.footer-whatsapp { grid-column:1 / -1; }
.whatsapp-help-button { display:inline-flex !important; width:fit-content; max-width:100%; align-items:center; gap:10px; padding:13px 17px; color:white !important; background:#168a58; border:1px solid rgba(255,255,255,.2); border-radius:14px; box-shadow:0 8px 22px rgba(0,0,0,.16); font-weight:800; line-height:1.35; text-decoration:none; transition:transform .18s ease,background .18s ease; }
.whatsapp-help-button:hover { background:#10764a; transform:translateY(-2px); }
.whatsapp-icon { width:30px; height:30px; display:grid !important; place-items:center; flex:0 0 auto; margin:0 !important; color:white !important; background:rgba(255,255,255,.17); border-radius:50%; }
.whatsapp-icon .whatsapp-logo { width:23px; height:23px; }
.footer-bottom { grid-column:1 / -1; padding-top:18px; margin-top:8px; color:#bdd4cb; border-top:1px solid rgba(255,255,255,.14); text-align:center; font-size:13px; }
.cart-toast { position:fixed; z-index:120; inset-inline-end:20px; bottom:20px; width:min(390px,calc(100vw - 32px)); display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; color:white; background:#075d45; border:1px solid rgba(255,255,255,.22); border-radius:13px; box-shadow:0 16px 42px rgba(0,47,37,.28); opacity:0; visibility:hidden; transform:translateY(18px); transition:opacity .2s ease,transform .2s ease,visibility .2s ease; }
.cart-toast.show { opacity:1; visibility:visible; transform:translateY(0); }
.cart-toast.error { background:#9b2c22; }
.cart-toast span { min-width:0; font-weight:800; }
.cart-toast a { flex:0 0 auto; color:#ffe18a; font-size:13px; font-weight:800; text-decoration:underline; text-underline-offset:3px; }
[data-cart-form] button[aria-busy="true"] { opacity:.7; cursor:wait; }
.info-page { min-height:58vh; padding-block:54px; }
.info-page-card { max-width:850px; padding:clamp(24px,5vw,52px); background:white; border:1px solid var(--line); border-radius:22px; box-shadow:var(--shadow-sm); }
.info-page-card h1 { margin:8px 0 28px; }
.info-page-card h2 { color:var(--green); font-size:22px; }
.info-page-card p { color:var(--muted); font-size:16px; line-height:1.85; }
.contact-details { display:grid; gap:7px; margin:22px 0; padding:18px; background:#f2f7f5; border-radius:13px; }
.tracking-form { display:grid; grid-template-columns:1fr 1fr auto; gap:12px; align-items:end; margin-top:25px; }
.tracking-form label { display:grid; gap:6px; color:var(--green); font-weight:700; }
.tracking-result { display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; margin-top:20px; padding:16px; border-radius:12px; }
.tracking-result.success { color:#075d45; background:#e4f5ee; }
.tracking-result.error { color:#8a351d; background:#fff0e9; }
.invoice-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 210px; }
.invoice-actions a { padding: 5px 7px; color: var(--green); background: #eef6f2; border: 1px solid #d9e8e1; border-radius: 6px; font-size: 11px; font-weight: 700; }
.invoice-page { min-height: 100vh; padding: 24px; background: #edf2ef; }
.invoice-toolbar { max-width: 900px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.invoice-sheet { max-width: 900px; min-height: 297mm; margin: auto; padding: 14mm; color: #17201c; background: white; box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.invoice-brand { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--green-2); }
.invoice-brand-table,.invoice-meta-table,.invoice-products,.invoice-totals { width: 100%; border-collapse: collapse; }
.invoice-logo { width: 52px; height: 52px; object-fit: contain; }
.admin-brand-logo { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(0,0,0,.18)); }
.invoice-brand-name { padding-inline: 12px; }
.invoice-brand-name strong { display: block; color: var(--green); font-size: 22px; }
.invoice-brand-name span { color: var(--muted); font-size: 12px; }
.invoice-title { color: var(--green); text-align: end; font-size: 28px; font-weight: 900; }
.invoice-meta { padding: 13px; margin-bottom: 18px; background: #f4f8f6; border: 1px solid #dfe8e4; border-radius: 8px; }
.invoice-meta-table td { width: 50%; padding: 4px 8px; vertical-align: top; }
.invoice-meta-table strong { color: var(--green); }
.invoice-products th { padding: 9px 7px; color: white; background: var(--green); border: 1px solid var(--green); text-align: start; }
.invoice-products td { padding: 9px 7px; border: 1px solid var(--line); vertical-align: top; }
.invoice-products .number { text-align: end; white-space: nowrap; }
.invoice-totals { width: min(390px,100%); margin-top: 14px; margin-inline-start: auto; }
.invoice-totals td { padding: 7px 9px; border-bottom: 1px solid var(--line); }
.invoice-totals td:last-child { text-align: end; white-space: nowrap; }
.invoice-totals .grand-total td { color: var(--green); background: #fff4cf; border-top: 2px solid var(--gold); font-size: 17px; font-weight: 900; }
.invoice-footer { margin-top: 22px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); text-align: center; font-size: 12px; }
.muted { color: var(--muted); font-size: 11px; }
@media print { .invoice-toolbar { display:none !important; } .invoice-page { padding:0; background:white; } .invoice-sheet { min-height:0; max-width:none; padding:8mm; box-shadow:none; } }
@media (max-width: 620px) { .invoice-page { padding:8px; } .invoice-sheet { min-height:0; padding:12px; overflow-x:auto; } .invoice-meta-table td { display:block; width:100%; } .invoice-products { min-width:620px; } }
.brands { border: 0; border-radius: var(--radius-md); padding-block: 24px; }
.brands > div:first-child { display: grid; min-width: 190px; }
.brand-logos img { height: 45px; filter: grayscale(1); opacity: .72; transition: filter .2s ease,opacity .2s ease; }
.brand-logos img:hover { filter: none; opacity: 1; }
.shop-cta { margin: 38px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; color: white; background: linear-gradient(120deg,var(--green),#087155); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.shop-cta h2 { margin: 5px 0 0; font-size: clamp(22px,3vw,34px); }
.shop-cta .btn { background: var(--gold); color: var(--green); white-space: nowrap; }
.footer { margin-top: 60px; }

@media (max-width: 1100px) {
  .mainbar { grid-template-columns: 190px 200px minmax(260px,1fr) auto; padding-inline: 20px; }
  .category-trigger { justify-content: flex-start; padding-inline: 12px; }
  .category-trigger [data-category-label], .category-trigger .chevron { display: inline; }
  .mega-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .category-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .site-header { position: relative; }
  .topbar { padding-inline: 14px; gap: 10px; }
  .topbar-message { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .topbar .admin-link, .topbar-whatsapp { display: none; }
  .mainbar { grid-template-columns: minmax(0,1fr) auto; padding: 10px 14px; }
  .brand { grid-column: 1; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy .brand-ar { font-size: 20px; }
  .category-trigger { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width:0; max-width:100%; justify-content: center; overflow:visible; white-space:normal; line-height:1.25; padding-block:8px; }
  .category-trigger .category-label-full, .category-trigger .chevron { display: inline !important; }
  .category-trigger .category-label-short { display:none !important; }
  .header-actions { grid-column: 2; }
  .header-actions small, .account-link { display: none !important; }
  .search-form { grid-column: 1 / -1; grid-row: 3; grid-template-columns: 34px minmax(0,1fr) 106px; width: 100%; }
  .subnav { padding-inline: 8px; }
  .mega-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-slider { min-height: 530px; }
  .hero-slide,.hero-slide.active { transform:none; }
  .hero-content { width: calc(100% - 40px); text-align: center; }
  .hero-content > * { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-arrow { width: 38px; height: 38px; top: auto; bottom: 12px; }
  .hero-prev { inset-inline-start: 14px; }
  .hero-next { inset-inline-end: 14px; }
  .benefits { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; padding-top: 16px; }
  .category-strip { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .shop-cta { margin-inline: 14px; flex-direction: column; align-items: flex-start; border-radius: 17px; }
  .site-footer { grid-template-columns:1fr 1fr; }
  .footer-brand { grid-column:1 / -1; }
  .tracking-form { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .mainbar { gap: 6px; }
  .search-form button { padding-inline: 9px; font-size: 12px; }
  .mega-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 500px; }
  .hero-content h1 { font-size: 37px; }
  .hero-content p { font-size: 16px; }
  .hero-content .btn { width: 100%; }
  .benefits { grid-template-columns: 1fr 1fr; padding-inline: 12px; }
  .benefits div { padding: 11px; }
  .benefit-icon { width: 34px; height: 34px; }
  .category-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .product-info { padding: 9px; }
  .product-info h3 { font-size: 13px; }
  .price-row strong { font-size: 16px; }
  .product-cart-button { font-size: 12px; padding-inline: 7px; }
  .section { padding-inline: 14px; padding-block: 28px; }
  .section-head { align-items: center; }
  .section-kicker { font-size: 10px; }
  .brands { margin-inline: 14px; }
  .site-footer { grid-template-columns:1fr; padding-inline:20px; }
  .footer-brand,.footer-links,.footer-whatsapp,.footer-bottom { grid-column:1; }
  .whatsapp-help-button { width:100%; justify-content:center; text-align:center; }
  .cart-toast { inset-inline:16px; bottom:16px; width:auto; }
  .specs { grid-template-columns:minmax(82px,.8fr) minmax(0,1.2fr); gap:8px 10px; }
  .specs dd { min-width:0; margin-inline-start:0; overflow-wrap:anywhere; }
  .buy-box > * { max-width:100%; }
}
@media (max-width: 620px) {
  .site-footer { grid-template-columns:minmax(0,1fr); justify-items:center; text-align:center; padding-inline:20px; gap:28px; }
  .footer-brand,.footer-links,.footer-whatsapp,.footer-bottom { grid-column:1; width:100%; max-width:100%; justify-items:center; align-items:center; text-align:center; }
  .footer-brand p,.footer-brand span,.footer-links h4,.footer-bottom { max-width:100%; text-align:center; }
  .footer-links a { width:auto; max-width:100%; margin-inline:auto; text-align:center; }
  .whatsapp-help-button { margin-inline:auto; justify-content:center; text-align:center; }
}
@media (max-width: 340px) {
  .category-trigger .category-label-full { display:none !important; }
  .category-trigger .category-label-short { display:inline !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
