/* ===== Theme ===== */
:root, [data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-2: #11162a;
  --bg-3: #1a2140;
  --surface: #141a30;
  --surface-2: #1e2648;
  --surface-hover: #232c54;
  --border: #2a335c;
  --text: #eef1fa;
  --text-dim: #aab0c6;
  --text-mute: #7d84a0;
  --accent: #0070f3;
  --accent-2: #00c2ff;
  --accent-grad: linear-gradient(135deg, #0070f3 0%, #00c2ff 100%);
  --gold: #ffc42c;
  --danger: #ff4c6d;
  --success: #3ee08f;
  --bg-radial: radial-gradient(ellipse at top, #141a30 0%, #0a0e1a 60%);
  --header-bg: rgba(10, 14, 26, 0.85);
  --hero-grad: linear-gradient(135deg, rgba(0, 112, 243, 0.15) 0%, rgba(0, 194, 255, 0.08) 100%);
  --hero-glow: radial-gradient(circle, rgba(0, 194, 255, 0.2), transparent 70%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(0, 112, 243, 0.35);
  --font: "Inter", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eaeef7;
  --bg-3: #e0e6f2;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-hover: #eef1f8;
  --border: #d8dee9;
  --text: #0f1628;
  --text-dim: #4b546b;
  --text-mute: #7d849a;
  --accent: #0057c2;
  --accent-2: #0099d6;
  --accent-grad: linear-gradient(135deg, #0057c2 0%, #0099d6 100%);
  --gold: #d98e00;
  --danger: #d13657;
  --success: #14a06b;
  --bg-radial: radial-gradient(ellipse at top, #eaeef7 0%, #f4f6fb 60%);
  --header-bg: rgba(244, 246, 251, 0.88);
  --hero-grad: linear-gradient(135deg, rgba(0, 87, 194, 0.08) 0%, rgba(0, 153, 214, 0.04) 100%);
  --hero-glow: radial-gradient(circle, rgba(0, 153, 214, 0.18), transparent 70%);
  --shadow-card: 0 4px 16px rgba(15, 22, 40, 0.08);
  --shadow-hover: 0 12px 32px rgba(0, 87, 194, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-radial) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s, color 0.2s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ===== Layout ===== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding-bottom: 60px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent-grad);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.5);
}

.nav-categories {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  overflow-x: auto;
  flex: 1;
}

.nav-categories::-webkit-scrollbar { display: none; }

.nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all 0.2s;
}
.nav-pill:hover { color: var(--text); background: var(--surface); }
.nav-pill.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 12px rgba(0, 112, 243, 0.5);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 240px;
}
.header-search input {
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  width: 100%;
  font-size: 14px;
}
.header-search input::placeholder { color: var(--text-mute); }

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 18px;
}
.icon-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--accent); }

.lang-form { margin: 0; display: inline-flex; align-items: center; }
#lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237d84a0' d='M6 8L0 0h12z'/></svg>") no-repeat;
  background-position: right 12px center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 30px 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.15s;
  font-family: inherit;
}
#lang-select:hover { border-color: var(--accent); }
#lang-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.2); }
#lang-select option { background: var(--surface); color: var(--text); }
[dir="rtl"] #lang-select { background-position: left 12px center; padding: 8px 14px 8px 30px; }

.cart-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s;
}
.cart-badge:hover { background: var(--surface-hover); border-color: var(--accent); }
.cart-badge .count {
  background: var(--accent);
  color: white;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}

/* ===== Hero ===== */
.hero {
  margin: 32px 0 40px;
  padding: 48px;
  background: var(--hero-grad), var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--hero-glow);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 194, 255, 0.12);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 800;
  max-width: 700px;
}
.hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin: 0 0 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}
.hero-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-2);
}
.hero-stat .lbl {
  font-size: 13px;
  color: var(--text-mute);
}

/* ===== Page layout ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 32px 0 20px;
  gap: 24px;
  flex-wrap: wrap;
}
.page-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-header .count-txt {
  color: var(--text-mute);
  font-size: 14px;
}

.layout-2col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-2col { grid-template-columns: 1fr; }
}

/* ===== Filter sidebar ===== */
.filters {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-radio:hover { background: var(--bg-3); color: var(--text); }
.filter-radio input {
  accent-color: var(--accent);
}
.filter-radio.active {
  background: rgba(0, 112, 243, 0.15);
  color: var(--text);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 112, 243, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 112, 243, 0.55);
}
.btn-ghost {
  background: var(--bg-3);
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-hover); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ===== Toolbar above grid ===== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar .left { color: var(--text-mute); font-size: 14px; }
.toolbar select.input { width: auto; min-width: 180px; }

/* ===== Subscription grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.tile-art {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile-art img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  transition: transform 0.3s;
}
.tile:hover .tile-art img { transform: scale(1.06); }
.tile-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-new { background: var(--accent-2); color: #001828; }
.badge-sale { background: var(--gold); color: #2a1a00; }
.badge-featured { background: var(--accent); color: white; }

.tile-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tile-provider {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tile-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.tile-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.tile-price {
  display: flex;
  flex-direction: column;
}
.tile-price .from {
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.tile-price .val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tile-add {
  background: var(--accent);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  transition: all 0.15s;
  cursor: pointer;
}
.tile-add:hover { background: var(--accent-2); color: #001828; transform: scale(1.1); }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0 20px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.pagination a:hover { background: var(--surface-hover); color: var(--text); }
.pagination .current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ===== Empty state ===== */
.empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
}
.empty h3 { color: var(--text); font-size: 22px; margin: 0 0 8px; }

/* ===== Detail page ===== */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mute);
  font-size: 14px;
  margin: 24px 0 20px;
  transition: color 0.15s;
}
.detail-back:hover { color: var(--text); }

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .detail-hero { grid-template-columns: 1fr; padding: 24px; }
}
.detail-art {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px;
}
.detail-art img { width: 70%; height: 70%; object-fit: contain; }

.detail-meta .provider {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.detail-meta h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.detail-meta .short {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.detail-meta .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.plan:hover { border-color: var(--accent); }
.plan input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.plan.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.1), rgba(0, 194, 255, 0.05));
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}
.plan-left .duration {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.plan-left .label {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 2px;
}
.plan-right { text-align: right; }
.plan-right .price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.plan-right .compare {
  font-size: 13px;
  color: var(--text-mute);
  text-decoration: line-through;
  margin-right: 6px;
}
.plan-right .discount {
  display: inline-block;
  padding: 2px 8px;
  background: var(--gold);
  color: #2a1a00;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
}
.popular-tag {
  padding: 2px 8px;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qty-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.qty-row label { color: var(--text-mute); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.qty-input { width: 80px; }

.detail-section {
  margin: 40px 0;
}
.detail-section h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.detail-description {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
}
.feature-list li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Cart ===== */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: 1fr; }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cart-item-art {
  width: 96px;
  height: 96px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
}
.cart-item-art img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-body .provider {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cart-item-body h3 {
  margin: 4px 0 2px;
  font-size: 16px;
  font-weight: 700;
}
.cart-item-body .meta {
  font-size: 13px;
  color: var(--text-dim);
}
.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.cart-item-actions .price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-qty input {
  width: 56px;
  text-align: center;
}
.cart-qty button {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.cart-qty button:hover { color: var(--text); }
.cart-remove {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cart-remove:hover { text-decoration: underline; }

.cart-summary {
  position: sticky;
  top: 88px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.cart-summary h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text-dim);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row.total {
  padding: 16px 0 6px;
  border-bottom: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}
.summary-row.total .val { color: var(--accent-2); letter-spacing: -0.02em; }

/* ===== Recently viewed ===== */
.strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  background: var(--bg);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-credit a {
  color: var(--accent-2);
  font-weight: 600;
  transition: color 0.15s;
}
.footer-credit a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 600px) {
  .site-footer .container { justify-content: center; text-align: center; }
}

/* ===== Misc ===== */
.is-loading { opacity: 0.5; pointer-events: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== RTL adjustments ===== */
[dir="rtl"] .tile-badges { left: auto; right: 12px; }
[dir="rtl"] .hero::before { right: auto; left: -10%; }
[dir="rtl"] .detail-back::before { content: "→ "; }
[dir="rtl"] .detail-back { display: inline-block; }
[dir="rtl"] .pagination a, [dir="rtl"] .pagination span { direction: rtl; }
[dir="rtl"] .cart-item { grid-template-columns: auto 1fr 96px; }
[dir="rtl"] .header-search input { text-align: right; }
[dir="rtl"] .hero-stats { flex-direction: row-reverse; justify-content: flex-end; }
html[lang="ar"] body { font-family: "Noto Sans Arabic", "Cairo", var(--font); }
