
/* Mobile brand carousel - 1 banner at a time, auto-rotating */
@media (max-width: 700px) {
  .brand-carousel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0 !important;
  }
  .brand-carousel::-webkit-scrollbar {
    display: none !important;
  }
  .brand-carousel .brand-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    scroll-snap-align: center !important;
    overflow: hidden !important;
  }
  .brand-carousel .brand-slide img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 120px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
  }
  /* Fix editorial banner cutting on mobile */
  .editorial-banner img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }
  .brand-dots {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .brand-dots span {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #ddd !important;
    transition: background .3s !important;
  }
  .brand-dots span.active {
    background: #6e1597 !important;
    width: 20px !important;
    border-radius: 4px !important;
  }
}

/* Flash sale header - clean layout (2026-10-04) */
.flash-heading {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
.flash-title-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.flash-subtitle {
  font-size: 11px !important;
  color: #8a8494 !important;
}
.flash-title {
  font-size: 20px !important;
  margin: 0 !important;
  font-weight: 800 !important;
}
.flash-timer-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.flash-cd-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #6e1597, #a020f0) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  letter-spacing: 1px !important;
  font-variant-numeric: tabular-nums !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.flash-view-all {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #6e1597 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
@media (max-width: 700px) {
  .flash-title { font-size: 16px !important; }
  .flash-cd-pill { font-size: 12px !important; padding: 6px 12px !important; }
}

/* Dark footer style - matches category page (2026-10-04) */
.bs-footer {
  background: #1a1a2e !important;
  color: #fff !important;
  padding: 40px 20px 30px !important;
}
.bs-footer h2 {
  color: #fff !important;
  font-size: 16px !important;
  margin-bottom: 16px !important;
}
.bs-footer a {
  color: #ccc !important;
  text-decoration: none !important;
}
.bs-footer a:hover {
  color: #fff !important;
}
.bs-footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.bs-footer ul li {
  margin-bottom: 10px !important;
}
.bs-footer-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}
.bs-footer-logo, .bs-footer-links, .bs-footer-contact {
  flex: 1 1 200px !important;
}
.footer-shopaale-logo {
  color: #fff !important;
}
.bs-social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.1) !important;
  margin-right: 8px !important;
  color: #fff !important;
}
.cprt-footer {
  background: #12121f !important;
  color: #888 !important;
  padding: 16px 20px !important;
  text-align: center !important;
  font-size: 12px !important;
}
.cprt-footer .footer {
  display: flex !important;
  justify-content: center !important;
}
.leftfooter {
  color: #888 !important;
}
@media (max-width: 700px) {
  .bs-footer-container {
    flex-direction: column !important;
    gap: 24px !important;
  }
}



/* Category product images - fill full width, no side gaps (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product-card img,
  body.category-page .product img,
  #products .product-card img {
    object-fit: cover !important;
    width: 100% !important;
    height: 200px !important;
    background: #f7f7f7 !important;
  }
  body.category-page .product-card,
  #products .product-card {
    overflow: hidden !important;
  }
  body.category-page .product-card .product-image,
  #products .product-image {
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* Remove ALL gap between header and pills on category mobile (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-header {
    margin: 0 !important;
    padding: 0 !important;
  }
  body.category-page .Subcategory-list {
    margin: 0 !important;
    padding: 0 !important;
  }
  body.category-page .category-main-tabs {
    margin: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  body.category-page .category-page-shell {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* Page title bar - reduce bottom margin */
  body.category-page .page-header,
  body.category-page #page_title {
    margin-bottom: 0 !important;
  }
}

/* Compact Add to Cart buttons on mobile category (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .add-to-cart,
  body.category-page .addToCart-btn,
  body.category-page button[onclick*="addToCart"],
  #products .add-to-cart {
    font-size: 11px !important;
    padding: 8px 6px !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    flex: 1 !important;
    border-radius: 8px !important;
    line-height: 1.2 !important;
  }
  body.category-page .product-card .action-row,
  #products .action-row {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
  }
  body.category-page .wishlist-icon,
  #products .wishlist-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }
  body.category-page .compare-icon,
  #products .compare-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }
}

/* Fix main pills horizontal scroll on mobile (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-main-tabs {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    touch-action: pan-x !important;
    cursor: grab !important;
  }
  body.category-page .category-main-tabs::-webkit-scrollbar {
    display: none !important;
  }
  body.category-page .category-main-tab {
    touch-action: pan-x !important;
    user-select: none !important;
    -webkit-user-select: none !important;
  }
  /* Ensure parent doesn't block scroll */
  body.category-page .Subcategory-list,
  body.category-page .category-header {
    overflow: visible !important;
    touch-action: pan-y !important;
  }
}

/* Category page header icons - always visible on mobile (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-header-icons {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
  }
  body.category-page .category-header-icons .icon-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    position: relative !important;
  }
  body.category-page .category-header-icons .icon-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  body.category-page .category-cart-badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    background: #6e1597 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Add to Cart - full width button, icons on separate row (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product-card .action-row,
  body.category-page #products .action-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  body.category-page .add-to-cart,
  body.category-page #products .add-to-cart {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px !important;
    white-space: nowrap !important;
    order: 1 !important;
  }
  body.category-page .action-row .icon-group,
  body.category-page #products .icon-group {
    display: flex !important;
    gap: 8px !important;
    justify-content: center !important;
    order: 2 !important;
  }
  /* If no icon-group wrapper, make icons row */
  body.category-page .wishlist-icon,
  body.category-page .compare-icon {
    order: 2 !important;
  }
}

/* Hide gender switcher on desktop - sidebar covers it (2026-10-04) */
@media (min-width: 821px) {
  body.category-page .gender-switcher {
    display: none !important;
  }
}

/* Fix cart badge position on category page (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-cart-btn {
    position: relative !important;
  }
  body.category-page .category-cart-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    left: auto !important;
    transform: none !important;
  }
}

/* Wishlist heart overlays product image top-right (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product-card {
    position: relative !important;
  }
  body.category-page .product-card .wishlist-icon {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 5 !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    order: unset !important;
  }
  /* Remove from below Add to Cart - it's now on image */
  body.category-page .action-row {
    flex-direction: column !important;
  }
  body.category-page .action-row .icon-group {
    display: none !important;
  }
}

/* Category footer: mobile only (2026-10-04) */
@media (min-width: 821px) {
  body.category-page footer.mobile-footer {
    display: none !important;
  }
}
@media (max-width: 820px) {
  body.category-page footer.mobile-footer {
    display: flex !important;
  }
}

/* Brands & Studio product cards - fix buttons and icons (2026-10-04) */
@media (max-width: 820px) {
  body.brands-page .add-to-cart,
  body.studio-page .add-to-cart,
  .brands-products .add-to-cart,
  .studio-products .add-to-cart {
    font-size: 11px !important;
    padding: 8px 6px !important;
    white-space: nowrap !important;
    width: 100% !important;
  }
  body.brands-page .wishlist-icon,
  body.studio-page .wishlist-icon,
  .brands-products .wishlist-icon,
  .studio-products .wishlist-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
  }
  body.brands-page .wishlist-icon svg,
  body.studio-page .wishlist-icon svg {
    width: 18px !important;
    height: 18px !important;
  }
  body.brands-page .product-card,
  body.studio-page .product-card {
    position: relative !important;
    overflow: hidden !important;
  }
  body.brands-page .product-card img,
  body.studio-page .product-card img {
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Fix category header layout - icons in header, not overlapping pills (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    position: relative !important;
    z-index: 10 !important;
  }
  body.category-page .category-header-icons {
    position: static !important;
    display: flex !important;
    gap: 16px !important;
    margin-left: auto !important;
  }
  body.category-page .category-main-tabs {
    margin-top: 0 !important;
    padding-top: 8px !important;
    position: relative !important;
    z-index: 1 !important;
  }
}

/* Wishlist heart on product image - hover to show (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product {
    position: relative !important;
  }
  body.category-page .product .wishlist-icon {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    width: 34px !important;
    height: 34px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    margin: 0 !important;
  }
  body.category-page .product .wishlist-icon i {
    font-size: 16px !important;
    color: #666 !important;
  }
  body.category-page .product .wishlist-icon.active i,
  body.category-page .product .wishlist-icon.wishlisted i {
    color: #e91e63 !important;
  }
  /* Remove from action row flow */
  body.category-page .action-row .wishlist-icon {
    position: absolute !important;
  }
}
/* Desktop: show on hover */
@media (min-width: 821px) {
  body.category-page .product {
    position: relative;
  }
  body.category-page .product .wishlist-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
  }
  body.category-page .product:hover .wishlist-icon {
    opacity: 1;
  }
  body.category-page .product .wishlist-icon.active,
  body.category-page .product .wishlist-icon.wishlisted {
    opacity: 1;
  }
}

/* Hide search icon in sticky header on scroll, fix cart position (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-header-icons .icon-btn:first-child {
    display: none !important;
  }
  /* Ensure header icons stay in header */
  body.category-page .category-header {
    overflow: visible !important;
  }
  body.category-page .category-header-icons {
    flex-shrink: 0 !important;
  }
}

/* Wishlist heart - no white background, just the icon (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product .wishlist-icon {
    background: none !important;
    box-shadow: none !important;
    width: 28px !important;
    height: 28px !important;
  }
  body.category-page .product .wishlist-icon i {
    font-size: 20px !important;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
  }
  body.category-page .product .wishlist-icon.active i,
  body.category-page .product .wishlist-icon.wishlisted i {
    color: #e91e63 !important;
  }
}
@media (min-width: 821px) {
  body.category-page .product .wishlist-icon {
    background: none !important;
    box-shadow: none !important;
  }
  body.category-page .product .wishlist-icon i {
    font-size: 22px !important;
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5) !important;
  }
}

/* Sort/Filter bottom sheet - Apply button above footer (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .sort-bottom-sheet,
  body.category-page .filter-bottom-sheet,
  body.category-page .bottom-sheet {
    z-index: 100000 !important;
    padding-bottom: 90px !important;
  }
  body.category-page .sort-apply-btn,
  body.category-page .filter-apply-btn,
  body.category-page .apply-btn,
  body.category-page .bottom-sheet .apply {
    position: sticky !important;
    bottom: 70px !important;
    z-index: 100001 !important;
    margin-bottom: 70px !important;
  }
}

/* Mobile filter bottom sheet - clean redesign (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .filter-bottom-sheet,
  body.category-page #mobile-filter-sheet {
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 20px 100px !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
  }
  body.category-page .filter-bottom-sheet h3,
  body.category-page #mobile-filter-sheet h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
  }
  /* Price/Discount chips - proper grid */
  body.category-page .price-chips,
  body.category-page .discount-chips,
  body.category-page .filter-chips {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  body.category-page .price-chip,
  body.category-page .discount-chip,
  body.category-page .filter-chip {
    padding: 12px 8px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    background: #fff !important;
  }
  body.category-page .price-chip.active,
  body.category-page .discount-chip.active,
  body.category-page .filter-chip.active {
    background: #6e1597 !important;
    color: #fff !important;
    border-color: #6e1597 !important;
  }
  /* Section titles */
  body.category-page .filter-section-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 16px 0 10px !important;
    color: #333 !important;
  }
  /* Apply/Clear buttons row */
  body.category-page .filter-actions {
    display: flex !important;
    gap: 12px !important;
    position: sticky !important;
    bottom: 70px !important;
    background: #fff !important;
    padding: 12px 0 !important;
    margin-top: 16px !important;
  }
  body.category-page .filter-apply-btn {
    flex: 1 !important;
    background: #6e1597 !important;
    color: #fff !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
  body.category-page .filter-clear-btn {
    padding: 14px 20px !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
}

/* Wishlist heart - polished with pop animation (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .product .wishlist-icon {
    background: rgba(255,255,255,0.95) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    transition: transform 0.2s ease !important;
  }
  body.category-page .product .wishlist-icon i {
    font-size: 16px !important;
    color: #999 !important;
    text-shadow: none !important;
    transition: all 0.2s ease !important;
  }
  body.category-page .product .wishlist-icon:active {
    transform: scale(0.9) !important;
  }
  /* Active/wishlisted state - red with pop */
  body.category-page .product .wishlist-icon.active i,
  body.category-page .product .wishlist-icon.wishlisted i,
  body.category-page .product .wishlist-icon .fas.fa-heart {
    color: #e91e63 !important;
    animation: heartPop 0.3s ease !important;
  }
  body.category-page .product .wishlist-icon.active,
  body.category-page .product .wishlist-icon.wishlisted {
    background: #fce4ec !important;
  }
}
@keyframes heartPop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@media (min-width: 821px) {
  body.category-page .product .wishlist-icon {
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }
  body.category-page .product .wishlist-icon i {
    font-size: 18px;
    color: #999;
    text-shadow: none;
  }
  body.category-page .product .wishlist-icon.active i,
  body.category-page .product .wishlist-icon.wishlisted i {
    color: #e91e63;
    animation: heartPop 0.3s ease;
  }
}

/* Mobile sort/filter sheets - correct selectors (2026-10-04) */
@media (max-width: 820px) {
  #mobile-sort-sheet, #mobile-filter-sheet {
    z-index: 100000 !important;
    border-radius: 20px 20px 0 0 !important;
    padding-bottom: 90px !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
  #mobile-sort-sheet .mobile-sheet-header h3,
  #mobile-filter-sheet .mobile-sheet-header h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
  }
  /* Sort options */
  #mobile-sort-sheet .mobile-sort-option {
    padding: 14px 16px !important;
    font-size: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  #mobile-sort-sheet .mobile-sort-option input[type="radio"] {
    width: 20px !important;
    height: 20px !important;
    accent-color: #6e1597 !important;
  }
  /* Sort Apply button */
  #mobile-sort-apply {
    width: calc(100% - 32px) !important;
    margin: 16px !important;
    background: #6e1597 !important;
    color: #fff !important;
    padding: 15px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    position: sticky !important;
    bottom: 70px !important;
  }
  /* Filter chips */
  #mobile-filter-sheet .mobile-filter-section h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 16px 0 10px !important;
  }
  #mobile-filter-sheet .mobile-filter-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  #mobile-filter-sheet .mobile-filter-chip {
    padding: 13px 8px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    border: 1.5px solid #ddd !important;
    background: #fff !important;
    text-align: center !important;
  }
  #mobile-filter-sheet .mobile-filter-chip.active {
    background: #6e1597 !important;
    color: #fff !important;
    border-color: #6e1597 !important;
  }
  /* Filter actions */
  #mobile-filter-sheet .mobile-sheet-actions {
    display: flex !important;
    gap: 12px !important;
    padding: 16px !important;
    position: sticky !important;
    bottom: 60px !important;
    background: #fff !important;
  }
  #mobile-filter-clear {
    padding: 14px 20px !important;
    background: #f5f5f5 !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 14px !important;
  }
  #mobile-filter-apply {
    flex: 1 !important;
    background: #6e1597 !important;
    color: #fff !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    width: auto !important;
    position: static !important;
  }
}

/* Cart page - product card side spacing (2026-10-04) */
@media (max-width: 820px) {
  .cart_section, .cart-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .cart-item, .cart-product-card {
    margin-left: 4px !important;
    margin-right: 4px !important;
  }
}

/* Filter chips - fix missing chip and text color (2026-10-04) */
@media (max-width: 820px) {
  #mobile-filter-sheet .mobile-filter-chip {
    color: #333 !important;
    display: block !important;
    visibility: visible !important;
  }
  #mobile-filter-sheet .mobile-filter-chip.active {
    color: #fff !important;
  }
  #mobile-filter-sheet .mobile-filter-options {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Ensure all chips visible */
  #mobile-filter-sheet .mobile-filter-section {
    overflow: visible !important;
  }
}

/* Filter sheet - enable scrolling (2026-10-04) */
@media (max-width: 820px) {
  #mobile-filter-sheet {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior: contain !important;
  }
  #mobile-filter-sheet * {
    touch-action: pan-y !important;
  }
  #mobile-filter-sheet .mobile-filter-chip,
  #mobile-filter-sheet button {
    touch-action: manipulation !important;
  }
}

/* Pills scroll fix - prevent shrinking (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .category-main-tab {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
  }
  body.category-page #PrintMainCate {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Prevent page horizontal overflow, contain pills scroll (2026-10-04) */
@media (max-width: 820px) {
  body.category-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  body.category-page .category-page-shell,
  body.category-page .Subcategory-list,
  body.category-page main {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }
  body.category-page #PrintMainCate {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}

/* Global: no horizontal movement (2026-10-04) */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* Homepage mobile search - fix cut off placeholder (2026-10-04) */
@media (max-width: 820px) {
  .mobile-search.search-form {
    display: flex !important;
    width: calc(100% - 16px) !important;
    margin: 8px !important;
    box-sizing: border-box !important;
  }
  .mobile-search.search-form input[type="search"] {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    font-size: 14px !important;
    text-overflow: ellipsis !important;
  }
  .mobile-search.search-form input::placeholder {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Fix truncated labels and search (2026-10-04) */
@media (max-width: 820px) {
  /* Subcategory circle labels - allow 2 lines, don't truncate mid-word */
  body.category-page .subcategory-circle span,
  body.category-page .sub-cat-name {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    max-width: 70px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }
  /* Sidebar labels - don't break mid-word */
  body.category-page .sidebar-label,
  body.category-page .category-sidebar-rail span {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    font-size: 10px !important;
    text-align: center !important;
  }
}

/* Brands page fixes (2026-10-04) */
@media (max-width: 820px) {
  .brand-az-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
  .brand-card {
    min-height: 180px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .brand-card .brand-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    font-size: 13px !important;
  }
  .brand-card .shop-now {
    margin-top: auto !important;
  }
}

/* Category header search - ensure full width (2026-10-04) */
@media (max-width: 820px) {
  body.category-page .text-container {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.category-page #animated-placeholder.search-input {
    width: 100% !important;
    min-width: 0 !important;
    font-size: 14px !important;
    text-overflow: ellipsis !important;
  }
  body.category-page .search-bar,
  body.category-page .header-search {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

/* Footer tagline - prevent truncation (2026-10-04) */
.bs-footer p, .footer-tagline, footer p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  max-width: 100% !important;
  word-wrap: break-word !important;
}
.bs-footer-logo p {
  width: 100% !important;
  max-width: 280px !important;
}

/* singlep.html: hide 5-button nav, keep Add to Cart / Buy Now bar (2026-10-04) */
body.singlep-page footer.mobile-footer {
  display: none !important;
}
/* checkout/payment pages: hide 5-button nav at all viewports, keep sticky Place Order bar (2026-10-04) */
body.checkout-page footer.mobile-footer,
body.checkout2-page footer.mobile-footer,
body.direct-checkout-page footer.mobile-footer {
  display: none !important;
}
@media (max-width: 820px) {
  body.singlep-page .purplle-sticky-footer {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 10001 !important;
    background: #fff !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  body.singlep-page .footer-buttons {
    display: flex !important;
    gap: 12px !important;
    padding: 10px 16px !important;
  }
  body.singlep-page .footer-buttons .add-to-cart-btn,
  body.singlep-page .footer-buttons .btn-buy {
    flex: 1 !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    border: none !important;
  }
  body.singlep-page .footer-buttons .add-to-cart-btn {
    background: #fff !important;
    color: #6e1597 !important;
    border: 1.5px solid #6e1597 !important;
  }
  body.singlep-page .footer-buttons .btn-buy {
    background: #6e1597 !important;
    color: #fff !important;
  }
  /* Keep page content clear of the sticky bar */
  body.singlep-page {
    padding-bottom: 150px !important;
  }
}
/* Desktop: no change — keep default behavior */

/* Fix category page cart icon badge alignment on mobile (2026-10-05) */
@media (max-width: 768px) {
  body.category-page .category-cart-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
  }
  body.category-page .category-cart-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  body.category-page .category-cart-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
    border-radius: 50% !important;
  }
}

/* Hide wishlist + cart icons in category header on mobile only (2026-10-05) */
@media (max-width: 768px) {
  body.category-page .category-heart-btn,
  body.category-page .category-cart-btn {
    display: none !important;
  }
}
