/* =========================================================
   PREMIUM ALGERIAN COD STOREFRONT
   Homepage Design System
   RTL • Mobile First • Dynamic Themes
   ========================================================= */


/* =========================================================
   1. DYNAMIC DESIGN TOKENS
   تأتي القيم الأساسية من Edit Theme و D1
   ========================================================= */

:root {
  color-scheme: light;

  /* Dynamic merchant settings */
  --home-primary:
    var(--store-primary, #1478f2);

  --home-secondary:
    var(--store-secondary, #0b63d1);

  --home-background:
    var(--store-background, #f4f7fb);

  --home-surface:
    var(--store-surface, #ffffff);

  --home-text:
    var(--store-text, #172033);

  --home-font:
    var(--store-font-family, Arial);

  --home-button-radius:
    var(--store-button-radius, 14px);

  --home-products-desktop:
    var(--store-products-desktop, 4);

  --home-products-mobile:
    var(--store-products-mobile, 2);


  /* Neutral palette */

  --home-text-soft: #536176;
  --home-text-muted: #7c899c;
  --home-text-faint: #9da8b8;

  --home-border: #e1e8f1;
  --home-border-strong: #cfd9e6;

  --home-white: #ffffff;
  --home-black: #101828;

  --home-success: #16a36a;
  --home-success-dark: #087648;
  --home-success-soft: #eaf9f1;

  --home-warning: #e59a00;
  --home-warning-dark: #9c6500;
  --home-warning-soft: #fff7df;

  --home-danger: #dc3545;
  --home-danger-dark: #b51f30;
  --home-danger-soft: #fff0f2;

  --home-orange: #f97316;
  --home-orange-soft: #fff1e8;

  --home-purple: #7c3aed;
  --home-purple-soft: #f2edff;


  /* Derived dynamic colors */

  --home-primary-soft: #eaf4ff;
  --home-primary-lighter: #f5f9ff;
  --home-primary-border: #b9d8fb;

  --home-secondary-soft: #edf5ff;

  --home-page-glow:
    color-mix(
      in srgb,
      var(--home-primary) 9%,
      transparent
    );

  --home-primary-soft:
    color-mix(
      in srgb,
      var(--home-primary) 10%,
      #ffffff
    );

  --home-primary-lighter:
    color-mix(
      in srgb,
      var(--home-primary) 4%,
      #ffffff
    );

  --home-primary-border:
    color-mix(
      in srgb,
      var(--home-primary) 25%,
      #ffffff
    );

  --home-secondary-soft:
    color-mix(
      in srgb,
      var(--home-secondary) 9%,
      #ffffff
    );


  /* Shadows */

  --home-shadow-xs:
    0 2px 8px rgba(16, 24, 40, 0.04);

  --home-shadow-sm:
    0 6px 18px rgba(16, 24, 40, 0.06);

  --home-shadow-md:
    0 14px 36px rgba(16, 24, 40, 0.09);

  --home-shadow-lg:
    0 24px 60px rgba(16, 24, 40, 0.13);

  --home-shadow-primary:
    0 15px 34px
    color-mix(
      in srgb,
      var(--home-primary) 25%,
      transparent
    );


  /* Radius */

  --home-radius-xs: 8px;
  --home-radius-sm: 12px;
  --home-radius-md: 18px;
  --home-radius-lg: 24px;
  --home-radius-xl: 32px;
  --home-radius-pill: 999px;


  /* Layout */

  --home-container:
    min(100% - 28px, 1320px);

  --home-header-height: 78px;

  --home-transition-fast:
    140ms ease;

  --home-transition:
    220ms cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );

  --home-transition-slow:
    420ms cubic-bezier(
      0.16,
      1,
      0.3,
      1
    );
}


/* =========================================================
   2. RESET & BASE
   ========================================================= */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--home-background);
  color: var(--home-text);
  font-family:
    var(--home-font),
    Arial,
    Tahoma,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 92% 2%,
      var(--home-page-glow),
      transparent 28rem
    ),
    radial-gradient(
      circle at 5% 20%,
      color-mix(
        in srgb,
        var(--home-secondary) 5%,
        transparent
      ),
      transparent 24rem
    ),
    var(--home-background);
  color: var(--home-text);
  font-family:
    var(--home-font),
    Arial,
    Tahoma,
    sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

body,
button,
input,
select,
textarea {
  font-family: inherit;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}


/* =========================================================
   3. ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  z-index: 5000;
  top: 12px;
  right: 50%;
  padding: 10px 18px;
  border-radius: var(--home-radius-pill);
  background: var(--home-text);
  color: #ffffff;
  font-weight: 900;
  transform:
    translate(50%, -150%);
  transition:
    transform var(--home-transition);
}

.skip-link:focus {
  transform:
    translate(50%, 0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline:
    3px solid
    color-mix(
      in srgb,
      var(--home-primary) 24%,
      transparent
    );
  outline-offset: 3px;
}


/* =========================================================
   4. GENERAL UTILITIES
   ========================================================= */

.home-container {
  width: var(--home-container);
  margin-inline: auto;
}

.home-main {
  min-height: 60vh;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.no-scroll {
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
}


/* =========================================================
   5. ANNOUNCEMENT BAR
   ========================================================= */

.site-announcement {
  position: relative;
  z-index: 100;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--home-primary),
      var(--home-secondary)
    );
  color: #ffffff;
}

.announcement-shell {
  display: flex;
  width: var(--home-container);
  min-height: 38px;
  margin-inline: auto;
  padding: 7px 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.announcement-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.14);
}

.announcement-text {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
}

.announcement-text strong {
  font-weight: 950;
}


/* =========================================================
   6. HEADER
   ========================================================= */

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom:
    1px solid
    rgba(225, 232, 241, 0.9);
  background:
    color-mix(
      in srgb,
      var(--home-surface) 94%,
      transparent
    );
  box-shadow:
    0 1px 0
    rgba(255, 255, 255, 0.8);
  backdrop-filter:
    blur(20px)
    saturate(150%);
}

.header-main {
  min-height:
    var(--home-header-height);
}

.header-shell {
  display: grid;
  width: var(--home-container);
  min-height:
    var(--home-header-height);
  margin-inline: auto;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}


/* Brand */

.brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: flex;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 16%,
      var(--home-border)
    );
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      #ffffff
    );
  color: var(--home-primary);
  box-shadow: var(--home-shadow-sm);
  font-size: 22px;
  font-weight: 950;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: block;
  min-width: 0;
}

.brand-name {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--home-text);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-tagline {
  display: block;
  max-width: 220px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--home-text-muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Desktop navigation */

.desktop-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.desktop-nav-link {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  border-radius: var(--home-radius-pill);
  color: var(--home-text-soft);
  font-size: 12px;
  font-weight: 850;
  transition:
    color var(--home-transition),
    background-color var(--home-transition);
}

.desktop-nav-link::after {
  position: absolute;
  right: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--home-primary);
  content: "";
  transform: translateX(50%);
  transition:
    width var(--home-transition);
}

.desktop-nav-link:hover,
.desktop-nav-link.is-active {
  background: var(--home-primary-soft);
  color: var(--home-primary);
}

.desktop-nav-link.is-active::after {
  width: 20px;
}


/* Header actions */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-icon-button,
.mobile-menu-button {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 13px;
  background: var(--home-surface);
  color: var(--home-text);
  transition:
    transform var(--home-transition),
    border-color var(--home-transition),
    color var(--home-transition),
    background-color var(--home-transition),
    box-shadow var(--home-transition);
}

.header-icon-button:hover,
.mobile-menu-button:hover {
  border-color: var(--home-primary-border);
  background: var(--home-primary-soft);
  color: var(--home-primary);
  box-shadow: var(--home-shadow-sm);
  transform: translateY(-1px);
}

.header-action-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  display: flex;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--home-surface);
  border-radius: var(--home-radius-pill);
  background: var(--home-danger);
  color: #ffffff;
  font-size: 8px;
  font-weight: 950;
}

.header-primary-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border:
    1px solid
    var(--home-primary);
  border-radius:
    var(--home-button-radius);
  background:
    linear-gradient(
      135deg,
      var(--home-primary),
      var(--home-secondary)
    );
  color: #ffffff;
  box-shadow:
    0 9px 22px
    color-mix(
      in srgb,
      var(--home-primary) 22%,
      transparent
    );
  font-size: 11px;
  font-weight: 950;
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    filter var(--home-transition);
}

.header-primary-button:hover {
  box-shadow:
    0 13px 28px
    color-mix(
      in srgb,
      var(--home-primary) 30%,
      transparent
    );
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.mobile-menu-button {
  display: none;
}


/* =========================================================
   7. HEADER SEARCH
   ========================================================= */

.header-search-area {
  border-top:
    1px solid
    rgba(225, 232, 241, 0.65);
  background:
    color-mix(
      in srgb,
      var(--home-surface) 97%,
      var(--home-background)
    );
}

.header-search-shell {
  display: grid;
  width: var(--home-container);
  min-height: 70px;
  margin-inline: auto;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.store-search {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.search-icon {
  position: absolute;
  z-index: 2;
  right: 17px;
  width: 19px;
  height: 19px;
  color: var(--home-text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding:
    11px 48px
    11px 118px;
  border:
    1px solid
    var(--home-border-strong);
  border-radius: 15px;
  outline: 0;
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 12px;
  transition:
    border-color var(--home-transition),
    box-shadow var(--home-transition),
    background-color var(--home-transition);
}

.search-input::placeholder {
  color: var(--home-text-faint);
}

.search-input:hover {
  border-color:
    color-mix(
      in srgb,
      var(--home-primary) 28%,
      var(--home-border-strong)
    );
}

.search-input:focus {
  border-color: var(--home-primary);
  background: #ffffff;
  box-shadow:
    0 0 0 4px
    color-mix(
      in srgb,
      var(--home-primary) 10%,
      transparent
    );
}

.search-submit {
  position: absolute;
  left: 5px;
  display: inline-flex;
  min-width: 104px;
  min-height: 38px;
  padding: 8px 14px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 11px;
  background: var(--home-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  transition:
    transform var(--home-transition),
    background-color var(--home-transition);
}

.search-submit:hover {
  background: var(--home-secondary);
  transform: translateY(-1px);
}

.search-clear {
  position: absolute;
  left: 116px;
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #edf2f7;
  color: var(--home-text-muted);
}

.search-clear.is-visible {
  display: inline-flex;
}


/* Quick trust message */

.header-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--home-text-soft);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.header-trust-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--home-success-soft);
  color: var(--home-success);
}


/* =========================================================
   8. CATEGORY NAVIGATION
   ========================================================= */

.category-nav {
  border-top:
    1px solid
    rgba(225, 232, 241, 0.7);
  border-bottom:
    1px solid
    rgba(225, 232, 241, 0.9);
  background: var(--home-surface);
}

.category-nav-shell {
  position: relative;
  width: var(--home-container);
  margin-inline: auto;
}

.category-nav-list {
  display: flex;
  padding: 9px 0;
  overflow-x: auto;
  align-items: center;
  gap: 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.category-nav-list::-webkit-scrollbar {
  display: none;
}

.category-nav-link {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 14px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--home-radius-pill);
  color: var(--home-text-soft);
  font-size: 10px;
  font-weight: 900;
  scroll-snap-align: start;
  transition:
    color var(--home-transition),
    border-color var(--home-transition),
    background-color var(--home-transition);
}

.category-nav-link:hover,
.category-nav-link.is-active {
  border-color: var(--home-primary-border);
  background: var(--home-primary-soft);
  color: var(--home-primary);
}


/* =========================================================
   9. MOBILE MENU
   ========================================================= */

.mobile-menu-backdrop {
  position: fixed;
  z-index: 1900;
  inset: 0;
  background:
    rgba(16, 24, 40, 0.5);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition:
    opacity var(--home-transition);
}

.mobile-menu-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  padding: 18px;
  overflow-y: auto;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-lg);
  transform: translateX(110%);
  transition:
    transform var(--home-transition-slow);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu-close {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  background: var(--home-background);
  color: var(--home-text);
}

.mobile-menu-nav {
  display: grid;
  gap: 7px;
}

.mobile-menu-link {
  display: flex;
  min-height: 48px;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--home-text-soft);
  font-size: 12px;
  font-weight: 900;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
  border-color: var(--home-primary-border);
  background: var(--home-primary-soft);
  color: var(--home-primary);
}

.mobile-menu-footer {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      var(--home-secondary-soft)
    );
}


/* =========================================================
   10. HERO SECTION
   ========================================================= */

.hero-section {
  position: relative;
  padding: 32px 0 22px;
  overflow: hidden;
}

.hero-section::before {
  position: absolute;
  top: -180px;
  right: -180px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      color-mix(
        in srgb,
        var(--home-primary) 11%,
        transparent
      ),
      transparent 70%
    );
  content: "";
  pointer-events: none;
}

.hero-section::after {
  position: absolute;
  bottom: -220px;
  left: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      color-mix(
        in srgb,
        var(--home-secondary) 8%,
        transparent
      ),
      transparent 70%
    );
  content: "";
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--home-container);
  min-height: 530px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 68px);
  overflow: hidden;
  grid-template-columns:
    minmax(0, 1.03fr)
    minmax(360px, 0.97fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 14%,
      var(--home-border)
    );
  border-radius: clamp(24px, 4vw, 40px);
  background:
    linear-gradient(
      120deg,
      color-mix(
        in srgb,
        var(--home-primary) 7%,
        var(--home-surface)
      ) 0%,
      var(--home-surface) 53%,
      color-mix(
        in srgb,
        var(--home-secondary) 5%,
        var(--home-surface)
      ) 100%
    );
  box-shadow: var(--home-shadow-md);
}

.hero-shell::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(
      145deg,
      color-mix(
        in srgb,
        var(--home-primary) 6%,
        transparent
      ),
      transparent
    );
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 6px 13px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border:
    1px solid
    var(--home-primary-border);
  border-radius: var(--home-radius-pill);
  background:
    color-mix(
      in srgb,
      var(--home-primary) 8%,
      #ffffff
    );
  color: var(--home-primary);
  font-size: 10px;
  font-weight: 950;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-success);
  box-shadow:
    0 0 0 4px
    color-mix(
      in srgb,
      var(--home-success) 14%,
      transparent
    );
}

.hero-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--home-text);
  font-size:
    clamp(34px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-title-highlight {
  position: relative;
  display: inline-block;
  color: var(--home-primary);
}

.hero-title-highlight::after {
  position: absolute;
  right: 3%;
  bottom: -3px;
  width: 88%;
  height: 8px;
  border-radius: 99px;
  background:
    color-mix(
      in srgb,
      var(--home-primary) 17%,
      transparent
    );
  content: "";
  transform: rotate(-1deg);
}

.hero-description {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--home-text-soft);
  font-size:
    clamp(14px, 1.6vw, 18px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  margin-bottom: 32px;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

.hero-primary-button,
.hero-secondary-button {
  display: inline-flex;
  min-height: 52px;
  padding: 12px 23px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius:
    var(--home-button-radius);
  font-size: 12px;
  font-weight: 950;
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition),
    border-color var(--home-transition),
    background-color var(--home-transition);
}

.hero-primary-button {
  border: 1px solid var(--home-primary);
  background:
    linear-gradient(
      135deg,
      var(--home-primary),
      var(--home-secondary)
    );
  color: #ffffff;
  box-shadow: var(--home-shadow-primary);
}

.hero-primary-button:hover {
  box-shadow:
    0 19px 40px
    color-mix(
      in srgb,
      var(--home-primary) 33%,
      transparent
    );
  transform: translateY(-3px);
}

.hero-secondary-button {
  border: 1px solid var(--home-border-strong);
  background:
    color-mix(
      in srgb,
      var(--home-surface) 86%,
      transparent
    );
  color: var(--home-text);
}

.hero-secondary-button:hover {
  border-color: var(--home-primary-border);
  background: var(--home-primary-soft);
  color: var(--home-primary);
  transform: translateY(-2px);
}


/* Hero stats */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-stat {
  display: flex;
  min-width: 130px;
  padding: 10px 13px;
  align-items: center;
  gap: 9px;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 10%,
      var(--home-border)
    );
  border-radius: 14px;
  background:
    color-mix(
      in srgb,
      var(--home-surface) 85%,
      transparent
    );
}

.hero-stat-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
}

.hero-stat strong {
  display: block;
  font-size: 11px;
  font-weight: 950;
}

.hero-stat span {
  display: block;
  color: var(--home-text-muted);
  font-size: 8px;
}


/* Hero media */

.hero-media {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 410px;
  align-items: center;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 14%,
      var(--home-border)
    );
  border-radius: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      color-mix(
        in srgb,
        var(--home-secondary) 7%,
        #ffffff
      )
    );
  box-shadow:
    0 35px 70px
    rgba(16, 24, 40, 0.14);
  transform: rotate(-2deg);
  transition:
    transform var(--home-transition-slow);
}

.hero-image-frame:hover {
  transform:
    rotate(0deg)
    translateY(-5px);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  color: var(--home-primary);
  text-align: center;
}

.hero-image-placeholder-icon {
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background:
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--home-shadow-md);
  font-size: 34px;
}

.hero-image-placeholder strong {
  font-size: 15px;
  font-weight: 950;
}

.hero-image-placeholder span {
  color: var(--home-text-muted);
  font-size: 10px;
}


/* Floating hero cards */

.hero-floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  padding: 11px 14px;
  align-items: center;
  gap: 9px;
  border:
    1px solid
    rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  background:
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--home-shadow-md);
  backdrop-filter: blur(14px);
}

.hero-floating-card.is-top {
  top: 7%;
  right: -4%;
}

.hero-floating-card.is-bottom {
  bottom: 8%;
  left: -5%;
}

.hero-floating-icon {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--home-success-soft);
  color: var(--home-success);
}

.hero-floating-card strong {
  display: block;
  font-size: 10px;
  font-weight: 950;
}

.hero-floating-card span {
  display: block;
  color: var(--home-text-muted);
  font-size: 8px;
}


/* =========================================================
   11. TRUST STRIP
   ========================================================= */

.trust-strip-section {
  padding: 0 0 30px;
}

.trust-strip {
  display: grid;
  width: var(--home-container);
  margin-inline: auto;
  padding: 15px;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--home-border);
  border-radius: 20px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-sm);
}

.trust-item {
  display: flex;
  min-width: 0;
  min-height: 66px;
  padding: 10px 12px;
  align-items: center;
  gap: 11px;
  border-radius: 14px;
  transition:
    background-color var(--home-transition),
    transform var(--home-transition);
}

.trust-item:hover {
  background: var(--home-primary-lighter);
  transform: translateY(-2px);
}

.trust-item-icon {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
}

.trust-item:nth-child(2)
.trust-item-icon {
  background: var(--home-success-soft);
  color: var(--home-success);
}

.trust-item:nth-child(3)
.trust-item-icon {
  background: var(--home-warning-soft);
  color: var(--home-warning);
}

.trust-item:nth-child(4)
.trust-item-icon {
  background: var(--home-purple-soft);
  color: var(--home-purple);
}

.trust-item strong {
  display: block;
  overflow: hidden;
  font-size: 10px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-item span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--home-text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   12. GENERAL SECTION DESIGN
   ========================================================= */

.home-section {
  padding: clamp(44px, 7vw, 88px) 0;
}

.home-section.is-compact {
  padding:
    clamp(32px, 5vw, 60px) 0;
}

.home-section.is-surface {
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  background:
    color-mix(
      in srgb,
      var(--home-surface) 72%,
      var(--home-background)
    );
}

.section-shell {
  width: var(--home-container);
  margin-inline: auto;
}

.section-heading {
  display: flex;
  margin-bottom:
    clamp(22px, 4vw, 36px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-content {
  max-width: 760px;
}

.section-kicker {
  display: inline-flex;
  min-height: 29px;
  margin-bottom: 10px;
  padding: 5px 11px;
  align-items: center;
  justify-content: center;
  border-radius: var(--home-radius-pill);
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 9px;
  font-weight: 950;
}

.section-title {
  margin: 0 0 8px;
  color: var(--home-text);
  font-size:
    clamp(25px, 3.2vw, 42px);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-description {
  max-width: 680px;
  margin: 0;
  color: var(--home-text-muted);
  font-size: 12px;
  line-height: 1.85;
}

.section-link {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 15px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border:
    1px solid
    var(--home-primary-border);
  border-radius: var(--home-radius-pill);
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 10px;
  font-weight: 950;
  transition:
    transform var(--home-transition),
    background-color var(--home-transition);
}

.section-link:hover {
  background:
    color-mix(
      in srgb,
      var(--home-primary) 15%,
      #ffffff
    );
  transform: translateX(-3px);
}


/* =========================================================
   13. CATEGORY CARDS
   ========================================================= */

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

.category-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  overflow: hidden;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 9%,
      var(--home-border)
    );
  border-radius: 22px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-xs);
  transition:
    transform var(--home-transition-slow),
    border-color var(--home-transition),
    box-shadow var(--home-transition);
}

.category-card:hover {
  border-color: var(--home-primary-border);
  box-shadow: var(--home-shadow-md);
  transform: translateY(-7px);
}

.category-card-media {
  position: relative;
  height: 150px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      var(--home-secondary-soft)
    );
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform var(--home-transition-slow);
}

.category-card:hover
.category-card-image {
  transform: scale(1.06);
}

.category-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--home-primary);
  font-size: 34px;
}

.category-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.category-card-title {
  margin: 0 0 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card-count {
  color: var(--home-text-muted);
  font-size: 9px;
}

.category-card-arrow {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  transition:
    transform var(--home-transition),
    background-color var(--home-transition);
}

.category-card:hover
.category-card-arrow {
  background: var(--home-primary);
  color: #ffffff;
  transform: translateX(-3px);
}


/* =========================================================
   14. PRODUCTS TOOLBAR
   ========================================================= */

.products-toolbar {
  display: flex;
  margin-bottom: 22px;
  padding: 13px 15px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-xs);
}

.products-result-info {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--home-text-soft);
  font-size: 10px;
  font-weight: 800;
}

.products-result-count {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-weight: 950;
}

.products-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-sort {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--home-border-strong);
  border-radius: 11px;
  outline: 0;
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 9px;
  font-weight: 850;
}

.view-switcher {
  display: flex;
  padding: 3px;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--home-border);
  border-radius: 11px;
  background: var(--home-background);
}

.view-switch-button {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--home-text-muted);
}

.view-switch-button.is-active {
  background: var(--home-surface);
  color: var(--home-primary);
  box-shadow: var(--home-shadow-xs);
}


/* =========================================================
   15. PRODUCT GRID
   ========================================================= */

.products-grid {
  display: grid;
  grid-template-columns:
    repeat(
      var(--home-products-desktop),
      minmax(0, 1fr)
    );
  gap:
    clamp(14px, 2vw, 22px);
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border:
    1px solid
    color-mix(
      in srgb,
      var(--home-primary) 7%,
      var(--home-border)
    );
  border-radius: 22px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-xs);
  isolation: isolate;
  transition:
    transform var(--home-transition-slow),
    border-color var(--home-transition),
    box-shadow var(--home-transition);
}

.product-card:hover {
  z-index: 3;
  border-color: var(--home-primary-border);
  box-shadow: var(--home-shadow-md);
  transform: translateY(-8px);
}


/* Product media */

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #f3f6fa,
      color-mix(
        in srgb,
        var(--home-primary) 4%,
        #ffffff
      )
    );
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 600ms
    cubic-bezier(
      0.16,
      1,
      0.3,
      1
    );
}

.product-card:hover
.product-image {
  transform: scale(1.055);
}

.product-image-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--home-text-muted);
  text-align: center;
}

.product-image-placeholder-icon {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--home-surface);
  color: var(--home-primary);
  box-shadow: var(--home-shadow-sm);
  font-size: 25px;
}

.product-image-placeholder span {
  font-size: 9px;
  font-weight: 850;
}


/* Product badges */

.product-badges {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: flex;
  max-width: calc(100% - 24px);
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-badge {
  display: inline-flex;
  min-height: 25px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  border:
    1px solid
    rgba(255, 255, 255, 0.6);
  border-radius: var(--home-radius-pill);
  box-shadow:
    0 5px 14px
    rgba(16, 24, 40, 0.12);
  font-size: 8px;
  font-weight: 950;
  backdrop-filter: blur(8px);
}

.discount-badge {
  background:
    color-mix(
      in srgb,
      var(--home-danger) 92%,
      transparent
    );
  color: #ffffff;
}

.featured-badge {
  background:
    color-mix(
      in srgb,
      var(--home-purple) 92%,
      transparent
    );
  color: #ffffff;
}

.stock-badge {
  background:
    color-mix(
      in srgb,
      var(--home-success) 92%,
      transparent
    );
  color: #ffffff;
}

.out-of-stock-badge {
  background:
    rgba(23, 32, 51, 0.84);
  color: #ffffff;
}


/* Wishlist / quick button */

.product-floating-actions {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 7px;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity var(--home-transition),
    transform var(--home-transition);
}

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

.product-floating-button {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border:
    1px solid
    rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  background:
    rgba(255, 255, 255, 0.9);
  color: var(--home-text-soft);
  box-shadow: var(--home-shadow-sm);
  backdrop-filter: blur(9px);
  transition:
    background-color var(--home-transition),
    color var(--home-transition),
    transform var(--home-transition);
}

.product-floating-button:hover {
  background: var(--home-primary);
  color: #ffffff;
  transform: scale(1.06);
}


/* Product body */

.product-body {
  display: flex;
  min-height: 235px;
  padding: 16px;
  flex: 1;
  flex-direction: column;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 7px;
  overflow: hidden;
  color: var(--home-primary);
  font-size: 8px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--home-text);
  font-size:
    clamp(12px, 1.2vw, 15px);
  font-weight: 950;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-name a {
  transition:
    color var(--home-transition);
}

.product-name a:hover {
  color: var(--home-primary);
}

.product-description {
  display: -webkit-box;
  min-height: 38px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--home-text-muted);
  font-size: 9px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* Rating */

.product-rating {
  display: flex;
  min-height: 22px;
  margin-bottom: 9px;
  align-items: center;
  gap: 6px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #f5a623;
}

.rating-stars svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: currentColor;
}

.rating-count {
  color: var(--home-text-muted);
  font-size: 8px;
}


/* Price */

.product-price-area {
  display: flex;
  min-height: 50px;
  margin-top: auto;
  margin-bottom: 13px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 9px;
}

.product-prices {
  min-width: 0;
}

.current-price {
  display: block;
  color: var(--home-primary);
  font-size:
    clamp(16px, 1.6vw, 22px);
  font-weight: 950;
  line-height: 1.2;
}

.current-price small {
  font-size: 9px;
  font-weight: 900;
}

.compare-price {
  display: block;
  margin-top: 3px;
  color: var(--home-text-faint);
  font-size: 9px;
  text-decoration: line-through;
}

.product-saving {
  display: inline-flex;
  min-height: 25px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  border-radius: var(--home-radius-pill);
  background: var(--home-success-soft);
  color: var(--home-success-dark);
  font-size: 7px;
  font-weight: 950;
}


/* Product actions */

.product-actions {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 8px;
}

.product-buy-button {
  display: inline-flex;
  min-height: 43px;
  padding: 9px 12px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--home-primary);
  border-radius:
    var(--home-button-radius);
  background:
    linear-gradient(
      135deg,
      var(--home-primary),
      var(--home-secondary)
    );
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  box-shadow:
    0 8px 18px
    color-mix(
      in srgb,
      var(--home-primary) 19%,
      transparent
    );
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.product-buy-button:hover {
  box-shadow:
    0 12px 24px
    color-mix(
      in srgb,
      var(--home-primary) 28%,
      transparent
    );
  transform: translateY(-2px);
}

.product-details-button {
  display: inline-flex;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border-strong);
  border-radius:
    var(--home-button-radius);
  background: var(--home-surface);
  color: var(--home-text-soft);
  transition:
    border-color var(--home-transition),
    background-color var(--home-transition),
    color var(--home-transition),
    transform var(--home-transition);
}

.product-details-button:hover {
  border-color: var(--home-primary-border);
  background: var(--home-primary-soft);
  color: var(--home-primary);
  transform: translateY(-2px);
}

.product-buy-button:disabled {
  border-color: #bec8d5;
  background: #bec8d5;
  box-shadow: none;
  cursor: not-allowed;
}


/* =========================================================
   16. PRODUCT CARD STYLES FROM EDIT THEME
   ========================================================= */

/* Soft */

html[data-product-card-style="soft"]
.product-card {
  border-color:
    color-mix(
      in srgb,
      var(--home-primary) 5%,
      var(--home-border)
    );
  box-shadow: var(--home-shadow-sm);
}

/* Bordered */

html[data-product-card-style="bordered"]
.product-card {
  border-width: 2px;
  box-shadow: none;
}

html[data-product-card-style="bordered"]
.product-card:hover {
  border-color: var(--home-primary);
  box-shadow: none;
}

/* Minimal */

html[data-product-card-style="minimal"]
.product-card {
  border-color: transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

html[data-product-card-style="minimal"]
.product-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-4px);
}

html[data-product-card-style="minimal"]
.product-media {
  border-radius: 16px;
}

html[data-product-card-style="minimal"]
.product-body {
  padding-inline: 4px;
}


/* =========================================================
   17. LIST VIEW
   ========================================================= */

.products-grid.is-list-view {
  grid-template-columns: 1fr;
}

.products-grid.is-list-view
.product-card {
  display: grid;
  grid-template-columns:
    minmax(180px, 260px)
    minmax(0, 1fr);
}

.products-grid.is-list-view
.product-media {
  aspect-ratio: 1 / 0.84;
}

.products-grid.is-list-view
.product-body {
  min-height: 230px;
  padding: 22px;
}

.products-grid.is-list-view
.product-description {
  max-width: 720px;
  -webkit-line-clamp: 3;
}

.products-grid.is-list-view
.product-actions {
  max-width: 350px;
}


/* =========================================================
   18. SKELETON LOADING
   ========================================================= */

.products-skeleton {
  display: grid;
  grid-template-columns:
    repeat(
      var(--home-products-desktop),
      minmax(0, 1fr)
    );
  gap:
    clamp(14px, 2vw, 22px);
}

.product-skeleton {
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: var(--home-surface);
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #edf1f6;
}

.skeleton-block::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.75),
      transparent
    );
  content: "";
  transform: translateX(-100%);
  animation:
    home-skeleton 1.4s
    ease-in-out infinite;
}

.skeleton-image {
  aspect-ratio: 1 / 1;
}

.skeleton-body {
  display: grid;
  padding: 16px;
  gap: 10px;
}

.skeleton-line {
  height: 10px;
  border-radius: 99px;
}

.skeleton-line.is-small {
  width: 35%;
}

.skeleton-line.is-medium {
  width: 68%;
}

.skeleton-line.is-large {
  width: 90%;
}

.skeleton-button {
  height: 42px;
  margin-top: 6px;
  border-radius: 12px;
}

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


/* =========================================================
   19. EMPTY & ERROR STATES
   ========================================================= */

.products-state {
  display: flex;
  min-height: 360px;
  padding: 35px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  border:
    1px dashed
    var(--home-border-strong);
  border-radius: 24px;
  background:
    color-mix(
      in srgb,
      var(--home-surface) 80%,
      transparent
    );
  text-align: center;
}

.products-state-icon {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 30px;
}

.products-state h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 950;
}

.products-state p {
  max-width: 480px;
  margin: 0;
  color: var(--home-text-muted);
  font-size: 11px;
}

.products-state-button {
  display: inline-flex;
  min-height: 42px;
  margin-top: 4px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-primary);
  border-radius:
    var(--home-button-radius);
  background: var(--home-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
}


/* =========================================================
   20. PROMOTIONAL BANNER
   ========================================================= */

.promo-section {
  padding: 24px 0 70px;
}

.promo-card {
  position: relative;
  display: grid;
  width: var(--home-container);
  min-height: 310px;
  margin-inline: auto;
  padding:
    clamp(28px, 5vw, 60px);
  overflow: hidden;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(280px, 0.9fr);
  align-items: center;
  gap: 40px;
  border-radius:
    clamp(24px, 4vw, 38px);
  background:
    linear-gradient(
      125deg,
      var(--home-primary),
      var(--home-secondary)
    );
  color: #ffffff;
  box-shadow: var(--home-shadow-primary);
}

.promo-card::before,
.promo-card::after {
  position: absolute;
  border-radius: 50%;
  background:
    rgba(255, 255, 255, 0.08);
  content: "";
}

.promo-card::before {
  top: -110px;
  left: -70px;
  width: 300px;
  height: 300px;
}

.promo-card::after {
  right: 42%;
  bottom: -190px;
  width: 380px;
  height: 380px;
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo-eyebrow {
  display: inline-flex;
  min-height: 30px;
  margin-bottom: 13px;
  padding: 5px 11px;
  align-items: center;
  border:
    1px solid
    rgba(255, 255, 255, 0.25);
  border-radius: var(--home-radius-pill);
  background:
    rgba(255, 255, 255, 0.12);
  font-size: 9px;
  font-weight: 950;
}

.promo-title {
  max-width: 690px;
  margin: 0 0 12px;
  font-size:
    clamp(28px, 4vw, 50px);
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.promo-description {
  max-width: 620px;
  margin: 0 0 23px;
  color:
    rgba(255, 255, 255, 0.83);
  font-size: 12px;
  line-height: 1.9;
}

.promo-button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 21px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border:
    1px solid
    rgba(255, 255, 255, 0.85);
  border-radius:
    var(--home-button-radius);
  background: #ffffff;
  color: var(--home-primary);
  font-size: 11px;
  font-weight: 950;
  box-shadow:
    0 12px 26px
    rgba(16, 24, 40, 0.14);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.promo-button:hover {
  box-shadow:
    0 17px 32px
    rgba(16, 24, 40, 0.2);
  transform: translateY(-3px);
}

.promo-visual {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
}

.promo-visual-card {
  display: flex;
  width: min(100%, 310px);
  min-height: 190px;
  padding: 25px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border:
    1px solid
    rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background:
    rgba(255, 255, 255, 0.12);
  box-shadow:
    0 25px 55px
    rgba(16, 24, 40, 0.17);
  text-align: center;
  backdrop-filter: blur(14px);
  transform: rotate(3deg);
}

.promo-visual-icon {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  border-radius: 23px;
  background:
    rgba(255, 255, 255, 0.92);
  color: var(--home-primary);
  font-size: 30px;
}


/* =========================================================
   21. BENEFITS SECTION
   ========================================================= */

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

.benefit-card {
  position: relative;
  min-height: 220px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-xs);
  transition:
    transform var(--home-transition-slow),
    border-color var(--home-transition),
    box-shadow var(--home-transition);
}

.benefit-card::after {
  position: absolute;
  top: -65px;
  left: -65px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background:
    color-mix(
      in srgb,
      var(--home-primary) 6%,
      transparent
    );
  content: "";
}

.benefit-card:hover {
  border-color: var(--home-primary-border);
  box-shadow: var(--home-shadow-md);
  transform: translateY(-6px);
}

.benefit-icon {
  position: relative;
  z-index: 2;
  display: flex;
  width: 52px;
  height: 52px;
  margin-bottom: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
}

.benefit-card:nth-child(2)
.benefit-icon {
  background: var(--home-success-soft);
  color: var(--home-success);
}

.benefit-card:nth-child(3)
.benefit-icon {
  background: var(--home-warning-soft);
  color: var(--home-warning);
}

.benefit-title {
  position: relative;
  z-index: 2;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 950;
}

.benefit-description {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--home-text-muted);
  font-size: 10px;
  line-height: 1.9;
}


/* =========================================================
   22. FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--home-border);
  background:
    color-mix(
      in srgb,
      var(--home-surface) 90%,
      var(--home-background)
    );
}

.footer-main {
  padding:
    clamp(48px, 7vw, 82px) 0
    35px;
}

.footer-grid {
  display: grid;
  width: var(--home-container);
  margin-inline: auto;
  grid-template-columns:
    minmax(260px, 1.4fr)
    repeat(3, minmax(150px, 0.7fr));
  gap:
    clamp(25px, 5vw, 65px);
}

.footer-brand {
  max-width: 410px;
}

.footer-brand-row {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 11px;
}

.footer-logo {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--home-primary-soft);
  color: var(--home-primary);
  font-size: 20px;
  font-weight: 950;
}

.footer-store-name {
  font-size: 17px;
  font-weight: 950;
}

.footer-description {
  margin: 0 0 18px;
  color: var(--home-text-muted);
  font-size: 10px;
  line-height: 1.95;
}

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

.footer-social-link {
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 11px;
  background: var(--home-surface);
  color: var(--home-text-soft);
  transition:
    border-color var(--home-transition),
    background-color var(--home-transition),
    color var(--home-transition),
    transform var(--home-transition);
}

.footer-social-link:hover {
  border-color: var(--home-primary);
  background: var(--home-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-column-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 950;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-flex;
  width: fit-content;
  color: var(--home-text-muted);
  font-size: 9px;
  font-weight: 750;
  transition:
    color var(--home-transition),
    transform var(--home-transition);
}

.footer-link:hover {
  color: var(--home-primary);
  transform: translateX(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--home-border);
}

.footer-bottom-shell {
  display: flex;
  width: var(--home-container);
  min-height: 66px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--home-text-muted);
  font-size: 8px;
}

.footer-payment-badges {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-payment-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-surface);
  color: var(--home-text-soft);
  font-size: 7px;
  font-weight: 900;
}


/* =========================================================
   23. FLOATING WHATSAPP
   ========================================================= */

.floating-whatsapp {
  position: fixed;
  z-index: 1200;
  right: 20px;
  bottom: 22px;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border:
    3px solid
    var(--home-background);
  border-radius: 50%;
  background: #20bd65;
  color: #ffffff;
  box-shadow:
    0 15px 32px
    rgba(32, 189, 101, 0.34);
  transition:
    transform var(--home-transition),
    box-shadow var(--home-transition);
}

.floating-whatsapp:hover {
  box-shadow:
    0 19px 38px
    rgba(32, 189, 101, 0.43);
  transform:
    translateY(-4px)
    scale(1.04);
}

.floating-whatsapp::before {
  position: absolute;
  inset: -7px;
  border:
    1px solid
    rgba(32, 189, 101, 0.28);
  border-radius: 50%;
  content: "";
  animation:
    whatsapp-pulse 2.3s
    ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.8);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}


/* =========================================================
   24. SCROLL TO TOP
   ========================================================= */

.scroll-top-button {
  position: fixed;
  z-index: 1150;
  left: 20px;
  bottom: 22px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--home-border);
  border-radius: 13px;
  background:
    color-mix(
      in srgb,
      var(--home-surface) 92%,
      transparent
    );
  color: var(--home-text);
  box-shadow: var(--home-shadow-sm);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transform: translateY(12px);
  transition:
    opacity var(--home-transition),
    transform var(--home-transition),
    color var(--home-transition),
    background-color var(--home-transition);
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  background: var(--home-primary);
  color: #ffffff;
}


/* =========================================================
   25. MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-bottom-nav {
  position: fixed;
  z-index: 1300;
  right: 10px;
  bottom: 9px;
  left: 10px;
  display: none;
  min-height: 62px;
  padding: 6px;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border:
    1px solid
    rgba(225, 232, 241, 0.92);
  border-radius: 19px;
  background:
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 15px 40px
    rgba(16, 24, 40, 0.16);
  backdrop-filter: blur(18px);
}

.mobile-bottom-link {
  display: flex;
  min-width: 0;
  padding: 5px 3px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 13px;
  color: var(--home-text-muted);
  font-size: 7px;
  font-weight: 900;
}

.mobile-bottom-link svg {
  width: 19px;
  height: 19px;
}

.mobile-bottom-link.is-active {
  background: var(--home-primary-soft);
  color: var(--home-primary);
}


/* =========================================================
   26. QUICK VIEW MODAL
   ========================================================= */

.quick-view-backdrop {
  position: fixed;
  z-index: 2500;
  inset: 0;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background:
    rgba(16, 24, 40, 0.58);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(7px);
  transition:
    opacity var(--home-transition);
}

.quick-view-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.quick-view-modal {
  position: relative;
  width: min(100%, 930px);
  max-height: min(88vh, 760px);
  overflow: hidden auto;
  border:
    1px solid
    rgba(255, 255, 255, 0.8);
  border-radius: 27px;
  background: var(--home-surface);
  box-shadow: var(--home-shadow-lg);
  opacity: 0;
  transform:
    translateY(25px)
    scale(0.97);
  transition:
    opacity var(--home-transition),
    transform var(--home-transition-slow);
}

.quick-view-backdrop.is-visible
.quick-view-modal {
  opacity: 1;
  transform:
    translateY(0)
    scale(1);
}

.quick-view-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  left: 14px;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border:
    1px solid
    rgba(255, 255, 255, 0.85);
  border-radius: 13px;
  background:
    rgba(255, 255, 255, 0.9);
  color: var(--home-text);
  box-shadow: var(--home-shadow-sm);
}

.quick-view-grid {
  display: grid;
  grid-template-columns:
    minmax(320px, 0.95fr)
    minmax(0, 1.05fr);
}

.quick-view-media {
  min-height: 520px;
  background:
    linear-gradient(
      145deg,
      var(--home-primary-soft),
      var(--home-background)
    );
}

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

.quick-view-content {
  padding:
    clamp(28px, 5vw, 55px);
}

.quick-view-category {
  display: block;
  margin-bottom: 9px;
  color: var(--home-primary);
  font-size: 9px;
  font-weight: 950;
}

.quick-view-title {
  margin: 0 0 13px;
  font-size:
    clamp(24px, 3vw, 38px);
  font-weight: 950;
  line-height: 1.3;
}

.quick-view-description {
  margin: 0 0 22px;
  color: var(--home-text-muted);
  font-size: 11px;
  line-height: 1.95;
}

.quick-view-actions {
  display: grid;
  margin-top: 24px;
  grid-template-columns:
    minmax(0, 1fr) auto;
  gap: 9px;
}


/* =========================================================
   27. TOAST NOTIFICATIONS
   ========================================================= */

.store-toast {
  position: fixed;
  z-index: 3000;
  right: 50%;
  bottom: 25px;
  display: flex;
  width: min(calc(100% - 28px), 430px);
  min-height: 54px;
  padding: 12px 15px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--home-border);
  border-radius: 15px;
  background:
    color-mix(
      in srgb,
      var(--home-surface) 96%,
      transparent
    );
  color: var(--home-text);
  box-shadow: var(--home-shadow-lg);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  transform:
    translate(50%, 18px);
  transition:
    opacity var(--home-transition),
    transform var(--home-transition);
}

.store-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform:
    translate(50%, 0);
}

.store-toast.is-success {
  border-color: #a9e3c5;
  background: #f1fcf6;
  color: var(--home-success-dark);
}

.store-toast.is-error {
  border-color: #ffc0c7;
  background: var(--home-danger-soft);
  color: var(--home-danger-dark);
}

.store-toast-icon {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background:
    rgba(255, 255, 255, 0.72);
}


/* =========================================================
   28. ACTIVE STORE THEME: COD SALES
   ========================================================= */

html[data-store-theme="cod-sales"]
.hero-shell {
  background:
    linear-gradient(
      120deg,
      color-mix(
        in srgb,
        var(--home-primary) 8%,
        var(--home-surface)
      ),
      var(--home-surface) 56%,
      color-mix(
        in srgb,
        var(--home-secondary) 6%,
        var(--home-surface)
      )
    );
}

html[data-store-theme="cod-sales"]
.hero-primary-button,
html[data-store-theme="cod-sales"]
.product-buy-button {
  text-transform: none;
}

html[data-store-theme="cod-sales"]
.product-card {
  box-shadow: var(--home-shadow-sm);
}


/* =========================================================
   29. ACTIVE STORE THEME: MODERN MINIMAL
   ========================================================= */

html[data-store-theme="modern-minimal"] {
  --home-radius-md: 10px;
  --home-radius-lg: 15px;
  --home-radius-xl: 20px;
}

html[data-store-theme="modern-minimal"]
body {
  background:
    var(--home-background);
}

html[data-store-theme="modern-minimal"]
.site-header {
  box-shadow: none;
}

html[data-store-theme="modern-minimal"]
.hero-shell {
  min-height: 490px;
  border-radius: 14px;
  background: var(--home-surface);
  box-shadow: none;
}

html[data-store-theme="modern-minimal"]
.hero-title {
  letter-spacing: -0.045em;
}

html[data-store-theme="modern-minimal"]
.hero-image-frame {
  border-radius: 10px;
  box-shadow:
    0 18px 45px
    rgba(16, 24, 40, 0.1);
  transform: none;
}

html[data-store-theme="modern-minimal"]
.product-card {
  border-color: transparent;
  border-radius: 10px;
  box-shadow: none;
}

html[data-store-theme="modern-minimal"]
.product-media {
  border-radius: 10px;
}

html[data-store-theme="modern-minimal"]
.category-card,
html[data-store-theme="modern-minimal"]
.benefit-card {
  border-radius: 10px;
  box-shadow: none;
}


/* =========================================================
   30. ACTIVE STORE THEME: MARKETPLACE
   ========================================================= */

html[data-store-theme="marketplace"]
.header-search-area {
  background: var(--home-primary);
}

html[data-store-theme="marketplace"]
.search-input {
  border-color: transparent;
  box-shadow:
    0 6px 20px
    rgba(16, 24, 40, 0.1);
}

html[data-store-theme="marketplace"]
.header-trust {
  color:
    rgba(255, 255, 255, 0.9);
}

html[data-store-theme="marketplace"]
.header-trust-icon {
  background:
    rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html[data-store-theme="marketplace"]
.hero-shell {
  min-height: 430px;
  border-radius: 22px;
}

html[data-store-theme="marketplace"]
.products-grid {
  gap: 15px;
}

html[data-store-theme="marketplace"]
.product-card {
  border-radius: 14px;
}

html[data-store-theme="marketplace"]
.product-body {
  padding: 13px;
}

html[data-store-theme="marketplace"]
.category-card {
  min-height: 190px;
  border-radius: 15px;
}

html[data-store-theme="marketplace"]
.category-card-media {
  height: 120px;
  border-radius: 11px;
}


/* =========================================================
   31. RESPONSIVE: LARGE SCREENS
   ========================================================= */

@media (min-width: 1500px) {
  :root {
    --home-container:
      min(100% - 60px, 1440px);
  }

  .hero-shell {
    min-height: 590px;
  }
}


/* =========================================================
   32. RESPONSIVE: LAPTOP & TABLET
   ========================================================= */

@media (max-width: 1180px) {
  :root {
    --home-products-desktop: 3;
  }

  .header-shell {
    gap: 14px;
  }

  .desktop-nav-link {
    padding-inline: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .hero-shell {
    min-height: 490px;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(320px, 0.8fr);
    gap: 34px;
  }

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

  .footer-grid {
    grid-template-columns:
      minmax(240px, 1.2fr)
      repeat(3, minmax(130px, 0.7fr));
    gap: 30px;
  }
}


@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .header-shell {
    grid-template-columns:
      minmax(0, 1fr)
      auto;
  }

  .header-actions {
    grid-column: 2;
  }

  .hero-shell {
    padding:
      clamp(26px, 5vw, 45px);
    grid-template-columns: 1fr;
  }

  .hero-content {
    max-width: 760px;
    text-align: center;
  }

  .hero-eyebrow {
    margin-inline: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-media {
    min-height: 380px;
  }

  .hero-image-frame {
    width: min(78vw, 460px);
  }

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

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

  .promo-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-description {
    margin-inline: auto;
  }

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

  .benefit-card:last-child {
    grid-column: 1 / -1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* =========================================================
   33. RESPONSIVE: MOBILE
   ========================================================= */

@media (max-width: 700px) {
  :root {
    --home-container:
      min(100% - 20px, 1320px);

    --home-header-height: 66px;
  }

  body {
    padding-bottom: 84px;
    font-size: 14px;
  }

  .announcement-shell {
    min-height: 34px;
    padding: 5px 0;
  }

  .announcement-text {
    font-size: 9px;
  }

  .announcement-icon {
    width: 21px;
    height: 21px;
  }

  .header-shell {
    gap: 8px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
  }

  .brand-name {
    max-width: 155px;
    font-size: 15px;
  }

  .header-primary-button {
    display: none;
  }

  .header-icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .header-search-shell {
    min-height: 62px;
    grid-template-columns: 1fr;
  }

  .header-trust {
    display: none;
  }

  .search-input {
    min-height: 44px;
    padding:
      9px 43px
      9px 91px;
    font-size: 10px;
  }

  .search-submit {
    min-width: 80px;
    min-height: 34px;
    font-size: 8px;
  }

  .search-clear {
    left: 89px;
  }

  .category-nav-link {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 9px;
  }

  .hero-section {
    padding-top: 17px;
  }

  .hero-shell {
    min-height: auto;
    padding: 28px 19px;
    gap: 28px;
    border-radius: 25px;
  }

  .hero-title {
    margin-bottom: 14px;
    font-size:
      clamp(30px, 10vw, 45px);
  }

  .hero-description {
    margin-bottom: 21px;
    font-size: 12px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-primary-button,
  .hero-secondary-button {
    width: 100%;
    min-height: 48px;
  }

  .hero-stats {
    display: grid;
    width: 100%;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .hero-stat {
    min-width: 0;
  }

  .hero-media {
    min-height: 310px;
  }

  .hero-image-frame {
    width: min(100%, 360px);
    border-radius: 31px;
  }

  .hero-floating-card {
    padding: 8px 10px;
  }

  .hero-floating-card.is-top {
    right: -3%;
  }

  .hero-floating-card.is-bottom {
    left: -3%;
  }

  .trust-strip-section {
    padding-bottom: 18px;
  }

  .trust-strip {
    padding: 9px;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 5px;
    border-radius: 17px;
  }

  .trust-item {
    min-height: 58px;
    padding: 8px;
    gap: 7px;
  }

  .trust-item-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }

  .trust-item strong {
    font-size: 8px;
  }

  .trust-item span {
    font-size: 6.5px;
  }

  .home-section {
    padding: 47px 0;
  }

  .section-heading {
    margin-bottom: 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-description {
    font-size: 10px;
  }

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

  .category-card {
    min-height: 178px;
    padding: 10px;
    border-radius: 16px;
  }

  .category-card-media {
    height: 108px;
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .category-card-title {
    font-size: 10px;
  }

  .category-card-count {
    font-size: 7px;
  }

  .category-card-arrow {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: 9px;
  }

  .products-toolbar {
    padding: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .products-toolbar-actions {
    justify-content: space-between;
  }

  .products-sort {
    flex: 1;
  }

  .products-grid,
  .products-skeleton {
    grid-template-columns:
      repeat(
        var(--home-products-mobile),
        minmax(0, 1fr)
      );
    gap: 10px;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-badges {
    top: 8px;
    right: 8px;
  }

  .product-badge {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 6.5px;
  }

  .product-floating-actions {
    top: 8px;
    left: 8px;
    opacity: 1;
    transform: none;
  }

  .product-floating-button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .product-body {
    min-height: 205px;
    padding: 11px;
  }

  .product-category {
    margin-bottom: 4px;
    font-size: 6.5px;
  }

  .product-name {
    min-height: 39px;
    margin-bottom: 5px;
    font-size: 10px;
  }

  .product-description {
    display: none;
  }

  .product-rating {
    margin-bottom: 5px;
  }

  .rating-stars svg {
    width: 9px;
    height: 9px;
  }

  .rating-count {
    font-size: 6px;
  }

  .product-price-area {
    min-height: 43px;
    margin-bottom: 9px;
  }

  .current-price {
    font-size: 15px;
  }

  .compare-price {
    font-size: 7px;
  }

  .product-saving {
    display: none;
  }

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

  .product-buy-button {
    min-height: 38px;
    padding: 7px;
    font-size: 8px;
  }

  .product-details-button {
    display: none;
  }

  .products-grid.is-list-view
  .product-card {
    grid-template-columns:
      115px minmax(0, 1fr);
  }

  .products-grid.is-list-view
  .product-body {
    min-height: 150px;
    padding: 10px;
  }

  .products-grid.is-list-view
  .product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }

  .promo-section {
    padding-bottom: 48px;
  }

  .promo-card {
    min-height: auto;
    padding: 30px 20px;
    gap: 25px;
    border-radius: 24px;
  }

  .promo-title {
    font-size: 29px;
  }

  .promo-description {
    font-size: 10px;
  }

  .promo-visual {
    min-height: 180px;
  }

  .promo-visual-card {
    min-height: 160px;
  }

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

  .benefit-card,
  .benefit-card:last-child {
    grid-column: auto;
    min-height: 180px;
  }

  .footer-main {
    padding-top: 45px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom-shell {
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .floating-whatsapp,
  .scroll-top-button {
    display: none;
  }

  .mobile-bottom-nav {
    display: grid;
  }

  .store-toast {
    bottom: 82px;
  }

  .quick-view-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .quick-view-modal {
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-media {
    min-height: 300px;
    max-height: 340px;
  }

  .quick-view-content {
    padding: 22px 17px 28px;
  }

  .quick-view-title {
    font-size: 25px;
  }
}


/* =========================================================
   34. RESPONSIVE: SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {
  :root {
    --home-container:
      min(100% - 16px, 1320px);
  }

  .brand-copy {
    max-width: 120px;
  }

  .brand-name {
    max-width: 120px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-icon-button {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .mobile-menu-button {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
  }

  .hero-shell {
    padding-inline: 15px;
  }

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

  .hero-stat {
    justify-content: center;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .categories-grid {
    gap: 8px;
  }

  .category-card {
    min-height: 164px;
  }

  .category-card-media {
    height: 98px;
  }

  .products-grid,
  .products-skeleton {
    gap: 8px;
  }

  .product-body {
    padding: 9px;
  }

  .product-name {
    font-size: 9.5px;
  }

  .current-price {
    font-size: 14px;
  }

  .product-buy-button {
    font-size: 7.5px;
  }
}


/* =========================================================
   35. ONE PRODUCT PER ROW ON MOBILE
   عند اختيار التاجر 1 من Edit Theme
   ========================================================= */

@media (max-width: 700px) {
  .products-grid,
  .products-skeleton {
    grid-template-columns:
      repeat(
        var(--home-products-mobile),
        minmax(0, 1fr)
      );
  }

  html[style*="--store-products-mobile: 1"]
  .product-card {
    display: grid;
    grid-template-columns:
      minmax(130px, 42%)
      minmax(0, 1fr);
  }

  html[style*="--store-products-mobile: 1"]
  .product-media {
    height: 100%;
    min-height: 220px;
    aspect-ratio: auto;
  }

  html[style*="--store-products-mobile: 1"]
  .product-description {
    display: -webkit-box;
  }

  html[style*="--store-products-mobile: 1"]
  .product-details-button {
    display: inline-flex;
  }

  html[style*="--store-products-mobile: 1"]
  .product-actions {
    grid-template-columns:
      minmax(0, 1fr) auto;
  }
}


/* =========================================================
   36. REDUCED MOTION
   ========================================================= */

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

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


/* =========================================================
   37. PRINT
   ========================================================= */

@media print {
  .site-announcement,
  .site-header,
  .category-nav,
  .hero-actions,
  .header-actions,
  .products-toolbar,
  .product-actions,
  .promo-section,
  .floating-whatsapp,
  .scroll-top-button,
  .mobile-bottom-nav,
  .site-footer {
    display: none !important;
  }

  body {
    padding: 0;
    background: #ffffff;
    color: #000000;
  }

  .product-card,
  .category-card {
    break-inside: avoid;
    border:
      1px solid #dddddd;
    box-shadow: none;
  }
}
/* =========================================================
   MOBILE STOREFRONT FINAL POLISH
   Single items • Compact header • Better spacing
   ========================================================= */

/*
 * توسيط المنتج عندما يوجد منتج واحد فقط.
 * يمنع ظهور نصف الشاشة فارغاً.
 */

.products-grid:not(.is-list-view)
> .product-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 410px);
  justify-self: center;
}


/*
 * توسيط التصنيف عندما يوجد تصنيف واحد فقط.
 */

.categories-grid
> .category-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 410px);
  justify-self: center;
}


@media (max-width: 700px) {

  /*
   * على الهاتف لا نثبت الهيدر الكامل.
   * هذا يمنع البحث والتصنيفات من احتلال نصف الشاشة.
   */

  .site-header {
    position: relative;
    top: auto;
  }


  /*
   * تقليل المساحات العمودية مع الحفاظ على الفخامة.
   */

  .home-section {
    padding: 40px 0;
  }

  .home-section.is-compact {
    padding: 32px 0;
  }

  .hero-section {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .hero-shell {
    padding: 25px 16px;
    gap: 22px;
  }


  /*
   * جعل صورة الواجهة أقصر وأكثر توازناً.
   */

  .hero-media {
    min-height: 275px;
  }

  .hero-image-frame {
    width: 100%;
    max-width: 430px;
    height: 280px;
    aspect-ratio: auto;
    border-radius: 25px;
  }

  .hero-image-placeholder {
    padding: 20px;
  }

  .hero-image-placeholder-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
  }

  .hero-floating-card.is-top {
    top: 8px;
    right: 7px;
  }

  .hero-floating-card.is-bottom {
    bottom: 8px;
    left: 7px;
  }


  /*
   * المنتج والتصنيف الوحيد يأخذان عرضاً مناسباً.
   */

  .products-grid:not(.is-list-view)
  > .product-card:only-child {
    width: min(100%, 430px);
  }

  .categories-grid
  > .category-card:only-child {
    width: min(100%, 430px);
  }


  /*
   * تحسين بطاقة المنتج عندما تكون وحيدة.
   */

  .products-grid:not(.is-list-view)
  > .product-card:only-child
  .product-media {
    max-height: 370px;
  }

  .products-grid:not(.is-list-view)
  > .product-card:only-child
  .product-name {
    font-size: 14px;
  }

  .products-grid:not(.is-list-view)
  > .product-card:only-child
  .product-description {
    display: -webkit-box;
  }

  .products-grid:not(.is-list-view)
  > .product-card:only-child
  .current-price {
    font-size: 21px;
  }


  /*
   * ضغط الـFooter وتنظيمه في عمودين.
   */

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

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-main {
    padding-top: 40px;
    padding-bottom: 25px;
  }

  .site-footer {
    padding-bottom: 86px;
  }


  /*
   * تصغير القائمة السفلية قليلاً.
   */

  .mobile-bottom-nav {
    right: 8px;
    left: 8px;
    bottom:
      max(
        7px,
        env(safe-area-inset-bottom)
      );
    min-height: 58px;
    border-radius: 17px;
  }

  .mobile-bottom-link {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
