/* Store254 Custom UI Styles & Animations */

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow {
  animation: spinSlow 3s linear infinite;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Shimmer placeholder */
.shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════
   STORE254 THEME PALETTE ENGINE (Psychology-Driven Commerce)
   ══════════════════════════════════════════════════════════ */

:root,
[data-theme="trust-forest"] {
  /* 1. Trust & Growth (Forest Green + Trust Blue) */
  --store-primary: #15803d;        /* Forest Green - Growth, Safety & Action */
  --store-primary-hover: #166534;
  --store-primary-subtle: #dcfce7; /* Fresh Emerald Mint Wash */
  --store-primary-glow: rgba(21, 128, 61, 0.28);
  
  --store-trust-blue: #0284c7;     /* Trust Blue - Reliability, M-Pesa & Support */
  --store-trust-blue-dark: #0369a1;
  --store-trust-blue-bg: #f0f9ff;
  --store-trust-blue-line: #bae6fd;

  --store-urgency-red: #e11d48;    /* Crimson Red - Urgency & Excitement */
  --store-urgency-red-bg: #fff1f2;
  --store-urgency-amber: #d97706;  /* Warm Amber - Enthusiasm & Value */
  --store-urgency-amber-bg: #fffbeb;

  --store-paper: #edf5ee;          /* Noticeable Herbal Green Canvas Tint */
  --store-white: #ffffff;
  --store-ink: #0f2415;            /* Deep Forest Charcoal Text */
  --store-muted: #556b5c;          /* Soft Secondary Tone */
  --store-line: #c8ded0;           /* Clean Tinted Border Line */
  --store-media-bg: #f5f9f6;       /* Crisp Neutral Backdrop for Photography */
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
  --store-clay: #bd684c;
}

[data-theme="sapphire-blue"] {
  /* 2. Security & Professionalism (Sapphire Navy + Sky Blue) */
  --store-primary: #0284c7;        /* Sapphire Ocean Blue - High Trust */
  --store-primary-hover: #0369a1;
  --store-primary-subtle: #dbeafe; /* Cool Ocean Blue Wash */
  --store-primary-glow: rgba(2, 132, 199, 0.32);
  
  --store-trust-blue: #1d4ed8;
  --store-trust-blue-dark: #1e40af;
  --store-trust-blue-bg: #eff6ff;
  --store-trust-blue-line: #bfdbfe;

  --store-urgency-red: #e11d48;
  --store-urgency-red-bg: #fff1f2;
  --store-urgency-amber: #d97706;
  --store-urgency-amber-bg: #fffbeb;

  --store-paper: #e9f2f9;          /* Noticeable Icy Sapphire Canvas Tint */
  --store-white: #ffffff;
  --store-ink: #0c2136;            /* Deep Navy Slate Text */
  --store-muted: #526c84;
  --store-line: #bfd9ee;
  --store-media-bg: #f4f8fc;
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
  --store-clay: #0284c7;
}

[data-theme="organic-sage"] {
  /* 3. Natural Safety & Wellness (Botanical Sage + Soft Terracotta) */
  --store-primary: #2d6a4f;        /* Deep Botanical Sage */
  --store-primary-hover: #1b4332;
  --store-primary-subtle: #e2ede5; /* Organic Sage Wash */
  --store-primary-glow: rgba(45, 106, 79, 0.30);
  
  --store-trust-blue: #0284c7;
  --store-trust-blue-dark: #0369a1;
  --store-trust-blue-bg: #f0f9ff;
  --store-trust-blue-line: #bae6fd;

  --store-urgency-red: #c2410c;    /* Warm Terracotta */
  --store-urgency-red-bg: #fff7ed;
  --store-urgency-amber: #b45309;  /* Warm Honey */
  --store-urgency-amber-bg: #fefce8;

  --store-paper: #f4efe4;          /* Warm Artisanal Sand/Linen Canvas */
  --store-white: #ffffff;
  --store-ink: #1f2720;
  --store-muted: #626f63;
  --store-line: #d8decf;
  --store-media-bg: #f9f7f2;
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
  --store-clay: #bd684c;
}

[data-theme="modern-onyx"] {
  /* 4. Modern High-Contrast (Onyx Black & Vivid Emerald - Electronics & Luxury) */
  --store-primary: #059669;        /* Electric Mint Emerald */
  --store-primary-hover: #047857;
  --store-primary-subtle: #d1fae5;
  --store-primary-glow: rgba(5, 150, 105, 0.35);
  
  --store-trust-blue: #2563eb;     /* Tech Electric Blue */
  --store-trust-blue-dark: #1d4ed8;
  --store-trust-blue-bg: #eff6ff;
  --store-trust-blue-line: #bfdbfe;

  --store-urgency-red: #dc2626;
  --store-urgency-red-bg: #fef2f2;
  --store-urgency-amber: #ea580c;
  --store-urgency-amber-bg: #fff7ed;

  --store-paper: #e6ecf2;          /* Clean High-Contrast Tech Slate */
  --store-white: #ffffff;
  --store-ink: #020617;            /* Pitch Charcoal Slate */
  --store-muted: #475569;
  --store-line: #cbd5e1;
  --store-media-bg: #ffffff;
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
  --store-clay: #dc2626;
}

[data-theme="sunset-amber"] {
  /* 5. Urgency & High Energy (Warm Amber Gold & Coral Red) */
  --store-primary: #d97706;        /* Golden Warm Amber */
  --store-primary-hover: #b45309;
  --store-primary-subtle: #fed7aa; /* Warm Peach Amber Wash */
  --store-primary-glow: rgba(217, 119, 6, 0.32);
  
  --store-trust-blue: #0284c7;
  --store-trust-blue-dark: #0369a1;
  --store-trust-blue-bg: #f0f9ff;
  --store-trust-blue-line: #bae6fd;

  --store-urgency-red: #e11d48;
  --store-urgency-red-bg: #fff1f2;
  --store-urgency-amber: #f59e0b;
  --store-urgency-amber-bg: #fefce8;

  --store-paper: #fef3e2;          /* Rich Warm Apricot/Peach Amber Glow */
  --store-white: #ffffff;
  --store-ink: #2b1d0e;
  --store-muted: #79664f;
  --store-line: #fcd7b2;
  --store-media-bg: #fefaf5;
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
  --store-clay: #d97706;
}

html { background: var(--store-paper); }
body {
  background: var(--store-paper) !important;
  color: var(--store-ink) !important;
  font-family: "DM Sans", sans-serif !important;
  letter-spacing: 0 !important;
}
body * { letter-spacing: 0 !important; }
body .rounded-3xl, body .rounded-2xl { border-radius: 8px !important; }
body .rounded-xl { border-radius: 6px !important; }

h1, h2, h3, h4, .font-black, .font-extrabold {
  font-family: "Manrope", sans-serif !important;
  letter-spacing: 0 !important;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--store-line);
  border-top: 4px solid var(--store-primary);
  box-shadow: 0 4px 16px -2px var(--store-primary-glow);
}
html[data-storefront="true"] .site-header {
  position: sticky;
  isolation: isolate;
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--store-white) 91%, var(--store-primary)),
    color-mix(in srgb, var(--store-white) 96%, var(--store-primary))
  );
  border-top: 0;
  border-bottom-color: color-mix(in srgb, var(--store-primary) 18%, var(--store-line));
  color: var(--store-ink);
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
html[data-storefront="true"] .site-header::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--store-primary), color-mix(in srgb, var(--store-primary) 22%, white), var(--store-primary));
  content: "";
}
html[data-storefront="true"] #header-store-name { color: var(--store-ink) !important; }
#header-store-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}
#header-store-identity.hidden { display: none; }
.header-store-name {
  overflow: hidden;
  color: var(--store-ink);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-powered-by {
  color: var(--store-muted);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}
.header-powered-by strong { color: var(--store-primary); font-weight: 750; }
html[data-storefront="true"] .header-action,
html[data-storefront="true"] #super-admin-btn {
  color: var(--store-ink) !important;
  background: color-mix(in srgb, var(--store-white) 76%, transparent) !important;
  border-color: color-mix(in srgb, var(--store-primary) 18%, var(--store-line)) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
html[data-storefront="true"] .header-action:hover,
html[data-storefront="true"] #super-admin-btn:hover {
  background: var(--store-primary-subtle) !important;
  border-color: var(--store-primary) !important;
  color: var(--store-primary-hover) !important;
  transform: translateY(-1px);
}
html[data-storefront="true"] .search-field input {
  background: color-mix(in srgb, var(--store-white) 82%, transparent) !important;
  border-color: color-mix(in srgb, var(--store-primary) 16%, var(--store-line)) !important;
  border-radius: 12px !important;
}
.site-header-inner { min-height: 4.5rem; }
#header-platform-logo { height: 2.45rem; }
#header-store-identity { max-width: 17rem; }
.search-field input, .mobile-search input {
  border: 1px solid var(--store-line) !important;
  background: var(--store-white) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.search-field input:focus, .mobile-search input:focus {
  border-color: var(--store-primary) !important;
  box-shadow: 0 0 0 3px var(--store-primary-glow) !important;
}
.header-action { border-radius: 8px !important; }
.wishlist-action {
  position: relative;
  display: none;
}
html:not([data-storefront="true"]) .customer-profile-toggle,
html:not([data-storefront="true"]) .customer-orders-shortcut,
html:not([data-storefront="true"]) .mobile-customer-profile-toggle {
  display: none !important;
}
html[data-storefront="true"] .customer-profile-toggle { display: flex; }
html[data-storefront="true"] .customer-orders-shortcut { display: none; }
html[data-storefront="true"] .wishlist-action { display: flex; }
html[data-storefront="true"] .wishlist-action.is-active {
  border-color: var(--store-primary) !important;
  background: var(--store-primary-subtle) !important;
  color: var(--store-primary-hover) !important;
}
.customer-auth-section.customer-auth-guest {
  display: flex;
  min-height: 23rem;
  align-items: center;
  justify-content: center;
  border-color: #30363d;
  background: #0d1117;
  padding: 2rem 1.5rem;
}
.customer-auth-guest .customer-signed-out {
  display: flex;
  width: 100%;
  max-width: 22rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.customer-auth-guest .customer-signin-mark {
  display: flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: #f0f3f6;
  color: #0d1117;
}
.customer-auth-guest .customer-signin-title {
  margin-bottom: 0.6rem;
  color: #f0f3f6;
  font-size: 1.15rem;
  font-weight: 700;
}
.customer-auth-guest .customer-signin-copy {
  margin-bottom: 1.5rem;
  color: #9da7b3;
  font-size: 0.8rem;
  line-height: 1.5;
}
.customer-auth-guest .customer-google-button {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #c9d1d9;
  font-size: 0.8rem;
}
.customer-google-link {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid #3d444d;
  border-radius: 0.4rem;
  background: #21262d;
  color: #f0f3f6;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.customer-google-link:hover {
  border-color: #6e7681;
  background: #30363d;
}
.customer-google-g {
  color: #8ab4f8;
  font-size: 1rem;
  font-weight: 800;
}
.customer-google-retry {
  color: #8ab4f8;
}
.customer-auth-guest .customer-google-button iframe {
  max-width: 100%;
}
.customer-auth-guest .customer-google-button button {
  color: #c9d1d9;
}
.customer-auth-guest .customer-google-button > p {
  width: 100%;
  color: #c9d1d9;
  text-align: center;
}
.customer-auth-guest .customer-google-button > button {
  color: #8ab4f8;
}
.cart-action {
  background: var(--store-primary) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px var(--store-primary-glow) !important;
}
.cart-action:hover { background: var(--store-primary-hover) !important; }
html[data-storefront="true"] .cart-action {
  background: var(--store-primary) !important;
  color: #ffffff !important;
  border: 1px solid color-mix(in srgb, var(--store-primary-hover) 80%, black) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 10px -4px var(--store-primary-glow) !important;
}
html[data-storefront="true"] .cart-action:hover {
  background: var(--store-primary-hover) !important;
}
.mobile-search { border-color: var(--store-line); }
html[data-storefront="true"] .mobile-search {
  background: color-mix(in srgb, var(--store-white) 88%, var(--store-primary));
  border-color: color-mix(in srgb, var(--store-primary) 18%, var(--store-line));
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.store-banner {
  color: var(--store-ink);
  background-color: var(--store-primary-subtle);
  border-bottom: 2px solid var(--store-primary);
  position: relative;
  overflow: hidden;
}

/* ═════ WHEN MERCHANT HAS UPLOADED A HERO BACKGROUND IMAGE ═════ */
.store-banner.has-banner-image {
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.24) 50%, rgba(15, 23, 42, 0.1) 100%),
    var(--store-banner-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff !important;
}
.store-banner.has-banner-image h1 {
  color: #ffffff !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7) !important;
  font-size: 3rem !important;
  letter-spacing: -0.02em !important;
}
.store-banner.has-banner-image #banner-store-desc {
  color: #f8fafc !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
  font-size: 1.05rem !important;
  max-width: 44rem !important;
}
.store-banner.has-banner-image .store-address {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  display: inline-flex !important;
  padding: 0.3rem 0.8rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  margin-bottom: 0.85rem !important;
}
.store-banner.has-banner-image .store-contact {
  background: #ffffff !important;
  color: var(--store-trust-blue-dark) !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}
.store-banner.has-banner-image .store-contact:hover {
  background: var(--store-trust-blue-bg) !important;
}
.store-banner.has-banner-image .store-social-links a {
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(8px) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
.store-banner.has-banner-image .store-social-links a:hover {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ═════ WHEN NO BANNER IMAGE IS UPLOADED: USE RICH THEME GRADIENT ═════ */
.store-banner:not(.has-banner-image) {
  background-image: linear-gradient(
    135deg,
    var(--store-primary-subtle) 0%,
    var(--store-paper) 50%,
    var(--store-primary-subtle) 100%
  );
}

.store-banner-inner {
  min-height: 16rem;
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.store-banner-copy { max-width: 48rem; }
.store-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.store-social-links.hidden { display: none; }
.store-social-links a {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  color: var(--store-ink);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 140ms ease;
}
.store-social-links a:hover {
  background: var(--store-white);
  border-color: var(--store-primary);
  color: var(--store-primary);
}
.store-address {
  margin-bottom: 0.8rem;
  color: var(--store-primary);
  font: 700 0.8rem "DM Sans", sans-serif;
  letter-spacing: 0.02em;
}
.store-banner h1 {
  margin: 0;
  color: var(--store-ink);
  font-size: 2.85rem;
  line-height: 1.08;
  font-weight: 800;
}
#banner-store-desc {
  max-width: 42rem;
  margin-top: 0.85rem;
  color: var(--store-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.store-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--store-trust-blue-line) !important;
  border-radius: 8px;
  background: var(--store-trust-blue-bg) !important;
  color: var(--store-trust-blue-dark) !important;
  font-size: 0.84rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
  transition: all 160ms ease;
}
.store-contact:hover {
  background: #ffffff !important;
  border-color: var(--store-trust-blue) !important;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.22);
  transform: translateY(-1px);
}

.platform-home { padding-top: 2rem; padding-bottom: 5rem; }
.platform-intro {
  min-height: 24rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  background: #e9eee8;
  border: 1px solid var(--store-line);
}
.platform-intro-copy {
  padding: 3.5rem clamp(1.5rem, 5vw, 5rem);
  align-self: center;
}
.platform-eyebrow {
  margin: 0 0 1.1rem;
  color: var(--store-green);
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
}
.platform-eyebrow span { padding: 0 0.35rem; color: var(--store-clay); }
.platform-intro h1 {
  max-width: 47rem;
  margin: 0;
  color: var(--store-ink);
  font-size: 3.4rem;
  line-height: 1.06;
  font-weight: 700;
}
.platform-intro h1 span { color: var(--store-green); }
.platform-summary {
  max-width: 34rem;
  margin: 1.2rem 0 1.6rem;
  color: #536159;
  font-size: 0.95rem;
  line-height: 1.7;
}
.platform-primary {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: #fff;
  background: var(--store-green);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 140ms ease;
}
.platform-primary:hover { background: var(--store-green-dark); }
.platform-note {
  min-height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  background: var(--store-green);
}
.platform-note-index { color: #d8a78d; font-size: 0.76rem; font-weight: 700; }
.platform-note > p:first-of-type {
  margin: 1.2rem 0 1.7rem;
  font: 600 1.55rem/1.3 "Manrope", sans-serif;
}
.platform-note-line { height: 1px; margin-bottom: 0.9rem; background: rgba(255,255,255,0.28); }
.platform-note > p:last-child { margin: 0; color: #d8e2dc; font-size: 0.75rem; }
.platform-note > p:last-child span { padding: 0 0.25rem; color: #d8a78d; }
.platform-stores-section { margin-top: 3.5rem; }
.platform-stores-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--store-line);
}
.platform-stores-heading .platform-eyebrow { margin-bottom: 0.4rem; }
.platform-stores-heading h2 { margin: 0; font-size: 1.55rem; font-weight: 700; }
.platform-stores-heading > p { margin: 0 0 0.15rem; color: var(--store-muted); font-size: 0.8rem; }
.platform-stores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}
.platform-stores-grid > a {
  min-height: 12rem;
  padding: 1.2rem !important;
  border: 1px solid var(--store-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.platform-stores-grid > a:hover { border-color: #9db5a5 !important; box-shadow: 0 8px 22px rgba(28, 54, 41, 0.08) !important; }
.platform-stores-grid > a .bg-emerald-50 { background: #e8eee8 !important; color: var(--store-green) !important; border-radius: 6px !important; }
.platform-stores-grid > a h4 { font-size: 0.95rem; }

#storefront-view { padding-top: 1.6rem !important; }
#category-pills { gap: 0.5rem !important; }
.category-pill {
  padding: 0.55rem 1.15rem !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  transition: all 180ms ease !important;
}
.category-pill-active {
  background: var(--store-primary) !important;
  color: var(--store-white) !important;
  border: 1px solid var(--store-primary) !important;
  box-shadow: 0 4px 14px var(--store-primary-glow) !important;
  transform: translateY(-1px);
}
.category-pill-inactive {
  background: var(--store-white) !important;
  color: var(--store-ink) !important;
  border: 1px solid var(--store-line) !important;
}
.category-pill-inactive:hover {
  background: var(--store-primary-subtle) !important;
  color: var(--store-primary) !important;
  border-color: var(--store-primary) !important;
  transform: translateY(-1px);
}
.category-subpill {
  padding: 0.4rem 0.9rem !important;
  border-radius: 9999px !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  transition: all 180ms ease !important;
}
.category-subpill-active {
  background: var(--store-primary-subtle) !important;
  color: var(--store-primary-hover) !important;
  border: 1px solid var(--store-primary) !important;
  font-weight: 800 !important;
}
.category-subpill-inactive {
  background: var(--store-white) !important;
  color: var(--store-muted) !important;
  border: 1px solid var(--store-line) !important;
}
#desktop-filter-sidebar {
  border: 1px solid var(--store-line) !important;
  border-top: 3px solid var(--store-primary) !important;
  border-radius: 12px !important;
  background: var(--store-white) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
}
#items-count-badge { color: var(--store-muted) !important; font-weight: 700 !important; }
#sort-selector { border-radius: 8px !important; border-color: var(--store-line) !important; }

.mobile-bottom-nav {
  border-top: 1px solid var(--store-line);
  background: color-mix(in srgb, var(--store-white) 97%, transparent);
  box-shadow: 0 -3px 14px rgba(29, 41, 36, 0.04);
}
.mobile-bottom-nav button { color: var(--store-muted) !important; }
.mobile-bottom-nav button:last-child { color: var(--store-green) !important; }
html[data-storefront="true"] #mobile-wishlist-toggle { display: flex; }
#mobile-wishlist-toggle[aria-pressed="true"] { color: var(--store-primary) !important; }
.site-footer { border-color: var(--store-line) !important; background: var(--store-white) !important; }
.footer-brand { color: var(--store-muted); font-size: 0.78rem; font-weight: 600; }
.footer-brand { flex-wrap: wrap; justify-content: center; }
.footer-logo-frame,
.header-logo-frame {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 50%;
  background: #fff;
}
.header-logo-frame {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0.28rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
#header-platform-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.footer-logo-frame {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0.2rem;
}
.footer-logo-frame img { width: 100%; height: 100%; border-radius: 50%; }
#footer-store-name { color: var(--store-ink); font-weight: 750; }
#footer-powered-by { color: var(--store-muted); font-weight: 500; }
#footer-powered-by strong { color: var(--store-primary); font-weight: 750; }
#store-admin-footer-btn { color: var(--store-primary) !important; border-color: var(--store-line) !important; }
#store-admin-footer-btn:hover { background: var(--store-primary-subtle) !important; }

@media (max-width: 767px) {
  html[data-storefront="true"] .wishlist-action { display: none; }
  html[data-storefront="true"] .customer-profile-toggle { display: none; }
  html[data-storefront="true"] .customer-orders-shortcut { display: none; }
  .site-header-inner { min-height: 3.8rem; }
  .site-header-inner { gap: 0.45rem; }
  #header-brand { flex: 1 1 0; gap: 0.55rem; min-width: 0; }
  .header-logo-frame { width: 2.35rem; height: 2.35rem; padding: 0.22rem; }
  #header-platform-logo { flex: 0 0 auto; }
  #header-store-identity { max-width: 100%; }
  .header-store-name { font-size: 0.76rem; }
  .header-powered-by { font-size: 0.56rem; }
  .site-header-inner > .flex.items-center.gap-2 { flex: 0 0 auto; gap: 0.4rem; }
  .site-header-inner > .flex.items-center.gap-2 > button { padding-left: 0.55rem; padding-right: 0.55rem; }
  .store-banner.has-banner-image {
    background-image:
      linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.24) 60%, rgba(15, 23, 42, 0.1) 100%),
      var(--store-banner-image);
  }
  .store-banner-inner { min-height: auto; padding-top: 1.6rem; padding-bottom: 1.6rem; align-items: start; flex-direction: column; gap: 1rem; }
  .store-banner h1 { font-size: 1.8rem; line-height: 1.15; }
  #banner-store-desc { margin-top: 0.6rem; font-size: 0.86rem; }
  .store-contact { align-self: start; }
  .platform-home { padding-top: 0; padding-bottom: 2.5rem; }
  .platform-intro { grid-template-columns: 1fr; }
  .platform-intro-copy { padding: 2.5rem 1.35rem 2rem; }
  .platform-intro h1 { font-size: 2.45rem; }
  .platform-summary { font-size: 0.9rem; }
  .platform-note { min-height: 11rem; padding: 1.35rem; }
  .platform-note > p:first-of-type { margin: 0.75rem 0 1rem; font-size: 1.25rem; }
  .platform-stores-section { margin-top: 2.5rem; }
  .platform-stores-heading { align-items: start; flex-direction: column; }
  .platform-stores-grid { grid-template-columns: 1fr; gap: 0.7rem; }
}

@media (max-width: 639px) {
  #super-admin-btn { display: none !important; }
}

.product-card {
  border: 1px solid var(--store-line) !important;
  border-radius: 12px !important;
  background: var(--store-white) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease !important;
  overflow: hidden !important;
}
.product-card:hover {
  border-color: var(--store-primary) !important;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.03) !important;
  transform: translateY(-3px);
}

/* Strict uniform 1:1 aspect ratio: eliminates layout shifts across product photos */
.product-card-media {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: var(--store-media-bg) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 1px solid var(--store-line) !important;
  overflow: hidden !important;
}
.product-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 320ms cubic-bezier(0.2, 0, 0.2, 1) !important;
}
.product-card:hover .product-card-media img {
  transform: scale(1.05) !important;
}
.product-card-media .absolute.top-3 {
  top: 0.65rem;
  right: 0.65rem;
  left: 0.65rem;
}

.item-modal-gallery-stage {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 65vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--store-line);
  border-radius: 12px;
  background: var(--store-media-bg);
}
.item-modal-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.item-modal-gallery-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--store-ink);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  transition: background-color 140ms ease, color 140ms ease;
}
.item-modal-gallery-nav:hover { background: var(--store-primary); color: #ffffff; }
.item-modal-gallery-prev { left: 0.65rem; }
.item-modal-gallery-next { right: 0.65rem; }
.item-modal-image-count {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
}
.item-modal-image-thumbnails {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0.05rem 0.35rem;
}
.item-modal-image-thumbnail {
  flex: 0 0 4.25rem;
  width: 4.25rem;
  height: 3.25rem;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--store-media-bg);
  opacity: 0.72;
  transition: border-color 140ms ease, opacity 140ms ease;
}
.item-modal-image-thumbnail:hover { opacity: 1; }
.item-modal-image-thumbnail.is-active {
  border-color: var(--store-primary);
  opacity: 1;
}
.item-modal-image-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Discount Badge: High-Urgency Red */
.badge-discount-urgent {
  background: var(--store-urgency-red) !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  padding: 0.28rem 0.6rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.28) !important;
  text-transform: uppercase !important;
}

/* Low Stock Warning: Warm Amber */
.badge-low-stock-amber {
  background: var(--store-urgency-amber-bg) !important;
  color: var(--store-urgency-amber) !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 0.25rem 0.6rem !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
}

.product-card-content {
  padding: 0.75rem 0.85rem !important;
}
.product-card-title {
  display: -webkit-box;
  min-height: 2.6em;
  margin: 0 0 0.35rem;
  overflow: hidden;
  color: var(--store-ink);
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  transition: color 150ms ease;
}
.product-card-title:hover {
  color: var(--store-primary);
}
.product-card-specs {
  min-height: 1.3rem;
  margin-bottom: 0.65rem !important;
  gap: 0.3rem 0.5rem !important;
}
.product-card-specs span {
  padding: 0.15rem 0.45rem !important;
  border-radius: 4px !important;
  background: rgba(100, 116, 139, 0.08) !important;
  color: var(--store-muted) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
}
.product-card-footer {
  padding-top: 0.45rem !important;
  border-top: 1px solid var(--store-line) !important;
}
.product-card-price {
  color: var(--store-ink);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.product-card-view {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--store-line);
  border-radius: 8px;
  background: #fff;
  color: var(--store-muted);
  transition: all 160ms ease;
}
.product-card-view:hover {
  border-color: var(--store-primary);
  color: var(--store-primary);
  background: var(--store-primary-subtle);
}

/* High-Prominence Action Button */
.product-card-add {
  min-height: 2.5rem !important;
  border-radius: 8px !important;
  background: var(--store-primary) !important;
  color: var(--store-white) !important;
  box-shadow: 0 3px 10px var(--store-primary-glow) !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.01em !important;
  transition: all 180ms ease !important;
}
.product-card-add:hover {
  background: var(--store-primary-hover) !important;
  box-shadow: 0 6px 16px var(--store-primary-glow) !important;
  transform: translateY(-1px) !important;
}
.product-card-add:active {
  transform: scale(0.97) !important;
}
.product-card-add.product-cart-service {
  background: var(--store-trust-blue) !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}
.product-card-add.product-cart-service:hover {
  background: var(--store-trust-blue-dark) !important;
}

@media (max-width: 639px) {
  .product-card-media {
    padding: 0 !important;
  }
  .product-card-content {
    padding: 0.55rem !important;
  }
  .product-card-title {
    min-height: 2.6em;
    margin-bottom: 0.3rem;
    font-size: 0.82rem !important;
    line-height: 1.3;
  }
  .product-card-price {
    font-size: 0.98rem !important;
  }
  .product-card-add {
    min-height: 2.15rem !important;
    font-size: 0.7rem !important;
  }
}

[data-theme] .bg-emerald-600,
[data-theme] .bg-emerald-500,
[data-theme] .bg-emerald-700 {
  background-color: var(--store-primary) !important;
}
[data-theme] .hover\:bg-emerald-700:hover,
[data-theme] .hover\:bg-emerald-600:hover {
  background-color: var(--store-primary-hover) !important;
}
[data-theme] .text-emerald-600,
[data-theme] .text-emerald-700,
[data-theme] .text-emerald-800 {
  color: var(--store-primary) !important;
}
[data-theme] .border-emerald-100,
[data-theme] .border-emerald-200,
[data-theme] .border-emerald-300 {
  border-color: var(--store-line) !important;
}
[data-theme] .bg-emerald-50,
[data-theme] .bg-emerald-100 {
  background-color: var(--store-primary-subtle) !important;
}
[data-theme] .accent-emerald-600 {
  accent-color: var(--store-primary) !important;
}
}

html[data-custom-accent="true"] {
  --store-primary-hover: color-mix(in srgb, var(--store-primary) 82%, #000);
  --store-primary-subtle: color-mix(in srgb, var(--store-primary) 12%, #fff);
  --store-primary-glow: color-mix(in srgb, var(--store-primary) 28%, transparent);
  --store-green: var(--store-primary);
  --store-green-dark: var(--store-primary-hover);
}

@media (min-width: 768px) {
  html[data-header-variant="centered-brand"] .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  html[data-header-variant="centered-brand"] #desktop-search { grid-column: 1; grid-row: 1; }
  html[data-header-variant="centered-brand"] #header-brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  html[data-header-variant="centered-brand"] .site-header-inner > .flex.items-center.gap-2 {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  html[data-header-variant="minimal-nav"] .site-header-inner { min-height: 3.75rem; }
}

html[data-storefront-type="lifestyle-boutique"] {
  --store-paper: #faf8f4;
  --store-media-bg: #f5f0e9;
  --store-line: #e8dfd3;
}

html[data-storefront-type="single-product-maker"] {
  --store-paper: #f5f6f7;
  --store-ink: #111827;
}

.store-banner .store-tagline {
  margin: 0.6rem 0 0;
  color: var(--store-primary);
  font-size: 1.05rem;
  font-weight: 700;
}
.store-banner .store-tagline.hidden,
.storefront-primary-cta.hidden,
.whatsapp-quick-contact.hidden,
.maker-buy-bar.hidden { display: none; }
.storefront-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--store-primary);
  border-radius: 9999px;
  background: var(--store-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  transition: background-color 160ms ease, transform 160ms ease;
}
.storefront-primary-cta:hover {
  background: var(--store-primary-hover);
  transform: translateY(-1px);
}
.store-banner.has-banner-image .storefront-primary-cta {
  border-color: #fff;
  background: #fff;
  color: var(--store-ink);
}
.store-banner.has-banner-image .storefront-primary-cta:hover { background: #f1f5f9; }

html[data-storefront-type="lifestyle-boutique"] .store-banner-inner {
  min-height: 28rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
html[data-storefront-type="lifestyle-boutique"] .store-banner-copy { max-width: 42rem; }
html[data-storefront-type="lifestyle-boutique"] .store-banner h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
}
html[data-storefront-type="lifestyle-boutique"] .store-banner:not(.has-banner-image) {
  background: linear-gradient(120deg, #f3eadc, #faf8f4 58%, #e8e1d7);
}
html[data-storefront-type="lifestyle-boutique"] .product-card { border-radius: 18px !important; }

html[data-storefront-type="single-product-maker"] .store-banner {
  color: #fff;
  background: #111827;
  border-bottom: 0;
}
html[data-storefront-type="single-product-maker"] .store-banner:not(.has-banner-image) {
  background: radial-gradient(ellipse at 75% 35%, #374151, #111827 68%);
}
html[data-storefront-type="single-product-maker"] .store-banner h1,
html[data-storefront-type="single-product-maker"] .store-banner:not(.has-banner-image) #banner-store-desc {
  color: #fff;
}
html[data-storefront-type="single-product-maker"] .store-banner:not(.has-banner-image) .store-address {
  color: #d1d5db;
}
html[data-storefront-type="single-product-maker"] .store-banner .store-tagline {
  color: #d1d5db;
}
html[data-storefront-type="single-product-maker"] .store-banner.has-banner-image {
  background-image:
    linear-gradient(90deg, rgba(3, 7, 18, 0.76), rgba(3, 7, 18, 0.18)),
    var(--store-banner-image);
}
html[data-storefront-type="single-product-maker"] .whatsapp-quick-contact { bottom: 6rem; }

.storefront-content-intro {
  max-width: 58rem;
  margin: 0 auto 2rem;
  padding: 1.75rem 0 1.4rem;
  border-bottom: 1px solid var(--store-line);
}
.storefront-content-intro .platform-eyebrow { margin-bottom: 0.45rem; }
.storefront-content-intro h2 {
  margin: 0;
  color: var(--store-ink);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 750;
}
.storefront-content-intro > p:last-child {
  max-width: 44rem;
  margin: 0.6rem 0 0;
  color: var(--store-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.product-card-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card-secondary { opacity: 1; }
.product-wishlist {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 9999px;
  background: rgba(255,255,255,0.92);
  color: #475569;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
}
.product-wishlist.is-wishlisted { color: #e11d48; }
.product-wishlist.is-wishlisted svg { fill: currentColor; }

html[data-product-card-style="horizontal-list-row"] #items-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
html[data-product-card-style="horizontal-list-row"] .product-card {
  display: grid !important;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  flex-direction: row;
}
html[data-product-card-style="horizontal-list-row"] .product-card-media {
  aspect-ratio: 4 / 3 !important;
  height: 100% !important;
  border-right: 1px solid var(--store-line) !important;
  border-bottom: 0 !important;
}
html[data-product-card-style="service-card"] .product-card {
  border-top: 3px solid var(--store-primary) !important;
}
html[data-product-card-style="service-card"] .product-card-media {
  aspect-ratio: 4 / 3 !important;
}
html[data-product-card-style="service-card"] .product-card-content { padding: 1.1rem !important; }
html[data-storefront-type="service-portfolio"] .store-banner:not(.has-banner-image) {
  background: linear-gradient(120deg, var(--store-primary-subtle), var(--store-paper) 65%);
}
html[data-storefront-type="service-portfolio"] .storefront-content-intro {
  border-bottom-width: 2px;
}

.whatsapp-quick-contact {
  position: fixed;
  z-index: 45;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background: #15803d;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  box-shadow: 0 8px 22px rgba(15,23,42,0.2);
}
.maker-buy-bar {
  position: fixed;
  z-index: 45;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  max-width: 48rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--store-line);
  border-radius: 14px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 10px 32px rgba(15,23,42,0.18);
  backdrop-filter: blur(14px);
}
.maker-buy-bar > div { display: grid; gap: 0.2rem; min-width: 0; }
.maker-buy-bar strong { overflow: hidden; color: var(--store-ink); font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.maker-buy-bar span { color: var(--store-muted); font-size: 0.76rem; font-weight: 700; }
.maker-buy-bar button {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border-radius: 9px;
  background: var(--store-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 750;
}

html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-900,
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-800,
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-700,
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-600 {
  color: var(--store-ink) !important;
}
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-500,
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .text-slate-400 {
  color: var(--store-muted) !important;
}
html[data-storefront="true"][data-background-tone="dark"] #storefront-view .bg-white {
  background-color: var(--store-white) !important;
}

@media (max-width: 767px) {
  html[data-storefront-type="lifestyle-boutique"] .store-banner-inner {
    min-height: 22rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  html[data-product-card-style="horizontal-list-row"] .product-card-media {
    padding: 0 !important;
  }
  html[data-product-card-style="horizontal-list-row"] .product-card {
    grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr);
  }
  html[data-product-card-style="horizontal-list-row"] .product-card-content {
    min-width: 0;
    padding: 0.55rem !important;
  }
  html[data-product-card-style="horizontal-list-row"] .product-card-title {
    min-height: 0;
    max-height: 2.6em;
  }
  .whatsapp-quick-contact { right: 0.75rem; bottom: 4.5rem; padding: 0.7rem; }
  html[data-storefront-type="single-product-maker"] .whatsapp-quick-contact { bottom: 9rem; }
  .whatsapp-quick-contact span { display: none; }
  .maker-buy-bar { right: 0.65rem; bottom: 4.5rem; left: 0.65rem; }
  .maker-buy-bar strong { max-width: 46vw; }
}
