/*
 * Syria Market Storefront Design System
 * Calm, accessible commerce UI. This file intentionally loads after the
 * dynamic theme so structural UX stays consistent while content remains
 * configurable from the dashboard.
 */

:root {
  --store-bg: var(--store-theme-bg, #f5f7fa);
  --store-surface: var(--store-theme-surface, #ffffff);
  --store-surface-subtle: var(--store-theme-surface-subtle, #f8fafc);
  --store-surface-raised: var(--store-theme-surface-raised, #ffffff);
  --store-text: var(--store-theme-text, #122033);
  --store-text-soft: var(--store-theme-text-soft, #526173);
  --store-text-muted: var(--store-theme-text-muted, #718096);
  --store-border: var(--store-theme-border, #dce3eb);
  --store-border-strong: var(--store-theme-border-strong, #c9d3df);
  --store-brand: var(--store-theme-brand, #0877be);
  --store-brand-strong: var(--store-theme-brand-strong, #075d96);
  --store-brand-soft: var(--store-theme-brand-soft, #eaf6fc);
  --store-accent: var(--store-theme-accent, #f5c542);
  --store-success: var(--store-theme-success, #12805c);
  --store-success-soft: var(--store-theme-success-soft, #eaf8f2);
  --store-warning: var(--store-theme-warning, #a75d05);
  --store-warning-soft: var(--store-theme-warning-soft, #fff7e8);
  --store-danger: var(--store-theme-danger, #c0363f);
  --store-danger-soft: var(--store-theme-danger-soft, #fff0f1);
  --store-info: var(--store-theme-info, #1769aa);
  --store-info-soft: var(--store-theme-info-soft, #edf7ff);
  --store-shadow-xs: 0 1px 2px rgba(15, 35, 58, 0.05);
  --store-shadow-sm: 0 6px 18px rgba(15, 35, 58, 0.07);
  --store-shadow-md: 0 14px 34px rgba(15, 35, 58, 0.1);
  --store-radius-sm: 10px;
  --store-radius-md: 14px;
  --store-radius-lg: 20px;
  --store-radius-pill: 999px;
  --store-space-1: 0.25rem;
  --store-space-2: 0.5rem;
  --store-space-3: 0.75rem;
  --store-space-4: 1rem;
  --store-space-5: 1.25rem;
  --store-space-6: 1.5rem;
  --store-space-8: 2rem;
  --store-space-10: 2.5rem;
  --store-transition: 180ms cubic-bezier(0.2, 0, 0, 1);
  --store-sidebar-width: 264px;
  --store-header-height: 72px;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.storefront-v2 {
  --glass-border-light: 1px solid var(--store-border-strong);
  --shadow-sm: var(--store-shadow-xs);
  --shadow-md: var(--store-shadow-sm);
  --shadow-glow: 0 0 0 rgba(0, 0, 0, 0);
  --sidebar-width: var(--store-sidebar-width);
  --header-height: var(--store-header-height);
  --radius-sm: var(--store-radius-sm);
  --radius-md: var(--store-radius-md);
  --radius-lg: var(--store-radius-lg);
  --transition: var(--store-transition);
  min-height: 100vh;
  background: var(--store-bg) !important;
  background-image: none !important;
  color: var(--store-text) !important;
  font-family: "Cairo", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
  overflow-x: clip;
}

body.storefront-v2::before,
body.storefront-v2::after,
.storefront-v2 .particles-container {
  display: none !important;
}

.storefront-v2 *,
.storefront-v2 *::before,
.storefront-v2 *::after {
  scrollbar-color: #b9c5d2 transparent;
}

/* Structural containment shared by every public storefront page.  Grid and
   flex children default to min-width:auto, which lets long Arabic/Latin
   labels expand the document beyond narrow phone viewports. */
.storefront-v2 .main-wrapper,
.storefront-v2 .content-area,
.storefront-v2 main,
.storefront-v2 section,
.storefront-v2 article,
.storefront-v2 form,
.storefront-v2 fieldset,
.storefront-v2 .storefront-home,
.storefront-v2 .catalog-section {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.storefront-v2 img,
.storefront-v2 video,
.storefront-v2 canvas,
.storefront-v2 iframe {
  max-inline-size: 100%;
}

.storefront-v2 h1,
.storefront-v2 h2,
.storefront-v2 h3,
.storefront-v2 p,
.storefront-v2 label,
.storefront-v2 code {
  overflow-wrap: anywhere;
}

.storefront-v2 a,
.storefront-v2 button,
.storefront-v2 input,
.storefront-v2 select,
.storefront-v2 textarea,
.storefront-v2 [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.storefront-v2 button,
.storefront-v2 input,
.storefront-v2 select,
.storefront-v2 textarea {
  font: inherit;
}

.storefront-v2 button,
.storefront-v2 a,
.storefront-v2 [role="button"] {
  transition:
    color var(--store-transition),
    background-color var(--store-transition),
    border-color var(--store-transition),
    box-shadow var(--store-transition),
    transform var(--store-transition),
    opacity var(--store-transition);
}

.storefront-v2 :focus {
  outline: none;
}

.storefront-v2 :focus-visible {
  outline: 3px solid rgba(8, 119, 190, 0.34) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 1px var(--store-brand) !important;
}

.store-skip-link {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483600;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--store-radius-sm);
  background: var(--store-text);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
}

.store-skip-link:focus {
  transform: translateY(0);
}

.storefront-v2 .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.storefront-v2 [hidden] {
  display: none !important;
}

/* Shell */
.storefront-v2 .sidebar {
  width: var(--store-sidebar-width) !important;
  background: var(--sidebar-bg, var(--store-surface)) !important;
  background-image: none !important;
  border-left: 1px solid var(--sidebar-border, var(--store-border)) !important;
  box-shadow: -8px 0 24px rgba(20, 42, 66, 0.05) !important;
  color: var(--sidebar-text, var(--store-text)) !important;
}

.storefront-v2 .sidebar::before,
.storefront-v2 .sidebar::after {
  display: none !important;
}

.storefront-v2 .sidebar-user-header {
  min-height: 176px;
  padding: 22px 18px 18px !important;
  border-bottom: 1px solid var(--sidebar-border, var(--store-border)) !important;
  background: var(--sidebar-header-bg, var(--sidebar-bg, var(--store-surface))) !important;
}

.storefront-v2 .sidebar-brand-wrap {
  gap: 11px;
  margin-bottom: 14px;
}

.storefront-v2 .sidebar-brand-logo-shell {
  width: 54px;
  height: 54px;
  border: 1px solid var(--store-border);
  border-radius: 15px;
  background: var(--store-surface-subtle);
  box-shadow: var(--store-shadow-xs);
}

.storefront-v2 .sidebar-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: contain;
}

.storefront-v2 .sidebar-brand-logo-fallback {
  color: var(--store-brand);
  filter: none;
}

.storefront-v2 .sidebar-brand {
  color: var(--sidebar-text, var(--store-text)) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.storefront-v2 .sidebar-close-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px !important;
  color: var(--sidebar-muted-text, var(--store-text-soft)) !important;
}

.storefront-v2 .sidebar-close-btn:hover {
  background: var(--sidebar-close-bg, var(--store-surface-subtle)) !important;
  color: var(--sidebar-text, var(--store-text)) !important;
}

.storefront-v2 .sidebar-guest {
  width: 100%;
  padding: 8px 0 0 !important;
}

.storefront-v2 .sidebar-guest-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--store-brand-soft);
  color: var(--store-brand);
  font-size: 1.3rem;
}

.storefront-v2 .sidebar-guest h3 {
  color: var(--store-text) !important;
  font-size: 0.96rem;
}

.storefront-v2 .sidebar-login-link {
  display: inline-flex;
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--store-brand);
  border-radius: var(--store-radius-pill);
  background: var(--store-brand);
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.storefront-v2 .sidebar-menu {
  gap: 4px;
  padding: 14px 12px 24px;
}

.storefront-v2 .sidebar-menu li a {
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--sidebar-item-bg, transparent) !important;
  color: var(--sidebar-muted-text, var(--store-text-soft)) !important;
  font-size: 0.94rem;
  font-weight: 700;
}

.storefront-v2 .sidebar-menu li a i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--sidebar-icon-bg, var(--store-surface-subtle));
  color: var(--sidebar-icon-color, var(--store-text-muted)) !important;
  font-size: 0.95rem;
  filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.storefront-v2 .sidebar-menu li a::before,
.storefront-v2 .sidebar-menu li a::after {
  display: none !important;
}

.storefront-v2 .sidebar-menu li a:hover {
  border-color: var(--sidebar-border, var(--store-border));
  background: var(--sidebar-item-hover-bg, var(--store-surface-subtle)) !important;
  color: var(--sidebar-text, var(--store-text)) !important;
  transform: none;
}

.storefront-v2 .sidebar-menu li.active a,
.storefront-v2 .sidebar-menu li a[aria-current="page"] {
  border-color: var(--sidebar-indicator, var(--store-brand)) !important;
  background: var(--sidebar-item-active-bg, var(--store-brand)) !important;
  color: var(--sidebar-item-active-text, #fff) !important;
  box-shadow: none !important;
}

.storefront-v2 .sidebar-menu li.active a i,
.storefront-v2 .sidebar-menu li a[aria-current="page"] i {
  background: var(--sidebar-icon-bg, var(--store-brand));
  color: var(--sidebar-icon-color, #fff) !important;
  box-shadow: none !important;
}

.storefront-v2 .main-wrapper {
  min-width: 0;
  margin-right: var(--store-sidebar-width) !important;
  background: transparent;
}

.storefront-v2 .top-header {
  height: var(--store-header-height) !important;
  padding: 0 26px !important;
  border-bottom: 1px solid var(--nav-border, var(--store-border)) !important;
  background: var(--nav-bg, var(--store-surface)) !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(18, 32, 51, 0.02) !important;
  backdrop-filter: blur(14px);
}

.storefront-v2 .top-header::before,
.storefront-v2 .top-header::after {
  display: none !important;
}

.storefront-v2 .header-right {
  min-width: 0;
  gap: 12px;
}

.storefront-v2 .top-header-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--nav-text, var(--store-text));
  text-decoration: none;
}

.storefront-v2 .top-header-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--store-brand);
  color: #fff;
  font-size: 1rem;
}

.storefront-v2 .top-header-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.storefront-v2 .top-header-brand-copy strong {
  overflow: hidden;
  color: var(--nav-text, var(--store-text));
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-v2 .top-header-brand-copy small {
  color: var(--nav-text, var(--store-text-muted));
  opacity: 0.72;
  font-size: 0.72rem;
}

.storefront-v2 .menu-toggle,
.storefront-v2 .header-icon {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--nav-border, var(--store-border));
  border-radius: 12px;
  background: var(--nav-icon-bg, var(--store-surface));
  color: var(--nav-icon-color, var(--store-text-soft)) !important;
  font-size: 1.02rem;
}

.storefront-v2 .menu-toggle:hover,
.storefront-v2 .header-icon:hover {
  border-color: var(--store-brand);
  background: var(--store-brand);
  color: var(--button-text, #fff) !important;
  transform: none;
}

.storefront-v2 .header-left {
  justify-content: flex-end;
}

.storefront-v2 .storefront-color-mode-toggle {
  display: inline-flex;
  width: auto !important;
  min-width: 44px;
  height: 44px;
  padding: 0 13px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--nav-border, var(--store-border));
  border-radius: 12px;
  background: var(--nav-icon-bg, var(--store-surface));
  color: var(--nav-icon-color, var(--store-text-soft)) !important;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.storefront-v2 .storefront-color-mode-toggle:hover {
  border-color: var(--store-brand);
  background: var(--store-brand);
  color: var(--button-text, #fff) !important;
  transform: none;
}

.storefront-v2 .storefront-color-mode-toggle[aria-pressed="true"] {
  border-color: var(--store-brand);
  background: var(--store-brand-soft);
  color: #0877be !important;
}

.storefront-v2 .storefront-color-mode-toggle i {
  width: 18px;
  color: currentColor;
  text-align: center;
}

.storefront-v2 .currency-badge {
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid var(--store-border-strong) !important;
  border-radius: 12px;
  background: var(--store-brand-soft) !important;
  color: var(--store-brand-strong) !important;
  box-shadow: none !important;
  font-size: 0.9rem;
}

.storefront-v2 .currency-badge:hover {
  border-color: var(--store-brand) !important;
  background: var(--store-surface-subtle) !important;
  box-shadow: none;
  transform: none;
}

.storefront-v2 .content-area {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 30px clamp(20px, 3vw, 44px) 54px;
}

.storefront-v2 .sidebar-overlay {
  background: rgba(18, 32, 51, 0.46);
  backdrop-filter: blur(2px);
}

/* Public shell used by authentication, trust and legal pages. */
.storefront-v2 .ambient-bg {
  display: none !important;
}

.storefront-v2 .navbar {
  min-height: var(--store-header-height);
  padding: 10px clamp(16px, 4vw, 48px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nav-border, var(--store-border)) !important;
  border-radius: 0 !important;
  background: var(--nav-bg, var(--store-surface)) !important;
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

.storefront-v2 .navbar.scrolled {
  padding: 8px clamp(16px, 4vw, 48px) !important;
  background: var(--nav-bg, var(--store-surface)) !important;
}

.storefront-v2 .nav-brand {
  color: var(--nav-text, var(--store-text)) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
  font-family: "Cairo", "Noto Sans Arabic", sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0;
}

.storefront-v2 .nav-links {
  gap: clamp(16px, 2.5vw, 30px);
}

.storefront-v2 .nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--nav-text, var(--store-text-soft)) !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.storefront-v2 .nav-links a::after {
  height: 2px;
  background: var(--store-brand);
}

.storefront-v2 .nav-links a:hover {
  color: var(--store-brand-strong) !important;
}

.storefront-v2 .nav-auth .btn {
  min-height: 44px;
  padding: 9px 15px !important;
  border: 1px solid #bfdfef;
  background: var(--store-brand-soft);
  color: var(--store-brand-strong);
}

.storefront-v2 > main {
  width: 100%;
  flex: 1;
}

.storefront-v2 > footer {
  margin-top: 54px !important;
  padding: 34px 18px 24px !important;
  border-top: 1px solid var(--store-border) !important;
  background: var(--store-surface) !important;
  color: var(--store-text-soft) !important;
}

.storefront-v2 > footer a {
  min-height: 42px;
  display: inline-flex !important;
  align-items: center;
  color: var(--store-text-soft) !important;
}

.storefront-v2 > footer a:hover {
  color: var(--store-brand-strong) !important;
}

/* Shared components */
.storefront-v2 .glass-panel {
  border: 1px solid var(--store-border);
  background: var(--store-surface);
  box-shadow: var(--store-shadow-sm);
  backdrop-filter: none;
}

.storefront-v2 .btn,
.storefront-v2 .syria-app-btn,
.storefront-v2 .btn-buy,
.storefront-v2 .btn-confirm,
.storefront-v2 .cat-view-btn {
  min-height: 44px;
  border-radius: 11px !important;
  font-weight: 800;
  box-shadow: none !important;
}

.storefront-v2 .btn-primary,
.storefront-v2 .syria-app-btn,
.storefront-v2 .btn-buy,
.storefront-v2 .btn-confirm {
  border: 1px solid var(--store-brand-strong) !important;
  background: var(--store-brand) !important;
  background-image: none !important;
  color: #fff !important;
}

.storefront-v2 .btn-primary:hover,
.storefront-v2 .syria-app-btn:hover,
.storefront-v2 .btn-buy:hover,
.storefront-v2 .btn-confirm:hover:not(:disabled) {
  background: var(--store-brand-strong) !important;
  filter: none;
  transform: translateY(-1px);
}

.storefront-v2 .btn-glass,
.storefront-v2 .btn-secondary {
  border: 1px solid var(--store-border-strong);
  background: var(--store-surface);
  color: var(--store-text);
  backdrop-filter: none;
}

.storefront-v2 input:not([type="checkbox"]):not([type="radio"]),
.storefront-v2 select,
.storefront-v2 textarea,
.storefront-v2 .form-control,
.storefront-v2 .co-input {
  min-height: 48px;
  border: 1px solid var(--store-border-strong) !important;
  border-radius: 12px !important;
  background: var(--store-surface) !important;
  color: var(--store-text) !important;
  box-shadow: none !important;
}

.storefront-v2 input::placeholder,
.storefront-v2 textarea::placeholder {
  color: #8794a4;
  opacity: 1;
}

.storefront-v2 input:focus,
.storefront-v2 select:focus,
.storefront-v2 textarea:focus,
.storefront-v2 .form-control:focus,
.storefront-v2 .co-input:focus {
  border-color: var(--store-brand) !important;
  box-shadow: 0 0 0 4px rgba(8, 119, 190, 0.12) !important;
}

.storefront-v2 .ui-badge,
.storefront-v2 .product-type-badge,
.storefront-v2 .supplier-maintenance-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--store-radius-pill);
  font-size: 0.76rem;
  font-weight: 800;
}

.storefront-v2 .ui-badge--new,
.storefront-v2 .badge-app {
  border-color: #bfdfef;
  background: var(--store-info-soft);
  color: var(--store-info);
}

.storefront-v2 .ui-badge--sale,
.storefront-v2 .badge-manual {
  border-color: #f4d9ad;
  background: var(--store-warning-soft);
  color: var(--store-warning);
}

.storefront-v2 .ui-badge--available,
.storefront-v2 .badge-smm {
  border-color: #bce8d8;
  background: var(--store-success-soft);
  color: var(--store-success);
}

.storefront-v2 .supplier-maintenance-badge,
.storefront-v2 .ui-badge--unavailable {
  border-color: #f0c2c6;
  background: var(--store-danger-soft);
  color: var(--store-danger);
}

.storefront-v2 .ui-state,
.storefront-v2 .empty-state,
.storefront-v2 .empty-cats,
.storefront-v2 .smart-search-empty {
  width: 100%;
  padding: 30px 22px;
  border: 1px dashed var(--store-border-strong);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface-subtle);
  color: var(--store-text-soft);
  text-align: center;
}

.storefront-v2 .ui-state__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 15px;
  background: var(--store-brand-soft);
  color: var(--store-brand);
  font-size: 1.25rem;
}

.storefront-v2 .ui-state h2,
.storefront-v2 .ui-state h3,
.storefront-v2 .empty-state h3 {
  margin: 0 0 6px;
  color: var(--store-text);
  font-size: 1.05rem;
}

.storefront-v2 .ui-state p,
.storefront-v2 .empty-state p {
  margin: 0;
  color: var(--store-text-soft);
}

.storefront-v2 .ui-alert {
  display: flex;
  padding: 14px 16px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: var(--store-surface);
  color: var(--store-text);
}

.storefront-v2 .ui-alert--success {
  border-color: #bce8d8;
  background: var(--store-success-soft);
  color: #0d684a;
}

.storefront-v2 .ui-alert--warning {
  border-color: #f4d9ad;
  background: var(--store-warning-soft);
  color: #7c4808;
}

.storefront-v2 .ui-alert--error {
  border-color: #f0c2c6;
  background: var(--store-danger-soft);
  color: #932a32;
}

/* Home */
.storefront-home {
  display: grid;
  gap: 20px;
}

.storefront-v2 .promo-banner {
  min-height: 0;
  margin: 0;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-lg);
  background: var(--store-surface);
  box-shadow: var(--store-shadow-sm) !important;
}

.storefront-v2 .promo-img {
  width: 100%;
  max-height: 330px;
  min-height: 180px;
  border-radius: inherit;
  object-fit: cover;
}

.storefront-v2 .promo-overlay {
  background: linear-gradient(180deg, transparent 58%, rgba(7, 25, 43, 0.2));
}

.storefront-v2 .promo-gradient {
  height: auto;
  min-height: 240px;
  padding: 38px 24px;
  border: 0;
  background: var(--store-brand-soft);
  background-image: none;
}

.storefront-v2 .promo-shimmer {
  display: none;
}

.storefront-v2 .promo-content h2 {
  color: var(--store-text);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  text-shadow: none;
}

.storefront-v2 .promo-content p {
  color: var(--store-text-soft);
}

.storefront-v2 .promo-badge {
  border-color: #f0d58d;
  background: #fff7d6;
  color: #785a00;
}

.store-news-bar {
  position: relative;
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--store-border-strong);
  border-radius: 14px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow-xs);
  color: var(--store-text);
}

.store-news-bar__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: 0 0 auto;
  padding-inline: 15px;
  align-items: center;
  gap: 7px;
  border-inline-end: 1px solid color-mix(in srgb, var(--store-brand) 30%, transparent);
  background: var(--store-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.store-news-bar__viewport {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.store-news-bar__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  height: 100%;
  align-items: center;
  animation: store-news-ticker-rtl 24s linear infinite;
  will-change: transform;
}

.store-news-bar[data-scroll-direction="ltr"] .store-news-bar__track {
  animation-name: store-news-ticker-ltr;
}

.store-news-bar__item {
  min-width: max-content;
  padding-inline: 34px;
  direction: rtl;
  color: var(--store-text-soft);
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.store-news-bar:hover .store-news-bar__track,
.store-news-bar:focus-within .store-news-bar__track {
  animation-play-state: paused;
}

@keyframes store-news-ticker-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes store-news-ticker-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .store-news-bar__track {
    width: 100%;
    animation: none;
    will-change: auto;
  }

  .store-news-bar__item {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .store-news-bar__item[aria-hidden="true"] {
    display: none;
  }
}

.storefront-eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  align-items: center;
  gap: 7px;
  color: var(--store-brand-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.storefront-v2 .welcome-section {
  margin: 0;
  padding: 0;
  text-align: right;
}

.storefront-v2 .welcome-title {
  margin: 0;
  color: var(--store-text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

.storefront-v2 .welcome-sub {
  margin: 7px 0 0;
  color: var(--store-text-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.store-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.store-trust-chip {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-pill);
  background: var(--store-surface);
  color: var(--store-text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.store-trust-chip i {
  color: var(--store-success);
}

.storefront-v2 .smart-search-container {
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 20;
}

.storefront-v2 .smart-search-input {
  height: 58px;
  padding: 13px 52px 13px 56px !important;
  border: 1px solid var(--store-border-strong) !important;
  border-radius: 15px !important;
  background: var(--store-surface) !important;
  box-shadow: var(--store-shadow-xs) !important;
  font-size: 1rem;
}

.storefront-v2 .smart-search-input:focus {
  border-color: var(--store-brand) !important;
  box-shadow: 0 0 0 4px rgba(8, 119, 190, 0.12) !important;
}

.storefront-v2 .smart-search-icon {
  right: 19px;
  color: var(--store-brand);
}

.storefront-v2 .smart-search-clear {
  left: 9px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--store-text-muted);
  cursor: pointer;
}

.storefront-v2 .smart-search-clear:hover {
  background: var(--store-surface-subtle);
  color: var(--store-text);
}

.storefront-v2 .smart-search-dropdown {
  top: calc(100% + 8px);
  padding: 7px;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  background: var(--store-surface);
  box-shadow: var(--store-shadow-md);
}

.storefront-v2 .smart-search-item {
  min-height: 54px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: var(--store-text);
}

.storefront-v2 .smart-search-item:hover,
.storefront-v2 .smart-search-item:focus-visible {
  background: var(--store-brand-soft);
}

.storefront-v2 .smart-search-result-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--store-brand-soft);
  font-size: 1.1rem;
}

.storefront-v2 .smart-search-empty h3 {
  margin: 0 0 5px;
  color: var(--store-text);
  font-size: 0.98rem;
}

.storefront-v2 .smart-search-empty p {
  margin: 0;
  color: var(--store-text-soft);
  font-size: 0.86rem;
}

.catalog-section {
  display: grid;
  gap: 14px;
}

.service-guides-section {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.service-guides-all {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 12px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-pill);
  background: var(--store-surface);
  color: var(--store-brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.service-guides-all:hover,
.service-guides-all:focus-visible {
  border-color: var(--store-brand);
  box-shadow: 0 0 0 4px rgba(8, 119, 190, 0.1);
}

.service-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-guide-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  flex-direction: column;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  background: var(--store-surface);
  color: var(--store-text);
  box-shadow: var(--store-shadow-xs);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-guide-card:hover,
.service-guide-card:focus-visible {
  border-color: #b8d8e9;
  box-shadow: var(--store-shadow-sm);
  transform: translateY(-2px);
}

.service-guide-card__family {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: var(--store-radius-pill);
  background: var(--store-brand-soft);
  color: var(--store-brand-strong);
  font-size: 0.72rem;
  font-weight: 900;
}

.service-guide-card h3 {
  margin: 0 0 9px;
  color: var(--store-text);
  font-size: 1rem;
  line-height: 1.55;
}

.service-guide-card p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--store-text-soft);
  font-size: 0.84rem;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.service-guide-card__action {
  display: inline-flex;
  margin-top: auto;
  align-items: center;
  gap: 7px;
  color: var(--store-brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.catalog-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.catalog-section__title {
  margin: 0;
  color: var(--store-text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.catalog-section__meta {
  color: var(--store-text-muted);
  font-size: 0.84rem;
}

.storefront-v2 .cats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
}

.storefront-v2 .category-card,
.storefront-v2 .product-card,
.storefront-v2 .syria-app-card,
.storefront-v2 .catalog-item-card {
  border: 1px solid var(--store-border) !important;
  border-radius: var(--store-radius-md) !important;
  background: var(--store-surface) !important;
  background-image: none !important;
  color: var(--store-text) !important;
  box-shadow: var(--store-shadow-xs) !important;
  backdrop-filter: none !important;
  animation: none !important;
}

.storefront-v2 .category-card {
  min-height: 100%;
  padding: 10px;
  align-items: stretch;
}

.storefront-v2 .category-card::before,
.storefront-v2 .category-card::after,
.storefront-v2 .product-card::before,
.storefront-v2 .syria-app-card::before {
  display: none !important;
}

.storefront-v2 .category-card:hover,
.storefront-v2 .product-card:hover,
.storefront-v2 .syria-app-card:hover,
.storefront-v2 .catalog-item-card:hover {
  border-color: #b8d8e9 !important;
  box-shadow: var(--store-shadow-sm) !important;
  transform: translateY(-2px) !important;
}

.storefront-v2 .cat-img-wrap,
.storefront-v2 .cat-img-wrapper,
.storefront-v2 .product-img-wrap {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 11px;
  background: var(--store-surface-subtle);
  box-shadow: none;
}

.storefront-v2 .cat-img-wrap {
  aspect-ratio: 16 / 10;
  height: auto;
  margin: 0 0 11px;
}

.storefront-v2 .cat-img-wrap img,
.storefront-v2 .cat-img-wrapper img,
.storefront-v2 .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none !important;
}

.storefront-v2 .cat-icon-wrap {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  margin: 0 0 11px;
  place-items: center;
  border-radius: 11px;
  background: var(--store-brand-soft);
  color: var(--store-brand);
  font-size: 2rem;
  box-shadow: none;
}

.storefront-v2 .cat-info-box {
  display: grid;
  min-height: 74px;
  padding: 1px 2px 2px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  text-align: right;
}

.storefront-v2 .category-card h3,
.storefront-v2 .cat-info-box h3,
.storefront-v2 .syria-app-name,
.storefront-v2 .product-name,
.storefront-v2 .game-card-title {
  margin: 0;
  color: var(--store-text) !important;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.55;
}

.storefront-v2 .cat-view-btn {
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #c7e6f6 !important;
  border-radius: 10px !important;
  background: var(--store-brand-soft) !important;
  color: var(--store-brand-strong) !important;
  font-size: 0;
}

.storefront-v2 .cat-view-btn i {
  font-size: 0.85rem;
}

.storefront-v2 .category-card:hover .cat-view-btn {
  border-color: var(--store-brand) !important;
  background: var(--store-brand) !important;
  color: #fff !important;
  transform: none !important;
}

.storefront-v2 .seo-intro-section {
  max-width: none;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  background: var(--store-surface);
  background-image: none;
  color: var(--store-text-soft);
  box-shadow: none;
}

.storefront-v2 .seo-content-disclosure {
  overflow: clip;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  background: var(--store-surface);
  box-shadow: none;
}

.storefront-v2 .seo-content-disclosure > summary {
  position: relative;
  display: grid;
  min-height: 58px;
  padding: 13px 18px;
  align-items: center;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  color: var(--store-text);
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.storefront-v2 .seo-content-disclosure > summary::-webkit-details-marker {
  display: none;
}

.storefront-v2 .seo-content-disclosure > summary:hover {
  background: var(--store-brand-soft);
}

.storefront-v2 .seo-content-disclosure > summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.storefront-v2 .seo-content-disclosure > summary span i {
  color: var(--store-brand);
}

.storefront-v2 .seo-content-disclosure > summary small {
  color: var(--store-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.storefront-v2 .seo-content-disclosure__chevron {
  color: var(--store-text-muted);
  transition: transform var(--store-transition);
}

.storefront-v2 .seo-content-disclosure[open] .seo-content-disclosure__chevron {
  transform: rotate(180deg);
}

.storefront-v2 .seo-content-disclosure__body {
  max-height: min(72vh, 760px);
  padding: 0 16px 16px;
  overflow: auto;
  border-top: 1px solid var(--store-border);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.storefront-v2 .seo-content-disclosure .seo-intro-section {
  margin-top: 16px;
}

.storefront-v2 .seo-intro-section h2 {
  color: var(--store-text);
  font-size: 1.15rem;
}

.storefront-v2 .seo-intro-section p {
  color: var(--store-text-soft);
  font-size: 0.93rem;
}

.storefront-v2 .seo-intro-link {
  color: var(--store-brand-strong);
}

.storefront-v2 .seo-landing-links {
  max-width: none;
  margin: 0;
  gap: 10px;
}

.storefront-v2 .seo-landing-links a {
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: var(--store-surface);
  color: var(--store-text);
}

.storefront-v2 .seo-landing-links a:hover {
  border-color: #b8d8e9;
  background: var(--store-brand-soft);
}

.storefront-v2 .seo-landing-links span {
  color: var(--store-text-soft);
}

/* Category and product pages */
.storefront-v2 .page-header {
  min-height: 190px !important;
  max-width: 1280px !important;
  padding: 38px clamp(24px, 4vw, 48px) !important;
  border: 1px solid var(--store-border) !important;
  border-radius: var(--store-radius-lg) !important;
  background-color: var(--store-surface) !important;
  box-shadow: var(--store-shadow-sm) !important;
}

.storefront-v2 .page-header:not(.page-header--image) {
  background: var(--store-surface) !important;
  background-image: none !important;
}

.storefront-v2 .page-header:not(.page-header--image) h1 {
  color: var(--store-text) !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

.storefront-v2 .page-header:not(.page-header--image) p {
  color: var(--store-text-soft) !important;
}

.storefront-v2 .page-header .icon-wrap {
  border: 1px solid #c7e6f6 !important;
  background: var(--store-brand-soft) !important;
  color: var(--store-brand) !important;
  box-shadow: none !important;
}

.storefront-v2 .back-btn-premium {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  display: flex;
  max-width: calc(100% - 40px);
  min-height: 42px;
  padding: 8px 18px 8px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--store-border-strong) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #102a43 !important;
  box-shadow: var(--store-shadow-xs);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.storefront-v2 .back-btn-premium i {
  flex: 0 0 auto;
  color: #0877be !important;
  font-size: .9rem;
  transition: transform .2s ease;
}

.storefront-v2 .back-btn-premium__label {
  flex: 0 0 auto;
  color: #102a43 !important;
  font-size: .85rem;
  font-weight: 800;
}

.storefront-v2 .back-btn-premium__context {
  min-width: 0;
  overflow: hidden;
  color: #50677d !important;
  font-size: .85rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-v2 .back-btn-premium:hover {
  border-color: var(--store-brand) !important;
  background: #e8f7ff !important;
  box-shadow: none;
  transform: none;
}

.storefront-v2 .products-grid,
.storefront-v2 .categories-grid {
  gap: 15px !important;
}

.storefront-v2 .syria-app-card {
  padding: 15px !important;
}

.storefront-v2 .syria-app-card-top span {
  color: var(--store-text-soft) !important;
}

.storefront-v2 .syria-app-price,
.storefront-v2 .product-price,
.storefront-v2 .game-card-price {
  color: var(--store-brand-strong) !important;
  text-shadow: none !important;
}

/* Skeletons and progress */
.storefront-v2 .ui-skeleton,
.storefront-v2 .mobile-page-skeleton span,
.storefront-v2 .mobile-skeleton-search,
.storefront-v2 .mobile-skeleton-heading {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e9eef4;
}

.storefront-v2 .ui-skeleton::after,
.storefront-v2 .mobile-page-skeleton span::after,
.storefront-v2 .mobile-skeleton-search::after,
.storefront-v2 .mobile-skeleton-heading::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: storeSkeleton 1.4s ease-in-out infinite;
  content: "";
  transform: translateX(100%);
}

@keyframes storeSkeleton {
  to { transform: translateX(-100%); }
}

/* Mobile navigation */
.storefront-v2 .mobile-bottom-nav {
  border: 1px solid var(--bottom-nav-border, var(--store-border)) !important;
  background: var(--bottom-nav-bg, var(--store-surface)) !important;
  background-image: none !important;
  box-shadow: 0 10px 30px rgba(15, 35, 58, 0.16) !important;
  backdrop-filter: blur(16px);
}

.storefront-v2 .mobile-bottom-nav .nav-item,
.storefront-v2 .mobile-bottom-nav .nav-item-center {
  color: var(--bottom-nav-text, var(--store-text-muted)) !important;
}

.storefront-v2 .mobile-bottom-nav .nav-item i,
.storefront-v2 .mobile-bottom-nav .nav-item-center i {
  color: currentColor !important;
  filter: none !important;
}

.storefront-v2 .mobile-bottom-nav .nav-item.active,
.storefront-v2 .mobile-bottom-nav .nav-item-center.active {
  background: var(--bottom-nav-active-bg, var(--store-brand)) !important;
  color: var(--bottom-nav-active-text, #fff) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Compact dark support; the default experience remains light. */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body.storefront-v2 {
  --bg-primary: #0d1724;
  --bg-primary-rgb: 13, 23, 36;
  --bg-secondary: #132131;
  --bg-secondary-rgb: 19, 33, 49;
  --bg-tertiary: #17283a;
  --bg-glass: rgba(19, 33, 49, 0.88);
  --glass-bg: rgba(19, 33, 49, 0.88);
  --text-primary: #edf4fa;
  --text-secondary: #b7c5d2;
  --text-muted: #91a2b3;
  --border-color: #2a3d50;
  --glass-border: 1px solid #2a3d50;
  --nav-bg: #132131;
  --nav-text: #edf4fa;
  --nav-icon-bg: #17283a;
  --nav-icon-color: #edf4fa;
  --nav-border: #2a3d50;
  --sidebar-bg: #132131;
  --sidebar-header-bg: #17283a;
  --sidebar-border: #2a3d50;
  --sidebar-text: #edf4fa;
  --sidebar-muted-text: #b7c5d2;
  --sidebar-item-bg: #132131;
  --sidebar-item-hover-bg: #1a2b3e;
  --sidebar-item-active-bg: var(--accent-primary);
  --sidebar-item-active-text: var(--button-text, #fff);
  --sidebar-indicator: var(--accent-primary);
  --sidebar-icon-bg: #1a2b3e;
  --sidebar-icon-color: #b7c5d2;
  --sidebar-close-bg: #1a2b3e;
  --bottom-nav-bg: #132131;
  --bottom-nav-text: #b7c5d2;
  --bottom-nav-active-bg: var(--accent-primary);
  --bottom-nav-active-text: var(--button-text, #fff);
  --bottom-nav-border: #2a3d50;
  --card-bg: #132131;
  --card-border: #2a3d50;
  --card-hover-border: var(--accent-primary);
  --input-bg: #0f1c29;
  --input-border: #3a5065;
  --input-text: #edf4fa;
  --store-bg: #0d1724;
  --store-surface: #132131;
  --store-surface-subtle: #17283a;
  --store-surface-raised: #1a2b3e;
  --store-text: #edf4fa;
  --store-text-soft: #b7c5d2;
  --store-text-muted: #91a2b3;
  --store-border: #2a3d50;
  --store-border-strong: #3a5065;
  --store-brand: var(--store-theme-brand, #31a7df);
  --store-brand-strong: var(--store-theme-brand-strong, #74c9ef);
  --store-brand-soft: color-mix(in srgb, var(--store-brand) 20%, #132131);
  --store-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.18);
  --store-shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.2);
  --store-shadow-md: 0 16px 36px rgba(0, 0, 0, 0.28);
  --bg-glass-light: rgba(23, 40, 58, 0.78);
  --accent-glow: rgba(var(--accent-primary-rgb), 0.25);
}

html[data-theme="dark"] .storefront-v2 .top-header {
  background: rgba(19, 33, 49, 0.94) !important;
}

html[data-theme="dark"] .storefront-v2 .navbar,
html[data-theme="dark"] .storefront-v2 .navbar.scrolled {
  background: rgba(19, 33, 49, 0.95) !important;
}

html[data-theme="dark"] .storefront-v2 .mobile-bottom-nav {
  background: rgba(19, 33, 49, 0.96) !important;
}

html[data-theme="dark"] .storefront-v2 .back-btn-premium {
  background: rgba(19, 33, 49, 0.92) !important;
  color: #f4f9fd !important;
}

html[data-theme="dark"] .storefront-v2 .back-btn-premium__label {
  color: #f4f9fd !important;
}

html[data-theme="dark"] .storefront-v2 .back-btn-premium__context {
  color: #bfd0df !important;
}

html[data-theme="dark"] .storefront-v2 .back-btn-premium:hover {
  background: #173e55 !important;
}

html[data-theme="dark"] .storefront-v2 .sidebar-login-link {
  color: #071725;
}

html[data-theme="dark"] .storefront-v2 .currency-badge:hover {
  background: #1b445c !important;
}

html[data-theme="dark"] .storefront-v2 .ui-skeleton,
html[data-theme="dark"] .storefront-v2 .mobile-page-skeleton span,
html[data-theme="dark"] .storefront-v2 .mobile-skeleton-search,
html[data-theme="dark"] .storefront-v2 .mobile-skeleton-heading {
  background: #203245;
}

@media (max-width: 1180px) {
  .storefront-v2 .sidebar {
    transform: translateX(104%) !important;
  }

  .storefront-v2 .sidebar.active {
    transform: translateX(0) !important;
  }

  .storefront-v2 .sidebar-close-btn {
    display: inline-grid;
    place-items: center;
  }

  .storefront-v2 .main-wrapper {
    margin-right: 0 !important;
  }

  .storefront-v2 .menu-toggle {
    display: inline-grid;
  }
}

@media (min-width: 1181px) {
  .storefront-v2 .sidebar-overlay {
    display: none !important;
  }

  .storefront-v2 .menu-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  body.storefront-v2:not(.sidebar-open) .main-wrapper {
    margin-top: 0 !important;
  }

  .storefront-v2 .content-area {
    padding: 22px 16px 112px;
  }

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

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

  .storefront-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-trust-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  :root {
    --store-header-height: 64px;
  }

  .storefront-v2 .top-header {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .storefront-v2 .top-header-brand,
  .storefront-v2 .user-name {
    display: none !important;
  }

  .storefront-v2 .header-right {
    flex: 0 0 44px;
    gap: 0 !important;
  }

  .storefront-v2 .header-left {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 6px !important;
  }

  .storefront-v2 .header-left-tools {
    min-width: 0;
    flex: 0 0 auto;
    gap: 6px !important;
  }

  .storefront-v2 .storefront-color-mode-toggle {
    width: 44px !important;
    padding: 0;
  }

  .storefront-v2 .storefront-color-mode-toggle [data-color-mode-label] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .storefront-v2 .currency-badge,
  .storefront-v2 .currency-badge.js-live-balance {
    min-width: 84px !important;
    max-width: 132px;
    flex: 1 1 104px;
    min-height: 42px;
    height: 42px !important;
    padding: 8px 10px !important;
    font-size: 0.8rem !important;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .storefront-v2 .header-left-tools > a {
    min-width: 0;
  }

  .storefront-v2 .user-profile {
    min-height: 42px;
    padding: 3px !important;
  }

  .storefront-v2 .user-avatar {
    width: 36px;
    height: 36px;
  }

  .storefront-home {
    width: 100%;
    gap: 14px;
  }

  .store-news-bar {
    height: 42px;
    border-radius: 12px;
  }

  .store-news-bar__label {
    padding-inline: 11px;
    font-size: 0.75rem;
  }

  .store-news-bar__label span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .store-news-bar__item {
    padding-inline: 24px;
    font-size: 0.8rem;
  }

  .storefront-v2 .content-area > *,
  .storefront-v2 .storefront-intro,
  .storefront-v2 .welcome-section,
  .storefront-v2 .store-trust-row {
    min-width: 0;
    max-width: 100%;
  }

  .storefront-v2 .storefront-intro {
    width: 100%;
    gap: 14px;
  }

  .storefront-v2 .store-trust-row {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .storefront-v2 .store-trust-chip {
    min-width: 0;
    min-height: 42px;
    padding: 7px 5px;
    justify-content: center;
    gap: 5px;
    font-size: clamp(0.68rem, 3vw, 0.76rem);
    text-align: center;
    white-space: nowrap;
  }

  .storefront-v2 .promo-banner {
    margin: 0 !important;
    border-radius: 16px;
  }

  .storefront-v2 .promo-img {
    min-height: 145px;
    max-height: 230px;
  }

  .storefront-v2 .cats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .storefront-v2 .category-card {
    padding: 8px;
    border-radius: 13px !important;
  }

  .storefront-v2 .cat-info-box {
    min-height: 66px;
  }

  .storefront-v2 .category-card h3,
  .storefront-v2 .cat-info-box h3 {
    font-size: 0.84rem;
  }

  .storefront-v2 .cat-view-btn {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .storefront-v2 .smart-search-input {
    height: 54px;
    font-size: 0.93rem;
  }

  .storefront-v2 .smart-search-container {
    margin: 0 !important;
  }

  .storefront-v2 .smart-search-container,
  .storefront-v2 .catalog-section,
  .storefront-v2 .cats-grid {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-section__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .service-guides-grid {
    grid-template-columns: 1fr;
  }

  .service-guide-card {
    min-height: 0;
  }

  .storefront-v2 .seo-intro-section {
    padding: 18px;
  }

  .storefront-v2 .seo-content-disclosure > summary {
    grid-template-columns: 1fr auto;
  }

  .storefront-v2 .seo-content-disclosure > summary small {
    display: none;
  }

  .storefront-v2 .seo-landing-links {
    grid-template-columns: 1fr;
  }

  .storefront-v2 .page-header {
    min-height: 170px !important;
    padding: 48px 20px 28px !important;
  }
}

@media (max-width: 360px) {
  .storefront-v2 .top-header {
    padding-inline: 8px !important;
    gap: 6px !important;
  }

  .storefront-v2 .top-header-brand-copy {
    display: none !important;
  }

  .storefront-v2 .header-right,
  .storefront-v2 .header-left {
    gap: 6px !important;
  }

  .storefront-v2 .content-area {
    padding-inline: 10px !important;
  }

  .storefront-v2 .store-trust-chip {
    min-height: 40px;
    font-size: 0.66rem;
  }

  .storefront-v2 .store-trust-chip i {
    font-size: 0.78rem;
  }

  .storefront-v2 .cats-grid {
    gap: 8px;
  }

  .storefront-v2 .category-card {
    padding: 7px;
  }
}

@media (max-width: 340px) {
  .storefront-v2 .top-header-brand {
    display: none !important;
  }

  .storefront-v2 .storefront-color-mode-toggle,
  .storefront-v2 .menu-toggle,
  .storefront-v2 .notification-wrapper .header-icon {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
  }

  .storefront-v2 .currency-badge.js-live-balance {
    height: 40px !important;
    padding-inline: 7px !important;
    font-size: .74rem !important;
  }

  .storefront-v2 .header-left > .currency-badge:not(.js-live-balance) {
    display: inline-flex;
    width: 44px;
    min-width: 44px;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    font-size: 0;
  }

  .storefront-v2 .header-left > .currency-badge:not(.js-live-balance) i {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .storefront-v2 *,
  .storefront-v2 *::before,
  .storefront-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  body.storefront-v2 {
    --store-border: #9aa8b7;
    --store-border-strong: #718096;
    --store-text-soft: #344459;
  }
}
