/* ==========================================================================
   ShopStock Authoritative Storefront Multi-Theme Engine Stylesheet
   Themes: Minimal Clean, Fashion Premium, Digital Modern
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800;900&family=Cairo:wght@400;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@400;600;700&display=swap');

/* --- Base Reset & Shell --- */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --app-font-fallback: Alexandria, Cairo, Tajawal, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Storefront Root Mount */
#storefrontRoot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--theme-bg, #f6f8fc);
  color: var(--theme-text, #101828);
  font-family: var(--theme-font, var(--app-font-fallback));
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Common Container */
.st-container {
  max-width: var(--theme-container-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

/* Common Section */
.st-section {
  padding-top: var(--theme-section-padding, 56px);
  padding-bottom: var(--theme-section-padding, 56px);
}

.st-section-head {
  margin-bottom: 32px;
  text-align: var(--theme-head-align, center);
}

.st-section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--theme-accent, var(--theme-primary, #496df5));
  margin-bottom: 6px;
  text-transform: uppercase;
}

.st-section-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--theme-heading-color, var(--theme-text));
}

.st-section-desc {
  margin: 0;
  font-size: 14px;
  color: var(--theme-muted, #667085);
  max-width: 580px;
  margin-inline: auto;
}

/* Search Bar (Inside Header or Section) */
.st-search-box {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--theme-border, #dce3ee);
  border-radius: var(--theme-radius-pill, 999px);
  background: var(--theme-surface-soft, #eef2f8);
  padding: 8px 16px;
  min-width: 220px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-search-box:focus-within {
  border-color: var(--theme-primary, #496df5);
  box-shadow: 0 0 0 3px var(--theme-primary-alpha, rgba(73, 109, 245, 0.15));
}

.st-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--theme-text);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.st-search-input::placeholder {
  color: var(--theme-muted);
}

.st-search-icon {
  margin-inline-start: 8px;
  font-size: 14px;
  color: var(--theme-muted);
  pointer-events: none;
}

/* Mobile Navigation Controls */
.st-mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--theme-btn-radius, 8px);
  background: var(--theme-surface-soft, #eef2f8);
  color: var(--theme-text, #101828);
  border: 1px solid var(--theme-border, #dce3ee);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.st-mobile-nav-toggle:focus-visible {
  outline: 2px solid var(--theme-primary);
  outline-offset: 2px;
}

.st-mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: var(--theme-surface, #ffffff);
  border-bottom: 1px solid var(--theme-border, #dce3ee);
  box-shadow: var(--theme-card-shadow, 0 12px 32px rgba(16, 24, 40, 0.08));
  padding: 16px 24px 20px;
  z-index: 100;
}

.st-mobile-nav-drawer[hidden] {
  display: none !important;
}

.st-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.st-mobile-nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-text, #101828);
  border-radius: var(--theme-btn-radius, 8px);
  background: var(--theme-surface-soft, #eef2f8);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.st-mobile-nav-link:hover {
  background: var(--theme-primary);
  color: var(--theme-on-primary, #ffffff);
}

/* Category Filter Bar Common */
.st-category-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.st-cat-filter-btn {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Product Image Base */
.st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

img.st-product-img[src$="placeholder.svg"] {
  object-fit: contain;
  padding: 16px;
}

/* Category Card Base */
.st-category-card.has-no-image {
  border-color: var(--theme-border);
}

/* Prevent trust item text column from overflowing in a flex row.
   Essential for Arabic long-text wrapping at all viewports. */
.st-trust-item > div {
  min-width: 0;
}

/* ==========================================================================
   THEME 1: MINIMAL CLEAN (مينيمال كلين)
   ========================================================================== */
[data-theme-renderer="minimal-clean"],
.store-theme-minimal-clean {
  --theme-font: Cairo, var(--app-font-fallback);
  --theme-primary: #2952e3;
  --theme-primary-hover: #1f42bf;
  --theme-primary-alpha: rgba(41, 82, 227, 0.16);
  --theme-secondary: #111827;
  --theme-bg: #f6f8fc;
  --theme-surface: #ffffff;
  --theme-surface-soft: #eef2f8;
  --theme-text: #101828;
  --theme-muted: #667085;
  --theme-border: #dce3ee;
  --theme-accent: #2952e3;
  --theme-on-primary: #ffffff;
  --theme-danger: #d92d20;
  --theme-btn-radius: 10px;
  --theme-card-radius: 16px;
  --theme-img-radius: 14px;
  --theme-card-shadow: 0 12px 32px rgba(16, 24, 40, 0.07);
  --theme-card-shadow-hover: 0 20px 44px rgba(16, 24, 40, 0.12);
  --theme-footer-bg: #101828;
  --theme-footer-text: #ffffff;
  --theme-footer-muted: #98a2b3;
}

/* Minimal Announcement */
.store-theme-minimal-clean .st-announcement {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Minimal Header */
.store-theme-minimal-clean .st-header {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.store-theme-minimal-clean .st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.store-theme-minimal-clean .st-brand {
  font-size: 22px;
  font-weight: 900;
  color: var(--theme-text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-theme-minimal-clean .st-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.store-theme-minimal-clean .st-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-muted);
}

.store-theme-minimal-clean .st-nav a:hover {
  color: var(--theme-primary);
}

.store-theme-minimal-clean .st-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Minimal Hero */
.store-theme-minimal-clean .st-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--theme-border);
  background: linear-gradient(135deg, #ffffff 0%, #f0f4fc 58%, #e8eefa 100%);
  padding: 56px 0;
}

.store-theme-minimal-clean .st-hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  inset-inline-start: -180px;
  inset-block-start: -240px;
  background: rgba(73, 109, 245, 0.14);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}

.store-theme-minimal-clean .st-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.store-theme-minimal-clean .st-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.store-theme-minimal-clean .st-hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.store-theme-minimal-clean .st-hero-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--theme-text);
  margin: 0 0 16px;
}

.store-theme-minimal-clean .st-hero-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: var(--theme-muted);
  margin: 0 0 28px;
  max-width: 520px;
}

.store-theme-minimal-clean .st-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 24px var(--theme-primary-alpha);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.store-theme-minimal-clean .st-hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.store-theme-minimal-clean .st-hero-visual {
  position: relative;
}

.store-theme-minimal-clean .st-hero-showcase {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(73, 109, 245, 0.2);
  border-radius: var(--theme-img-radius);
  background-color: var(--theme-surface-soft);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
  overflow: hidden;
}

/* Minimal Trust Strip */
.store-theme-minimal-clean .st-trust {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  padding: 20px 0;
}

.store-theme-minimal-clean .st-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.store-theme-minimal-clean .st-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-theme-minimal-clean .st-trust-item-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.store-theme-minimal-clean .st-trust-item b {
  display: block;
  color: var(--theme-text);
  font-size: 13px;
  margin-bottom: 2px;
}

.store-theme-minimal-clean .st-trust-item > div > span {
  display: block;
}

/* Minimal Category Grid */
.store-theme-minimal-clean .st-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.store-theme-minimal-clean .st-category-card {
  position: relative;
  min-height: 200px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  background: var(--theme-surface);
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  cursor: pointer;
}

.store-theme-minimal-clean .st-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--theme-card-shadow-hover);
}

.store-theme-minimal-clean .st-category-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.96);
  /* transition: transform intentionally omitted — scale hover removed */
}

/* Hover scale on .st-category-media intentionally removed.
   transform: scale() against overflow:hidden would re-crop a
   background-size: contain image at the card boundary.
   Card-level translate/shadow hover is preserved above. */

.store-theme-minimal-clean .st-category-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 28% 0 0;
  background: linear-gradient(transparent, rgba(4, 8, 18, 0.82));
  pointer-events: none;
}

.store-theme-minimal-clean .st-category-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Minimal Category No-Image Fallback */
.store-theme-minimal-clean .st-category-card.has-no-image .st-category-media,
.store-theme-minimal-clean .st-category-card .st-category-media:not([style*="background-image"]) {
  background: linear-gradient(135deg, #eef2f8 0%, #d8e2f0 100%);
}

.store-theme-minimal-clean .st-category-card.has-no-image::after {
  display: none;
}

.store-theme-minimal-clean .st-category-card.has-no-image .st-category-title {
  color: var(--theme-text);
  text-shadow: none;
}

/* Minimal Category Filter Buttons */
.store-theme-minimal-clean .st-cat-filter-btn {
  border-radius: 999px;
  background: var(--theme-surface-soft);
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
}

.store-theme-minimal-clean .st-cat-filter-btn.is-active,
.store-theme-minimal-clean .st-cat-filter-btn:hover {
  background: var(--theme-primary);
  color: #ffffff;
  border-color: var(--theme-primary);
}

/* Minimal Product Grid */
.store-theme-minimal-clean .st-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.store-theme-minimal-clean .st-product-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.store-theme-minimal-clean .st-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--theme-card-shadow-hover);
}

.store-theme-minimal-clean .st-product-media-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: var(--theme-surface-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--theme-border);
}

.store-theme-minimal-clean .st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* transition: transform intentionally omitted — scale hover removed */
}

/* Hover scale on .st-product-img intentionally removed.
   transform: scale() against the media-wrap's overflow:hidden would
   re-crop an object-fit: contain image at the frame boundary.
   Card-level translate/shadow hover is preserved above. */

.store-theme-minimal-clean .st-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--theme-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(217, 45, 32, 0.25);
}

.store-theme-minimal-clean .st-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-theme-minimal-clean .st-product-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  min-height: 42px;
  color: var(--theme-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-theme-minimal-clean .st-product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.store-theme-minimal-clean .st-product-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--theme-primary);
}

.store-theme-minimal-clean .st-product-old-price {
  font-size: 12px;
  color: var(--theme-muted);
  text-decoration: line-through;
}

.store-theme-minimal-clean .st-product-buy-btn {
  width: 100%;
  min-height: 42px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.store-theme-minimal-clean .st-product-buy-btn:hover {
  background: var(--theme-primary-hover);
}

/* Minimal Footer */
.store-theme-minimal-clean .st-footer {
  background: var(--theme-footer-bg);
  color: var(--theme-footer-text);
  padding: 42px 0 24px;
  margin-top: auto;
}

.store-theme-minimal-clean .st-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 24px;
  margin-bottom: 20px;
}

.store-theme-minimal-clean .st-footer-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.store-theme-minimal-clean .st-footer-copy {
  color: var(--theme-footer-muted);
  font-size: 13px;
}

/* ==========================================================================
   THEME 2: FASHION PREMIUM (الموضة الراقية)
   ========================================================================== */
[data-theme-renderer="fashion-premium"],
.store-theme-fashion-premium {
  --theme-font: "IBM Plex Sans Arabic", Cairo, serif;
  --theme-primary: #d2ad4f;
  --theme-primary-hover: #b99337;
  --theme-primary-alpha: rgba(210, 173, 79, 0.18);
  --theme-secondary: #f8f2e8;
  --theme-bg: #080b12;
  --theme-surface: #111827;
  --theme-surface-soft: #1b2232;
  --theme-text: #f8f2e8;
  --theme-muted: #b6b1a8;
  --theme-border: #2a3142;
  --theme-accent: #d2ad4f;
  --theme-on-primary: #090d16;
  --theme-danger: #f97066;
  --theme-btn-radius: 0px;
  --theme-card-radius: 2px;
  --theme-img-radius: 2px;
  --theme-card-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  --theme-card-shadow-hover: 0 24px 58px rgba(0, 0, 0, 0.48);
  --theme-footer-bg: #05070c;
  --theme-footer-text: #f8f2e8;
  --theme-footer-muted: #9e988d;
}

.store-theme-fashion-premium .st-announcement {
  background: #111827;
  color: var(--theme-primary);
  border-bottom: 1px solid var(--theme-border);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.store-theme-fashion-premium .st-header {
  background: #080b12;
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.store-theme-fashion-premium .st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.store-theme-fashion-premium .st-brand {
  font-family: Georgia, "IBM Plex Sans Arabic", serif;
  font-size: 24px;
  font-weight: 900;
  color: #fff7e8;
  letter-spacing: 0.02em;
}

.store-theme-fashion-premium .st-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-muted);
  text-transform: uppercase;
}

.store-theme-fashion-premium .st-nav a:hover {
  color: var(--theme-primary);
}

.store-theme-fashion-premium .st-hero {
  position: relative;
  background: radial-gradient(circle at 12% 10%, rgba(210, 173, 79, 0.15), transparent 36%),
              linear-gradient(135deg, #070a10 0%, #111827 100%);
  border-bottom: 1px solid var(--theme-border);
  padding: 64px 0;
  overflow: hidden;
}

.store-theme-fashion-premium .st-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 52px;
}

.store-theme-fashion-premium .st-hero-eyebrow {
  color: var(--theme-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}

.store-theme-fashion-premium .st-hero-title {
  font-family: Georgia, "IBM Plex Sans Arabic", serif;
  font-size: clamp(36px, 4.4vw, 58px);
  color: #fff7e8;
  margin: 0 0 18px;
  line-height: 1.15;
}

.store-theme-fashion-premium .st-hero-subtitle {
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 32px;
}

.store-theme-fashion-premium .st-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 34px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.store-theme-fashion-premium .st-hero-cta:hover {
  background: var(--theme-primary-hover);
  transform: translateY(-2px);
}

.store-theme-fashion-premium .st-hero-showcase {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(210, 173, 79, 0.35);
  border-radius: var(--theme-img-radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.store-theme-fashion-premium .st-trust {
  background: #0b1020;
  border-bottom: 1px solid var(--theme-border);
  padding: 22px 0;
}

.store-theme-fashion-premium .st-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.store-theme-fashion-premium .st-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-theme-fashion-premium .st-trust-item b {
  display: block;
  color: #fff7e8;
  font-size: 13px;
  margin-bottom: 2px;
}

.store-theme-fashion-premium .st-trust-item > div > span {
  display: block;
}

.store-theme-fashion-premium .st-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.store-theme-fashion-premium .st-category-card {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(210, 173, 79, 0.22);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  background: var(--theme-surface);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.store-theme-fashion-premium .st-category-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.store-theme-fashion-premium .st-category-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(5, 7, 12, 0.9));
}

.store-theme-fashion-premium .st-category-title {
  position: relative;
  z-index: 2;
  color: #fff7e8;
  font-size: 15px;
  font-weight: 800;
}

/* Fashion Category No-Image Fallback */
.store-theme-fashion-premium .st-category-card.has-no-image .st-category-media,
.store-theme-fashion-premium .st-category-card .st-category-media:not([style*="background-image"]) {
  background: radial-gradient(circle at top right, rgba(210, 173, 79, 0.22), transparent 70%),
              linear-gradient(145deg, #182030 0%, #0d121c 100%);
}

.store-theme-fashion-premium .st-category-card.has-no-image .st-category-title {
  color: #fff7e8;
}

/* Fashion Category Filter Buttons */
.store-theme-fashion-premium .st-cat-filter-btn {
  border-radius: 0px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  border: 1px solid var(--theme-border);
  letter-spacing: 0.05em;
  font-family: inherit;
}

.store-theme-fashion-premium .st-cat-filter-btn.is-active,
.store-theme-fashion-premium .st-cat-filter-btn:hover {
  background: var(--theme-primary);
  color: var(--theme-on-primary, #090d16);
  border-color: var(--theme-primary);
}

/* Fashion Product Grid */
.store-theme-fashion-premium .st-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.store-theme-fashion-premium .st-product-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
  display: flex;
  flex-direction: column;
}

.store-theme-fashion-premium .st-product-media-wrap {
  aspect-ratio: 4 / 5;
  background: var(--theme-surface-soft);
  border-bottom: 1px solid var(--theme-border);
  overflow: hidden;
  position: relative;
}

.store-theme-fashion-premium .st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.store-theme-fashion-premium .st-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.store-theme-fashion-premium .st-product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-theme-fashion-premium .st-product-title {
  font-family: Georgia, "IBM Plex Sans Arabic", serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff7e8;
  margin: 0 0 10px;
  min-height: 44px;
}

.store-theme-fashion-premium .st-product-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 14px;
}

.store-theme-fashion-premium .st-product-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--theme-primary);
}

.store-theme-fashion-premium .st-product-old-price {
  font-size: 12px;
  color: var(--theme-muted);
  text-decoration: line-through;
}

.store-theme-fashion-premium .st-product-buy-btn {
  width: 100%;
  min-height: 44px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.store-theme-fashion-premium .st-product-buy-btn:hover {
  background: var(--theme-primary-hover);
}

.store-theme-fashion-premium .st-footer {
  background: var(--theme-footer-bg);
  border-top: 1px solid var(--theme-border);
  color: var(--theme-footer-text);
  padding: 48px 0 24px;
  margin-top: auto;
}

.store-theme-fashion-premium .st-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 20px;
}

.store-theme-fashion-premium .st-footer-brand {
  font-family: Georgia, "IBM Plex Sans Arabic", serif;
  font-size: 20px;
  color: #fff7e8;
}

/* ==========================================================================
   THEME 3: DIGITAL MODERN (الرقمي العصري)
   ========================================================================== */
[data-theme-renderer="digital-modern"],
.store-theme-digital-modern {
  --theme-font: Alexandria, Cairo, var(--app-font-fallback);
  --theme-primary: #5b4fff;
  --theme-primary-hover: #493be8;
  --theme-primary-alpha: rgba(91, 79, 255, 0.28);
  --theme-secondary: #00d4ff;
  --theme-bg: #080b16;
  --theme-surface: rgba(17, 22, 42, 0.88);
  --theme-surface-soft: #171e36;
  --theme-text: #f5f7ff;
  --theme-muted: #9aa6c7;
  --theme-border: #2a3358;
  --theme-accent: #00e6ff;
  --theme-on-primary: #ffffff;
  --theme-danger: #ff5470;
  --theme-btn-radius: 24px;
  --theme-card-radius: 20px;
  --theme-img-radius: 20px;
  --theme-card-shadow: 0 18px 50px rgba(24, 31, 80, 0.4);
  --theme-card-shadow-hover: 0 25px 65px rgba(34, 39, 110, 0.52);
  --theme-footer-bg: #050712;
  --theme-footer-text: #f5f7ff;
  --theme-footer-muted: #8a97ba;
}

.store-theme-digital-modern {
  background: radial-gradient(circle at 80% 10%, rgba(91, 79, 255, 0.18), transparent 30%),
              radial-gradient(circle at 12% 45%, rgba(0, 212, 255, 0.1), transparent 26%),
              #080b16 !important;
}

.store-theme-digital-modern .st-announcement {
  background: linear-gradient(90deg, #5b4fff, #00aef0);
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
}

.store-theme-digital-modern .st-header {
  background: rgba(17, 22, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.store-theme-digital-modern .st-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.store-theme-digital-modern .st-brand {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.store-theme-digital-modern .st-brand span {
  color: var(--theme-accent);
}

.store-theme-digital-modern .st-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-muted);
}

.store-theme-digital-modern .st-nav a:hover {
  color: var(--theme-accent);
}

.store-theme-digital-modern .st-hero {
  position: relative;
  background: radial-gradient(circle at 70% 25%, rgba(91, 79, 255, 0.28), transparent 38%),
              radial-gradient(circle at 16% 72%, rgba(0, 212, 255, 0.13), transparent 32%),
              linear-gradient(135deg, #090c18 0%, #0e1430 100%);
  border-bottom: 1px solid var(--theme-border);
  padding: 60px 0;
  overflow: hidden;
}

.store-theme-digital-modern .st-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.store-theme-digital-modern .st-hero-eyebrow {
  color: var(--theme-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: block;
}

.store-theme-digital-modern .st-hero-title {
  font-size: clamp(34px, 4.2vw, 56px);
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 900;
}

.store-theme-digital-modern .st-hero-subtitle {
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 28px;
}

.store-theme-digital-modern .st-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #5b4fff, #00aeef);
  color: #ffffff;
  border-radius: var(--theme-btn-radius);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(91, 79, 255, 0.5);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.store-theme-digital-modern .st-hero-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-theme-digital-modern .st-hero-showcase {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(0, 230, 255, 0.35);
  border-radius: var(--theme-img-radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 230, 255, 0.12), 0 34px 100px rgba(50, 31, 140, 0.52);
}

.store-theme-digital-modern .st-trust {
  background: rgba(17, 22, 42, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--theme-border);
  padding: 20px 0;
}

.store-theme-digital-modern .st-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.store-theme-digital-modern .st-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.45;
}

.store-theme-digital-modern .st-trust-item b {
  display: block;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 2px;
}

.store-theme-digital-modern .st-trust-item > div > span {
  display: block;
}

.store-theme-digital-modern .st-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.store-theme-digital-modern .st-category-card {
  position: relative;
  min-height: 200px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  background: var(--theme-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--theme-card-shadow);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.store-theme-digital-modern .st-category-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.store-theme-digital-modern .st-category-card::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(8, 11, 22, 0.9));
}

.store-theme-digital-modern .st-category-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

/* Digital Category No-Image Fallback */
.store-theme-digital-modern .st-category-card.has-no-image .st-category-media,
.store-theme-digital-modern .st-category-card .st-category-media:not([style*="background-image"]) {
  background: radial-gradient(circle at top right, rgba(0, 230, 255, 0.18), transparent 60%),
              radial-gradient(circle at bottom left, rgba(91, 79, 255, 0.22), transparent 70%),
              #0e1428;
}

.store-theme-digital-modern .st-category-card.has-no-image .st-category-title {
  color: #ffffff;
}

/* Digital Category Filter Buttons */
.store-theme-digital-modern .st-cat-filter-btn {
  border-radius: 20px;
  background: var(--theme-surface);
  backdrop-filter: blur(12px);
  color: var(--theme-muted);
  border: 1px solid var(--theme-border);
}

.store-theme-digital-modern .st-cat-filter-btn.is-active,
.store-theme-digital-modern .st-cat-filter-btn:hover {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-accent));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(91, 79, 255, 0.4);
}

/* Digital Product Grid */
.store-theme-digital-modern .st-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.store-theme-digital-modern .st-product-card {
  background: var(--theme-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
  display: flex;
  flex-direction: column;
}

.store-theme-digital-modern .st-product-media-wrap {
  aspect-ratio: 1 / 1;
  background: var(--theme-surface-soft);
  border-bottom: 1px solid var(--theme-border);
  overflow: hidden;
  position: relative;
}

.store-theme-digital-modern .st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.store-theme-digital-modern .st-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--theme-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 84, 112, 0.4);
}

.store-theme-digital-modern .st-product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-theme-digital-modern .st-product-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
  min-height: 42px;
}

.store-theme-digital-modern .st-product-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.store-theme-digital-modern .st-product-price {
  font-size: 17px;
  font-weight: 900;
  color: var(--theme-accent);
}

.store-theme-digital-modern .st-product-old-price {
  font-size: 12px;
  color: var(--theme-muted);
  text-decoration: line-through;
}

.store-theme-digital-modern .st-product-buy-btn {
  width: 100%;
  min-height: 42px;
  background: linear-gradient(135deg, #5b4fff, #00aeef);
  color: #ffffff;
  border-radius: var(--theme-btn-radius);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease;
}

.store-theme-digital-modern .st-product-buy-btn:hover {
  opacity: 0.92;
}

.store-theme-digital-modern .st-footer {
  background: var(--theme-footer-bg);
  border-top: 1px solid var(--theme-border);
  color: var(--theme-footer-text);
  padding: 42px 0 24px;
  margin-top: auto;
}

.store-theme-digital-modern .st-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 20px;
}

.store-theme-digital-modern .st-footer-brand {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

/* ==========================================================================
   THEME 4: COD CONVERSION PRO (الدفع عند الاستلام)
   ========================================================================== */
[data-theme-renderer="cod-conversion-pro"],
.store-theme-cod-conversion-pro {
  --theme-font: Cairo, var(--app-font-fallback);
  --theme-primary: #15803D;
  --theme-primary-hover: #166534;
  --theme-primary-alpha: rgba(21, 128, 61, 0.16);
  --theme-secondary: #0F172A;
  --theme-bg: #F8FAFC;
  --theme-surface: #FFFFFF;
  --theme-surface-soft: #ECFDF5;
  --theme-text: #0F172A;
  --theme-muted: #64748B;
  --theme-border: #D1FAE5;
  --theme-accent: #F59E0B;
  --theme-on-primary: #FFFFFF;
  --theme-danger: #DC2626;
  --theme-success: #16A34A;
  --theme-heading-scale: 1;
  --theme-section-spacing: 56px;
  --theme-section-padding: var(--theme-section-spacing);
  --theme-container-width: 1200px;
  --theme-btn-radius: 12px;
  --theme-card-radius: 14px;
  --theme-img-radius: 12px;
  --theme-card-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  --theme-card-shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12);
  --theme-products-desktop: 3;
  --theme-products-mobile: 1;
  --theme-product-image-ratio: 4 / 5;
  --theme-category-image-ratio: 1 / 1;
  --theme-footer-bg: #ECFDF5;
  --theme-footer-text: #0F172A;
  --theme-footer-muted: #64748B;
  background: var(--theme-bg);
}

.store-theme-cod-conversion-pro .st-container {
  max-width: var(--theme-container-width, 1200px);
}

.store-theme-cod-conversion-pro .st-cod-announcement {
  background: var(--theme-secondary);
  color: #ffffff;
  text-align: center;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.store-theme-cod-conversion-pro .st-cod-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--theme-border);
}

.store-theme-cod-conversion-pro .st-cod-header--static {
  position: static;
}

.store-theme-cod-conversion-pro .st-cod-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-centered .st-cod-header-inner {
  justify-content: center;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-centered .st-cod-brand {
  order: 2;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-centered .st-cod-nav {
  order: 1;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-centered .st-cod-header-actions {
  order: 3;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-compact .st-cod-header-inner {
  min-height: 54px;
  gap: 10px;
}

.store-theme-cod-conversion-pro.st-cod-header-layout-compact .st-cod-brand {
  font-size: 18px;
}

.store-theme-cod-conversion-pro .st-cod-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  min-width: 0;
}

.store-theme-cod-conversion-pro .st-cod-brand img {
  width: auto;
  height: 36px;
  object-fit: contain;
}

.store-theme-cod-conversion-pro .st-cod-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 800;
}

.store-theme-cod-conversion-pro .st-cod-nav a:hover,
.store-theme-cod-conversion-pro .st-cod-nav a:focus-visible {
  color: var(--theme-primary);
}

.store-theme-cod-conversion-pro .st-cod-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.store-theme-cod-conversion-pro .st-cod-search {
  min-width: 180px;
  background: #ffffff;
  border-color: var(--theme-border);
}

.store-theme-cod-conversion-pro .st-cod-header-cta,
.store-theme-cod-conversion-pro .st-cod-primary-cta,
.store-theme-cod-conversion-pro .st-cod-spotlight-cta,
.store-theme-cod-conversion-pro .st-cod-promo-button,
.store-theme-cod-conversion-pro .st-cod-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--theme-btn-radius);
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  border: 1px solid var(--theme-primary);
  box-shadow: 0 12px 24px var(--theme-primary-alpha);
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.store-theme-cod-conversion-pro .st-cod-header-cta:hover,
.store-theme-cod-conversion-pro .st-cod-primary-cta:hover,
.store-theme-cod-conversion-pro .st-cod-spotlight-cta:hover,
.store-theme-cod-conversion-pro .st-cod-promo-button:hover,
.store-theme-cod-conversion-pro .st-cod-contact-button:hover {
  background: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
  transform: translateY(-1px);
}

.store-theme-cod-conversion-pro.st-cod-button-outlined .st-cod-header-cta,
.store-theme-cod-conversion-pro.st-cod-button-outlined .st-cod-primary-cta,
.store-theme-cod-conversion-pro.st-cod-button-outlined .st-cod-spotlight-cta,
.store-theme-cod-conversion-pro.st-cod-button-outlined .st-cod-promo-button,
.store-theme-cod-conversion-pro.st-cod-button-outlined .st-cod-contact-button,
.store-theme-cod-conversion-pro.st-cod-button-outlined .st-product-buy-btn {
  background: transparent;
  color: var(--theme-primary);
  border-color: var(--theme-primary);
  box-shadow: none;
}

.store-theme-cod-conversion-pro.st-cod-button-ghost .st-cod-header-cta,
.store-theme-cod-conversion-pro.st-cod-button-ghost .st-cod-primary-cta,
.store-theme-cod-conversion-pro.st-cod-button-ghost .st-cod-spotlight-cta,
.store-theme-cod-conversion-pro.st-cod-button-ghost .st-cod-promo-button,
.store-theme-cod-conversion-pro.st-cod-button-ghost .st-cod-contact-button,
.store-theme-cod-conversion-pro.st-cod-button-ghost .st-product-buy-btn {
  background: transparent;
  color: var(--theme-primary);
  border-color: transparent;
  box-shadow: none;
}

.store-theme-cod-conversion-pro .st-cod-header-cta:focus-visible,
.store-theme-cod-conversion-pro .st-cod-primary-cta:focus-visible,
.store-theme-cod-conversion-pro .st-cod-spotlight-cta:focus-visible,
.store-theme-cod-conversion-pro .st-cod-promo-button:focus-visible,
.store-theme-cod-conversion-pro .st-cod-contact-button:focus-visible,
.store-theme-cod-conversion-pro .st-cat-filter-btn:focus-visible,
.store-theme-cod-conversion-pro .st-search-input:focus-visible,
.store-theme-cod-conversion-pro .st-mobile-nav-link:focus-visible {
  outline: 3px solid var(--theme-primary-alpha);
  outline-offset: 2px;
}

.store-theme-cod-conversion-pro .st-cod-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--theme-section-spacing, 56px) * 0.78) 0 calc(var(--theme-section-spacing, 56px) * 0.61);
  background:
    radial-gradient(circle at 16% 18%, rgba(22, 163, 74, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--theme-bg) 100%);
  border-bottom: 1px solid var(--theme-border);
}

.store-theme-cod-conversion-pro .st-cod-hero--centered {
  text-align: center;
}

.store-theme-cod-conversion-pro .st-cod-hero--centered .st-cod-hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.store-theme-cod-conversion-pro .st-cod-hero--centered .st-cod-hero-copy,
.store-theme-cod-conversion-pro .st-cod-hero--centered .st-cod-hero-card {
  margin-inline: auto;
}

.store-theme-cod-conversion-pro .st-cod-hero--centered .st-cod-hero-actions {
  justify-content: center;
}

.store-theme-cod-conversion-pro .st-cod-hero--editorial .st-cod-hero-grid {
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
}

.store-theme-cod-conversion-pro .st-cod-hero-align-start {
  text-align: start;
}

.store-theme-cod-conversion-pro .st-cod-hero-align-center {
  text-align: center;
}

.store-theme-cod-conversion-pro .st-cod-hero-align-center .st-cod-hero-actions {
  justify-content: center;
}

.store-theme-cod-conversion-pro .st-cod-hero-align-left {
  text-align: left;
}

.store-theme-cod-conversion-pro .st-cod-hero--overlay .st-cod-hero-card {
  position: relative;
}

.store-theme-cod-conversion-pro .st-cod-hero--overlay .st-cod-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
  pointer-events: none;
}

.store-theme-cod-conversion-pro .st-cod-hero-card > * {
  position: relative;
  z-index: 1;
}

.store-theme-cod-conversion-pro .st-cod-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 34px;
}

.store-theme-cod-conversion-pro .st-cod-hero-copy {
  min-width: 0;
}

.store-theme-cod-conversion-pro .st-cod-hero-eyebrow,
.store-theme-cod-conversion-pro .st-cod-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--theme-primary);
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.store-theme-cod-conversion-pro .st-cod-hero-title {
  margin: 0 0 14px;
  color: var(--theme-text);
  font-size: clamp(
    calc(34px * var(--theme-heading-scale, 1)),
    calc(4.4vw * var(--theme-heading-scale, 1)),
    calc(58px * var(--theme-heading-scale, 1))
  );
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
  max-width: 680px;
}

.store-theme-cod-conversion-pro .st-cod-hero-subtitle {
  margin: 0 0 22px;
  color: var(--theme-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 620px;
}

.store-theme-cod-conversion-pro .st-cod-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-theme-cod-conversion-pro .st-cod-hero-note,
.store-theme-cod-conversion-pro .st-cod-spotlight-note {
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.store-theme-cod-conversion-pro .st-cod-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  aspect-ratio: 5 / 4;
  padding: 22px;
  border-radius: var(--theme-img-radius);
  border: 1px solid var(--theme-border);
  background-color: var(--theme-surface-soft);
  background-image:
    linear-gradient(145deg, rgba(21, 128, 61, 0.12), rgba(245, 158, 11, 0.12)),
    repeating-linear-gradient(135deg, rgba(15, 23, 42, 0.045) 0 8px, transparent 8px 16px);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--theme-card-shadow);
}

.store-theme-cod-conversion-pro .st-cod-hero-card-kicker {
  width: max-content;
  margin-bottom: auto;
  border-radius: 999px;
  background: #ffffff;
  color: var(--theme-primary);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cod-hero-card strong {
  color: var(--theme-text);
  font-size: 24px;
  line-height: 1.25;
}

.store-theme-cod-conversion-pro .st-cod-hero-card small {
  color: var(--theme-muted);
  font-size: 13px;
  line-height: 1.5;
}

.store-theme-cod-conversion-pro .st-cod-spotlight {
  padding: calc(var(--theme-section-spacing, 56px) * 0.5) 0;
  background: var(--theme-bg);
}

.store-theme-cod-conversion-pro .st-cod-spotlight-card,
.store-theme-cod-conversion-pro .st-cod-empty-offer {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  box-shadow: var(--theme-card-shadow);
}

.store-theme-cod-conversion-pro .st-cod-empty-offer {
  display: block;
  text-align: center;
  padding: 32px 20px;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--theme-surface-soft);
  border-radius: var(--theme-img-radius);
  border: 1px solid var(--theme-border);
  overflow: hidden;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  padding: 12px;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--theme-primary);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px var(--theme-border);
}

.store-theme-cod-conversion-pro .st-cod-offer-badge {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  border-radius: 999px;
  background: var(--theme-accent);
  color: #111827;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-body {
  min-width: 0;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-title {
  margin: 0 0 10px;
  color: var(--theme-text);
  font-size: clamp(
    calc(24px * var(--theme-heading-scale, 1)),
    calc(3vw * var(--theme-heading-scale, 1)),
    calc(36px * var(--theme-heading-scale, 1))
  );
  line-height: 1.25;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-desc {
  margin: 0 0 16px;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.75;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-price {
  color: var(--theme-primary);
  font-size: 28px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cod-spotlight-old-price {
  color: var(--theme-muted);
  font-size: 15px;
  text-decoration: line-through;
}

.store-theme-cod-conversion-pro .st-cod-trust {
  padding: calc(var(--theme-section-spacing, 56px) * 0.32) 0;
  background: var(--theme-surface);
  border-block: 1px solid var(--theme-border);
}

.store-theme-cod-conversion-pro .st-cod-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.store-theme-cod-conversion-pro .st-cod-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  color: var(--theme-muted);
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  font-size: 12px;
  line-height: 1.5;
}

.store-theme-cod-conversion-pro .st-cod-trust-item .st-trust-item-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--theme-primary);
  font-size: 15px;
}

.store-theme-cod-conversion-pro .st-cod-trust-item b {
  display: block;
  color: var(--theme-text);
  font-size: 13px;
  margin-bottom: 2px;
}

.store-theme-cod-conversion-pro .st-cod-products {
  background: var(--theme-bg);
}

.store-theme-cod-conversion-pro .st-cod-products,
.store-theme-cod-conversion-pro .st-cod-categories,
.store-theme-cod-conversion-pro .st-cod-promo,
.store-theme-cod-conversion-pro .st-cod-reviews,
.store-theme-cod-conversion-pro .st-cod-faq,
.store-theme-cod-conversion-pro .st-cod-contact {
  padding-block: var(--theme-section-spacing, 56px);
}

.store-theme-cod-conversion-pro .st-cod-section-head {
  margin-bottom: 24px;
}

.store-theme-cod-conversion-pro .st-cod-products .st-section-title,
.store-theme-cod-conversion-pro .st-cod-categories .st-section-title,
.store-theme-cod-conversion-pro .st-cod-reviews .st-section-title,
.store-theme-cod-conversion-pro .st-cod-faq .st-section-title {
  color: var(--theme-text);
  font-size: clamp(
    calc(24px * var(--theme-heading-scale, 1)),
    calc(3vw * var(--theme-heading-scale, 1)),
    calc(38px * var(--theme-heading-scale, 1))
  );
  letter-spacing: 0;
}

.store-theme-cod-conversion-pro .st-products-grid {
  --st-cod-product-grid-gap: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--st-cod-product-grid-gap);
}

.store-theme-cod-conversion-pro .st-product-card {
  flex: 0 1 calc((100% / var(--theme-products-desktop, 3)) - var(--st-cod-product-grid-gap));
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  box-shadow: var(--theme-card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-theme-cod-conversion-pro .st-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--theme-card-shadow-hover);
}

.store-theme-cod-conversion-pro .st-product-media-wrap {
  position: relative;
  aspect-ratio: var(--theme-product-image-ratio, 4 / 5);
  background: var(--theme-surface-soft);
  border-bottom: 1px solid var(--theme-border);
  overflow: hidden;
}

.store-theme-cod-conversion-pro .st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
}

.store-theme-cod-conversion-pro .st-product-badge {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  border-radius: 999px;
  background: var(--theme-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

.store-theme-cod-conversion-pro .st-product-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 15px;
}

.store-theme-cod-conversion-pro .st-product-title {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--theme-text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.store-theme-cod-conversion-pro .st-product-prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.store-theme-cod-conversion-pro .st-product-price {
  color: var(--theme-primary);
  font-size: 18px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-product-old-price {
  color: var(--theme-muted);
  font-size: 12px;
  text-decoration: line-through;
}

.store-theme-cod-conversion-pro .st-product-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  border-radius: var(--theme-btn-radius);
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  font-size: 14px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.store-theme-cod-conversion-pro .st-category-card {
  position: relative;
  aspect-ratio: var(--theme-category-image-ratio, 1 / 1);
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  background: var(--theme-surface);
  box-shadow: var(--theme-card-shadow);
  cursor: pointer;
}

.store-theme-cod-conversion-pro .st-category-media {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.store-theme-cod-conversion-pro .st-category-card::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.68));
  pointer-events: none;
}

.store-theme-cod-conversion-pro .st-category-title {
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 12px;
  z-index: 2;
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.store-theme-cod-conversion-pro .st-category-count {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 12px;
  z-index: 2;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-category-card.has-no-image .st-category-media,
.store-theme-cod-conversion-pro .st-category-card .st-category-media:not([style*="background-image"]) {
  background:
    radial-gradient(circle at 50% 35%, rgba(21, 128, 61, 0.18), transparent 36%),
    var(--theme-surface-soft);
}

.store-theme-cod-conversion-pro .st-cat-filter-btn {
  min-height: 38px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cat-filter-btn.is-active,
.store-theme-cod-conversion-pro .st-cat-filter-btn:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: var(--theme-on-primary);
}

.store-theme-cod-conversion-pro .st-cod-promo-card,
.store-theme-cod-conversion-pro .st-cod-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  background: var(--theme-surface-soft);
}

.store-theme-cod-conversion-pro .st-cod-promo-card h2,
.store-theme-cod-conversion-pro .st-cod-contact-card h2 {
  margin: 0 0 8px;
  color: var(--theme-text);
  font-size: calc(24px * var(--theme-heading-scale, 1));
  line-height: 1.3;
}

.store-theme-cod-conversion-pro .st-cod-promo-card p,
.store-theme-cod-conversion-pro .st-cod-contact-card p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.7;
}

.store-theme-cod-conversion-pro .st-cod-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-theme-cod-conversion-pro .st-cod-review-card,
.store-theme-cod-conversion-pro .st-cod-faq-item {
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  background: var(--theme-surface);
  box-shadow: var(--theme-card-shadow);
}

.store-theme-cod-conversion-pro .st-cod-review-card {
  padding: 18px;
}

.store-theme-cod-conversion-pro .st-cod-review-card p {
  margin: 0 0 12px;
  color: var(--theme-text);
  font-size: 14px;
  line-height: 1.7;
}

.store-theme-cod-conversion-pro .st-cod-review-card strong {
  color: var(--theme-primary);
  font-size: 13px;
}

.store-theme-cod-conversion-pro .st-cod-faq-list {
  display: grid;
  gap: 10px;
}

.store-theme-cod-conversion-pro .st-cod-faq-item {
  padding: 14px 16px;
}

.store-theme-cod-conversion-pro .st-cod-faq-item summary {
  color: var(--theme-text);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-cod-faq-item p {
  margin: 10px 0 0;
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.7;
}

.store-theme-cod-conversion-pro .st-cod-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-theme-cod-conversion-pro .st-cod-contact-button--ghost {
  background: transparent;
  color: var(--theme-primary);
  box-shadow: none;
}

.store-theme-cod-conversion-pro .st-cod-footer {
  margin-top: auto;
  padding: 34px 0 22px;
  background: var(--theme-footer-bg);
  color: var(--theme-footer-text);
  border-top: 1px solid var(--theme-border);
}

.store-theme-cod-conversion-pro .st-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.store-theme-cod-conversion-pro .st-footer-brand {
  color: var(--theme-footer-text);
  font-size: 18px;
  font-weight: 900;
}

.store-theme-cod-conversion-pro .st-footer-copy {
  margin: 6px 0 0;
  color: var(--theme-footer-muted);
  font-size: 13px;
  line-height: 1.7;
}

.store-theme-cod-conversion-pro .st-cod-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 800;
}

.store-theme-cod-conversion-pro .footer-copyright {
  grid-column: 1 / -1;
  color: var(--theme-footer-muted);
}

@media (max-width: 960px) {
  .store-theme-cod-conversion-pro .st-cod-header-inner {
    min-height: 60px;
  }

  .store-theme-cod-conversion-pro .st-cod-header-cta {
    display: none;
  }

  .store-theme-cod-conversion-pro .st-cod-search {
    max-width: 160px;
  }

  .store-theme-cod-conversion-pro .st-cod-hero-grid,
  .store-theme-cod-conversion-pro .st-cod-spotlight-card {
    grid-template-columns: 1fr;
  }

  .store-theme-cod-conversion-pro .st-cod-hero-visual {
    order: -1;
  }

  .store-theme-cod-conversion-pro .st-cod-hero-card {
    min-height: 250px;
  }

  .store-theme-cod-conversion-pro .st-cod-trust-grid,
  .store-theme-cod-conversion-pro .st-cod-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-theme-cod-conversion-pro .st-products-grid {
    --st-cod-product-grid-gap: 16px;
  }

  .store-theme-cod-conversion-pro .st-product-card {
    flex-basis: calc((100% / var(--theme-products-mobile, 1)) - var(--st-cod-product-grid-gap));
  }

  .store-theme-cod-conversion-pro .st-product-media-wrap {
    aspect-ratio: 16 / 9;
  }

  .store-theme-cod-conversion-pro .st-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .store-theme-cod-conversion-pro .st-cod-announcement {
    font-size: 11px;
  }

  .store-theme-cod-conversion-pro .st-cod-brand {
    font-size: 17px;
  }

  .store-theme-cod-conversion-pro .st-cod-search {
    display: none;
  }

  .store-theme-cod-conversion-pro .st-cod-hero {
    padding: 28px 0 24px;
  }

  .store-theme-cod-conversion-pro .st-cod-hero-title {
    font-size: calc(30px * var(--theme-heading-scale, 1));
  }

  .store-theme-cod-conversion-pro .st-cod-hero-subtitle {
    font-size: 14px;
  }

  .store-theme-cod-conversion-pro .st-cod-primary-cta,
  .store-theme-cod-conversion-pro .st-cod-spotlight-cta {
    width: 100%;
  }

  .store-theme-cod-conversion-pro .st-cod-hero-card,
  .store-theme-cod-conversion-pro .st-cod-spotlight-media {
    min-height: 220px;
  }

  .store-theme-cod-conversion-pro .st-cod-spotlight-card,
  .store-theme-cod-conversion-pro .st-cod-empty-offer {
    padding: 14px;
  }

  .store-theme-cod-conversion-pro .st-cod-spotlight-title {
    font-size: calc(23px * var(--theme-heading-scale, 1));
  }

  .store-theme-cod-conversion-pro .st-cod-spotlight-price {
    font-size: 24px;
  }

  .store-theme-cod-conversion-pro .st-cod-products,
  .store-theme-cod-conversion-pro .st-cod-categories,
  .store-theme-cod-conversion-pro .st-cod-promo,
  .store-theme-cod-conversion-pro .st-cod-reviews,
  .store-theme-cod-conversion-pro .st-cod-faq,
  .store-theme-cod-conversion-pro .st-cod-contact {
    padding-block: 34px;
  }

  .store-theme-cod-conversion-pro .st-cod-trust-grid,
  .store-theme-cod-conversion-pro .st-cod-reviews-grid {
    grid-template-columns: 1fr;
  }

  .store-theme-cod-conversion-pro .st-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .store-theme-cod-conversion-pro .st-category-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .store-theme-cod-conversion-pro .st-category-title {
    inset-inline: 10px;
    inset-block-end: 10px;
    font-size: 12px;
  }

  .store-theme-cod-conversion-pro .st-cod-promo-card,
  .store-theme-cod-conversion-pro .st-cod-contact-card,
  .store-theme-cod-conversion-pro .st-footer-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .store-theme-cod-conversion-pro .st-cod-promo-card,
  .store-theme-cod-conversion-pro .st-cod-contact-card {
    display: grid;
  }

  .store-theme-cod-conversion-pro .st-cod-promo-button,
  .store-theme-cod-conversion-pro .st-cod-contact-button {
    width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE / TABLET)
   ========================================================================== */
@media (max-width: 960px) {
  .st-header-inner .st-nav {
    display: none;
  }

  .st-mobile-nav-toggle {
    display: inline-flex;
  }

  .st-mobile-nav-drawer:not([hidden]) {
    display: block;
  }

  .st-search-box {
    min-width: 0;
    max-width: 160px;
    padding: 6px 12px;
  }

  .st-hero-grid,
  .store-theme-minimal-clean .st-hero-grid,
  .store-theme-fashion-premium .st-hero-grid,
  .store-theme-digital-modern .st-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .st-hero-visual {
    order: -1;
  }

  .st-hero-showcase {
    max-height: 400px;
  }

  .st-trust-grid,
  .store-theme-minimal-clean .st-trust-grid,
  .store-theme-fashion-premium .st-trust-grid,
  .store-theme-digital-modern .st-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-categories-grid,
  .store-theme-minimal-clean .st-categories-grid,
  .store-theme-fashion-premium .st-categories-grid,
  .store-theme-digital-modern .st-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .st-products-grid,
  .store-theme-minimal-clean .st-products-grid,
  .store-theme-fashion-premium .st-products-grid,
  .store-theme-digital-modern .st-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .st-container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .st-header-inner {
    gap: 10px;
    min-height: 60px !important;
  }

  .st-brand {
    font-size: 18px !important;
  }

  .st-search-box {
    min-width: 0;
    max-width: 130px;
    padding: 4px 8px;
  }

  .st-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .st-hero-title {
    font-size: 28px !important;
  }

  .st-hero-subtitle {
    font-size: 14px !important;
  }

  .st-categories-grid,
  .store-theme-fashion-premium .st-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .st-category-card {
    min-height: 150px;
  }

  .st-products-grid,
  .store-theme-fashion-premium .st-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .st-product-body {
    padding: 12px;
  }

  .st-product-title {
    font-size: 12px;
    min-height: 36px;
  }

  .st-product-price {
    font-size: 14px;
  }

  .st-product-buy-btn {
    min-height: 36px;
    font-size: 12px;
  }

  .st-trust-grid {
    grid-template-columns: 1fr;
  }

  /* Compact Circular WhatsApp Button on Mobile */
  .storefront-whatsapp-float {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    inset-block-end: max(16px, env(safe-area-inset-bottom, 16px));
    inset-inline-end: max(16px, env(safe-area-inset-right, 16px));
  }

  .storefront-whatsapp-float .storefront-whatsapp-float__label {
    display: none;
  }

  .storefront-whatsapp-float .storefront-whatsapp-float__icon {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   THEME 5: BEAUTY GLOW COMMERCE — premium beauty editorial storefront
   ========================================================================== */
[data-theme-renderer="beauty-glow-commerce"],
.store-theme-beauty-glow-commerce {
  --theme-font: Tajawal, Cairo, var(--app-font-fallback);
  --theme-primary: #C46A7A;
  --theme-primary-hover: #A95365;
  --theme-primary-alpha: rgba(196,106,122,0.16);
  --theme-secondary: #2E1F24;
  --theme-bg: #FFF8F6;
  --theme-surface: #FFFFFF;
  --theme-surface-soft: #FCECEE;
  --theme-text: #2D2024;
  --theme-muted: #826C73;
  --theme-border: #F0D8DD;
  --theme-accent: #D7A46A;
  --theme-on-primary: #FFFFFF;
  --theme-danger: #C53030;
  --theme-success: #2F855A;
  --theme-heading-scale: 1.14;
  --theme-section-spacing: 76px;
  --theme-section-padding: 76px;
  --theme-container-width: 1240px;
  --theme-btn-radius: 999px;
  --theme-card-radius: 20px;
  --theme-img-radius: 18px;
  --theme-card-shadow: 0 12px 32px rgba(46,31,36,0.08);
  --theme-card-shadow-hover: 0 18px 44px rgba(46,31,36,0.13);
  --theme-products-desktop: 4;
  --theme-products-mobile: 2;
  --theme-product-image-ratio: 4 / 5;
  --theme-category-image-ratio: 1 / 1;
  --theme-footer-bg: #2E1F24;
  --theme-footer-text: #FFF8F6;
  --theme-footer-muted: #C9B8BE;
  background: var(--theme-bg);
}

/* Beauty announcement */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-announcement,
.store-theme-beauty-glow-commerce .st-beauty-announcement {
  background: var(--theme-surface-soft);
  color: var(--theme-text);
  border-bottom: 1px solid var(--theme-border);
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Beauty header */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-header,
.store-theme-beauty-glow-commerce .st-beauty-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-header--static,
.store-theme-beauty-glow-commerce .st-beauty-header--static { position: static; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-header-inner,
.store-theme-beauty-glow-commerce .st-beauty-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
[data-theme-renderer="beauty-glow-commerce"].st-beauty-header--centered .st-beauty-header-inner,
.store-theme-beauty-glow-commerce.st-beauty-header--centered .st-beauty-header-inner { justify-content: center; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-brand,
.store-theme-beauty-glow-commerce .st-beauty-brand {
  font-size: 20px;
  font-weight: 900;
  color: var(--theme-secondary);
  letter-spacing: 0.02em;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-nav,
.store-theme-beauty-glow-commerce .st-beauty-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-muted);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-nav a:hover,
.store-theme-beauty-glow-commerce .st-beauty-nav a:hover { color: var(--theme-primary); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-search,
.store-theme-beauty-glow-commerce .st-beauty-search {
  min-width: 180px;
  background: var(--theme-surface);
  border-color: var(--theme-border);
}

/* Beauty hero — editorial */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero,
.store-theme-beauty-glow-commerce .st-beauty-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--theme-section-spacing,76px)*0.9) 0 calc(var(--theme-section-spacing,76px)*0.7);
  background: radial-gradient(circle at 18% 20%, rgba(196,106,122,0.10), transparent 34%), linear-gradient(180deg, var(--theme-bg) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--theme-border);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-shell,
.store-theme-beauty-glow-commerce .st-beauty-hero-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,0.95fr);
  align-items: center;
  gap: 36px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero--centered .st-beauty-hero-shell,
.store-theme-beauty-glow-commerce .st-beauty-hero--centered .st-beauty-hero-shell { grid-template-columns: minmax(0,1fr); text-align: center; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero--centered .st-beauty-hero-copy,
.store-theme-beauty-glow-commerce .st-beauty-hero--centered .st-beauty-hero-copy { margin-inline: auto; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-eyebrow,
.store-theme-beauty-glow-commerce .st-beauty-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--theme-primary);
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-title,
.store-theme-beauty-glow-commerce .st-beauty-hero-title {
  margin: 0 0 14px;
  color: var(--theme-secondary);
  font-size: clamp(calc(30px*var(--theme-heading-scale,1.14)), calc(4vw*var(--theme-heading-scale,1.14)), calc(54px*var(--theme-heading-scale,1.14)));
  line-height: 1.18;
  font-weight: 900;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-subtitle,
.store-theme-beauty-glow-commerce .st-beauty-hero-subtitle {
  margin: 0 0 22px;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-actions,
.store-theme-beauty-glow-commerce .st-beauty-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-cta,
.store-theme-beauty-glow-commerce .st-beauty-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px var(--theme-primary-alpha);
  transition: transform 0.18s ease, background-color 0.18s ease;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-cta:hover,
.store-theme-beauty-glow-commerce .st-beauty-hero-cta:hover { background: var(--theme-primary-hover); transform: translateY(-1px); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-visual,
.store-theme-beauty-glow-commerce .st-beauty-hero-visual { position: relative; min-height: 340px; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-image,
.store-theme-beauty-glow-commerce .st-beauty-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--theme-img-radius);
  border: 1px solid var(--theme-border);
  background-size: cover;
  background-position: 50% 45%;
  box-shadow: var(--theme-card-shadow);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-accent,
.store-theme-beauty-glow-commerce .st-beauty-hero-accent {
  position: absolute;
  inset-inline-end: -12px;
  inset-block-end: -12px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--theme-border);
  background: radial-gradient(circle, var(--theme-accent) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-align-center,
.store-theme-beauty-glow-commerce .st-beauty-hero-align-center { text-align: center; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-align-center .st-beauty-hero-actions,
.store-theme-beauty-glow-commerce .st-beauty-hero-align-center .st-beauty-hero-actions { justify-content: center; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero--overlay .st-beauty-hero-image::after,
.store-theme-beauty-glow-commerce .st-beauty-hero--overlay .st-beauty-hero-image::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,31,36,0.06), rgba(46,31,36,0.18)); pointer-events: none;
}

/* Beauty categories — editorial, before products */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-categories,
.store-theme-beauty-glow-commerce .st-beauty-categories { background: var(--theme-surface); border-bottom: 1px solid var(--theme-border); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-category-intro,
.store-theme-beauty-glow-commerce .st-beauty-category-intro { text-align: center; margin-bottom: 28px; }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-kicker,
.store-theme-beauty-glow-commerce .st-beauty-kicker {
  display: inline-block;
  color: var(--theme-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-section-title,
.store-theme-beauty-glow-commerce .st-beauty-section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 900;
  color: var(--theme-secondary);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-section-desc,
.store-theme-beauty-glow-commerce .st-beauty-section-desc { margin: 0 auto; max-width: 560px; font-size: 14px; color: var(--theme-muted); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-category-grid,
.store-theme-beauty-glow-commerce .st-beauty-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-category-card,
.store-theme-beauty-glow-commerce .st-category-card {
  border-radius: var(--theme-card-radius);
  border: 1px solid var(--theme-border);
  box-shadow: var(--theme-card-shadow);
}
[data-theme-renderer="beauty-glow-commerce"] .st-category-media,
.store-theme-beauty-glow-commerce .st-category-media {
  background-size: cover;
  background-position: center;
}
[data-theme-renderer="beauty-glow-commerce"] .st-category-card.has-no-image .st-category-media,
.store-theme-beauty-glow-commerce .st-category-card.has-no-image .st-category-media,
[data-theme-renderer="beauty-glow-commerce"] .st-category-card .st-category-media:not([style*="background-image"]),
.store-theme-beauty-glow-commerce .st-category-card .st-category-media:not([style*="background-image"]) {
  background-image:
    radial-gradient(circle at 75% 25%, rgba(196, 106, 122, 0.18), transparent 50%),
    linear-gradient(135deg, var(--theme-surface-soft, #FCECEE) 0%, #F5DDE2 100%);
  background-color: var(--theme-surface-soft, #FCECEE);
}

/* Beauty products — 4:5, soft ivory media, contain */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-products,
.store-theme-beauty-glow-commerce .st-beauty-products { background: var(--theme-bg); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-products-grid,
.store-theme-beauty-glow-commerce .st-beauty-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-card,
.store-theme-beauty-glow-commerce .st-product-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-media-wrap,
.store-theme-beauty-glow-commerce .st-product-media-wrap {
  aspect-ratio: 4 / 5;
  background: var(--theme-surface-soft);
  border-bottom: 1px solid var(--theme-border);
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-img,
.store-theme-beauty-glow-commerce .st-product-img {
  object-fit: contain;
  object-position: center;
  background: var(--theme-surface-soft);
  padding: 8px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-badge,
.store-theme-beauty-glow-commerce .st-product-badge {
  background: var(--theme-primary);
  color: #ffffff;
  border-radius: 999px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-buy-btn,
.store-theme-beauty-glow-commerce .st-product-buy-btn {
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
}
[data-theme-renderer="beauty-glow-commerce"] .st-product-buy-btn:hover,
.store-theme-beauty-glow-commerce .st-product-buy-btn:hover { background: var(--theme-primary-hover); }

/* Beauty trust — neutral UX */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust,
.store-theme-beauty-glow-commerce .st-beauty-trust {
  background: var(--theme-surface);
  border-block: 1px solid var(--theme-border);
  padding: 28px 0;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust-grid,
.store-theme-beauty-glow-commerce .st-beauty-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust-item,
.store-theme-beauty-glow-commerce .st-beauty-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  font-size: 12px;
  color: var(--theme-muted);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust-item b,
.store-theme-beauty-glow-commerce .st-beauty-trust-item b { display: block; color: var(--theme-secondary); font-size: 13px; }

/* Beauty promo / reviews / faq / contact / footer */
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-promo-card,
.store-theme-beauty-glow-commerce .st-beauty-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  box-shadow: var(--theme-card-shadow);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-promo-action,
.store-theme-beauty-glow-commerce .st-beauty-promo-action {
  background: var(--theme-primary);
  color: #ffffff;
  border-radius: var(--theme-btn-radius);
  padding: 12px 22px;
  font-weight: 800;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-reviews-grid,
.store-theme-beauty-glow-commerce .st-beauty-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-review-card,
.store-theme-beauty-glow-commerce .st-beauty-review-card {
  padding: 18px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-contact-card,
.store-theme-beauty-glow-commerce .st-beauty-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-footer,
.store-theme-beauty-glow-commerce .st-beauty-footer {
  background: var(--theme-footer-bg);
  color: var(--theme-footer-text);
  padding: 48px 0 24px;
  margin-top: auto;
}
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-footer a,
.store-theme-beauty-glow-commerce .st-beauty-footer a { color: var(--theme-footer-text); }
[data-theme-renderer="beauty-glow-commerce"] .st-beauty-footer a:hover,
.store-theme-beauty-glow-commerce .st-beauty-footer a:hover { color: var(--theme-accent); }

/* Beauty responsive */
@media (max-width: 960px) {
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-nav,
  .store-theme-beauty-glow-commerce .st-beauty-nav { display: none; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-shell,
  .store-theme-beauty-glow-commerce .st-beauty-hero-shell { grid-template-columns: 1fr; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-category-grid,
  .store-theme-beauty-glow-commerce .st-beauty-category-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-products-grid,
  .store-theme-beauty-glow-commerce .st-beauty-products-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust-grid,
  .store-theme-beauty-glow-commerce .st-beauty-trust-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-reviews-grid,
  .store-theme-beauty-glow-commerce .st-beauty-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero,
  .store-theme-beauty-glow-commerce .st-beauty-hero { padding: 28px 0; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-hero-title,
  .store-theme-beauty-glow-commerce .st-beauty-hero-title { font-size: 28px !important; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-category-grid,
  .store-theme-beauty-glow-commerce .st-beauty-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-products-grid,
  .store-theme-beauty-glow-commerce .st-beauty-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-trust-grid,
  .store-theme-beauty-glow-commerce .st-beauty-trust-grid { grid-template-columns: 1fr; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-reviews-grid,
  .store-theme-beauty-glow-commerce .st-beauty-reviews-grid { grid-template-columns: 1fr; }
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-promo-card,
  .store-theme-beauty-glow-commerce .st-beauty-promo-card,
  [data-theme-renderer="beauty-glow-commerce"] .st-beauty-contact-card,
  .store-theme-beauty-glow-commerce .st-beauty-contact-card { flex-direction: column; align-items: stretch; }
  [data-theme-renderer="beauty-glow-commerce"] .st-container,
  .store-theme-beauty-glow-commerce .st-container { padding-left: 16px; padding-right: 16px; }
}
}

/* ==========================================================================
   THEME 6: CATALOG MARKET PRO — dense professional catalog
   ========================================================================== */
[data-theme-renderer="catalog-market-pro"],
.store-theme-catalog-market-pro {
  --theme-font: Cairo, var(--app-font-fallback);
  --theme-primary: #2563EB;
  --theme-primary-hover: #1D4ED8;
  --theme-primary-alpha: rgba(37,99,235,0.14);
  --theme-secondary: #0F172A;
  --theme-bg: #F3F6FA;
  --theme-surface: #FFFFFF;
  --theme-surface-soft: #EAF0F8;
  --theme-text: #0F172A;
  --theme-muted: #64748B;
  --theme-border: #D8E1EC;
  --theme-accent: #F59E0B;
  --theme-on-primary: #FFFFFF;
  --theme-danger: #DC2626;
  --theme-success: #16A34A;
  --theme-heading-scale: 1.08;
  --theme-section-spacing: 56px;
  --theme-section-padding: 56px;
  --theme-container-width: 1440px;
  --theme-btn-radius: 10px;
  --theme-card-radius: 12px;
  --theme-img-radius: 10px;
  --theme-card-shadow: 0 8px 24px rgba(15,23,42,0.06);
  --theme-card-shadow-hover: 0 14px 32px rgba(15,23,42,0.10);
  --theme-products-desktop: 5;
  --theme-products-mobile: 2;
  --theme-product-image-ratio: 1 / 1;
  --theme-category-image-ratio: 16 / 9;
  --theme-footer-bg: #0F172A;
  --theme-footer-text: #FFFFFF;
  --theme-footer-muted: #94A3B8;
  background: var(--theme-bg);
}

[data-theme-renderer="catalog-market-pro"] .st-market-announcement,
.store-theme-catalog-market-pro .st-market-announcement {
  background: var(--theme-secondary);
  color: #FFFFFF;
  text-align: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
}

[data-theme-renderer="catalog-market-pro"] .st-market-header,
.store-theme-catalog-market-pro .st-market-header {
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
[data-theme-renderer="catalog-market-pro"] .st-market-header--static,
.store-theme-catalog-market-pro .st-market-header--static { position: static; }
[data-theme-renderer="catalog-market-pro"] .st-market-header-inner,
.store-theme-catalog-market-pro .st-market-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
[data-theme-renderer="catalog-market-pro"] .st-market-brand,
.store-theme-catalog-market-pro .st-market-brand {
  font-size: 20px;
  font-weight: 900;
  color: var(--theme-secondary);
}
[data-theme-renderer="catalog-market-pro"] .st-market-nav,
.store-theme-catalog-market-pro .st-market-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2vw, 30px);
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-muted);
}

[data-theme-renderer="catalog-market-pro"] .st-market-nav a,
.store-theme-catalog-market-pro .st-market-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 2px;
  transition: color 0.18s ease;
}

[data-theme-renderer="catalog-market-pro"] .st-market-nav a:hover,
[data-theme-renderer="catalog-market-pro"] .st-market-nav a:focus-visible,
.store-theme-catalog-market-pro .st-market-nav a:hover,
.store-theme-catalog-market-pro .st-market-nav a:focus-visible {
  color: var(--theme-primary);
}
[data-theme-renderer="catalog-market-pro"] .st-market-search,
.store-theme-catalog-market-pro .st-market-search {
  min-width: 320px;
  flex: 1;
  max-width: 520px;
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-btn-radius);
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero,
.store-theme-catalog-market-pro .st-market-hero {
  padding: 36px 0;
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero-shell,
.store-theme-catalog-market-pro .st-market-hero-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,0.9fr);
  gap: 32px;
  align-items: center;
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero-title,
.store-theme-catalog-market-pro .st-market-hero-title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  color: var(--theme-text);
  margin: 0 0 10px;
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero-subtitle,
.store-theme-catalog-market-pro .st-market-hero-subtitle {
  font-size: 14px;
  color: var(--theme-muted);
  margin: 0 0 18px;
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero-cta,
.store-theme-catalog-market-pro .st-market-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  background: var(--theme-primary);
  color: var(--theme-on-primary);
  border-radius: var(--theme-btn-radius);
  font-weight: 800;
}
[data-theme-renderer="catalog-market-pro"] .st-market-hero-image,
.store-theme-catalog-market-pro .st-market-hero-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--theme-img-radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--theme-border);
}

[data-theme-renderer="catalog-market-pro"] .st-market-categories,
.store-theme-catalog-market-pro .st-market-categories {
  padding: 32px 0;
  background: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
}
[data-theme-renderer="catalog-market-pro"] .st-market-category-grid,
.store-theme-catalog-market-pro .st-market-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
[data-theme-renderer="catalog-market-pro"] .st-category-card,
.store-theme-catalog-market-pro .st-category-card {
  border-radius: var(--theme-card-radius);
  border: 1px solid var(--theme-border);
  overflow: hidden;
  background: var(--theme-surface);
}
[data-theme-renderer="catalog-market-pro"] .st-category-media,
.store-theme-catalog-market-pro .st-category-media {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
[data-theme-renderer="catalog-market-pro"] .st-category-card.has-no-image .st-category-media,
.store-theme-catalog-market-pro .st-category-card.has-no-image .st-category-media,
[data-theme-renderer="catalog-market-pro"] .st-category-card .st-category-media:not([style*="background-image"]),
.store-theme-catalog-market-pro .st-category-card .st-category-media:not([style*="background-image"]) {
  background-image:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(15, 23, 42, 0.04) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(37, 99, 235, 0.03) 10px, rgba(37, 99, 235, 0.03) 20px);
  background-color: var(--theme-surface-soft, #EAF0F8);
}

[data-theme-renderer="catalog-market-pro"] .st-market-products,
.store-theme-catalog-market-pro .st-market-products {
  padding: 32px 0;
  background: var(--theme-bg);
}
[data-theme-renderer="catalog-market-pro"] .st-market-products-grid,
.store-theme-catalog-market-pro .st-market-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
[data-theme-renderer="catalog-market-pro"] .st-product-card,
.store-theme-catalog-market-pro .st-product-card {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
}
[data-theme-renderer="catalog-market-pro"] .st-product-media-wrap,
.store-theme-catalog-market-pro .st-product-media-wrap {
  aspect-ratio: 1 / 1;
  background: var(--theme-surface-soft);
  border-bottom: 1px solid var(--theme-border);
}
[data-theme-renderer="catalog-market-pro"] .st-product-img,
.store-theme-catalog-market-pro .st-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: var(--theme-surface-soft);
}
[data-theme-renderer="catalog-market-pro"] .st-market-trust,
.store-theme-catalog-market-pro .st-market-trust {
  padding: 24px 0;
  background: var(--theme-surface);
  border-block: 1px solid var(--theme-border);
}
[data-theme-renderer="catalog-market-pro"] .st-market-trust-grid,
.store-theme-catalog-market-pro .st-market-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
[data-theme-renderer="catalog-market-pro"] .st-market-trust-item,
.store-theme-catalog-market-pro .st-market-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--theme-surface-soft);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-card-radius);
  font-size: 12px;
}

/* Responsive Catalog */
@media (max-width: 960px) {
  [data-theme-renderer="catalog-market-pro"] .st-market-hero-shell,
  .store-theme-catalog-market-pro .st-market-hero-shell { grid-template-columns: 1fr; }
  [data-theme-renderer="catalog-market-pro"] .st-market-category-grid,
  .store-theme-catalog-market-pro .st-market-category-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme-renderer="catalog-market-pro"] .st-market-products-grid,
  .store-theme-catalog-market-pro .st-market-products-grid { grid-template-columns: repeat(3, 1fr); }
  [data-theme-renderer="catalog-market-pro"] .st-market-trust-grid,
  .store-theme-catalog-market-pro .st-market-trust-grid { grid-template-columns: repeat(2, 1fr); }
  [data-theme-renderer="catalog-market-pro"] .st-market-search,
  .store-theme-catalog-market-pro .st-market-search { min-width: 200px; }
}
@media (max-width: 640px) {
  [data-theme-renderer="catalog-market-pro"] .st-market-hero,
  .store-theme-catalog-market-pro .st-market-hero { padding: 24px 0; }
  [data-theme-renderer="catalog-market-pro"] .st-market-category-grid,
  .store-theme-catalog-market-pro .st-market-category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  [data-theme-renderer="catalog-market-pro"] .st-market-products-grid,
  .store-theme-catalog-market-pro .st-market-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  [data-theme-renderer="catalog-market-pro"] .st-market-trust-grid,
  .store-theme-catalog-market-pro .st-market-trust-grid { grid-template-columns: 1fr; }
  [data-theme-renderer="catalog-market-pro"] .st-market-header-inner,
  .store-theme-catalog-market-pro .st-market-header-inner { min-height: 56px; }
  [data-theme-renderer="catalog-market-pro"] .st-market-search,
  .store-theme-catalog-market-pro .st-market-search { min-width: 0; flex: 1; }
}
