:root {
  /* Brand Colors — from logo */
  --primary: #1E3A5F;
  --primary-dark: #152D4A;
  --primary-light: #2A4E7A;
  --primary-soft: #E8EEF6;
  --primary-softer: #F2F6FB;

  --accent: #D03030;
  --accent-dark: #B82828;
  --accent-soft: #FFF0F0;
  --accent-glow: 0 8px 24px rgba(208, 48, 48, 0.20);

  --secondary: #5D4E8C;

  /* Surfaces */
  --surface: #ffffff;
  --surface-soft: #F8FAFC;
  --surface-elevated: #FAFBFD;
  --surface-dark: #0F2440;
  --surface-dark-2: #162E4D;

  /* Borders & Text */
  --line: #E2E8F0;
  --line-soft: rgba(226, 232, 240, 0.92);
  --text: #0F172A;
  --text-secondary: #475569;
  --muted: #64748B;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);

  /* Shadows */
  --shadow: 0 4px 24px rgba(15, 36, 64, 0.08);
  --shadow-sm: 0 2px 8px rgba(15, 36, 64, 0.05);
  --shadow-card: 0 6px 20px rgba(15, 36, 64, 0.07);
  --shadow-lg: 0 20px 60px rgba(15, 36, 64, 0.14);
  --shadow-xl: 0 32px 72px rgba(15, 36, 64, 0.18);
  --shadow-glow: 0 8px 32px rgba(208, 48, 48, 0.15);

  /* Radius */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;
  --header-offset: 116px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: var(--surface-soft);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

main,
section {
  scroll-margin-top: var(--header-offset);
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.topbar,
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  padding: 14px 0 10px;
  gap: 24px;
}

.brand img {
  height: 48px;
  width: auto;
  object-fit: cover;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.topbar__links a {
  color: #25324d;
  transition: color 0.2s ease;
}

.topbar__links a:hover,
.main-nav a:hover,
.site-footer a:hover {
  color: var(--primary);
}

.topbar__controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topbar__toggle {
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.topbar__toggle:hover {
  background: var(--primary);
  color: white;
}

.nav-row {
  gap: 10px;
  padding: 10px 0 14px;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}

.main-nav a {
  padding: 7px 9px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #364563;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.main-nav a.is-active,
.main-nav a:focus-visible {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.main-nav a:hover {
  transform: translateY(-1px);
}

.search-shell {
  display: flex;
  align-items: center;
  min-width: 0;
  width: min(320px, 100%);
  flex-shrink: 1;
  border: 2px solid var(--primary);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(39, 72, 123, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-shell:focus-within {
  border-color: var(--accent, var(--primary));
  box-shadow: 0 4px 16px rgba(39, 72, 123, 0.14);
}

[dir="rtl"] .search-shell {
  direction: rtl;
}

.search-shell input,
.search-shell select {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
  height: 48px;
  color: #2c3e50;
  font-family: "Cairo", sans-serif;
  font-size: 0.925rem;
  font-weight: 500;
}

.search-shell input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-shell input {
  flex: 1 1 auto;
  min-width: 0;
}

.search-shell select {
  width: 130px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
  appearance: auto;
}

[dir="rtl"] .search-shell select {
  border-left: 0;
  border-right: 1px solid var(--line);
}

.search-shell button {
  width: 56px;
  height: 48px;
  border: 0;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: all 0.2s;
  cursor: pointer;
  flex-shrink: 0;
}

.search-shell button:hover {
  background: var(--accent-dark);
}

.search-shell__icon {
  width: 18px;
  height: 18px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  position: relative;
}

.search-shell__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 9px;
  height: 2.5px;
  border-radius: 999px;
  background: #fff;
  transform: rotate(45deg);
}

[dir="rtl"] .search-shell__icon::after {
  right: auto;
  left: -6px;
  transform: rotate(-45deg);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 12px;
  transition: all 0.2s;
}

.menu-toggle:hover {
  filter: brightness(1.05);
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.menu-toggle span + span {
  margin-top: 7px;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 40%, #1e3a5f 70%, #162b45 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(208, 48, 48, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 2;
}

[dir="rtl"] .hero__inner {
  direction: rtl;
}

.hero__copy {
  display: flex;
  flex-direction: column;
}

[dir="rtl"] .hero__copy {
  align-items: flex-end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-heading--center h2::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--primary);
  border-radius: 4px;
}

[dir="rtl"] .section-heading--center h2::after {
  order: 1;
}

.hero h1,
.section-heading h2,
.about-panel h2,
.news-layout h2,
.contact-form-wrap h2 {
  margin: 0;
  color: var(--primary);
  line-height: 1.06;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #fff !important;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero .eyebrow {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  position: relative;
  padding-right: 20px;
}

.hero .eyebrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__lead {
  margin: 16px 0 28px;
  color: rgba(255,255,255,0.7);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  max-width: 440px;
}

.hero .button {
  background: var(--accent);
  box-shadow: var(--accent-glow), 0 4px 20px rgba(14,165,233,0.3);
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.hero .button:hover {
  background: var(--accent-dark);
}

[dir="rtl"] .hero__lead,
[dir="rtl"] .hero h1 {
  text-align: right;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: 100%;
  max-width: 480px;
  max-height: 420px;
  object-fit: cover;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
  animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========== Trust Bar ========== */
.trust-bar {
  background: linear-gradient(135deg, #fff 0%, #fafbfd 100%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  padding: 24px 0;
  position: relative;
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

[dir="rtl"] .trust-bar__item {
  flex-direction: row-reverse;
}

.trust-bar__item svg {
  flex-shrink: 0;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(208,48,48,0.15));
}

.trust-bar__item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}

.trust-bar__item span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .trust-bar__item strong { font-size: 0.8rem; }
  .trust-bar__item span { font-size: 0.68rem; }
  .trust-bar__item svg { width: 22px; height: 22px; }

  .categories__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .category-tile img { height: 110px; padding: 14px 10px 8px; }
  .category-tile span { font-size: 0.75rem; padding: 10px 6px; }

  .hero { padding: 40px 0 50px; min-height: 400px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero__copy { align-items: center; }
  .hero__visual img { max-height: 260px; max-width: 300px; }
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow { padding-right: 0; }
}

.hero__pager {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}

[dir="rtl"] .hero__pager {
  flex-direction: row-reverse;
}

.hero__pager-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
}

.hero__pager-dot.is-active {
  width: 36px;
  background: var(--accent);
}

/* ============================================================================
   BUTTONS & CTAs
   ============================================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(39, 72, 123, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(39, 72, 123, 0.24);
  filter: saturate(1.05);
}

.button--sm {
  padding: 13px 26px;
  font-size: 0.96rem;
}

.button--ghost {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(39, 72, 123, 0.18);
  box-shadow: 0 12px 24px rgba(39, 72, 123, 0.08);
}

.button--ghost-danger {
  background: #fff6f6;
  color: #c23838;
  border: 1px solid rgba(194, 56, 56, 0.18);
  box-shadow: none;
}

/* ============================================================================
   CATEGORIES
   ============================================================================ */

.categories {
  padding: 48px 0 40px;
  background: #f8fafb;
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8ecf1;
  box-shadow: none;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.category-tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #fff;
  padding: 20px 16px;
  transition: transform 0.35s ease;
}

.category-tile:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span {
  display: block;
  width: 100%;
  padding: 12px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #374151;
  background: #fafbfc;
  border-top: 1px solid #f0f2f5;
}

.category-tile:hover span {
  color: var(--primary);
  background: #f0f7ff;
}

.category-tile__placeholder {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
}

/* ============================================================================
   SECTIONS & LAYOUT
   ============================================================================ */

.section {
  padding: 64px 0;
}

.section--tight {
  padding-top: 34px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center p,
.section-heading--split p,
.about-panel__content p,
.news-layout__intro p,
.contact-form-wrap p {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

[dir="rtl"] .section-heading--split {
  flex-direction: row-reverse;
}

.section-heading__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.section-heading h2,
.about-panel h2,
.news-layout h2,
.contact-form-wrap h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-cta,
.news-layout__cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ============================================================================
   FEATURE & MEDIA GRIDS
   ============================================================================ */

.feature-grid,
.brand-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.media-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(30, 54, 95, 0.14);
}

.media-card {
  position: relative;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Featured Products Cards ========== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.featured-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: #d0d7e0;
}

.featured-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  z-index: 2;
}

[dir="rtl"] .featured-card__badge {
  right: auto;
  left: 14px;
}

.featured-card__img {
  background: #fafbfc;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-bottom: 1px solid #f0f2f5;
}

.featured-card__img img {
  max-width: 100%;
  max-height: 165px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-card:hover .featured-card__img img {
  transform: scale(1.06);
}

.featured-card__body {
  padding: 18px 20px 20px;
}

.featured-card__cat {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.featured-card__body h3 {
  margin: 6px 0 8px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 14px;
}

.featured-card__price strong {
  font-size: 1.15rem;
  color: var(--primary);
}

.featured-card__old {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.featured-card__btn {
  width: 100%;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  transition: all 0.25s ease !important;
}

.featured-card__btn:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 14px rgba(30,58,95,0.25);
}

@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .featured-card__img { height: 140px; padding: 14px; }
  .featured-card__img img { max-height: 110px; }
  .featured-card__body { padding: 12px 14px 14px; }
  .featured-card__body h3 { font-size: 0.85rem; }
  .featured-card__price strong { font-size: 0.95rem; }
  .featured-card__btn { padding: 8px !important; font-size: 0.78rem !important; }
}

/* ========== Stats Counter Section ========== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(208, 48, 48, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(208, 48, 48, 0.3);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  direction: ltr;
}

.stat-number::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  margin-inline-start: 2px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.8rem; }
  .stat-item { padding: 20px 12px; }
}

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

.brand-grid .media-card {
  grid-column: span 1;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #e8ecf1;
  background: #fff;
  transition: all 0.3s ease;
}

.brand-grid .media-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.brand-grid .media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 60px;
}

/* ============================================================================
   PRODUCTS SECTION
   ============================================================================ */

.section--products {
  padding-top: 40px;
}

.products-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
}

[dir="rtl"] .products-layout {
  direction: rtl;
}

.product-sidebar {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-offset) + 20px);
}

.product-sidebar__title {
  margin: 0;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
}

[dir="rtl"] .product-sidebar__title {
  text-align: right;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li + li {
  border-top: 1px solid rgba(221, 228, 239, 0.7);
}

.sidebar-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  color: #334460;
  font-weight: 600;
  transition: all 0.2s;
}

[dir="rtl"] .sidebar-list a {
  flex-direction: row-reverse;
}

.sidebar-list a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar-list span {
  color: #9aa7bc;
}

.sidebar-list__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: #334460;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

[dir="rtl"] .sidebar-list__button {
  flex-direction: row-reverse;
  text-align: right;
}

.sidebar-list__button span {
  color: #334460;
}

.sidebar-list__button strong {
  color: #9aa7bc;
  font-weight: 700;
}

.sidebar-list__button.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-inline-start: 3px solid var(--accent);
}

.sidebar-list__button.is-active span {
  color: var(--accent);
}

.sidebar-list__button:hover {
  background: var(--primary-softer);
}

.products-main {
  min-width: 0;
  padding: 18px;
  background: linear-gradient(165deg, var(--surface-elevated) 0%, #f2f6fb 55%, #eef2f8 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(29, 54, 96, 0.04);
}

[dir="rtl"] .products-toolbar {
  direction: rtl;
}

.products-toolbar__controls {
  display: flex;
  gap: 12px;
}

.products-toolbar select {
  min-width: 120px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3a4a68;
  transition: all 0.2s;
}

.products-toolbar select:hover {
  border-color: var(--primary);
}

.products-toolbar__pager {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

[dir="rtl"] .products-toolbar__pager {
  flex-direction: row-reverse;
}

.products-toolbar__pager span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--line);
}

.products-toolbar__pager button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.products-toolbar__pager button:hover {
  background: var(--primary);
  color: #fff;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: #d0d7e0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  padding: 0;
  background: #fafbfc;
  overflow: hidden;
  border-bottom: 1px solid #f0f2f5;
}

.product-card__media img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 0;
  gap: 6px;
  min-height: 0;
}

.product-card__meta {
  display: block;
  color: #9aa7bc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[dir="rtl"] .product-card__meta {
  text-align: right;
}

.product-card h3 {
  margin: 0;
  color: #1a2332;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover h3 {
  color: var(--accent);
}

[dir="rtl"] .product-card h3 {
  text-align: right;
}

.product-card__desc {
  display: none;
}

[dir="rtl"] .product-card__desc {
  text-align: right;
}

.product-card__footer {
  margin-top: auto;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

[dir="rtl"] .product-card__price-row {
  flex-direction: row-reverse;
}

.product-card__price {
  color: #1a2332;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

[dir="rtl"] .product-card__rating {
  flex-direction: row-reverse;
}

.stars {
  display: flex;
  align-items: center;
  gap: 1px;
}

[dir="rtl"] .stars {
  flex-direction: row-reverse;
}

.star {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star--filled {
  fill: #fbbf24;
  stroke: #fbbf24;
}

.star--empty {
  fill: none;
  stroke: #dde4ef;
}

.product-card__rating-text {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

[dir="rtl"] .product-card__fav {
  right: auto;
  left: 12px;
}

.product-card__fav:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.product-card__fav.is-active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.product-card__add {
  min-width: 0;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.25s ease;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 10px;
  flex: 1;
  text-align: center;
}

.product-card__add:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 4px 14px rgba(30,58,95,0.25);
}

.product-card__share {
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
  transition: all 0.2s;
}

.product-card__share:hover {
  background: var(--primary-soft);
}

.product-card__share--muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px dashed rgba(154, 167, 188, 0.55);
  color: #9aa7bc;
  font-weight: 700;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.product-card__share--muted:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.product-card--highlight {
  background: linear-gradient(180deg, #fff 0%, #eef4fd 100%);
  border-color: rgba(39, 72, 123, 0.22);
  box-shadow:
    0 0 0 1px rgba(39, 72, 123, 0.08),
    var(--shadow-card);
}

.product-empty,
.admin-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  border: 1px dashed #b8c6dd;
  background: #f9fbff;
  text-align: center;
}

.product-empty h3,
.admin-empty h3 {
  margin: 0 0 10px;
  color: var(--primary);
}

.products-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* ============================================================================
   PRODUCT DETAIL MODAL
   ============================================================================ */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.product-modal[hidden] {
  display: none;
}

.product-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.product-modal__content {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.product-modal__close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  z-index: 2;
}

[dir="rtl"] .product-modal__close {
  left: auto;
  right: 14px;
}

.product-modal__close:hover {
  background: #e2e8f0;
}

.product-modal__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

[dir="rtl"] .product-modal__top {
  direction: rtl;
}

.product-modal__image {
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary-soft);
}

.product-modal__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-modal__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-modal__info h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.product-modal__desc {
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}

.product-modal__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
}

.product-modal__price-row strong {
  font-size: 1.4rem;
  color: var(--primary);
}

.product-modal__old-price {
  font-size: 0.95rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-modal__actions .button:first-child {
  background: var(--accent);
  color: #fff;
}

.product-modal__actions .button:first-child:hover {
  background: var(--accent-dark);
}

.product-modal__section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.product-modal__section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 16px;
}

/* Reviews in modal */
.pm-review {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.pm-review:last-child {
  border-bottom: none;
}

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

.pm-review__name {
  font-weight: 600;
  font-size: 0.9rem;
}

.pm-review__date {
  font-size: 0.78rem;
  color: #94a3b8;
}

.pm-review__comment {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pm-no-reviews {
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
  padding: 0;
}

/* Suggested products grid */
.product-modal__suggested {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.pm-suggest-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.pm-suggest-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pm-suggest-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.pm-suggest-card h4 {
  font-size: 0.8rem;
  margin: 0 0 4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-suggest-card span {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 640px) {
  .product-modal {
    padding: 0;
    align-items: flex-end;
  }

  .product-modal__content {
    border-radius: 18px 18px 0 0;
    max-height: 95vh;
    padding: 24px 16px;
  }

  .product-modal__top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

/* ============================================================================
   ABOUT & PANELS
   ============================================================================ */

.about-section {
  background: linear-gradient(135deg, #e8eef6 0%, #f0f4fa 50%, #edf2f8 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(208,48,48,0.04), transparent 60%);
  pointer-events: none;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
}

[dir="rtl"] .about-panel {
  direction: rtl;
}

.about-panel__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-panel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.3);
  pointer-events: none;
}

.about-panel__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.about-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}

[dir="rtl"] .about-panel__content {
  align-items: flex-end;
}

.about-panel__content h2 {
  margin-bottom: 8px;
}

.about-panel__content p:last-of-type {
  margin-bottom: 20px;
}

[dir="rtl"] .about-panel__content p {
  text-align: right;
}

/* ============================================================================
   NEWS & ARTICLES
   ============================================================================ */

.news-layout {
  display: grid;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 32px 44px;
  align-items: start;
}

[dir="rtl"] .news-layout {
  direction: rtl;
}

.news-layout__intro {
  padding-top: 18px;
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  transition: all 0.35s ease;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.5);
}

[dir="rtl"] .news-card {
  grid-template-columns: minmax(0, 1fr) 220px;
}

[dir="rtl"] .news-card img {
  grid-column: 2;
  grid-row: 1;
}

[dir="rtl"] .news-card__content {
  grid-column: 1;
  grid-row: 1;
}

.news-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(15,36,64,0.08);
  border-color: transparent;
}

[dir="rtl"] .news-card:hover {
  transform: translateX(-6px);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.news-card:hover img {
  transform: scale(1.03);
}

.news-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 1.18rem;
}

[dir="rtl"] .news-card h3 {
  text-align: right;
}

.news-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

[dir="rtl"] .news-card p {
  text-align: right;
}

.news-card a {
  color: var(--primary);
  font-weight: 700;
  transition: all 0.2s;
}

.news-card a:hover {
  text-decoration: underline;
}

/* ============================================================================
   NEWSLETTER
   ============================================================================ */

.newsletter {
  background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 50%, #0f2440 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(208,48,48,0.08), transparent 60%);
  pointer-events: none;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

[dir="rtl"] .newsletter__inner {
  flex-direction: row-reverse;
}

.newsletter__text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  flex: 1 1 320px;
}

[dir="rtl"] .newsletter__text {
  flex-direction: row-reverse;
}

.newsletter__text strong {
  color: #fff;
  font-size: 1.1rem;
}

.newsletter__form {
  display: flex;
  align-items: center;
  min-width: min(100%, 460px);
  width: min(100%, 520px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.newsletter__form input {
  color: #fff;
}

.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

[dir="rtl"] .newsletter__form {
  direction: rtl;
}

.newsletter__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  border: 0;
  padding: 0 18px;
  outline: 0;
}

.newsletter__form button {
  min-width: 116px;
  height: 48px;
  border: 0;
  color: #fff;
  font-weight: 700;
  background: var(--accent);
  transition: all 0.2s;
  cursor: pointer;
}

.newsletter__form button:hover {
  filter: brightness(0.95);
}

/* ============================================================================
   CONTACT SECTION
   ============================================================================ */

.section--contact {
  padding-top: 36px;
  padding-bottom: 44px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

[dir="rtl"] .contact-layout {
  direction: rtl;
}

.contact-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-card img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.contact-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(20, 28, 47, 0.92) 0%, rgba(20, 28, 47, 0.7) 70%, transparent 100%);
  color: #fff;
}

.contact-card__overlay h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.4;
}

.contact-card__overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 14px;
}

.contact-card__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
}

.contact-card__link--wa {
  background: #25d366;
}

.contact-card__link--wa:hover {
  background: #1da851;
}

.contact-card__link--fb {
  background: #1877f2;
}

.contact-card__link--fb:hover {
  background: #0d65d9;
}

.contact-form-wrap {
  padding-top: 12px;
}

[dir="rtl"] .contact-form-wrap {
  text-align: right;
}

.contact-form-wrap p {
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: #283858;
  font-size: 0.92rem;
  font-weight: 700;
}

[dir="rtl"] .contact-form span {
  text-align: right;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 14px;
  padding: 14px 18px;
  outline: 0;
  background: #fafbfd;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(208,48,48,0.08);
  background: #fff;
}

.newsletter__form input:focus,
.search-shell input:focus {
  border-color: transparent;
  box-shadow: none;
}

.contact-form .button {
  background: var(--accent);
}

.contact-form .button:hover {
  background: var(--accent-dark);
  box-shadow: var(--accent-glow);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background: var(--surface-dark);
  border-top: none;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0 40px;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #fff;
}

[dir="rtl"] .site-footer h3 {
  text-align: right;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer li,
.site-footer a {
  color: var(--text-on-dark-muted);
  line-height: 1.55;
}

.site-footer a:hover {
  color: #fff;
}

[dir="rtl"] .site-footer li,
[dir="rtl"] .site-footer a {
  text-align: right;
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

[dir="rtl"] .social-row {
  flex-direction: row-reverse;
}

.social-row a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.social-row a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(208,48,48,0.3);
}

.social-row a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}

[dir="rtl"] .footer-bottom {
  text-align: right;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom span {
  margin: 0 8px;
}

/* ============================================================================
   TOAST & NOTIFICATIONS
   ============================================================================ */

.site-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  max-width: min(320px, calc(100% - 28px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(20, 28, 47, 0.94);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 24px 40px rgba(20, 28, 47, 0.22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

[dir="rtl"] .site-toast {
  right: auto;
  left: 18px;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   ADMIN SECTION
   ============================================================================ */

.admin-page {
  background:
    radial-gradient(circle at top left, rgba(39, 72, 123, 0.08), transparent 20%),
    linear-gradient(180deg, #f7f9fd 0%, #ffffff 100%);
}

.nav-row--admin {
  gap: 32px;
  align-items: flex-start;
}

[dir="rtl"] .nav-row--admin {
  flex-direction: row-reverse;
}

.admin-header-copy {
  max-width: 720px;
}

.admin-header-copy h1 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

[dir="rtl"] .admin-header-copy h1 {
  text-align: right;
}

.admin-header-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

[dir="rtl"] .admin-header-copy p {
  text-align: right;
}

.admin-main {
  padding-bottom: 40px;
}

.section--admin {
  padding-top: 34px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

[dir="rtl"] .admin-stat-card span {
  text-align: right;
}

.admin-stat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

[dir="rtl"] .admin-stat-card strong {
  text-align: right;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
}

[dir="rtl"] .admin-layout {
  direction: rtl;
}

.admin-panel,
.admin-products {
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-panel {
  padding: 28px;
  align-self: start;
}

.admin-panel__intro h2 {
  margin: 0 0 8px;
  color: var(--primary);
}

[dir="rtl"] .admin-panel__intro h2 {
  text-align: right;
}

.admin-panel__intro p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

[dir="rtl"] .admin-panel__intro p {
  text-align: right;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form span {
  color: #283858;
  font-size: 0.92rem;
  font-weight: 700;
}

[dir="rtl"] .admin-form span {
  text-align: right;
}

.admin-form input,
.admin-form textarea,
.admin-products__toolbar input,
.admin-products__toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  outline: 0;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-products__toolbar input:focus,
.admin-products__toolbar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(39, 72, 123, 0.08);
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
}

[dir="rtl"] .admin-checkbox {
  flex-direction: row-reverse;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.admin-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.admin-products {
  padding: 24px;
}

.admin-products__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 20px;
}

.admin-list {
  display: grid;
  gap: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-soft);
  border: 1px solid #ebf0f8;
}

[dir="rtl"] .admin-item {
  direction: rtl;
}

.admin-item__image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.admin-item__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

[dir="rtl"] .admin-item__header {
  flex-direction: row-reverse;
}

.admin-item__category {
  margin: 0 0 8px;
  color: #8a9ab5;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[dir="rtl"] .admin-item__category {
  text-align: right;
}

.admin-item h3 {
  margin: 0;
  color: var(--primary);
}

[dir="rtl"] .admin-item h3 {
  text-align: right;
}

.admin-item__price {
  color: var(--primary);
  font-size: 1.15rem;
  white-space: nowrap;
}

.admin-item__description {
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.7;
}

[dir="rtl"] .admin-item__description {
  text-align: right;
}

.admin-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #6d7a92;
  font-weight: 700;
}

[dir="rtl"] .admin-item__meta {
  flex-direction: row-reverse;
}

.admin-item__meta a {
  color: var(--primary);
}

.admin-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ============================================================================
   HEADER SHOP & CART
   ============================================================================ */

.header-shop {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  order: 6;
  padding-left: 14px;
  margin-left: 2px;
  border-left: 1px solid var(--line-soft);
}

[dir="rtl"] .header-shop {
  order: 0;
  padding-left: 0;
  padding-right: 14px;
  margin-left: 0;
  margin-right: 2px;
  border-left: 0;
  border-right: 1px solid var(--line-soft);
}

.header-shop__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid rgba(39, 72, 123, 0.12);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 2px rgba(29, 54, 96, 0.04);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.header-shop__btn:hover,
.header-shop__btn:focus-visible {
  background: var(--surface-soft);
  border-color: rgba(39, 72, 123, 0.22);
  box-shadow: 0 2px 8px rgba(29, 54, 96, 0.07);
  transform: translateY(-1px);
}

.header-shop__btn--cart {
  position: relative;
}

.header-shop__cart-text {
  font-weight: 700;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.cart-badge.is-hidden {
  display: none;
}

/* ============================================================================
   SHOP OVERLAY & CART PANEL
   ============================================================================ */

.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 28, 47, 0.48);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.shop-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.shop-overlay--modal {
  z-index: 1120;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1110;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
  border-left: 1px solid var(--line-soft);
  box-shadow: -20px 0 60px rgba(20, 28, 47, 0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .cart-panel {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--line-soft);
  box-shadow: 20px 0 60px rgba(20, 28, 47, 0.12);
  transform: translateX(-100%);
}

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

.cart-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

[dir="rtl"] .cart-panel__head {
  flex-direction: row-reverse;
}

.cart-panel__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.cart-panel__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.cart-panel__close:hover,
.cart-panel__close:focus-visible {
  background: var(--surface-soft);
  border-color: rgba(39, 72, 123, 0.15);
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.cart-panel__empty {
  margin: 24px 0;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.cart-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 54, 96, 0.04);
}

[dir="rtl"] .cart-line {
  direction: rtl;
}

.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

.cart-line__info strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.3;
}

[dir="rtl"] .cart-line__info strong {
  text-align: right;
}

.cart-line__meta {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9aa7bc;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

[dir="rtl"] .cart-line__meta {
  text-align: right;
}

.cart-line__controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

[dir="rtl"] .cart-line__controls {
  flex-direction: row-reverse;
}

.cart-line__qty {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-line__qty:hover {
  background: var(--primary-soft);
}

.cart-line__price {
  text-align: right;
  display: grid;
  gap: 8px;
  justify-items: end;
}

[dir="rtl"] .cart-line__price {
  text-align: left;
  justify-items: start;
}

.cart-line__price span {
  font-weight: 800;
  color: var(--primary);
}

.cart-line__remove {
  border: 0;
  background: transparent;
  color: #b44;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.cart-line__remove:hover {
  color: #d63636;
}

.cart-panel__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.cart-panel__total {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

[dir="rtl"] .cart-panel__total {
  text-align: right;
}

/* ========== Checkout Form (inside cart panel) ========== */
.checkout-form {
  padding: 4px 0;
}

.checkout-form__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-form__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.checkout-form__back {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.checkout-form__back:hover {
  background: var(--primary-soft);
}

.checkout-form__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--primary-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}

.checkout-form__summary strong {
  font-size: 1.15rem;
  color: var(--primary);
}

.checkout-form__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-form__fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-form__fields label > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.checkout-form__fields input,
.checkout-form__fields select,
.checkout-form__fields textarea {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s;
}

.checkout-form__fields input:focus,
.checkout-form__fields select:focus,
.checkout-form__fields textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.checkout-form__location {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-form__loc-status {
  font-size: 0.8rem;
  color: #10b981;
}

.cart-panel__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

[dir="rtl"] .cart-panel__hint {
  text-align: right;
}

/* ============================================================================
   AUTH MODAL
   ============================================================================ */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1130;
  display: grid;
  place-items: center;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.auth-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.auth-modal__inner {
  width: min(100%, 420px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 24px 26px 28px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow:
    0 24px 80px rgba(20, 28, 47, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.auth-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

[dir="rtl"] .auth-modal__head {
  flex-direction: row-reverse;
}

.auth-modal__head h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

[dir="rtl"] .auth-modal__head h2 {
  text-align: right;
}

.auth-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.auth-modal__close:hover,
.auth-modal__close:focus-visible {
  background: var(--surface-soft);
  border-color: rgba(39, 72, 123, 0.15);
}

.auth-session {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.auth-session p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

[dir="rtl"] .auth-session p {
  text-align: right;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface-elevated);
  font-weight: 700;
  font-size: 0.9rem;
  color: #4d6288;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.auth-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(39, 72, 123, 0.25);
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #364563;
}

[dir="rtl"] .auth-label {
  text-align: right;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

[dir="rtl"] .auth-divider {
  flex-direction: row-reverse;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #283858;
}

[dir="rtl"] .auth-form span {
  text-align: right;
}

.auth-form input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
  transition: all 0.2s;
}

.auth-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(39, 72, 123, 0.08);
}

.auth-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

[dir="rtl"] .auth-hint {
  text-align: right;
}

.auth-resend {
  width: 100%;
  justify-self: stretch;
}

#google-signin-button {
  min-height: 44px;
}

/* ============================================================================
   ANIMATIONS & UTILITIES
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1100px) {
  .topbar__links {
    display: none;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .header-shop {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
  }

  [dir="rtl"] .header-shop {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    justify-content: flex-start;
  }

  .search-shell {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .products-main {
    padding: 14px;
  }

  .categories__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .category-tile img { height: 140px; }

  .feature-grid .media-card:nth-child(1),
  .feature-grid .media-card:nth-child(2),
  .feature-grid .media-card:nth-child(3),
  .feature-grid .media-card:nth-child(4),
  .feature-grid .media-card:nth-child(5) {
    grid-column: span 6;
  }

  .brand-grid .media-card {
    grid-column: span 4;
  }

  .products-layout,
  .news-layout,
  .contact-layout,
  .about-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .search-shell {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 860px) {
  :root {
    --header-offset: 92px;
  }

  .menu-toggle {
    display: block;
    order: 1;
    width: 52px;
    height: 52px;
    padding: 13px;
  }

  [dir="rtl"] .menu-toggle {
    order: 1;
  }

  .brand {
    order: 2;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  [dir="rtl"] .main-nav {
    direction: rtl;
  }

  body.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    width: 100%;
  }

  .hero { min-height: 440px; padding: 50px 0 60px; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  [dir="rtl"] .hero__copy {
    align-items: center;
  }

  .hero__visual img { max-width: 380px; max-height: 320px; }
  .hero .eyebrow::before { display: none; }
  .hero .eyebrow { padding-right: 0; }

  .hero__lead br,
  .hero h1 br {
    display: none;
  }

  .section-heading--split {
    display: block;
  }

  [dir="rtl"] .section-heading--split {
    text-align: center;
  }

  .section-heading__actions {
    margin-top: 16px;
    flex-wrap: wrap;
  }

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

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card img {
    aspect-ratio: 16 / 9;
  }

  [dir="rtl"] .news-card {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .news-card img,
  [dir="rtl"] .news-card__content {
    grid-column: auto;
    grid-row: auto;
  }

  .newsletter__inner,
  .newsletter__text {
    flex-direction: column;
    align-items: stretch;
  }

  [dir="rtl"] .newsletter__inner,
  [dir="rtl"] .newsletter__text {
    align-items: stretch;
  }

  .newsletter__text {
    gap: 8px;
  }

  .newsletter__form {
    width: 100%;
    min-width: 0;
  }

  .nav-row--admin {
    flex-direction: column;
  }

  [dir="rtl"] .nav-row--admin {
    flex-direction: column;
  }

  .admin-header-copy {
    max-width: 580px;
  }

  .admin-products__toolbar,
  .admin-item,
  .admin-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .nav-row {
    padding-top: 6px;
  }

  .search-shell {
    flex-wrap: nowrap;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    gap: 0;
  }

  .search-shell input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .search-shell select {
    display: none;
  }

  .search-shell button {
    width: 44px;
    height: 44px;
    border-radius: 0;
    flex-shrink: 0;
  }

  .categories__inner,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid .media-card:nth-child(1),
  .feature-grid .media-card:nth-child(2),
  .feature-grid .media-card:nth-child(3),
  .feature-grid .media-card:nth-child(4),
  .feature-grid .media-card:nth-child(5) {
    grid-column: span 12;
  }

  .brand-grid .media-card {
    grid-column: span 6;
  }

  .products-toolbar,
  .products-toolbar__controls,
  .contact-form__row,
  .admin-form__actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .products-toolbar {
    align-items: stretch;
  }

  .products-toolbar__controls {
    display: grid;
  }

  .product-card {
    min-height: auto;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 56px;
    min-height: 420px;
  }

  .product-card__actions {
    grid-template-columns: 1fr;
  }

  .product-card__add {
    width: 100%;
  }

  .product-card__share {
    width: 100%;
    justify-content: center;
  }

  .admin-panel,
  .admin-products {
    padding: 18px;
  }

  .admin-item__header {
    flex-direction: column;
  }

  [dir="rtl"] .admin-item__header {
    flex-direction: column;
  }

  .admin-item__image {
    height: auto;
    min-height: 120px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-products__toolbar {
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .about-panel__media img {
    min-height: 220px;
  }
}

/* ========== Hero Slider ========== */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
}

.hero-slider__slide {
  display: none;
  animation: heroFadeIn 0.6s ease;
}

.hero-slider__slide.is-active {
  display: block;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-slider__pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.hero-slider__dot {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
}

.hero-slider__dot.is-active {
  background: var(--accent, #0ea5e9);
  width: 48px;
  box-shadow: 0 0 12px rgba(14,165,233,0.5);
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider__arrow--prev {
  right: 24px;
}

.hero-slider__arrow--next {
  left: 24px;
}

@media (max-width: 768px) {
  .hero-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    border-radius: 10px;
  }
  .hero-slider__arrow--prev {
    right: 12px;
  }
  .hero-slider__arrow--next {
    left: 12px;
  }
  .hero-slider__pager {
    bottom: 20px;
  }
  .hero-slider__dot {
    width: 24px;
    height: 3px;
  }
  .hero-slider__dot.is-active {
    width: 36px;
  }
}
