/* =====================================================
   Shopaale Home Theme Override — Mobile Only
   Applies homepage (purplle-home.css) styling to legacy
   category pages on mobile. Load this stylesheet LAST.
   ===================================================== */

@media (max-width: 700px) {

  /* ========== COLOR PALETTE SWAP ========== */
  :root {
    --primary: #6e1597 !important;        /* Purple replaces pink */
    --primary-dark: #5a1179 !important;
    --primary-light: #faf7fb !important;
    --accent-orange: #d9791f !important;  /* Homepage orange */
    --text-primary: #2c2530 !important;
    --text-sec: #2c2530 !important;
    --text-muted: #77717a !important;
    --text-light: #77717a !important;
    --bg-white: #ffffff !important;
    --bg-light: #faf7fb !important;
    --border: #ece8ee !important;
    --btn-bg-color: #6e1597 !important;
    --main-clr: #6e1597 !important;
  }

  /* Override any hardcoded pink */
  body {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    color: #2c2530 !important;
    background: #fff !important;
    padding-bottom: 60px !important; /* room for bottom nav */
  }

  /* ========== HEADER ========== */
  .header,
  .header_sections {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 5 !important;
    background: #fff !important;
    border-bottom: 1px solid #ece8ee !important;
    box-shadow: none !important;
    height: 47px !important;
    padding: 0 9px !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
  }

  .header .header_section {
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    width: 100% !important;
    height: 47px !important;
    padding: 0 !important;
  }

  .header .logo_container {
    flex-shrink: 0 !important;
  }

  .header .logo_container img {
    display: block !important;
    width: 92px !important;
    height: 25px !important;
    object-fit: contain !important;
  }

  .header .search_bar {
    flex: 1 !important;
    height: 38px !important;
    border: 1px solid #ded9e0 !important;
    border-radius: 3px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 10px !important;
    max-width: none !important;
  }

  .header .search_bar svg {
    width: 18px !important;
    height: 18px !important;
    color: #777 !important;
    stroke: currentColor !important;
    fill: none !important;
    flex-shrink: 0 !important;
  }

  .header .search-input,
  .header .search_bar input {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 13px !important;
    color: #2c2530 !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .header .icon-top {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }

  .header .icons {
    width: 27px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .header .icons svg {
    width: 19px !important;
    height: 19px !important;
    stroke: #3e3940 !important;
    fill: none !important;
    stroke-width: 1.45 !important;
  }

  /* Cart badge */
  .mobile-footer-icon-badge,
  .mini-cart-badge {
    position: absolute !important;
    top: 2px !important;
    right: -2px !important;
    min-width: 16px !important;
    height: 16px !important;
    background: #6e1597 !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 4px !important;
  }

  /* ========== CATEGORY STRIP ========== */
  .top_main_cate,
  .cate_box_group {
    display: flex !important;
    gap: 17px !important;
    overflow-x: auto !important;
    padding: 11px 10px 13px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .top_main_cate::-webkit-scrollbar,
  .cate_box_group::-webkit-scrollbar {
    display: none !important;
  }

  .main_catebox,
  .cate_box {
    flex: 0 0 64px !important;
    min-width: 64px !important;
    width: 64px !important;
    display: grid !important;
    gap: 7px !important;
    justify-items: center !important;
    text-decoration: none !important;
    color: #4b454c !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    height: auto !important;
  }

  .main_catebox img,
  .cate_box img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    box-shadow: 0 3px 10px #ded4e3 !important;
    background: #f7f3f8 !important;
  }

  .main_catebox p,
  .cate_box p {
    font-size: 9px !important;
    line-height: 11px !important;
    font-weight: 500 !important;
    color: #4b454c !important;
    margin: 0 !important;
    text-align: center !important;
  }

  .main_catebox.active,
  .cate_box.active {
    background: transparent !important;
  }

  .main_catebox.active p,
  .cate_box.active p {
    color: #6e1597 !important;
    font-weight: 700 !important;
  }

  /* ========== PRODUCT CARDS ========== */
  .products-grid,
  .product_section,
  #products,
  #bestSellerProducts {
    display: flex !important;
    gap: 9px !important;
    flex-wrap: wrap !important;
    padding: 4px 12px 10px !important;
    margin: 0 !important;
  }

  .product {
    min-width: 116px !important;
    max-width: 116px !important;
    flex: 0 0 116px !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .product-img,
  .product .product-img {
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
  }

  .product-img img,
  .product .product-img img {
    display: block !important;
    width: 100% !important;
    height: 125px !important;
    object-fit: contain !important;
    background: #f7f7f7 !important;
    border: 1px solid #f0edf1 !important;
    border-radius: 3px !important;
  }

  .product_info,
  .product .product_info {
    padding: 6px 0 3px !important;
  }

  .product_info p,
  .product .product_info > p {
    font-size: 10px !important;
    line-height: 1.3 !important;
    min-height: 39px !important;
    margin: 4px 0 5px !important;
    color: #2c2530 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .price-container {
    display: block !important;
    margin-top: 5px !important;
  }

  .new-pricebpcs,
  .price .new-pricebpcs {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #2c2530 !important;
  }

  .old-pricepcs {
    font-size: 9px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin-left: 5px !important;
  }

  .discount-label {
    display: inline-block !important;
    font-size: 9px !important;
    color: #159447 !important;
    margin-left: 5px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
  }

  .product .add-to-cart {
    display: none !important; /* Homepage cards have no Add to Cart button */
  }

  .wishlist-icon {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    width: 28px !important;
    height: 28px !important;
    background: #fff !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  }

  .wishlist-icon svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #2c2530 !important;
    fill: none !important;
  }

  /* ========== MOBILE BOTTOM NAV ========== */

  /* ========== SECTION HEADINGS ========== */
  .section-heading,
  .content-section .section-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 13px !important;
    padding: 0 12px !important;
  }

  .section-heading h1,
  .section-heading h2,
  .section-heading h3 {
    font-size: 14px !important;
    margin: 4px 0 0 !important;
    color: #2c2530 !important;
    font-weight: 700 !important;
  }

  .section-heading span {
    font-size: 12px !important;
    color: #6e1597 !important;
    font-weight: 600 !important;
  }

  .section-heading a {
    font-size: 10px !important;
    color: #6e1597 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
  }

  /* ========== BUTTONS & LINKS ========== */
  button,
  .btn,
  input[type="submit"] {
    font-family: Arial, Helvetica, sans-serif !important;
  }

  a {
    color: inherit !important;
  }

  a:hover {
    color: #6e1597 !important;
  }

  /* Purple accent anywhere pink was used */
  [style*="#FF3F6C"],
  [style*="#ff3f6c"] {
    color: #6e1597 !important;
    background-color: #6e1597 !important;
    border-color: #6e1597 !important;
  }

}
