/* ==========================================================================
   SELORMART — Storefront Commerce Global CSS
   Styles for tenant storefronts, product detail pages, and category views
   ========================================================================== */

:root {
  --container-max-width: 1280px;
  --container-padding: clamp(16px, 3vw, 40px);
}

.site-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  box-sizing: border-box;
}

.full-width-section {
  width: 100%;
}

.full-width-section__content {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  box-sizing: border-box;
}

.storefront-page-root {
  width: 100%;
  overflow-x: hidden;
}

/* Commerce Links hidden utility */
.commerce-links {
  display: none !important;
}

/* Base Storefront Layout Containers */
.commerce-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.commerce-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.commerce-breadcrumb a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.commerce-breadcrumb a:hover {
  color: var(--store-theme-color, #4f46e5);
}

.commerce-breadcrumb i {
  font-size: 10px;
  color: #94a3b8;
}

.commerce-breadcrumb .current {
  color: #0f172a;
  font-weight: 600;
}

/* Image containment rules to prevent raw SVG / unconstrained image overflow */
.commerce-detail-main,
#mainResaleImage {
  max-width: 100% !important;
  max-height: 480px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
}

/* Stepper styles */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.qty-stepper button {
  width: 38px;
  height: 40px;
  border: none;
  background: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-stepper button:hover {
  background: #e2e8f0;
}

.qty-stepper input {
  width: 52px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

/* Storefront Search Bar Design */
.storefront-search-wrap {
  flex: 1;
  max-width: 580px;
  min-width: 0;
  margin: 0 16px;
  position: relative;
}

.storefront-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 2px solid var(--store-theme-color, #2563eb);
  border-radius: 999px;
  padding: 4px 5px 4px 18px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.storefront-search-form:hover {
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.storefront-search-form:focus-within {
  border-color: var(--store-theme-color, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), 0 8px 25px -4px rgba(37, 99, 235, 0.22);
}

.storefront-search-lead-icon {
  font-size: 15px;
  color: var(--store-theme-color, #2563eb);
  flex-shrink: 0;
  margin-right: 4px;
  transition: transform 0.2s ease;
}
.storefront-search-form:focus-within .storefront-search-lead-icon {
  transform: scale(1.1);
}

.storefront-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  box-sizing: border-box;
}
.storefront-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.storefront-search-btn {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 2;
}
.storefront-search-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  opacity: 0.96;
}
.storefront-search-btn i {
  font-size: 13px;
}
@media (max-width: 640px) {
  .storefront-search-btn .sf-search-btn-label {
    display: none;
  }
  .storefront-search-btn {
    padding: 0 12px;
    width: 38px;
  }
}

.storefront-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.06);
  z-index: 1200;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  text-align: left;
  animation: sfDropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}
.storefront-search-suggestions::-webkit-scrollbar {
  width: 6px;
}
.storefront-search-suggestions::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.storefront-search-suggestions.show {
  display: block;
}

@keyframes sfDropFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Empty State Card */
.sf-suggest-empty-card {
  padding: 30px 20px 24px;
  text-align: center;
  background: #ffffff;
}
.sf-empty-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}
.sf-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 5px;
}
.sf-empty-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px;
  line-height: 1.5;
}
.sf-empty-desc strong {
  color: #0f172a;
  font-weight: 600;
}
.sf-empty-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #475569;
}
.sf-empty-tip i {
  color: #eab308;
}

/* Header */
.sf-suggest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.sf-suggest-header-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sf-suggest-header-title i {
  color: var(--store-theme-color, #2563eb);
}
.sf-suggest-count-badge {
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Category Chips Strip */
.sf-suggest-categories-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}
.sf-suggest-cat-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 2px;
}
.sf-suggest-cat-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 10px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.sf-suggest-cat-pill:hover {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  border-color: var(--store-theme-color, #2563eb);
}

/* List Items */
.sf-suggest-list {
  padding: 6px;
}
.storefront-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 2px;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.15s ease;
  position: relative;
}
.storefront-suggest-item:hover {
  background: #f8fafc;
  transform: translateX(2px);
  color: #0f172a;
}
.sf-suggest-img-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
  overflow: hidden;
}
.sf-suggest-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.storefront-suggest-item:hover .sf-suggest-img-box img {
  transform: scale(1.08);
}
.storefront-suggest-meta {
  flex: 1;
  min-width: 0;
}
.storefront-suggest-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.storefront-suggest-item:hover .storefront-suggest-title {
  color: var(--store-theme-color, #2563eb);
}
.sf-suggest-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
}
.storefront-suggest-price {
  font-size: 14px;
  font-weight: 800;
  color: #059669;
  flex-shrink: 0;
  margin-left: 8px;
}
.sf-suggest-arrow {
  font-size: 11px;
  color: #cbd5e1;
  margin-left: 6px;
  transition: transform 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.storefront-suggest-item:hover .sf-suggest-arrow {
  color: var(--store-theme-color, #2563eb);
  transform: translateX(3px);
}

/* Footer View All */
.sf-suggest-footer {
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}
.sf-view-all-results-btn {
  width: 100%;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sf-view-all-results-btn:hover {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  border-color: var(--store-theme-color, #2563eb);
}

/* Global Header Badge Enhancements */
#wishlistBtn, #cartBtn, .sf-action-btn,
.fp-action-btn, .vm-action-btn, .ga-action-btn, .am-action-link, .hc-action-btn, .mm-action-btn {
  position: relative !important;
}
#wishlistCount, #cartCount,
.mm-badge, .fp-action-badge, .vm-badge, .ga-badge, .am-badge, .hc-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 9999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22) !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  text-align: center !important;
  font-family: inherit !important;
  z-index: 10 !important;
}
#wishlistCount {
  background: #e11d48 !important;
  color: #ffffff !important;
}
#cartCount {
  background: var(--store-theme-color, var(--accent, #e31e24)) !important;
  color: #ffffff !important;
}

/* Main Site Header Icon-Action Badge Positioning */
.site-header .icon-action,
.site-header #wishlistBtn,
.site-header #cartBtn {
  position: relative !important;
}
.site-header .icon-action .icon-wrap,
#wishlistBtn .icon-wrap,
#cartBtn .icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}
.site-header .icon-action .icon-wrap i,
#wishlistBtn .icon-wrap i,
#cartBtn .icon-wrap i {
  font-size: 20px !important;
  line-height: 1 !important;
}
.site-header .icon-action .icon-wrap .count,
#wishlistBtn .icon-wrap #wishlistCount,
#cartBtn .icon-wrap #cartCount {
  position: absolute !important;
  top: -7px !important;
  right: -10px !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border-radius: 9999px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22) !important;
  z-index: 10 !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.site-header .icon-action:hover .icon-wrap .count {
  transform: scale(1.15) !important;
}

@keyframes badgePopAnim {
  0% { transform: scale(0.65); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.badge-pop {
  animation: badgePopAnim 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ==========================================================================
   Storefront Unified Modern Footer
   ========================================================================== */
.storefront-footer {
  background: #0b1118;
  color: #94a3b8;
  font-size: 13.5px;
  border-top: 4px solid var(--store-theme-color, #2563eb);
  margin-top: 60px;
  padding-top: 55px;
  position: relative;
}

.storefront-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.storefront-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 36px;
  margin-bottom: 45px;
}

@media (max-width: 992px) {
  .storefront-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .storefront-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.sf-foot-col-brand h3 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-foot-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.sf-foot-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sf-foot-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-foot-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 18px;
  max-width: 380px;
}
.sf-foot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sf-foot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 600;
}
.sf-foot-chip i {
  color: var(--store-theme-color, #38bdf8);
}

.sf-foot-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sf-foot-title::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--store-theme-color, #2563eb);
  border-radius: 2px;
}

.sf-foot-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sf-foot-nav a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.sf-foot-nav a:hover {
  color: #ffffff;
  transform: translateX(4px);
}
.sf-foot-nav a i {
  font-size: 11px;
  color: #64748b;
  transition: color 0.2s ease;
}
.sf-foot-nav a:hover i {
  color: var(--store-theme-color, #38bdf8);
}

/* Contact / Assistance Column */
.sf-foot-contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-foot-phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}
.sf-foot-phone-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.sf-foot-phone-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  color: var(--store-theme-color, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sf-foot-phone-card small {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.sf-foot-phone-card strong {
  font-size: 14px;
  color: #ffffff;
}

.sf-foot-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}
.sf-foot-wa-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  color: #ffffff;
}
.sf-foot-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Bottom Bar */
.storefront-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #64748b;
}
.storefront-footer-bottom strong {
  color: #cbd5e1;
}
.sf-foot-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sf-pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  color: #0f172a;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Storefront Product Card Wishlist & Add-to-Cart Icons
   ========================================================================== */
.modern-wishlist-fab, .hc-card-heart, .fp-card-heart, .am-card-heart, .vm-card-heart, .ga-card-heart, .jfy-wish {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  z-index: 6 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
  padding: 0 !important;
}
.modern-wishlist-fab:hover, .hc-card-heart:hover, .fp-card-heart:hover, .am-card-heart:hover, .vm-card-heart:hover, .ga-card-heart:hover,
.modern-wishlist-fab.active, .hc-card-heart.active, .fp-card-heart.active, .am-card-heart.active, .vm-card-heart.active, .ga-card-heart.active,
.jfy-wish:hover, .jfy-wish.active {
  background: #ffffff !important;
  color: #ef4444 !important;
  border-color: #fecaca !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
}

.modern-btn-add, .hc-btn-add, .fp-btn-add, .am-btn-addbag, .vm-card-btn-buy, .ga-btn-add, .jfy-addcart {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.modern-btn-add:hover, .hc-btn-add:hover, .fp-btn-add:hover, .am-btn-addbag:hover, .vm-card-btn-buy:hover, .ga-btn-add:hover, .jfy-addcart:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16) !important;
}

/* ==========================================================================
   Storefront Mobile Bottom Bar & Mobile Responsiveness
   ========================================================================== */
.storefront-mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px !important;
  }
  /* Mobile header layout & controls */
  .sf-actions, .site-header .header-actions {
    display: none !important;
  }
  .storefront-search-wrap {
    display: none !important;
  }
  .sf-mobile-only {
    display: flex !important;
  }
  .sf-mobile-search-row {
    display: block !important;
    width: 100% !important;
  }
  .sf-subnav-strip {
    display: block !important;
    padding: 6px 0 !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .sf-subnav-container {
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 6px !important;
    padding: 2px 12px !important;
  }
  .sf-subnav-link {
    font-size: 11.5px !important;
    padding: 5px 12px !important;
  }
  .whatsapp-floating-wrap {
    bottom: 74px !important;
    right: 14px !important;
  }
  .whatsapp-floating-btn {
    width: 46px !important;
    height: 46px !important;
    font-size: 24px !important;
  }
  .to-top {
    bottom: 74px !important;
    left: 14px !important;
    right: auto !important;
  }
  .storefront-mobile-nav {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08) !important;
    padding: 6px 6px max(6px, env(safe-area-inset-bottom)) !important;
  }
  .sf-bottom-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  .sf-bottom-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    gap: 3px !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    padding: 4px 2px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
  }
  .sf-bottom-item i {
    font-size: 18px !important;
    transition: transform 0.2s ease !important;
  }
  .sf-bottom-item:hover, .sf-bottom-item.active {
    color: var(--store-theme-color, #2563eb) !important;
  }
  .sf-bottom-item:hover i, .sf-bottom-item.active i {
    transform: translateY(-2px) !important;
  }
  .sf-bottom-item.sf-bottom-wa {
    color: #16a34a !important;
  }
  .sf-bottom-item.sf-bottom-wa:hover {
    color: #15803d !important;
  }
  .sf-bottom-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sf-bottom-badge {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 9999px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
  }
  #mWishCount.sf-bottom-badge {
    background: #ef4444 !important;
  }
  #mCartCount.sf-bottom-badge {
    background: var(--store-theme-color, #2563eb) !important;
  }

  /* Product Catalog Grid: 2 columns on mobile */
  .modern-cards-grid, .vm-catalog-grid, .fp-product-grid, .am-catalog-grid, .hc-catalog-grid, .ga-catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }
  .modern-card, .vm-card, .fp-card, .am-card, .hc-card, .ga-card {
    border-radius: 14px !important;
  }
  .modern-card-body, .vm-card-body, .fp-card-body, .am-card-body, .hc-card-body, .ga-card-body {
    padding: 10px 10px 12px !important;
  }
  .modern-card-title, .vm-card-title, .fp-card-title, .am-card-title, .hc-card-title, .ga-card-title {
    font-size: 13px !important;
    line-height: 1.35 !important;
    height: 35px !important;
    margin-bottom: 6px !important;
  }
  .modern-btn-add, .hc-btn-add, .fp-btn-add, .am-btn-addbag, .vm-card-btn-buy, .ga-btn-add, .jfy-addcart {
    font-size: 11.5px !important;
    padding: 8px 10px !important;
    gap: 5px !important;
  }
  .modern-wishlist-fab, .hc-card-heart, .fp-card-heart, .am-card-heart, .vm-card-heart, .ga-card-heart {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    top: 8px !important;
    right: 8px !important;
  }

  /* Footer Mobile Optimization: Hide duplicated links on mobile */
  .sf-foot-col-links {
    display: none !important;
  }
  .storefront-footer {
    padding-top: 32px !important;
    margin-top: 36px !important;
  }
  .storefront-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }
  .storefront-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   Mobile Bottom-to-Top Search Sheet
   ========================================================================== */
.sf-search-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 25000 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-search-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sf-search-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28);
  z-index: 25001 !important;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}
.sf-search-sheet.active {
  transform: translateY(0);
}

.sf-sheet-drag-handle {
  width: 100%;
  padding: 10px 0 4px;
  display: flex;
  justify-content: center;
  cursor: grab;
}
.sf-sheet-drag-handle span {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: #cbd5e1;
}

.sf-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.sf-sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.sf-sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sf-sheet-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sf-sheet-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sf-sheet-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.sf-sheet-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sf-sheet-input-wrap:focus-within {
  border-color: var(--store-theme-color, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.sf-sheet-input-lead {
  color: #94a3b8;
  font-size: 15px;
  margin-right: 8px;
}
.sf-sheet-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 0;
  font-size: 15px;
  color: #0f172a;
  font-weight: 500;
}
.sf-sheet-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}
.sf-sheet-clear-btn:hover {
  color: #475569;
}
.sf-sheet-submit-btn {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 0 18px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.sf-sheet-submit-btn:active {
  transform: scale(0.97);
}

.sf-sheet-quick-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.sf-sheet-quick-strip::-webkit-scrollbar {
  display: none;
}
.sf-sheet-quick-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.sf-sheet-quick-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 11px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.sf-sheet-quick-pill:hover {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  border-color: var(--store-theme-color, #2563eb);
}

.sf-sheet-results-wrap {
  min-height: 180px;
  max-height: 50vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sf-sheet-results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 16px;
  color: #94a3b8;
  gap: 8px;
}
.sf-sheet-results-placeholder i {
  font-size: 28px;
  opacity: 0.5;
}
.sf-sheet-results-placeholder p {
  font-size: 13px;
  margin: 0;
}

/* ==========================================================================
   GLOBAL STOREFRONT THEME PRODUCT CARDS
   Ensures cards on Category and Products pages match home page styling 100%
   ========================================================================== */

/* --- 1. Modern / Default Template Cards (.modern-card) --- */
.modern-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .modern-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .modern-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .modern-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

.modern-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.2);
  border-color: var(--store-theme-color, #2563eb);
}
.modern-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modern-card-img-wrap > a {
  display: block;
  width: 100%;
  height: 100%;
}
.modern-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modern-card:hover .modern-card-img-wrap img {
  transform: scale(1.08);
}
.modern-pick-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  z-index: 3;
}
.modern-discount-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 3;
}
.modern-wishlist-fab {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.modern-wishlist-fab:hover, .modern-wishlist-fab.active {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
}
.modern-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.modern-cat-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--store-theme-color, #2563eb);
  margin-bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.modern-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  transition: color 0.2s ease;
}
.modern-card-title:hover {
  color: var(--store-theme-color, #2563eb);
}
.modern-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.modern-price {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}
.modern-mrp {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 4px;
}
.modern-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.modern-btn-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  background: linear-gradient(135deg, var(--store-theme-color, #2563eb) 0%, #1e293b 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.modern-btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* --- 2. Fashion Template Cards (.am-card) --- */
.am-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .am-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .am-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .am-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
.am-card {
  background: #ffffff;
  border: 1px solid #ECE7E1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(27, 25, 25, 0.03);
}
.am-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(27, 25, 25, 0.09);
  border-color: #D6CBC0;
}
.am-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FBF9F6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #F0EBE4;
}
.am-card-img-wrap > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  text-decoration: none;
}
.am-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.am-card:hover .am-card-img-wrap img {
  transform: scale(1.06);
}
.am-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #1B1919;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.am-badge-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #E5DFD7;
  color: #4a423a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.am-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1B1919;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.am-card-heart:hover, .am-card-heart.active {
  color: #ef4444;
  background: #ffffff;
  transform: scale(1.1);
  border-color: #fecaca;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.18);
}
.am-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}
.am-card-category {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #8C827A;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.am-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1B1919;
  margin: 0 0 8px;
  text-decoration: none;
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.am-card-title:hover {
  color: #736B63;
}
.am-card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.am-price-current {
  font-size: 16px;
  font-weight: 800;
  color: #1B1919;
}
.am-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}
.am-badge-save {
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
}
.am-card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px dashed #EDE8E3;
}
.am-real-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}
.am-real-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}
.am-swatch-more {
  font-size: 10px;
  color: #736B63;
  font-weight: 700;
}
.am-rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #736B63;
}
.am-star-icon {
  color: #f59e0b;
  font-size: 12px;
}
.am-rating-val {
  font-weight: 700;
  color: #1B1919;
}
.am-rating-cnt {
  font-size: 10.5px;
  color: #94a3b8;
}
.am-stock-status {
  font-size: 10.5px;
  font-weight: 600;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.am-btn-addbag {
  width: 100%;
  margin-top: auto;
  background: #1B1919;
  border: 1.5px solid #1B1919;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}
.am-btn-addbag:hover {
  background: #383434;
  border-color: #383434;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 25, 25, 0.15);
}

/* --- 3. Electronics Template Cards (.vm-card) --- */
.vm-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .vm-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .vm-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .vm-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.vm-card {
  background: #0f172a;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.vm-card:hover {
  border-color: #00e5ff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.2);
}
.vm-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
}
.vm-card-img-wrap > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 14px;
  text-decoration: none;
}
.vm-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.vm-card:hover .vm-card-img-wrap img {
  transform: scale(1.06);
}
.vm-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
}
.vm-card-heart:hover, .vm-card-heart.active {
  color: #ef4444;
  border-color: #ef4444;
  background: #ffffff;
  transform: scale(1.1);
}
.vm-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #0f172a;
}
.vm-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #00e5ff;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vm-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  text-decoration: none;
  line-height: 1.4;
  height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}
.vm-card-title:hover {
  color: #00e5ff;
}
.vm-card-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}
.vm-card-price {
  font-size: 16.5px;
  font-weight: 900;
  color: #00e5ff;
  margin-bottom: 0;
  font-family: 'JetBrains Mono', Consolas, monospace;
}
.vm-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.vm-card-meta .vm-rating {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vm-card-meta .vm-stock-status {
  font-size: 10.5px;
  font-weight: 600;
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.vm-card-btn-buy {
  width: 100%;
  background: #00e5ff;
  color: #020617;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.vm-card-btn-buy:hover {
  background: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
}

/* --- 4. Grocery Template Cards (.fp-card) --- */
.fp-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .fp-products-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .fp-products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .fp-products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.fp-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.fp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(45, 106, 79, 0.12);
  border-color: #b7e4c7;
}
.fp-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 10px;
}
.fp-card:hover .fp-card-img-wrap img {
  transform: scale(1.05);
}
.fp-badge-organic {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(45, 106, 79, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 4;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fp-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.fp-card-heart:hover, .fp-card-heart.active {
  color: #ef4444;
  transform: scale(1.1);
}
.fp-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.fp-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}
.fp-meta-unit {
  color: #1b4332;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fp-meta-rating {
  color: #b45309;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.fp-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-card-title:hover {
  color: #16a34a;
}
.fp-card-price {
  font-size: 16px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 10px;
}
.fp-btn-add {
  width: 100%;
  background: #ea580c;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 9px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.fp-btn-add:hover {
  background: #c2410c;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}

/* --- 5. Beauty Template Cards (.ga-squircle-card) --- */
.ga-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .ga-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .ga-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .ga-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.ga-squircle-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #fed7aa;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.ga-squircle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(224, 144, 124, 0.18);
}
.ga-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px 24px 0 0;
  padding: 14px;
  background: #FFFDF9;
}
.ga-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.ga-squircle-card:hover .ga-card-img-wrap img {
  transform: scale(1.05);
}
.ga-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #fed7aa;
  color: #78350f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}
.ga-card-heart:hover, .ga-card-heart.active {
  color: #ef4444;
  transform: scale(1.1);
}
.ga-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.ga-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
}
.ga-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #451a03;
  margin: 0 0 4px;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ga-card-price {
  font-size: 16px;
  font-weight: 900;
  color: #78350f;
  margin-bottom: 8px;
}
.ga-btn-add {
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ga-btn-add:hover {
  background: #c2410c;
  transform: translateY(-2px);
}

/* --- 6. Home Decor Template Cards (.hc-card) --- */
.hc-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
@media (max-width: 1400px) {
  .hc-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
@media (max-width: 992px) {
  .hc-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .hc-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.hc-card {
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.hc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 33, 29, 0.12);
}
.hc-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fbfbfa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.hc-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.hc-card:hover .hc-card-img-wrap img {
  transform: scale(1.05);
}
.hc-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e7e5e4;
  color: #44403c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}
.hc-card-heart:hover, .hc-card-heart.active {
  color: #ef4444;
  transform: scale(1.1);
}
.hc-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.hc-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #292524;
  margin: 0 0 4px;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-card-material {
  font-size: 11px;
  color: #78716c;
  font-weight: 700;
  margin-bottom: 6px;
}
.hc-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #292524;
  margin-bottom: 10px;
}
.hc-btn-add {
  background: #78350f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hc-btn-add:hover {
  background: #451a03;
  transform: translateY(-2px);
}

/* ==========================================================================
   STOREFRONT CATEGORY & FILTERING TWO-COLUMN LAYOUT
   Matches Main Domain Category page + Mobile Bottom-to-Top Sheet Modal
   ========================================================================== */

.sf-filter-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: start;
  padding-top: 8px;
  margin-bottom: 40px;
}

/* Desktop Sidebar */
.cat-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 90px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.cat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.cat-sidebar-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.cat-sidebar-head h3 i {
  color: var(--store-theme-color, #2563eb);
  font-size: 14px;
}
.cat-sidebar-head a, .cat-sidebar-head button {
  font-size: 12px;
  font-weight: 700;
  color: var(--store-theme-color, #2563eb);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.cat-sidebar-head a:hover, .cat-sidebar-head button:hover {
  text-decoration: underline;
}

.filter-block {
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}
.filter-block:first-of-type {
  padding-top: 0;
}
.filter-block h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}
.price-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.price-range-row input[type="number"] {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.price-range-row input[type="number"]:focus {
  border-color: var(--store-theme-color, #2563eb);
  background: #ffffff;
}
.price-range-row span {
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 700;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.3px;
  color: #334155;
  margin-bottom: 11px;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}
.filter-check:last-child {
  margin-bottom: 0;
}
.filter-check:hover {
  color: var(--store-theme-color, #2563eb);
}
.filter-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--store-theme-color, #2563eb);
  flex-shrink: 0;
  cursor: pointer;
}
.filter-check .stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
}

.btn-filter-apply {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-filter-apply:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Toolbar */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.cat-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: #64748b;
  font-weight: 600;
}
.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-toolbar-right label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-toolbar-right select {
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
  outline: none;
}
.cat-toolbar-right select:focus {
  border-color: var(--store-theme-color, #2563eb);
}

/* Mobile Filter Trigger Button (Hidden on Desktop) */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--store-theme-color, #2563eb);
  background: #ffffff;
  color: var(--store-theme-color, #2563eb);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mobile-filter-btn:hover, .mobile-filter-btn:active {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
}
.mobile-filter-btn .active-filter-badge {
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 20px;
}
.mobile-filter-btn:hover .active-filter-badge {
  background: #ffffff;
  color: var(--store-theme-color, #2563eb);
}

/* ==========================================================================
   MOBILE BOTTOM-TO-TOP FILTER SHEET MODAL
   ========================================================================== */
.filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.filter-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  max-height: 88vh;
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.filter-bottom-sheet.open {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 4px;
}
.drag-bar {
  width: 44px;
  height: 5px;
  border-radius: 10px;
  background: #cbd5e1;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid #e2e8f0;
}
.sheet-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-title-wrap i {
  color: var(--store-theme-color, #2563eb);
  font-size: 16px;
}
.sheet-title-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.sheet-active-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--store-theme-color, #2563eb);
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 7px;
  border-radius: 12px;
}
.sheet-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sheet-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sheet-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.sheet-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.sheet-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}
.btn-sheet-clear {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-sheet-clear:hover {
  background: #e2e8f0;
}
.btn-sheet-apply {
  flex: 2;
  padding: 12px;
  border-radius: 10px;
  background: var(--store-theme-color, #2563eb);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s;
}
.btn-sheet-apply:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (< 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .sf-filter-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cat-sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 26px 26px 0 0 !important;
    border: none !important;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.28) !important;
    z-index: 25001 !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 85vh !important;
    overflow: hidden !important;
    padding: 0 !important;
    pointer-events: none;
    visibility: hidden;
  }
  .cat-sidebar.active,
  .cat-sidebar.open {
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
  .mobile-filter-btn {
    display: inline-flex !important; /* Show prominent filter button */
  }
}

@media (max-width: 640px) {
  .cat-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cat-toolbar-left {
    justify-content: space-between;
    width: 100%;
  }
  .cat-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MAIN DOMAIN — MOBILE CATEGORIES BOTTOM SHEET
   ========================================================================== */
.m-cat-sheet .sf-sheet-body,
.m-cat-sheet-body {
  display: block !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 14px 18px calc(24px + env(safe-area-inset-bottom)) !important;
}
.m-cat-item {
  display: block !important;
  flex-shrink: 0 !important;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  margin-bottom: 8px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.m-cat-item.open {
  border-color: rgba(227, 30, 36, 0.35);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.m-cat-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  min-height: 54px !important;
}
.m-cat-link {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  color: #0f172a !important;
}
.m-cat-thumb {
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px !important;
  background: #f8fafc !important;
  border: 1px solid #eef2f7 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  color: var(--accent, #E31E24) !important;
  font-size: 17px !important;
}
.m-cat-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 4px;
}
.m-cat-name {
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #0f172a !important;
}
.m-cat-expand {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
}
.m-cat-expand i {
  font-size: 12px;
  transition: transform 0.25s ease;
}
.m-cat-item.open .m-cat-expand {
  background: var(--accent, #E31E24) !important;
  color: #ffffff !important;
}
.m-cat-item.open .m-cat-expand i {
  transform: rotate(180deg);
}
.m-subcat-list {
  display: none;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 6px 14px 14px 64px !important;
  background: #f8fafc !important;
  border-top: 1px solid #f1f5f9;
}
.m-cat-item.open .m-subcat-list {
  display: flex !important;
  animation: mSubcatIn 0.22s ease;
}
@keyframes mSubcatIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.m-subcat-pill {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}
.m-subcat-pill:hover,
.m-subcat-pill:active {
  border-color: var(--accent, #E31E24);
  color: var(--accent, #E31E24);
}
.m-subcat-pill.m-subcat-all {
  background: rgba(227, 30, 36, 0.08);
  border-color: rgba(227, 30, 36, 0.25);
  color: var(--accent, #E31E24);
}

