/* ==========================================================================
   Sales-disabled presentation
   ========================================================================== */
.sales-coming-soon-note,
.sales-coming-soon-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--text-muted);
}

.sales-coming-soon-note {
  min-height: 180px;
  padding: 28px 18px;
}

.sales-coming-soon-note i,
.sales-coming-soon-panel i {
  color: var(--primary);
  font-size: 1.8rem;
}

.sales-coming-soon-note strong,
.sales-coming-soon-panel p {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.8;
}

.sales-coming-soon-panel {
  min-height: 230px;
  padding: 25px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.sales-coming-soon-panel small {
  line-height: 1.8;
}

/* ============================================================================
   Giftopia - Main Stylesheet
   Supports: Dark/Light Mode, RTL (Uyghur, Arabic) & LTR (Turkish, English)
   Typography: UKIJ Ekran & Fallback Web Fonts
   ========================================================================== */

/* 1. Font Definitions */
@font-face {
  font-family: 'UKIJ Ekran';
  src: url('../fonts/UKIJ-Ekran.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

/* 2. Theme CSS Variables */
:root {
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-light: #ede9fe;
  --primary-glow: rgba(139, 92, 246, 0.35);
  
  --bg-main: #0c0d14;
  --bg-card: #151624;
  --bg-surface: #1e1f33;
  --bg-white-panel: #ffffff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #64748b;
  --border-color: #27283d;
  --border-light: #e2e8f0;
  
  --card-yellow: #fde047;
  --card-pink: #f472b6;
  --card-mint: #6ee7b7;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.35);
  
  --font-base: 'UKIJ Ekran', 'Microsoft Uighur', 'Alkatip Basma Tom', 'UKIJ Tuz', 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-surface: #f8fafc;
  --bg-white-panel: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-md: 0 10px 25px rgba(100, 116, 139, 0.12);
  --shadow-lg: 0 20px 40px rgba(100, 116, 139, 0.18);
}

/* 3. Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* RTL Typography enhancement */
body[dir="rtl"] {
  text-align: right;
  letter-spacing: 0;
}

body[dir="ltr"] {
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
  transition: var(--transition);
}

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

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

/* 4. Top Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(244, 114, 182, 0.12));
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 8px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.announcement-bar .badge {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.lang-notice-links {
  display: inline-flex;
  gap: 10px;
  font-weight: 600;
  color: var(--text-main);
}

.lang-notice-links span {
  cursor: pointer;
  transition: var(--transition);
}
.lang-notice-links span:hover {
  color: var(--primary);
}

/* 5. Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(12, 13, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border-color);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .brand-logo {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .brand-logo {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.brand-logo-image {
  display: block;
  width: auto;
  height: 84px;
  max-width: min(180px, 42vw);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.2));
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0f172a 40%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sparkle {
  color: var(--primary);
  font-size: 1.3rem;
  animation: pulseSparkle 2.5s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 1; filter: drop-shadow(0 0 6px var(--primary)); }
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -3px;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  list-style: none;
}

body[dir="rtl"] .dropdown-menu {
  right: 0;
  left: auto;
}

body[dir="ltr"] .dropdown-menu {
  left: 0;
  right: auto;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

/* Nav Actions (Search, Cart, Profile, Lang, Theme) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Icon Buttons */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-main);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.toggle-switch {
  width: 36px;
  height: 20px;
  background: #334155;
  border-radius: 20px;
  position: relative;
  transition: var(--transition);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}

[data-theme="dark"] .toggle-switch {
  background: var(--primary);
}

[data-theme="dark"] .toggle-switch::after {
  transform: translateX(16px);
}

/* Language Flags Pill Container */
.lang-pill-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  gap: 4px;
}

.lang-flag-btn {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-flag-btn:hover,
.lang-flag-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Login Button */
.btn-login {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-login:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
}

/* 6. Hero Section */
.hero-section {
  position: relative;
  padding: 48px 0 64px 0;
  overflow: hidden;
}

.hero-bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.floating-gift {
  position: absolute;
  opacity: 0.8;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-gift.g1 {
  top: 15%;
  left: 5%;
  font-size: 2.2rem;
  animation-delay: 0s;
}

.floating-gift.g2 {
  top: 45%;
  left: 2%;
  font-size: 2.8rem;
  animation-delay: 1.2s;
}

.floating-gift.g3 {
  bottom: 15%;
  left: 8%;
  font-size: 2rem;
  animation-delay: 2.1s;
}

@keyframes floatAnim {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(8deg); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

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

/* Hero Cards (Left Side in RTL, Right in LTR) */
.hero-cards-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card-winter,
.card-kids,
.card-men {
  grid-column: span 2;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.hero-card.card-men {
  background: linear-gradient(180deg, #a7f3d0 0%, #059669 100%);
}

.hero-card.card-kids {
  background: linear-gradient(180deg, #fbcfe8 0%, #ec4899 100%);
}

.hero-card.card-winter {
  background: linear-gradient(180deg, #fef08a 0%, #f59e0b 100%);
}

.hero-card.card-mother {
  grid-column: span 3;
  height: 245px;
  background: linear-gradient(180deg, #f7d9bd 0%, #8b5e3c 100%);
  cursor: pointer;
}

.hero-card.card-mother:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.78);
  outline-offset: 4px;
}

.hero-card.card-app-news {
  grid-column: span 3;
  height: 245px;
  background: linear-gradient(145deg, #1d4ed8 0%, #4f46e5 44%, #7c3aed 100%);
}

.card-app-news .hero-card-content {
  width: min(86%, 390px);
  height: 82px;
  align-self: center;
  grid-template-rows: 48px 26px;
  row-gap: 8px;
  text-align: center;
}

.card-app-news .hero-card-pill {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 7px 44px 7px 18px;
}

.card-app-news .hero-card-pill > [data-i18n] {
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
}

.card-app-news .hero-card-subtitle {
  color: #eef2ff;
  font-size: 0.66rem;
  line-height: 1.4;
  text-align: center;
}

.app-showcase {
  position: absolute;
  inset: 10px 14px 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  direction: ltr;
}

.app-phone {
  position: relative;
  width: 78px;
  height: 138px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, #0f172a, #1e1b4b);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.app-phone-notch {
  position: absolute;
  top: 5px;
  width: 28px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
}

.app-phone-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  padding: 4px;
}

.app-phone-name {
  margin-top: 6px;
  font: 700 0.56rem/1.2 "Segoe UI", sans-serif;
}

.app-phone-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.app-phone-actions span {
  width: 13px;
  height: 4px;
  border-radius: 99px;
  background: #60a5fa;
}

.news-preview {
  width: 150px;
  height: 108px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 30px rgba(15,23,42,.28);
}

.news-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #312e81;
  font: 800 0.58rem/1 "Segoe UI", sans-serif;
}

.news-preview-feature {
  height: 34px;
  margin: 8px 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(110deg, #2563eb, #7c3aed);
}

.news-preview-line {
  width: 68%;
  height: 5px;
  margin-top: 5px;
  border-radius: 99px;
  background: #c7d2fe;
}

.news-preview-line.wide { width: 94%; }
.news-preview-tags { display: flex; gap: 5px; margin-top: 7px; }
.news-preview-tags span { padding: 2px 5px; border-radius: 99px; color: #4338ca; background: #e0e7ff; font: 800 0.42rem/1 "Segoe UI", sans-serif; }

.card-mother .hero-card-img-wrap {
  bottom: 82px;
}

.card-mother .hero-card-img {
  object-position: center 52%;
}

.card-mother .hero-card-content {
  width: min(72%, 430px);
  height: 82px;
  align-self: center;
  grid-template-rows: 48px 26px;
  row-gap: 8px;
  text-align: center;
}

.card-mother .hero-card-pill {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 7px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-mother .hero-card-pill > [data-i18n] {
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
}

.card-mother .hero-card-subtitle {
  width: 100%;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.68rem;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-align: center;
}

.hero-card-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.hero-card:hover .hero-card-img {
  transform: scale(1.08);
}

.hero-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  height: 67px;
  display: grid;
  grid-template-rows: 38px 21px;
  row-gap: 8px;
}

.hero-card-pill {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  width: 100%;
  height: 38px;
}

.card-kids .hero-card-pill > [data-i18n="card_kids_title"] {
  font-size: 0.7rem;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.card-winter .hero-card-pill > [data-i18n="card_winter_title"] {
  font-size: 0.82rem;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.pill-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

body[dir="rtl"] .pill-arrow {
  transform: scaleX(-1);
}

.hero-card:hover .pill-arrow {
  transform: scale(1.15);
}

body[dir="rtl"] .hero-card:hover .pill-arrow {
  transform: scaleX(-1) scale(1.15);
}

.hero-card-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 0;
  line-height: 21px;
  white-space: nowrap;
  overflow: hidden;
}

.card-kids .hero-card-subtitle {
  font-size: 0.54rem;
  letter-spacing: -0.2px;
}

.card-winter .hero-card-subtitle {
  font-size: 0.68rem;
  letter-spacing: -0.2px;
}

/* Hero Typography (Right Side in RTL, Left in LTR) */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-btn {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  padding: 14px 34px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: var(--transition);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--primary-glow);
}

.hero-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

body[dir="rtl"] .hero-btn i {
  transform: scaleX(-1);
}

.hero-btn:hover i {
  transform: translateX(6px);
}

body[dir="rtl"] .hero-btn:hover i {
  transform: scaleX(-1) translateX(6px);
}

/* 7. Featured Products Section */
.featured-section {
  background: var(--bg-white-panel);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 48px 0 80px 0;
  color: var(--text-dark);
  position: relative;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  flex: 1;
}

[data-theme="dark"] .featured-section {
  background: #ffffff; /* Matches screenshot: white container even in dark page background */
  color: #0f172a;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-dark-muted);
  margin-top: 6px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 22px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid #edf2f7;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.featured-product-link { cursor: pointer; }
.featured-product-link:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.4);
  outline-offset: 4px;
}

.featured-article-card { cursor: pointer; }
.featured-article-card:focus-visible {
  outline: 3px solid rgba(124,58,237,.35);
  outline-offset: 4px;
}
.featured-article-img-wrap { position: relative; }
.featured-article-img { object-position: center; }
.featured-article-card:hover .featured-article-img { transform: scale(1.06); }
.featured-article-type {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(8px);
  font-size: .66rem;
  font-weight: 900;
}
.featured-article-info { gap: 9px; }
.featured-article-date {
  color: #8b5cf6;
  font-size: .68rem;
  font-weight: 900;
}
.featured-article-info .product-title { min-height: 58px; margin: 0; }
.featured-article-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 54px;
  color: #64748b;
  font-size: .76rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.featured-article-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  margin-top: auto;
  color: #7c3aed;
  font-size: .76rem;
  font-weight: 900;
}
.featured-article-card:hover .featured-article-link { gap: 11px; }
.daily-reading-visual { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: #fff; background: linear-gradient(135deg, #be123c, #e11d48 52%, #fb7185); }
.daily-reading-visual i { font-size: 3rem; }
.daily-reading-visual span { font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.daily-reading-image { object-fit: cover !important; object-position: center; }
.ramadan-calendar-image { object-fit: contain !important; object-position: center; background: #fff; padding: 8px; }
.news-page-banner { background: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.2)); }
.news-page-shell { padding-top: 30px; padding-bottom: 70px; }
.news-page-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.news-page-tabs span { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-muted); font-size: .82rem; font-weight: 800; }
.news-page-tabs span.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.news-page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-page-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card); cursor: pointer; transition: var(--transition); }
.news-page-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(139,92,246,.6); }
.news-page-card:focus-visible { outline: 3px solid rgba(167,139,250,.8); outline-offset: 4px; }
.news-page-card-visual { display: grid; place-items: center; height: 150px; color: #fff; font-size: 3rem; }
.news-page-card-image .news-page-card-visual { display: block; overflow: hidden; }
.news-page-card-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-page-card .news-page-card-body { min-height: 236px; }
.news-reading { background: linear-gradient(135deg,#be123c,#fb7185); }
.news-moon { background: linear-gradient(135deg,#172554,#4f46e5); }
.news-stars { background: linear-gradient(135deg,#312e81,#0f766e); }
.news-page-card-body { padding: 26px 20px 20px; }
.news-page-card-body > span { color: #a78bfa; font-size: .75rem; font-weight: 900; }
.news-page-card-body h2 { margin: 10px 0; font-size: 1.08rem; line-height: 1.6; }
.news-page-card-body p { min-height: 54px; color: var(--text-muted); font-size: .86rem; line-height: 1.8; }
.news-page-card-body b { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #a78bfa; font-size: .8rem; }
@media (max-width: 900px) { .news-page-grid { grid-template-columns: 1fr; } }
[dir="ltr"] .featured-article-link i { transform: rotate(180deg); }

.product-img-wrap {
  width: 100%;
  height: 210px;
  flex: 0 0 210px;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
}

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

.product-img-new-kids {
  object-position: center;
  will-change: transform;
}

.product-img-kids-3,
.product-img-kids-4,
.product-img-kids-5,
.product-img-kids-6 {
  object-fit: contain;
  object-position: center;
  transform: scale(1.24);
  background: #ffffff;
  padding: 0;
}

.product-img-kids-3 {
  transform: scale(1.24);
  background-color: #ffffff !important;
  filter: none;
  opacity: 1;
}

.product-img-wrap:has(.product-img-kids-3) {
  background: #ffffff;
}

.product-img-kids-6 {
  transform: scale(1.24);
}

.product-card:hover .product-img-kids-3,
.product-card:hover .product-img-kids-4,
.product-card:hover .product-img-kids-5,
.product-card:hover .product-img-kids-6 {
  transform: scale(1.24);
}

.product-img-tote-bags,
.product-card:hover .product-img-tote-bags {
  object-fit: contain;
  object-position: center;
  transform: scale(1.08);
  background: #ffffff;
}

.product-img-standard-kids,
.product-card:hover .product-img-standard-kids {
  object-fit: contain;
  object-position: center;
  transform: scale(1.24);
  background: #ffffff;
  padding: 0;
}

.product-img-pearl-bag,
.product-card:hover .product-img-pearl-bag {
  object-fit: contain;
  object-position: center;
  transform: scale(1.06);
  background: #ffffff;
}

.product-card:hover .product-img-kids-3 {
  transform: scale(1.24);
}

.product-card:hover .product-img-kids-6 {
  transform: scale(1.24);
}

.product-card:hover .product-img:not(.product-img-new-kids) {
  transform: scale(1.06);
}

/* Keep every catalog photo aligned to the same frame as the clock and puzzle cards. */
.shop-prod-card .product-img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  object-position: center;
  transform: none;
  background: #ffffff;
}

.shop-prod-card:hover .product-img {
  transform: scale(1.03);
}

.product-overlay-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
}

body[dir="rtl"] .product-overlay-actions {
  right: auto;
  left: 10px;
  transform: translateX(-10px);
}

.product-card:hover .product-overlay-actions {
  opacity: 1;
  transform: translateX(0);
}

.overlay-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.overlay-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  text-align: center;
}

.shop-prod-card .btn-add-cart {
  margin-top: auto;
}

.shop-prod-card {
  cursor: pointer;
}

.shop-prod-card:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.42);
  outline-offset: 4px;
}

.shop-prod-card .product-img-wrap {
  background: #ffffff;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  min-height: 52px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #475569;
}

.product-price {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.1rem;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-add-cart {
  margin-top: 4px;
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 8. Technologies / Partners Bar */
.tech-bar-section {
  background: #0f1019;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .tech-bar-section {
  background: #e2e8f0;
}

.tech-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

body[dir="ltr"] .tech-bar-wrap {
  justify-content: flex-start;
}

.tech-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tech-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tech-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.tech-badge:hover {
  transform: translateY(-4px) scale(1.08);
}

.tech-html5 { background: #f97316; }
.tech-css3 { background: #0284c7; }
.tech-js { background: #eab308; color: #000; }
.tech-bs { background: #7c3aed; }
.tech-tw { background: #06b6d4; }
.tech-react { background: #14b8a6; }
.tech-vue { background: #22c55e; }

/* 9. Bottom Floating Bar / Footer Bar (Directly matching screenshot) */
.footer-bar {
  background: #0a0b12;
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  margin-top: auto;
}

[data-theme="light"] .footer-bar {
  background: #ffffff;
  border-top-color: #cbd5e1;
}

.footer-bar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-lang-buttons {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

[data-theme="light"] .footer-lang-buttons {
  background: #f1f5f9;
}

.footer-lang-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-lang-btn:hover {
  color: var(--text-main);
}

.footer-lang-btn.active {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.footer-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links-group {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-links-group a:hover {
  color: var(--primary);
}

.footer-links-group span.divider {
  opacity: 0.4;
}

/* 10. Modals & Drawer (Cart, Search, Login, QuickView) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

body[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 16px;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.material-card-link {
  cursor: pointer;
}

.material-card-link:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.practice-page-banner {
  padding-bottom: 42px;
}

.practice-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.practice-back-btn:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.practice-download-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 0.65fr);
  gap: 34px;
  align-items: start;
  padding-top: 38px;
  padding-bottom: 70px;
}

.practice-preview-panel,
.practice-download-panel {
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.practice-preview-panel {
  padding: 22px;
}

.practice-download-panel {
  position: sticky;
  top: 130px;
  padding: 30px;
}

.practice-level-badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(139, 92, 246, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.practice-download-panel h2 {
  margin: 14px 0 10px;
  color: var(--text-main);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.practice-download-panel > p {
  color: var(--text-muted);
  line-height: 1.9;
}

.practice-feature-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
}

.practice-feature-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-main);
  font-weight: 650;
}

.practice-feature-list i {
  color: #10b981;
}

.practice-sheet-frame {
  width: min(100%, 610px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 42px rgba(3, 7, 18, 0.22);
}

.practice-sheet-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.practice-download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin: 0 auto;
  padding: 13px 18px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.practice-download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}

@media (max-width: 560px) {
  .practice-download-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .practice-download-panel {
    position: static;
    padding: 22px;
  }

  .practice-sheet-frame {
    padding: 6px;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .practice-download-layout {
    grid-template-columns: 1fr;
  }

  .practice-download-panel {
    position: static;
  }
}

.hero-bg-decor .g4 {
  top: 21%;
  right: 18%;
  font-size: 2rem;
  filter: drop-shadow(0 6px 13px rgba(37, 99, 235, 0.45));
  animation-delay: 1.15s;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
  text-align: inherit;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn-primary-block {
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary-block:hover {
  background: var(--primary-hover);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--border-color);
  transform: translateX(-100%);
}

.cart-drawer.active {
  transform: translateX(0) !important;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cart-qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* View Sections (For Multi-page Experience) */
.page-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inner Page Header */
.page-banner {
  padding: 48px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.15) 0%, transparent 100%);
  margin-bottom: 32px;
}

.page-banner-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-banner-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Shop Controls */
.shop-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Material Library */
.materials-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.14), transparent);
}

.materials-banner-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.3);
}

.materials-library-wrap {
  padding-bottom: 70px;
  font-family: 'UKIJ Ekran', 'Microsoft Uighur', sans-serif;
}

.materials-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.materials-heading-row h2 {
  margin-top: 5px;
  font-size: 1.75rem;
  font-weight: 800;
}

.materials-kicker {
  color: var(--primary-light);
  font-size: 0.84rem;
  font-weight: 800;
}

.materials-no-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.material-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--shadow-md);
}

.material-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.material-image-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 106px;
  padding: 9px 18px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.35px;
  text-align: center;
  direction: ltr;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.label-english {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.94), rgba(37, 99, 235, 0.94));
}

.label-turkish {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
}

.label-uyghur {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(13, 148, 136, 0.95));
}

.label-islamic {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(4, 120, 87, 0.95));
}

/* Crop the wide pearl-bag source so it fills the product window like its neighbours. */
.product-img-pearl-bag {
  transform: scale(1.2);
  transform-origin: center center;
}

.product-card:hover .product-img-pearl-bag {
  transform: scale(1.27);
}

.material-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.material-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
}

.material-card-body p {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.material-download-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.11);
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-size: 0.9rem;
  font-weight: 800;
  transition: var(--transition);
}

.material-download-btn:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
  transform: translateY(-2px);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-source-link {
  align-self: flex-start;
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(139, 92, 246, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  transition: var(--transition);
}

.blog-source-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.blog-card-clickable {
  cursor: pointer;
}

.blog-card-clickable:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.article-page {
  background:
    radial-gradient(circle at 12% 15%, rgba(139, 92, 246, 0.1), transparent 26%),
    var(--bg-main);
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  color: #fff;
  isolation: isolate;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 10, 20, 0.94), rgba(8, 10, 20, 0.62));
}

.article-hero-gift::before {
  background-image: url("../images/blog-blue-gift.png");
}

.article-hero-culture::before {
  background-image: url("../images/blog-cultural-gift.png");
}

.article-hero-kids::before {
  background-image: url("../images/blog-kids-toys.png");
}

.article-hero-inner {
  max-width: 900px;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.46);
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.article-back-btn:hover {
  background: rgba(139, 92, 246, 0.82);
  transform: translateY(-2px);
}

.article-category {
  display: block;
  width: max-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #f5f3ff;
  background: rgba(139, 92, 246, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.3;
  text-wrap: balance;
}

.article-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-shell {
  max-width: 900px;
  margin-top: -52px;
  padding-bottom: 72px;
  position: relative;
  z-index: 2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid var(--border-color);
  border-radius: 16px 16px 0 0;
  color: var(--text-muted);
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-meta > span:empty {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.article-body {
  padding: 46px clamp(24px, 6vw, 64px);
  border-inline: 1px solid var(--border-color);
  color: var(--text-main);
  background: var(--bg-card);
  font-size: 1rem;
  line-height: 2.05;
}

.article-body p {
  margin-bottom: 22px;
  color: var(--text-muted);
}

.article-body .article-lead {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.article-body h2 {
  margin: 34px 0 12px;
  color: var(--text-main);
  font-size: 1.45rem;
  line-height: 1.5;
}

.article-highlight {
  margin: 30px 0;
  padding: 24px 26px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.07));
}

.article-highlight h3 {
  margin-bottom: 12px;
  color: var(--primary-light);
  font-size: 1.12rem;
}

.article-highlight ul {
  padding-right: 22px;
  color: var(--text-muted);
}

.article-highlight li {
  margin: 7px 0;
}

.article-sources {
  padding: 30px clamp(24px, 6vw, 64px) 34px;
  border: 1px solid var(--border-color);
  border-radius: 0 0 18px 18px;
  background: rgba(139, 92, 246, 0.08);
}

.article-sources h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: 1.12rem;
}

.article-sources a {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--bg-card);
  font-size: 0.86rem;
  line-height: 1.7;
  transition: var(--transition);
}

.article-sources a:hover {
  color: var(--primary-light);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.article-sources a i {
  margin-inline-start: 6px;
  font-size: 0.72rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-wrapper {
    gap: 8px;
  }

  .brand-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-logo-image {
    max-width: 132px;
  }

  .nav-actions {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .lang-pill-group,
  #headerThemeBtn,
  #loginOpenBtn,
  .nav-actions > button[onclick*="loginModal"] {
    display: none;
  }

  .nav-actions .icon-btn,
  .mobile-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .cart-drawer {
    max-width: 100vw;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  
  body[dir="rtl"] .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btn {
    align-self: center;
  }
  
  .hero-desc {
    margin: 0 auto;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .article-hero {
    padding: 48px 0 78px;
  }

  .article-hero h1 {
    font-size: 2rem;
  }

  .article-hero p {
    font-size: 0.94rem;
  }

  .article-shell {
    margin-top: -38px;
  }

  .article-meta {
    flex-wrap: wrap;
    padding: 13px 16px;
  }

  .article-body {
    padding: 32px 22px;
    font-size: 0.94rem;
  }

  .article-sources {
    padding: 24px 22px 28px;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-cards-row {
    grid-template-columns: 1fr;
  }

  .card-winter,
  .card-kids,
  .card-men,
  .hero-card.card-mother,
  .hero-card.card-app-news {
    grid-column: 1;
  }
  
  .hero-card {
    height: 260px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .materials-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  
  .footer-bar-grid {
    flex-direction: column;
    text-align: center;
  }
  
  .tech-bar-wrap {
    justify-content: center !important;
  }
}

/* Site Footer Bottom Line */
.site-footer {
  background: #090a10;
  border-top: 1px solid var(--border-color);
  padding: 18px 0;
  margin-top: auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top-color: #cbd5e1;
}

.footer-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}

.footer-links-row a:hover {
  color: var(--primary);
}

.footer-sep {
  opacity: 0.35;
  color: var(--text-muted);
}

.footer-copy {
  font-weight: 600;
  color: var(--text-main);
  direction: ltr;
  display: inline-block;
}

/* Keep the two featured category cards visually balanced. */
.card-winter .hero-card-content,
.card-kids .hero-card-content,
.card-men .hero-card-content {
  height: 82px;
  grid-template-rows: 48px 26px;
  row-gap: 8px;
  text-align: center;
}

.card-winter .hero-card-pill,
.card-kids .hero-card-pill,
.card-men .hero-card-pill {
  position: relative;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 6px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-winter .hero-card-pill > [data-i18n],
.card-kids .hero-card-pill > [data-i18n],
.card-men .hero-card-pill > [data-i18n] {
  width: 100%;
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
}

.card-winter .hero-card-pill .pill-arrow,
.card-kids .hero-card-pill .pill-arrow,
.card-men .hero-card-pill .pill-arrow {
  position: absolute;
  left: 11px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

.card-winter:hover .hero-card-pill .pill-arrow,
.card-kids:hover .hero-card-pill .pill-arrow,
.card-men:hover .hero-card-pill .pill-arrow {
  transform: translateY(-50%) scale(1.1);
}

.card-winter .hero-card-subtitle,
.card-kids .hero-card-subtitle,
.card-men .hero-card-subtitle {
  width: 100%;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 0.62rem;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  overflow: visible;
  text-align: center;
}

/* Legal information pages */
.legal-page-content {
  margin-top: 32px;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-muted);
  line-height: 2;
}

.legal-page-content h2 {
  margin: 4px 0 10px;
  color: var(--text-main);
  font-size: 1.25rem;
}

.legal-page-content p + h2 {
  margin-top: 24px;
}

@media (max-width: 560px) {
  .legal-page-content {
    margin-top: 20px;
    padding: 22px 18px;
  }
}

/* Child development hub */
.coming-soon-page {
  min-height: calc(100vh - 170px);
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.coming-soon-page.active {
  display: flex;
}

.coming-soon-message {
  max-width: 720px;
  padding: 30px 42px;
  border: 1px solid rgba(139, 92, 246, 0.34);
  border-radius: 999px;
  color: var(--text-main);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.55;
}

.child-dev-banner {
  position: relative;
  overflow: hidden;
  padding: 36px 0;
  margin-bottom: 0;
  text-align: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(96,165,250,.22), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(167,139,250,.24), transparent 34%),
    linear-gradient(135deg, rgba(37,99,235,.14), rgba(124,58,237,.12));
}

.child-dev-banner .page-banner-desc {
  color: #cbd5e1;
}

.child-dev-banner .page-banner-title {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.35;
}

.child-dev-banner .page-banner-desc {
  max-width: 820px;
  margin-inline: auto;
  line-height: 1.9;
}

.child-dev-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 13px;
  border: 1px solid rgba(139,92,246,.32);
  border-radius: 999px;
  color: #a78bfa;
  background: rgba(124,58,237,.1);
  font-size: .78rem;
  font-weight: 800;
}

.child-dev-shell { padding-bottom: 72px; }

.child-age-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 700;
}

.child-age-row button {
  min-width: 58px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-main);
  background: var(--bg-card);
  font: inherit;
  cursor: pointer;
}

.child-age-row button:not([data-child-age="all"]) {
  direction: ltr;
  unicode-bidi: isolate;
}

.child-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}

.child-topic-card {
  min-height: 205px;
  padding: 24px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.child-topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.child-topic-card > i { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 15px; color: #fff; font-size: 1.25rem; }
.child-topic-card h3 { margin-bottom: 9px; color: var(--text-main); font-size: 1rem; }
.child-topic-card p { color: var(--text-muted); font-size: .82rem; line-height: 1.8; }
.child-topic-card.tone-blue > i { background: linear-gradient(135deg,#3b82f6,#2563eb); }
.child-topic-card.tone-purple > i { background: linear-gradient(135deg,#a855f7,#7c3aed); }
.child-topic-card.tone-green > i { background: linear-gradient(135deg,#34d399,#059669); }
.child-topic-card.tone-orange > i { background: linear-gradient(135deg,#fb923c,#ea580c); }

.child-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 52px 0 20px;
}

.child-dev-shell { display: flex; flex-direction: column; }
.child-source-hub { order: 10; margin: 40px 0 0; padding: 24px; border: 1px solid rgba(139, 92, 246, .28); border-radius: 22px; background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(6, 182, 212, .06)); }
.child-source-hub-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.child-source-kicker { color: #a78bfa; font-size: .82rem; font-weight: 900; }
.child-source-hub h2 { margin-top: 7px; font-size: 1.35rem; line-height: 1.5; }
.child-source-hub-heading p { max-width: 420px; color: var(--text-muted); line-height: 1.8; font-size: .88rem; }
.child-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.child-source-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-width: 0; padding: 15px; border: 1px solid var(--border-color); border-radius: 16px; color: var(--text-main); background: rgba(15, 23, 42, .42); transition: var(--transition); }
.child-source-card:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .65); }
.child-source-card > span:nth-child(2) { min-width: 0; }
.child-source-card strong, .child-source-card small { display: block; }
.child-source-card strong { font-size: .92rem; }
.child-source-card small { margin-top: 4px; color: var(--text-muted); font-size: .73rem; line-height: 1.55; }
.child-source-card > i:last-child { color: #a78bfa; font-size: .78rem; }
.child-source-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
.source-trt .child-source-icon { background: linear-gradient(135deg, #ef4444, #f97316); }
.source-natgeo .child-source-icon { background: linear-gradient(135deg, #16a34a, #0d9488); }
.child-editorial-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; color: var(--text-muted); font-size: .78rem; font-weight: 800; }
.child-editorial-flow > i:first-child { color: #34d399; }
.child-editorial-flow > i:not(:first-child) { color: #a78bfa; font-size: .7rem; }
@media (max-width: 900px) { .child-source-hub-heading { align-items: flex-start; flex-direction: column; } .child-source-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .child-source-hub { padding: 18px; } .child-editorial-flow { justify-content: flex-start; } }

.child-daily-news { margin: 36px 0 42px; }
#page-child-development .child-daily-news { display: none; }
.child-daily-heading { margin-bottom: 18px; }
.child-daily-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.child-daily-card { overflow: hidden; min-width: 0; border: 1px solid var(--border-color); border-radius: 18px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.child-daily-visual { display: flex; align-items: center; justify-content: space-between; min-height: 112px; padding: 24px; color: #fff; font-size: 2rem; }
.child-daily-visual span { font-size: .76rem; font-weight: 900; letter-spacing: .04em; opacity: .9; }
.daily-moon { background: linear-gradient(135deg, #172554, #4f46e5); }
.daily-mars { background: linear-gradient(135deg, #7f1d1d, #ea580c); }
.daily-stars { background: linear-gradient(135deg, #312e81, #0f766e); }
.child-daily-body { display: flex; flex-direction: column; padding: 18px; }
.child-daily-meta { order: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 14px; color: #a78bfa; font-size: .68rem; font-weight: 800; line-height: 1.55; }
.child-daily-card .child-daily-meta { display: none; }
.child-daily-card .child-daily-body > a { font-size: 0; }
.child-daily-card .child-daily-body > a::before { content: "تەپسىلىي ئوقۇش"; font-size: .78rem; }
.child-daily-card .child-daily-body > a i { display: none; }
.child-daily-body h3 { margin-bottom: 10px; color: var(--text-main); font-size: 1rem; line-height: 1.6; }
.child-daily-body p { min-height: 116px; color: var(--text-muted); font-size: .82rem; line-height: 1.85; }
.child-daily-body a { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: #a78bfa; font-size: .78rem; font-weight: 900; }
.child-daily-body a:hover { color: #c4b5fd; }
.child-daily-card[role="button"] { cursor: pointer; }
.child-daily-card[role="button"]:focus-visible { outline: 3px solid rgba(167, 139, 250, .85); outline-offset: 4px; }
.daily-news-modal-box {
  width: min(760px, calc(100% - 32px));
  max-width: 760px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding-block-start: 48px;
  color: var(--text-main);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: none;
}
.daily-news-modal-box::backdrop { background: rgba(0, 0, 0, .7); }
.daily-news-modal-meta { margin-bottom: 10px; color: #a78bfa; font-size: .78rem; font-weight: 800; line-height: 1.7; }
.daily-news-modal-box h2 { margin-bottom: 18px; font-size: 1.45rem; line-height: 1.65; }
.daily-news-modal-body { color: var(--text-muted); font-size: .98rem; line-height: 2; }
.daily-news-modal-body p { margin-bottom: 16px; }
.daily-news-modal-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.daily-news-modal-footer .daily-news-modal-meta { margin: 0; }
.daily-news-modal-source { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: #a78bfa; font-weight: 900; }
@media (max-width: 560px) { .daily-news-modal-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 900px) { .child-daily-grid { grid-template-columns: 1fr; } .child-daily-body p { min-height: 0; } }

.child-section-heading span { color: #8b5cf6; font-size: .72rem; font-weight: 900; }
.child-section-heading h2 { margin-top: 5px; color: var(--text-main); font-size: 1.55rem; }
.child-section-heading p { max-width: 430px; color: var(--text-muted); font-size: .82rem; line-height: 1.7; }

.child-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.child-article-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-sm); transition: var(--transition); }
.child-article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.child-article-visual { position: relative; height: 145px; display: grid; place-items: center; color: #fff; font-size: 2.2rem; }
.child-article-visual span { position: absolute; top: 14px; inset-inline-end: 14px; padding: 5px 9px; border-radius: 999px; background: rgba(15,23,42,.28); font: 800 .66rem/1 "Segoe UI",sans-serif; }
.visual-milestone { background: linear-gradient(135deg,#38bdf8,#2563eb); }
.visual-play { background: linear-gradient(135deg,#34d399,#0f766e); }
.visual-mind { background: linear-gradient(135deg,#c084fc,#7c3aed); }
.child-article-body { padding: 21px; }
.child-article-meta { margin-bottom: 9px; color: #8b5cf6; font-size: .69rem; font-weight: 800; }
.child-article-body h3 { min-height: 50px; color: var(--text-main); font-size: 1rem; line-height: 1.55; }
.child-article-body p { min-height: 72px; margin: 10px 0 15px; color: var(--text-muted); font-size: .8rem; line-height: 1.75; }
.child-article-body a { display: inline-flex; align-items: center; gap: 7px; color: #8b5cf6; font-size: .78rem; font-weight: 900; }

.child-medical-note {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(59,130,246,.28);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: rgba(59,130,246,.07);
}

.child-medical-note i { margin-top: 4px; color: #60a5fa; }
.child-medical-note p { font-size: .76rem; line-height: 1.8; }

@media (max-width: 1024px) {
  .child-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .child-article-grid { grid-template-columns: 1fr; }
  .child-article-card { display: grid; grid-template-columns: 220px 1fr; }
  .child-article-visual { height: 100%; min-height: 210px; }
}

@media (max-width: 680px) {
  .child-topic-grid { grid-template-columns: 1fr; }
  .child-topic-card { min-height: auto; }
  .child-section-heading { align-items: flex-start; flex-direction: column; }
  .child-article-card { display: block; }
  .child-article-visual { height: 135px; min-height: 0; }
  .child-article-body h3, .child-article-body p { min-height: 0; }
}

/* 2026 interface refinement */
body {
  background:
    radial-gradient(circle at 10% 8%, rgba(37, 99, 235, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(139, 92, 246, 0.12), transparent 30rem),
    var(--bg-main);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 8%, rgba(14, 165, 233, 0.10), transparent 28rem),
    radial-gradient(circle at 88% 28%, rgba(139, 92, 246, 0.08), transparent 30rem),
    var(--bg-main);
}

.site-header {
  border-bottom-color: rgba(139, 92, 246, 0.18);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.13);
}

.nav-wrapper {
  min-height: 80px;
  padding: 10px 0;
}

.brand-logo {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 16px;
}

.brand-logo-image {
  height: 60px;
  max-width: 190px;
}

.nav-menu {
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(139, 92, 246, 0.14);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

[data-theme="light"] .nav-menu { background: rgba(255,255,255,.58); }

.nav-link {
  min-height: 40px;
  padding: 8px 13px;
  font-size: .84rem;
  font-weight: 750;
}

.nav-link-child i {
  color: #34d399;
  filter: drop-shadow(0 2px 5px rgba(16,185,129,.28));
}

.nav-link-child.active i { color: #fff; }

.nav-actions {
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}

[data-theme="light"] .nav-actions { background: rgba(255,255,255,.58); }

.icon-btn,
.theme-toggle-btn,
.btn-login {
  box-shadow: inset 0 0 0 1px rgba(139,92,246,.08);
}

.hero-section {
  padding: 54px 0 76px;
}

.hero-grid {
  align-items: stretch;
  gap: clamp(28px, 4vw, 58px);
}

.hero-content {
  position: relative;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 24px 70px rgba(2,6,23,.18);
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  inset-inline-end: -80px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.28), transparent 68%);
  pointer-events: none;
}

[data-theme="light"] .hero-content {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(248,250,252,.72));
  box-shadow: 0 24px 60px rgba(71,85,105,.12);
}

.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(139,92,246,.28);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(139,92,246,.10);
  font-size: .72rem;
  font-weight: 900;
}

[data-theme="light"] .hero-eyebrow { color: #6d28d9; }

.hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
  line-height: 1.22;
  text-wrap: balance;
}

.hero-desc,
.hero-btn { position: relative; z-index: 1; }

.hero-btn {
  border-radius: 999px;
  padding-inline: 28px;
}

.hero-card {
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 38px rgba(2,6,23,.22);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-7px) scale(1.01);
}

.page-view.active {
  animation: pageReveal .35s ease both;
}

@keyframes pageReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(96,165,250,.72);
  outline-offset: 3px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-link { padding-inline: 9px; font-size: .75rem; }
  .brand-logo-image { max-width: 155px; }
  .lang-pill-group { gap: 2px; }
  .lang-flag-btn { width: 28px; height: 28px; }
}

@media (max-width: 1024px) {
  .nav-actions { border-color: transparent; background: transparent; }
  .hero-content { order: -1; }
}

@media (max-width: 560px) {
  .nav-wrapper { min-height: 68px; }
  .brand-logo-image { height: 48px; max-width: 122px; }
  .hero-section { padding: 30px 0 54px; }
  .hero-content { padding: 26px 22px; border-radius: 24px; }
  .hero-title { font-size: 2rem; }
  .hero-desc { font-size: .94rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Child content filters and weekly editorial plan */
.child-age-row button.active,
.child-filter-row button.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 8px 20px rgba(99,102,241,.24);
}

.child-filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: -12px 0 34px;
}

.child-filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  font-size: .82rem;
  font-weight: 800;
}

.child-filter-row button:hover {
  color: var(--text-main);
  border-color: rgba(139,92,246,.45);
  transform: translateY(-2px);
}

.child-age-row button:focus-visible,
.child-filter-row button:focus-visible {
  outline: 3px solid rgba(139, 92, 246, .42);
  outline-offset: 3px;
}

[data-theme="dark"] .child-age-row button:not(.active),
[data-theme="dark"] .child-filter-row button:not(.active) {
  color: #cbd5e1;
}

.weekly-editorial-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--bg-surface);
}

.weekly-editorial-strip > div {
  min-width: 0;
  padding: 10px 7px;
  border-radius: 12px;
  text-align: center;
  background: var(--bg-card);
}

.weekly-editorial-strip strong,
.weekly-editorial-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-editorial-strip strong { color: var(--text-main); font-size: .68rem; }
.weekly-editorial-strip span { margin-top: 4px; color: #8b5cf6; font-size: .62rem; font-weight: 800; }

.child-article-card[hidden] { display: none !important; }
.visual-parenting { background: linear-gradient(135deg,#fb7185,#db2777); }
.visual-language { background: linear-gradient(135deg,#fbbf24,#d97706); }
.visual-safety { background: linear-gradient(135deg,#22d3ee,#0e7490); }
.visual-health { background: linear-gradient(135deg,#818cf8,#4338ca); }

.reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-size: .66rem;
  font-weight: 900;
}

.child-empty-state {
  padding: 42px 20px;
  border: 1px dashed var(--border-color);
  border-radius: 18px;
  color: var(--text-muted);
  text-align: center;
}

.child-empty-state i { display: block; margin-bottom: 10px; color: #8b5cf6; font-size: 1.4rem; }

@media (max-width: 900px) {
  .weekly-editorial-strip {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

@media (max-width: 560px) {
  .child-filter-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .child-filter-row button { flex: 0 0 auto; }
  .weekly-editorial-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Streamlined child-development library and internal reading view */
.child-filter-panel {
  display: grid;
  grid-template-columns: minmax(430px,1.05fr) minmax(0,1.25fr);
  gap: 22px;
  margin: 30px 0 10px;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  box-shadow: var(--shadow-sm);
}

.child-filter-group { min-width: 0; }
.child-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 900;
}
.child-filter-label i { color: #8b5cf6; }
.child-filter-panel .child-age-row,
.child-filter-panel .child-filter-row {
  justify-content: flex-start;
  margin: 0;
}
.child-filter-panel .child-age-row {
  flex-wrap: nowrap;
  gap: 8px;
}
.child-filter-panel button { cursor: pointer; }

.child-section-heading { margin-top: 38px; }
.child-article-grid { align-items: stretch; }
.child-article-card { display: flex; flex-direction: column; }
.child-article-body { display: flex; flex: 1; flex-direction: column; }
.child-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.child-article-meta time {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 700;
  text-align: end;
}
.child-article-body p { flex: 1; }
.child-read-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #8b5cf6;
  background: transparent;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.4;
  cursor: pointer;
}
.child-read-btn:hover { color: #a78bfa; gap: 12px; }
[dir="ltr"] .child-read-btn i,
[dir="ltr"] .child-article-back i { transform: rotate(180deg); }

.child-reading-page { padding: 42px 0 84px; }
.child-reading-shell { max-width: 920px; }
.child-article-back { margin-bottom: 22px; border: 0; cursor: pointer; }
.child-reading-hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 25px;
  align-items: start;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--border-color);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(139,92,246,.12)), var(--bg-card);
  box-shadow: var(--shadow-md);
}
.child-reading-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg,#8b5cf6,#2563eb);
  font-size: 2rem;
  box-shadow: 0 14px 28px rgba(99,102,241,.26);
}
.child-reading-hero h1 {
  margin: 9px 0 10px;
  color: var(--text-main);
  font-size: clamp(1.75rem,4vw,2.65rem);
  line-height: 1.35;
}
.child-reading-hero > div > p { color: var(--text-muted); line-height: 1.8; }
.child-reading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 17px;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
}
.child-reading-meta span { display: inline-flex; align-items: center; gap: 6px; }
.child-reading-body {
  margin: 0;
  padding: 38px clamp(24px,6vw,64px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.child-reading-body h2 { margin-top: 30px; }
.child-reading-body ul { margin: 14px 0; padding-inline-start: 24px; color: var(--text-muted); line-height: 2; }
.child-source-box {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(16,185,129,.28);
  border-radius: 20px;
  background: rgba(16,185,129,.07);
}
.child-source-box > div { display: flex; gap: 13px; align-items: flex-start; }
.child-source-box > div > i { margin-top: 4px; color: #10b981; }
.child-source-box strong { color: var(--text-main); }
.child-source-box p { margin-top: 5px; color: var(--text-muted); font-size: .76rem; line-height: 1.7; }
.child-source-box > a {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: #059669;
  font-size: .74rem;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .child-filter-panel { grid-template-columns: 1fr; }
  .child-filter-panel .child-age-row { flex-wrap: wrap; }
}

@media (max-width: 820px) {
  .child-article-card { display: grid; }
  .child-reading-hero { grid-template-columns: 1fr; }
  .child-source-box { align-items: stretch; flex-direction: column; }
  .child-source-box > a { align-self: flex-start; }
}

@media (max-width: 560px) {
  .child-filter-panel { padding: 16px; }
  .child-filter-panel .child-age-row,
  .child-filter-panel .child-filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 7px; }
  .child-article-card { display: block; grid-template-columns: none; }
  .child-reading-page { padding-top: 24px; }
  .child-reading-hero { padding: 23px; }
  .child-reading-icon { width: 64px; height: 64px; border-radius: 19px; font-size: 1.55rem; }
  .child-reading-body { padding: 26px 22px; }
}

/* Keep the desktop layout visually consistent with the phone cards while
   allowing the grid to breathe at every intermediate viewport width. */
@media (max-width: 1200px) and (min-width: 1025px) {
  .container { padding-inline: 22px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .product-img-wrap { height: 205px; flex-basis: 205px; }
  .blog-grid { gap: 20px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .container { padding-inline: 20px; }
  .products-grid,
  .blog-grid,
  .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-img-wrap { height: 210px; flex-basis: 210px; }
}

@media (max-width: 768px) {
  .container { padding-inline: 16px; }
  .products-grid,
  .blog-grid,
  .materials-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card { min-width: 0; }
  .product-img-wrap { height: clamp(190px, 54vw, 250px); flex-basis: auto; }
  .product-info { padding: 16px; }
  .product-title { min-height: 0; font-size: 1.02rem; }
  .btn-add-cart { min-height: 46px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 14px; }
  .product-img-wrap { height: min(68vw, 245px); }
  .products-grid { gap: 14px; }
}

/* Standard product-photo frame: preserve every source image without cropping. */
.product-img-wrap,
.shop-prod-card .product-img-wrap {
  height: auto;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  background: #fff;
  overflow: hidden;
}

.product-img,
.shop-prod-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.product-img-kids-3,
.product-img-kids-4,
.product-img-kids-5,
.product-img-kids-6,
.product-img-tote-bags,
.product-img-standard-kids,
.product-img-pearl-bag {
  transform: none;
}

/* Homepage featured article cards: fixed 210px image / 4:3 frame and readable type scale. */
.featured-article-card .product-img-wrap {
  height: 210px;
  flex: 0 0 210px;
  aspect-ratio: 4 / 3;
}
.featured-article-card .product-img {
  object-fit: cover;
}
.featured-article-card .ramadan-calendar-image {
  object-fit: contain;
}
.featured-article-card:hover .product-img {
  transform: none;
}
.featured-article-card .product-title {
  font-size: 1.05rem;
}
.featured-article-card .featured-article-desc,
.featured-article-card .featured-article-link {
  font-size: .76rem;
}
.featured-article-card .featured-article-date {
  font-size: .68rem;
}

/* Shop product cards: match the reference cards with a uniform 210px / 4:3 image frame. */
.shop-prod-card .product-img-wrap {
  width: 100%;
  height: 210px;
  flex: 0 0 210px;
  aspect-ratio: 4 / 3;
}
.shop-prod-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}
.shop-prod-card:hover .product-img { transform: none; }

/* Keep the product itself stable on hover; only the card may lift. */
.shop-prod-card:hover .product-img,
.product-card:hover .product-img-kids-3,
.product-card:hover .product-img-kids-4,
.product-card:hover .product-img-kids-5,
.product-card:hover .product-img-kids-6,
.product-card:hover .product-img-tote-bags,
.product-card:hover .product-img-standard-kids,
.product-card:hover .product-img-pearl-bag {
  transform: none;
}

@media (max-width: 768px) {
  .product-img-wrap,
  .shop-prod-card .product-img-wrap {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Home-page clarity, accessibility and compact mobile navigation. */
.hero-card-coming {
  position: absolute;
  z-index: 4;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  color: #fff;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,.2);
}

.card-winter .hero-card-pill > [data-i18n],
.card-kids .hero-card-pill > [data-i18n],
.card-men .hero-card-pill > [data-i18n],
.card-app-news .hero-card-pill > [data-i18n],
.card-mother .hero-card-pill > [data-i18n] {
  font-size: clamp(.76rem, .82vw, .88rem);
}

.card-winter .hero-card-subtitle,
.card-kids .hero-card-subtitle,
.card-men .hero-card-subtitle,
.card-app-news .hero-card-subtitle,
.card-mother .hero-card-subtitle {
  font-size: clamp(.68rem, .72vw, .78rem);
}

.featured-section::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 4%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.55), rgba(59,130,246,.4), transparent);
}

.featured-article-card {
  border-color: rgba(139,92,246,.42);
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
  box-shadow: 0 10px 28px rgba(124,58,237,.12);
}

.featured-article-card:hover {
  border-color: rgba(124,58,237,.72);
  box-shadow: 0 18px 38px rgba(124,58,237,.2);
}

@media (max-width: 560px) {
  .hero-cards-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 5px 18px 18px;
    margin-inline: -18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
  }

  .hero-card,
  .hero-card.card-mother,
  .hero-card.card-app-news {
    flex: 0 0 min(84vw, 330px);
    height: 250px;
    grid-column: auto;
    scroll-snap-align: center;
  }

  .hero-card-content,
  .card-mother .hero-card-content,
  .card-app-news .hero-card-content {
    width: 100%;
  }
}


.shop-photo-gallery {
  margin-block-start: 3rem;
}

.shop-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-block-start: 1rem;
}

.shop-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}


/* Header navigation */
.site-header > .container {
  max-width: 1440px;
}

.nav-wrapper {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.nav-menu {
  justify-self: center;
}

.nav-link,
.nav-settings .btn-login {
  white-space: nowrap;
}

.nav-more > summary {
  list-style: none;
}

.nav-more > summary::-webkit-details-marker {
  display: none;
}

.nav-more[open] > .dropdown-menu {
  margin-top: 4px;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-settings,
.nav-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 1201px) and (max-width: 1350px) {
  .nav-link { padding-inline: 8px; }
  .brand-logo-image { max-width: 125px; }
  .nav-menu { gap: 2px; }
}

@media (max-width: 1200px) {
  .nav-wrapper {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-logo {
    justify-self: start;
  }

  .nav-actions {
    display: contents;
  }

  .nav-quick-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-menu,
  .nav-settings {
    display: none;
    grid-column: 1 / -1;
  }

  .mobile-toggle {
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
  }

  .mobile-menu-open .nav-menu {
    display: grid;
    grid-row: 2;
    width: 100%;
    justify-content: stretch;
    border-radius: var(--radius-md);
  }

  .mobile-menu-open .nav-settings {
    display: flex;
    grid-row: 3;
    flex-wrap: wrap;
    padding-block-end: 6px;
  }

  .nav-settings .lang-pill-group,
  .nav-settings #headerThemeBtn,
  .nav-settings #loginOpenBtn {
    display: inline-flex;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding-inline: 12px;
    font-size: .9rem;
  }

  .nav-more > .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .mobile-menu-open {
    max-height: 88dvh;
    overflow-y: auto;
  }
}

.memory-game {
  max-width: 500px;
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 5vw, 2rem);
  border-radius: 28px;
  background: #603200;
  color: #fff7e5;
  text-align: center;
}

.memory-game [hidden] { display: none; }

.memory-game p { margin-block: .5rem 1.25rem; }

.memory-themes {
  margin: 0 0 1.3rem;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.memory-themes legend { margin: 0 auto .6rem; }

.memory-theme-grid,
.memory-board {
  display: grid;
  gap: clamp(6px, 2vw, 12px);
}

.memory-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.memory-theme-grid label { position: relative; cursor: pointer; }

.memory-theme-grid input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.memory-theme-grid label > span {
  display: grid;
  place-items: center;
  align-content: center;
  gap: .35rem;
  min-block-size: 6.5rem;
  height: 100%;
  padding: .45rem;
  border: 3px solid transparent;
  border-radius: 14px;
  background: #fff4db;
  color: #603200;
  line-height: 1.35;
}

.memory-theme-grid b { font-size: 1.85rem; }
.memory-theme-grid input:checked + span { border-color: #74e28a; background: #d8f0bb; }
.memory-theme-grid input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }

.memory-board {
  max-width: 400px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem auto;
}

.memory-board[data-level="6"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.memory-card {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border: 3px double #edc887;
  border-radius: 12px;
  font-size: clamp(1.2rem, 5.8vw, 2.5rem);
  background: #9c633c;
  color: #fff7e5;
  cursor: pointer;
}


.memory-card.is-open { background: #ffe5aa; }
.memory-card.is-matched { border-color: #29783a; background: #d8f0bb; }

.memory-action {
  padding: .65rem 1.6rem;
  border-radius: 999px;
  background: #74e28a;
  color: #173d1e;
  font-weight: 800;
  font-size: 1rem;
}

.memory-game select {
  margin-inline-start: .4rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  background: #fff7e5;
  color: #603200;
}

.memory-progress { margin-block-end: 1rem; }
.memory-progress strong { display: block; margin-block-start: .4rem; }

.memory-game :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

:is(#memory-title, #letters-title) { margin-block-end: 1rem; }
:is(#memory-start, #letters-start) { display: block; margin: 1.25rem auto 0; }
:is(#memory-instruction, #letters-instruction) { font-size: clamp(1.2rem, 4vw, 1.55rem); font-weight: 750; }
:is(#memory-level-back, #letters-level-back) { margin-block-start: .75rem; background: #ffe5aa; color: #603200; }
.memory-card:disabled { cursor: default; opacity: 1; }



.memory-art {
  display: block;
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 16px;
}

#memory-cover > h2 {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
}


.memory-timer {
  display: flex;
  justify-content: center;
  gap: .55rem;
  font-variant-numeric: tabular-nums;
}

:is(#memory-timeout, #letters-timeout) {
  color: #ffdf9c;
  font-weight: 750;
}


.memory-time-bar {
  display: block;
  width: min(100%, 400px);
  height: .7rem;
  margin: 0 auto;
  accent-color: #74e28a;
}

:is(#memory-clock, #letters-clock) .memory-timer { margin-block-end: .35rem; }


.game-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 1rem;
  max-width: 660px;
  margin: 0 auto 2rem;
}

.game-picker button {
  display: grid;
  gap: .6rem;
  place-items: center;
  min-height: 155px;
  padding: 1.3rem 1rem;
  border-radius: 22px;
  background: #603200;
  color: #fff7e5;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 750;
  cursor: pointer;
}

.game-picker button:nth-child(2),
.letter-game { background: #183956; }

.game-picker-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.game-picker button:hover { filter: brightness(1.14); }
.game-picker button:focus-visible,
.game-picker-back:focus-visible { outline: 3px solid #74e28a; outline-offset: 3px; }

.game-shell { padding-block-start: 1.5rem; }

.game-picker-back {
  display: block;
  margin: 0 auto 1rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: #fff4db;
  color: #603200;
  cursor: pointer;
}

.letter-game-art {
  display: block;
  width: min(100%, 180px);
  height: auto;
  margin: 0 auto .85rem;
  border-radius: 18px;
}

.letter-game .memory-theme-grid label > span {
  background: #fff4db;
  color: #183956;
  box-shadow: inset 0 -3px #e9cb96;
}

.letter-game .memory-theme-grid input:checked + span {
  background: #d9eeff;
  border-color: #7dc5ff;
  box-shadow: none;
}

.letter-game .memory-card {
  background: #315b7e;
  border-color: #92c4e8;
  border-radius: 16px;
}

.letter-game .memory-card.is-open {
  background: #fff4db;
  color: #183956;
  border-color: #e9cb96;
  box-shadow: inset 0 -3px #e9cb96;
}

.letter-game .memory-card.is-matched {
  background: #d8f0bb;
  border-color: #29783a;
  box-shadow: none;
}

.letter-picture-face {
  display: grid;
  gap: .1em;
  justify-items: center;
  width: 100%;
  padding-inline: .12em;
  line-height: 1.05;
}

.letter-picture-face small {
  font-size: clamp(.62rem, 2.2vw, .9rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

#material-islamic, #news-reading, #news-trt-limits { scroll-margin-top: 110px; }

