/* Kei skin for index.php
   - Keeps your existing DMX/data structure intact
   - Overrides visual styles to match `store-front/kei-theme.css` look
   - Uses !important to beat inline <style> blocks inside index.php
*/

/* Ensure kei CSS variables exist even if upstream theme has selector issues */
:root {
  --kei-bg: #070A10;
  --kei-bg-2: #0B1020;
  --kei-card: rgba(255, 255, 255, 0.06);
  --kei-card-2: rgba(255, 255, 255, 0.09);
  --kei-border: rgba(255, 255, 255, 0.12);
  --kei-text: rgba(255, 255, 255, 0.92);
  --kei-muted: rgba(255, 255, 255, 0.7);
  --kei-dim: rgba(255, 255, 255, 0.55);
  --kei-accent: #FF4C3B;
  --kei-accent-2: #FF6B5B;
  --kei-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --kei-radius: 18px;
  --kei-radius-sm: 14px;
}

/* Accessible focus */
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(255, 76, 59, 0.65) !important;
  outline-offset: 2px !important;
}

/* Modern kei premium index layout:
   Hide legacy promo/hero sections that add large whitespace,
   while preserving DMX server connections and cart/login logic. */
body.kei #kei-premium-hero {
  display: none !important;
}

body.kei .category-carousel {
  display: none !important;
}

body.kei .call-section {
  display: none !important;
}

body.kei .style199 {
  display: none !important;
}

body.kei #BeautyDesign {
  display: none !important;
}

body.kei .services-section {
  display: none !important;
}

body.kei .newsletter-section {
  display: none !important;
}

/* Keep products section flush at top after hiding hero */
body.kei #allproductsQuery {
  padding: 16px 0 0 0 !important;
  background: transparent !important;
}

/* boutique.css sets large padding/background on .product-section; neutralize it */
body.kei #allproductsQuery.product-section {
  padding: 16px 0 0 0 !important;
  background: transparent !important;
  margin: 0 !important;
}

body.kei #allproductsQuery #testproductQuery {
  padding: 0.5rem 0.5rem 0 0.5rem !important;
  background: transparent !important;
}

/* customer login include causes an extra full-height block on the page.
   Keep its data/modals working, but remove it from layout flow. */
body.kei #cutomerlogin {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: transparent !important;
  min-height: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important; /* prevent invisible scope overlay from blocking clicks */
}

body.kei #cutomerlogin.cutomerlogin-scope,
body.kei #cutomerlogin .cutomerlogin-scope {
  background-color: transparent !important;
  min-height: 0 !important;
}

/* Re-enable interaction only for actual UI elements */
body.kei #cutomerlogin #GreatHeader,
body.kei #cutomerlogin nav.style276,
body.kei #cutomerlogin .modal,
body.kei #cutomerlogin .offcanvas,
body.kei #cutomerlogin button,
body.kei #cutomerlogin a,
body.kei #cutomerlogin input,
body.kei #cutomerlogin select,
body.kei #cutomerlogin textarea {
  pointer-events: auto !important;
}

/* Ensure login/register modal stack above any custom layers */
body.kei #cutomerlogin .modal {
  z-index: 2000 !important;
}

body.kei .modal-backdrop[data-lexeb-header="1"] {
  z-index: 1990 !important;
}

/* When customer-login is embedded on a page, hide duplicate #org if both exist. */
body.kei:has(#cutomerlogin) #org.navbar {
  display: none !important;
}

/* Ensure customer-login include navbar text stays readable in kei theme */
body.kei #cutomerlogin #GreatHeader {
  background: rgba(7, 10, 16, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.kei #cutomerlogin #GreatHeader .navbar-brand,
body.kei #cutomerlogin nav.style276 .navbar-brand {
  color: #ffffff !important;
}

body.kei #cutomerlogin #GreatHeader a,
body.kei #cutomerlogin nav.style276 a,
body.kei #cutomerlogin nav.style276 .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
}

body.kei #cutomerlogin #GreatHeader .nav-link:hover,
body.kei #cutomerlogin nav.style276 .nav-link:hover {
  color: #ffffff !important;
}


/* Header/nav (guest header from index.php) */
#org.navbar {
  z-index: 1040 !important;
  background: rgba(7, 10, 16, 0.65) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#org .navbar-brand {
  color: var(--kei-text) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

#org .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 800 !important;
}

#org .nav-link:hover,
#org .nav-link.active {
  color: #ffffff !important;
}

#org .categories-dropdown {
  background: rgba(11, 16, 32, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 6px 4px !important;
  overflow: hidden;
}

#org .categories-dropdown .dropdown-item {
  border-radius: 10px !important;
  padding: 10px 12px !important;
  margin: 2px 6px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

#org .categories-dropdown .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

/* Hero */
.hero-content {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: calc(var(--kei-radius) + 4px) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--kei-shadow) !important;
}

.hero-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
}

.hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border: none !important;
  box-shadow: 0 16px 35px rgba(255, 76, 59, 0.2) !important;
}

.hero-btn:hover {
  -webkit-filter: brightness(1.04);
  filter: brightness(1.04);
  transform: translateY(-2px);
}

/* Category carousel section */
.category-carousel {
  background: transparent !important;
  padding: 36px 0 !important;
}

.section-title {
  color: var(--kei-text) !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.category-card {
  border-radius: var(--kei-radius) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25) !important;
}

.category-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent) !important;
}

.category-name {
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.scroll-btn {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.scroll-btn:hover {
  -webkit-filter: brightness(1.04);
  filter: brightness(1.04);
}

/* Product cards (main grid + featured grid) */
.product-card {
  border-radius: var(--kei-radius) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32) !important;
  backdrop-filter: none !important;
  content-visibility: auto;
  contain-intrinsic-size: 380px 340px;
  margin-bottom: 0 !important;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  border-color: rgba(255, 76, 59, 0.30) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45) !important;
}

.product-info {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.20) 0%, rgba(7, 10, 16, 0.55) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

.product-title {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.product-category {
  color: rgba(255, 255, 255, 0.70) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
}

.product-price {
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 950 !important;
}

/* Guest cart add button on product image */
.cart-add-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
}

.cart-add-btn:hover {
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  border-color: rgba(255, 255, 255, 0.30) !important;
}

.quick-view-btn {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px) !important;
}

/* Footer */
.footer-section {
  background: rgba(0, 0, 0, 0.35) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-widget {
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 15px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer-title {
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.footer-link {
  color: rgba(255, 255, 255, 0.70) !important;
  font-weight: 750 !important;
}

.footer-link:hover {
  color: var(--kei-accent) !important;
}

.contact-info i {
  color: var(--kei-accent) !important;
}

.social-link {
  background: rgba(255, 255, 255, 0.08) !important;
}

.social-link:hover {
  -webkit-filter: brightness(1.05);
  filter: brightness(1.05);
}

/* -----------------------------
   Kei-like product grids
   (match kei-theme breakpoints)
   2 columns <576px
   3 columns >=576px
   4 columns >=768px
   5 columns >=992px
   6 columns >=1200px
------------------------------*/
#repeat1pdt,
#repeat2,
#promoted {
  display: grid !important;
  gap: 1rem !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 576px) {
  #repeat1pdt,
  #repeat2,
  #promoted {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) {
  #repeat1pdt,
  #repeat2,
  #promoted {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  #repeat1pdt,
  #repeat2,
  #promoted {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1200px) {
  #repeat1pdt,
  #repeat2,
  #promoted {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Remove bootstrap column widths/gutters so grid sizing is clean */
#repeat1pdt > *,
#repeat2 > *,
#promoted > * {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  flex: initial !important;
}

/* -----------------------------
   Promoted products include skin
   (keeps existing JS hover image alternation)
------------------------------*/
.card.style276 {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: var(--kei-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32) !important;
}

.card.style276:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255, 76, 59, 0.30) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45) !important;
}

.card.style276 .product-image-wrapper {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
}

.card.style276 .product-image-primary,
.card.style276 .product-image-secondary,
.card.style276 .product-image-tertiary,
.card.style276 .product-image-quaternary {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  transition: opacity 0.5s ease !important;
  margin: 0 !important;
}

.card.style276 .product-image-primary {
  position: relative !important;
  opacity: 1 !important;
}

.card.style276 .product-image-secondary,
.card.style276 .product-image-tertiary,
.card.style276 .product-image-quaternary {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
}

.card.style276 .card-body {
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.20) 0%, rgba(7, 10, 16, 0.55) 100%) !important;
}

.card.style276 .card-title {
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.card.style276 .card-text {
  color: rgba(255, 255, 255, 0.70) !important;
}

.product-price-badge {
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  box-shadow: 0 12px 30px rgba(255, 76, 59, 0.25) !important;
}

.card.style276 .floating-cta-badge {
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  color: #fff !important;
  box-shadow: 0 6px 22px rgba(0, 210, 106, 0.25) !important;
}

.card.style276 .floating-cta-badge:hover {
  transform: translateX(-50%) translateY(-2px) !important;
  filter: brightness(1.04) !important;
}

/* -----------------------------
   Top stores include skin
   (the include has its own <body id="topstores">)
------------------------------*/
#topstores .ts-section {
  padding: 3rem 0 3.5rem !important;
}

#topstores .ts-heading,
#topstores .ts-sub {
  color: #ffffff !important;
}

#topstores .ts-sub {
  color: rgba(255, 255, 255, 0.70) !important;
}

#topstores .ts-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.30) !important;
}

#topstores .ts-card::before {
  background: linear-gradient(
    135deg,
    rgba(255, 76, 59, 0.12) 0%,
    rgba(255, 107, 91, 0.06) 100%
  ) !important;
}

#topstores .ts-name {
  color: rgba(255, 255, 255, 0.90) !important;
}

#topstores .ts-avatar {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#topstores .ts-badge {
  color: rgba(255, 255, 255, 0.70) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#topstores .ts-tile:hover .ts-card {
  border-color: rgba(255, 76, 59, 0.30) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45) !important;
}

#topstores .ts-tile:hover .ts-badge {
  background: linear-gradient(135deg, var(--kei-accent), var(--kei-accent-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

/* Index embed: same store grid styles as #topstores */
#kei-top-stores .ts-section {
  padding: 2.5rem 0 2rem !important;
}

#kei-top-stores .ts-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin-bottom: 0.35rem !important;
}

#kei-top-stores .ts-sub {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  margin-bottom: 0 !important;
}

#kei-top-stores .ts-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 1rem !important;
  padding: 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

#kei-top-stores .ts-tile {
  width: 120px !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

@media (max-width: 480px) {
  #kei-top-stores .ts-tile {
    width: 90px !important;
  }
}

@media (min-width: 768px) {
  #kei-top-stores .ts-tile {
    width: 130px !important;
  }
}

@media (min-width: 1024px) {
  #kei-top-stores .ts-tile {
    width: 140px !important;
  }
}

#kei-top-stores .ts-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 20px !important;
  padding: 1rem 0.75rem 0.85rem !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  width: 100% !important;
}

#kei-top-stores .ts-tile:hover .ts-card {
  transform: translateY(-5px) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 76, 59, 0.35) !important;
}

#kei-top-stores .ts-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin-bottom: 0.65rem !important;
}

#kei-top-stores .ts-avatar img {
  width: 82% !important;
  height: 82% !important;
  object-fit: contain !important;
}

#kei-top-stores .ts-name {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center !important;
  line-height: 1.3 !important;
  margin-bottom: 0.45rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

#kei-top-stores .ts-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.85) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 999px !important;
  padding: 0.2rem 0.55rem !important;
}

/* -----------------------------
   All Products section (allproductsQuery)
   Redesign to match kei-theme cards.
   Important: index.php has inline CSS that forces white look for #repeat1pdt,
   so we override those rules here (without changing DMX logic/hover behavior).
------------------------------*/
#allproductsQuery {
  padding-top: 0 !important;
}

#allproductsQuery #testproductQuery {
  padding: 0 !important;
  max-width: 100% !important;
}

#allproductsQuery #repeat1pdt {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Bootstrap row utilities may inject negative margins/padding; neutralize them for clean grid. */
#allproductsQuery #repeat1pdt.row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}

/* Make the bootstrap column wrapper behave like a plain grid item. */
#allproductsQuery #repeat1pdt > .style1536 {
  padding: 0 !important;
  margin: 0 !important;
  flex: initial !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

/* Base card look */
#allproductsQuery #repeat1pdt .product-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32) !important;
}

#allproductsQuery #repeat1pdt .product-info {
  padding: 20px !important;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(43, 43, 43, 0.95) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
}

#allproductsQuery #repeat1pdt .product-title {
  color: #ffffff !important;
  text-shadow: none !important;
  font-weight: 900 !important;
}

#allproductsQuery #repeat1pdt .product-category {
  color: rgba(255, 255, 255, 0.70) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

#allproductsQuery #repeat1pdt .product-price {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Kei-theme-like action button (keep same click handler, just change visuals/position). */
#allproductsQuery #repeat1pdt .cart-add-btn {
  opacity: 1 !important; /* always visible like kei screenshot */
  transform: none !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  width: auto !important;
  height: 34px !important;
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%) !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  box-shadow: 0 10px 25px rgba(0, 210, 106, 0.25) !important;
}

#allproductsQuery #repeat1pdt .cart-add-btn i {
  font-size: 14px !important;
}

/* Add button text without touching markup/logic */
#allproductsQuery #repeat1pdt .cart-add-btn::after {
  content: "Buy";
  font-weight: 900;
  letter-spacing: 0.2px;
  font-size: 12px;
  color: #fff;
}

/* Override the original inline hover behavior so the button stays green (kei-like). */
#allproductsQuery #repeat1pdt .cart-add-btn:hover {
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%) !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: 0 10px 25px rgba(0, 210, 106, 0.25) !important;
}

/* Keep the existing hover-to-image swap effect; don't change button behavior on hover. */
#allproductsQuery #repeat1pdt .product-card:hover .cart-add-btn {
  transform: none !important;
  opacity: 1 !important;
}

/* Kei screenshot doesn't show quick view button. Hide it (styling only). */
#allproductsQuery #repeat1pdt .quick-view-btn {
  display: none !important;
}

/* Hover should keep kei look (but we keep the image swap effect from index.php) */
#allproductsQuery #repeat1pdt .product-card:hover {
  border-color: rgba(255, 76, 59, 0.30) !important;
}

#allproductsQuery #repeat1pdt .product-card:hover .product-info {
  background: linear-gradient(135deg, rgba(43, 43, 43, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%) !important;
}

#allproductsQuery #repeat1pdt .product-card:hover .product-title {
  color: #ffffff !important;
}

#allproductsQuery #repeat1pdt .product-card:hover .product-category {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* -----------------------------
   New kei-products-grid markup
   (we upgraded #allproductsQuery cards)
------------------------------*/
body.kei #allproductsQuery .kei-product-title {
  color: #ffffff !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.kei #allproductsQuery .kei-product-price {
  font-size: 15px !important;
  font-weight: 1000 !important;
  display: inline-block !important;
  transform-origin: center;
  animation: keiPricePulse 2.6s ease-in-out infinite;
}

body.kei #allproductsQuery .kei-product-card:hover .kei-product-price {
  animation-duration: 1.8s;
}

@keyframes keiPricePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Pagination styling: blend with kei theme */
#pagination .pagination .page-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.75rem !important;
  box-shadow: none !important;
}

#pagination .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--kei-accent) 0%, var(--kei-accent-2) 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

#pagination .pagination .page-link:hover {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

#pagination .pagination .page-item.disabled .page-link {
  opacity: 0.45 !important;
  pointer-events: none !important;
}

/* Modern ecommerce font */
body.kei {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji',
    'Segoe UI Emoji' !important;
}

/* Strong heading visibility */
body.kei .kei-results-title,
body.kei .kei-extra-card-title,
body.kei .section-title {
  color: #ffffff !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.kei .kei-results-subtitle,
body.kei .kei-extra-card-subtitle,
body.kei .kei-stripe-banner-subtext,
body.kei .kei-hero-rotator-subtitle {
  color: rgba(255, 255, 255, 0.80) !important;
}

/* Reveal on scroll — fast, crisp “iOS sheet” feel */
.kei-reveal:not(.kei-revealed) {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.28s ease;
  will-change: opacity, transform, filter;
}

.kei-reveal.kei-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .kei-reveal:not(.kei-revealed),
  .kei-reveal.kei-revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Rotating top hero banner — single fixed #org; no extra placeholder header */
.kei-hero-rotator {
  position: relative;
  width: 100%;
  margin-top: 56px;
  padding: 14px 0 10px;
}

.kei-hero-rotator-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.kei-hero-rotator-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.kei-hero-rotator-overlay {
  position: relative;
  z-index: 2;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.kei-hero-rotator-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 10, 16, 0.35) 0%, rgba(7, 10, 16, 0.22) 45%, rgba(7, 10, 16, 0.10) 100%),
    radial-gradient(900px 280px at 15% 20%, rgba(255, 76, 59, 0.20), transparent 55%),
    radial-gradient(700px 260px at 85% 30%, rgba(255, 107, 91, 0.12), transparent 60%);
  z-index: -1;
}

.kei-hero-rotator-card {
  width: 100%;
  max-width: 520px;
  background: rgba(7, 10, 16, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

.kei-hero-rotator-title {
  font-weight: 1000 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3vw, 40px);
  margin-bottom: 6px;
}

.kei-hero-rotator-subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 650;
  line-height: 1.5;
  margin-bottom: 16px;
}

.kei-hero-visual-empty {
  min-height: 220px;
}

/* Horizontal stripe CTA banner */
.kei-stripe-banner {
  position: relative;
  margin-top: 0.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.kei-stripe-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 76, 59, 0.28) 0%, rgba(255, 107, 91, 0.14) 35%, rgba(0, 210, 106, 0.18) 75%, rgba(255, 76, 59, 0.25) 100%);
  filter: saturate(1.1);
}

.kei-stripe-banner-inner {
  position: relative;
  z-index: 2;
  padding: 10px 0;
}

.kei-marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.kei-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  animation: keiMarqueeMove 20s linear infinite;
}

.kei-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.25px;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%);
  white-space: nowrap;
}

.kei-marquee-item::after {
  content: "";
}

.kei-marquee-item::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 1000;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* High-contrast alternating "pop" colors */
.kei-marquee-item:nth-child(3n+1) {
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%);
}

.kei-marquee-item:nth-child(3n+2) {
  background: linear-gradient(135deg, #FF4C3B 0%, #FF6B5B 100%);
}

.kei-marquee-item:nth-child(3n+3) {
  background: linear-gradient(135deg, #5865F2 0%, #7A86FF 100%);
}

.kei-stripe-banner-text {
  color: #ffffff !important;
  font-weight: 950;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  font-size: 13px;
}

.kei-stripe-banner-subtext {
  color: rgba(255, 255, 255, 0.76) !important;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}

.kei-stripe-banner-badge {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff !important;
  padding: 10px 14px;
  font-weight: 950;
}

@keyframes keiMarqueeMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 991.98px) {
  .kei-hero-rotator-overlay {
    min-height: 190px;
  }

  .kei-hero-rotator-card {
    max-width: 100%;
    padding: 16px 14px;
    background: rgba(7, 10, 16, 0.84);
  }
}


/* Premium extra sections (conversion-focused) */
.kei-extra-section {
  padding: 1.25rem 0;
}

.kei-perks .kei-extra-card,
.kei-reviews .kei-review-card,
.kei-newsletter .kei-newsletter-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25) !important;
}

.kei-perks .kei-extra-card {
  padding: 18px;
  height: 100%;
}

.kei-extra-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 76, 59, 0.22) 0%, rgba(255, 107, 91, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  margin-bottom: 12px;
}

.kei-extra-card-title {
  color: #ffffff;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.kei-extra-card-subtitle {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 650;
  font-size: 13px;
  line-height: 1.45;
}

.kei-reviews .kei-review-card {
  padding: 18px;
  height: 100%;
}

.kei-review-stars {
  color: #FFB020;
  font-weight: 1000;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-size: 14px;
}

.kei-review-text {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 750;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.kei-review-name {
  color: rgba(255, 255, 255, 0.70);
  font-weight: 800;
  font-size: 12px;
}

.kei-newsletter .kei-newsletter-card {
  padding: 16px;
  background:
    radial-gradient(900px 240px at 15% 0%, rgba(255, 76, 59, 0.18), transparent 55%),
    radial-gradient(600px 240px at 95% 10%, rgba(255, 107, 91, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.05) !important;
}

.kei-newsletter-input {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  padding: 0.75rem 1.1rem !important;
}

.kei-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

