/**
 * Wasal Mobile UI Refinements
 * Subtle UI changes: alignment, spacing, padding, and flow
 * Based on Martfury mobile reference (wasal.png)
 * Preserves original color scheme: Wasal Blue (#3078a6), Golden Yellow (#fcb800), and neutrals.
 */

/* ==========================================================================
   1. GLOBAL BOTTOM NAVIGATION BAR (Screen 1, 2, 3)
   ========================================================================== */
@media (max-width: 1199px) {
  .navigation--list {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 52px !important;
    z-index: 1000 !important;
    padding: 0 !important;
    border-top: 1px solid #e5e5e5 !important;
    background-color: #ffffff !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .navigation--list .navigation__content {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-around !important;
    height: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }
  .navigation--list .navigation__item {
    flex: 1 1 0% !important;
    text-align: center !important;
    padding: 5px 0 3px 0 !important;
    color: #666666 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease;
    position: relative !important;
  }
  .navigation--list .navigation__item i {
    font-size: 20px !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
    color: inherit !important;
    position: relative !important;
    display: inline-block !important;
  }
  .navigation--list .navigation__item i .cart-nav-badge {
    position: absolute !important;
    top: -5px !important;
    right: -8px !important;
    min-width: 15px !important;
    height: 15px !important;
    line-height: 15px !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    background-color: #fcb800 !important;
    color: #222222 !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    text-align: center !important;
  }
  .navigation--list .navigation__item i .cart-nav-badge:empty {
    display: none !important;
  }
  .navigation--list .navigation__item span.nav-text {
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    letter-spacing: -0.2px !important;
    color: inherit !important;
  }
  .navigation--list .navigation__item.active,
  .navigation--list .navigation__item.active i,
  .navigation--list .navigation__item.active span.nav-text {
    color: #fcb800 !important;
  }
  body:not(.has-sticky-pdp-bar) {
    padding-bottom: 54px !important;
  }
}

/* ==========================================================================
   2. CATEGORY / SHOP SUBHEADER BAR & FILTER (Screen 1)
   ========================================================================== */
.mobile-shop-filter-bar {
  display: none;
}
@media (max-width: 991px) {
  .mobile-shop-filter-bar {
    display: flex !important;
    align-items: center;
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    height: 42px;
    width: 100%;
    margin-bottom: 0px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    z-index: 99;
  }
  .mobile-filter-col {
    flex: 1 1 50%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-filter-col:first-child {
    border-right: 1px solid #e5e5e5;
  }
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    color: #444444;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    user-select: none;
  }
  .mobile-filter-btn i {
    font-size: 13px;
    color: #666666;
  }
  .mobile-filter-btn i.arrow-icon {
    font-size: 10px;
    color: #888888;
    margin-left: 2px;
  }
  .mobile-sort-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
  }
  .ps-page--shop {
    padding-top: 0 !important;
  }
  .ps-page--shop > .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  .ps-layout--shop {
    margin-top: 0 !important;
  }
  .ps-layout--shop .ps-layout__right {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .ps-shopping__header {
    display: none !important;
  }
  .ps-breadcrumb {
    display: none !important;
  }
}

/* ==========================================================================
   3. 2-COLUMN FLUSH PRODUCT GRID MATRIX (Screen 1)
   ========================================================================== */
@media (max-width: 767px) {
  .ps-shopping-product .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-top: 1px solid #eeeeee;
    border-left: 1px solid #eeeeee;
  }
  .ps-shopping-product .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .ps-shopping-product .ps-product {
    margin-bottom: 0 !important;
    border: none !important;
    border-right: 1px solid #eeeeee !important;
    border-bottom: 1px solid #eeeeee !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff;
    box-sizing: border-box;
  }
  .ps-shopping-product .ps-product:hover {
    box-shadow: none !important;
    border-color: #eeeeee !important;
  }
  .ps-shopping-product .ps-product__thumbnail {
    border-bottom: 1px solid #f4f4f4 !important;
    height: 155px !important;
    min-height: 155px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
    position: relative !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
  }
  .ps-shopping-product .ps-product__thumbnail a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }
  .ps-shopping-product .ps-product__thumbnail img {
    max-width: 100% !important;
    max-height: 135px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .ps-shopping-product .ps-product__container {
    padding: 10px 10px 12px 10px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }
  .ps-shopping-product .ps-product__vendor {
    font-size: 10px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    color: #888888 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.2 !important;
  }
  .ps-shopping-product .ps-product__title {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #0066cc !important;
    margin-bottom: 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 34px !important;
  }
  .ps-shopping-product .product-rating-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
  }
  .ps-shopping-product .product-rating-row .stars {
    color: #fcb800 !important;
    letter-spacing: -1px !important;
  }
  .ps-shopping-product .product-rating-row .count {
    color: #888888 !important;
    font-size: 10px !important;
  }
  .ps-shopping-product .ps-product__content {
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 0 !important;
    margin-top: auto !important;
  }
  .ps-shopping-product .ps-product__price {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #e62e04 !important;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }
  .ps-shopping-product .ps-product__price .original-price {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #999999 !important;
    text-decoration: line-through !important;
    margin-left: 4px !important;
  }
  .ps-shopping-product .ps-product__min-order {
    font-size: 10.5px !important;
    color: #777777 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
  }
}

/* ==========================================================================
   4. HOME PAGE ALIGNMENT & SPACING (Screen 2)
   ========================================================================== */
@media (max-width: 767px) {
  #homepage-kids {
    padding-top: 8px !important;
  }
  #homepage-kids .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  /* Slider pagination dots centered */
  .ps-carousel--dots .owl-dots {
    position: absolute !important;
    bottom: 8px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  .ps-carousel--dots .owl-dot span {
    width: 7px !important;
    height: 7px !important;
    margin: 0 3px !important;
    background: rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease;
  }
  .ps-carousel--dots .owl-dot.active span {
    background: #fcb800 !important;
    width: 16px !important;
    border-radius: 4px !important;
  }
  /* Hero banner & side promo layout */
  #homepage-kids .ps-home-banner {
    flex-direction: column !important;
    margin-bottom: 16px !important;
  }
  #homepage-kids .ps-home-banner .ps-section__left {
    display: none !important;
  }
  #homepage-kids .ps-home-banner .ps-section__center {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-stage-outer {
    transition: height 0.35s ease-in-out !important;
    overflow: hidden !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-item {
    height: auto !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-item a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-item img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }
  #homepage-kids .ps-home-banner .ps-carousel--dots .owl-dots {
    position: absolute !important;
    bottom: 8px !important;
    left: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
    z-index: 10 !important;
  }
  #homepage-kids .ps-home-banner .ps-section__right {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 0 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  #homepage-kids .ps-home-banner .ps-section__right > a {
    flex: 1 1 0% !important;
    width: calc(33.333% - 6px) !important;
    max-width: 33.333% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid #eeeeee !important;
    background-color: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  }
  #homepage-kids .ps-home-banner .ps-section__right > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  /* Home collection banners below hero section */
  #homepage-kids .ps-home-collection {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
  }
  #homepage-kids .ps-home-collection [class*="col-"] {
    margin-bottom: 10px !important;
  }
  #homepage-kids .ps-home-collection a {
    display: block !important;
    width: 100% !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  }
  #homepage-kids .ps-home-collection img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
  }
  /* Section Header & Deals countdown alignment */
  .ps-block--products-of-category .ps-block__header,
  .section-deals-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 0 8px 0 !important;
    margin-bottom: 6px !important;
  }
  .section-deals-header h3 {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #222222 !important;
  }
  .deals-countdown-badge {
    background-color: #e62e04 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }
  /* Section vertical spacing rhythm */
  .ps-home-banner,
  .ps-block--products-of-category,
  .ps-deal-of-day {
    margin-bottom: 16px !important;
  }
}

/* ==========================================================================
   5. PRODUCT DETAIL PAGE & STICKY BOTTOM ACTION BAR (Screen 3)
   ========================================================================== */
@media (max-width: 767px) {
  body.has-sticky-pdp-bar {
    padding-bottom: 54px !important;
  }
  body.has-sticky-pdp-bar .navigation--list {
    display: none !important;
  }
  .ps-page--product > .ps-container,
  .ps-page--product .ps-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .ps-product--detail .ps-product__header {
    margin-bottom: 16px !important;
    width: 100% !important;
    padding: 0 !important;
  }
  /* Image Gallery - Edge-to-Edge Full Width */
  .exzoom {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    margin-bottom: 14px !important;
    overflow: hidden !important;
  }
  .exzoom .exzoom_img_box {
    width: 100% !important;
    background: #ffffff !important;
    border: none !important;
    border-bottom: 1px solid #eeeeee !important;
    border-radius: 0 !important;
    margin: 0 auto !important;
  }
  .exzoom .exzoom_img_ul_outer {
    border: none !important;
    margin: 0 auto !important;
  }
  .exzoom .exzoom_img_ul li {
    background: #ffffff !important;
    text-align: center !important;
  }
  .exzoom .exzoom_img_ul li img {
    display: inline-block !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    vertical-align: middle !important;
  }
  .exzoom .exzoom_nav {
    margin: 10px auto !important;
  }
  
  /* Product Content Gutters */
  .ps-product--detail .ps-product__info {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .ps-product--detail > .ps-product__content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .ps-page--product .ps-page__right {
    padding-left: 15px !important;
    padding-right: 15px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .ps-page--product .ps-page__container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .ps-page--product .ps-section--default {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  /* Product Title & Brand/Rating */
  .ps-product--detail .ps-product__info h1 {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #222222 !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }
  .pdp-brand-rating-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
    color: #666666 !important;
  }
  .pdp-brand-rating-row .brand-link {
    color: #0066cc !important;
    font-weight: 500 !important;
  }
  .pdp-brand-rating-row .divider {
    color: #cccccc !important;
  }
  .pdp-brand-rating-row .stars {
    color: #fcb800 !important;
    letter-spacing: -1px !important;
  }
  .pdp-brand-rating-row .reviews-count {
    color: #888888 !important;
  }
  /* Price & Stock */
  .pdp-price-row {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
  }
  .pdp-price-row .main-price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #e62e04 !important;
    line-height: 1 !important;
  }
  .pdp-price-row .original-price {
    font-size: 13px !important;
    color: #999999 !important;
    text-decoration: line-through !important;
  }
  .pdp-price-row .discount-tag {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #e62e04 !important;
  }
  .pdp-stock-status {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #1a9e40 !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }
  /* Highlights / Bullet list */
  .ps-product--detail .ps-product__desc .ps-list--dot {
    padding-left: 18px !important;
    margin-bottom: 14px !important;
  }
  .ps-product--detail .ps-product__desc .ps-list--dot li {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #555555 !important;
    margin-bottom: 6px !important;
  }
  /* Sticky Bottom Action Bar */
  .mobile-pdp-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 50px !important;
    z-index: 1050 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  }
  .mobile-pdp-btn {
    flex: 1 1 50% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    transition: opacity 0.15s ease;
  }
  .mobile-pdp-btn:hover,
  .mobile-pdp-btn:active {
    opacity: 0.9 !important;
  }
  .mobile-pdp-btn-cart {
    background-color: #222222 !important;
    color: #ffffff !important;
  }
  .mobile-pdp-btn-buy {
    background-color: #fcb800 !important;
    color: #111111 !important;
  }
  .ps-product--detail .ps-product__shopping {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
  }
}

/* ==========================================================================
   6. SHOPPING CART MOBILE REFINEMENTS
   ========================================================================== */
@media (max-width: 991px) {
  /* Hide sidebar widgets on cart page */
  .cart-page-wrapper .ps-page__right {
    display: none !important;
  }
  .cart-page-wrapper .ps-page__left {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
  }
  .cart-page-wrapper .ps-breadcrumb {
    display: none !important;
  }
  .cart-page-wrapper .ps-page--product {
    padding-top: 10px !important;
  }
  .cart-page-wrapper .ps-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* --- EMPTY CART STATE --- */
  .cart-empty-wrapper {
    background: #ffffff;
    border-radius: 8px;
    padding: 35px 15px 25px 15px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border: 1px solid #eeeeee;
  }
  .cart-empty-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #fef7e6;
    color: #fcb800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px auto;
  }
  .cart-empty-heading {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    margin: 0 0 6px 0 !important;
  }
  .cart-empty-subtext {
    font-size: 12.5px !important;
    color: #777777 !important;
    line-height: 1.4 !important;
    margin: 0 auto 20px auto !important;
    max-width: 320px;
  }
  .cart-continue-btn {
    background-color: #fcb800 !important;
    color: #222222 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(252, 184, 0, 0.35) !important;
    border: none !important;
  }
  .cart-continue-btn:hover {
    background-color: #e5a700 !important;
    color: #111111 !important;
  }

  /* --- CART TRUST BADGES (2x2 Grid) --- */
  .cart-trust-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 25px !important;
    padding-top: 20px !important;
    border-top: 1px solid #eeeeee !important;
    text-align: left !important;
  }
  .cart-trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 8px !important;
    background: #fbfbfb !important;
    border-radius: 4px !important;
    border: 1px solid #f0f0f0 !important;
  }
  .cart-trust-item .trust-icon {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3078a6 !important;
    font-size: 15px !important;
  }
  .cart-trust-item .trust-info h6 {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #222222 !important;
    margin: 0 0 2px 0 !important;
    line-height: 1.2 !important;
  }
  .cart-trust-item .trust-info p {
    font-size: 9.5px !important;
    color: #888888 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* --- FILLED CART MOBILE CARDS --- */
  .mobile-cart-header-count {
    margin-bottom: 12px;
  }
  .mobile-cart-header-count h5 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #222222 !important;
    margin: 0 !important;
  }
  .mobile-cart-item-card {
    display: flex !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    padding: 12px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
  }
  .mobile-cart-item-thumb {
    flex: 0 0 76px !important;
    width: 76px !important;
    height: 76px !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  .mobile-cart-item-thumb img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  .mobile-cart-item-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .mobile-cart-item-title {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0066cc !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
  }
  .mobile-cart-item-seller {
    font-size: 10.5px !important;
    color: #888888 !important;
    margin-bottom: 4px !important;
  }
  .mobile-cart-item-seller span {
    color: #555555 !important;
    font-weight: 500 !important;
  }
  .mobile-cart-item-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
  }
  .mobile-cart-unit-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e62e04 !important;
  }
  .mobile-cart-qty-tag {
    font-size: 11.5px !important;
    color: #555555 !important;
    background: #f4f4f4 !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
  }
  .mobile-cart-item-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 6px !important;
    border-top: 1px dashed #f0f0f0 !important;
    margin-top: auto !important;
  }
  .mobile-cart-total-price {
    font-size: 12px !important;
    color: #444444 !important;
  }
  .mobile-cart-total-price strong {
    font-size: 13px !important;
    color: #222222 !important;
  }
  .mobile-cart-remove-btn {
    background: transparent !important;
    border: none !important;
    color: #e62e04 !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  /* --- CART SUMMARY BOX --- */
  .mobile-cart-summary-box {
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 6px !important;
    padding: 14px 14px 16px 14px !important;
    margin-top: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03) !important;
  }
  .mobile-cart-summary-line {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #666666 !important;
    margin-bottom: 8px !important;
  }
  .mobile-cart-summary-line.total-line {
    border-top: 1px solid #eeeeee !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    font-size: 15px !important;
    color: #222222 !important;
  }
  .total-price-highlight {
    font-size: 18px !important;
    color: #e62e04 !important;
    font-weight: 700 !important;
  }
  .mobile-checkout-btn {
    width: 100% !important;
    height: 46px !important;
    background-color: #fcb800 !important;
    color: #222222 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border: none !important;
    margin-bottom: 10px !important;
    box-shadow: 0 2px 8px rgba(252, 184, 0, 0.3) !important;
  }
  .mobile-continue-shopping-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    font-size: 12.5px !important;
    color: #3078a6 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
  }

  /* --- FOOTER SITE FEATURES REFINEMENT (2x2 Grid) --- */
  .ps-block--site-features {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px 12px !important;
    background: #fafafa !important;
    border: 1px solid #eeeeee !important;
    border-radius: 4px !important;
    margin-bottom: 20px !important;
  }
  .ps-block--site-features .ps-block__item {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .ps-block--site-features .ps-block__left {
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
  }
  .ps-block--site-features .ps-block__left i {
    font-size: 24px !important;
    color: #fcb800 !important;
  }
  .ps-block--site-features .ps-block__right {
    padding-left: 10px !important;
    width: auto !important;
  }
  .ps-block--site-features .ps-block__right h4 {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }
  .ps-block--site-features .ps-block__right p {
    font-size: 10.5px !important;
    color: #888888 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* PDP Right Sidebar widgets on mobile / tablet (Full width) */
  .ps-page--product .ps-page__container .ps-page__right {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .ps-page--product .ps-page__right .widget {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ps-page--product .ps-page__right .widget_features {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ps-page--product .ps-page__right .widget_same-brand {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ps-page--product .ps-page__right .widget_same-brand .form-control {
    width: 100% !important;
  }
  .ps-page--product .ps-page__right .widget_same-brand button,
  .ps-page--product .ps-page__right .widget_same-brand .ps-btn {
    width: 100% !important;
  }

  /* WhatsApp button positioning */
  .whatsapp-64 {
    bottom: 65px !important;
    right: 12px !important;
  }
}

/* ==========================================================================
   GLOBAL FOOTER REFINEMENTS (FULL WIDTH & COHESIVE LAYOUT)
   ========================================================================== */
.ps-footer {
  width: 100% !important;
  background-color: #f0f1f2 !important;
  border-top: 1px solid #e1e1e1 !important;
}
.ps-footer .ps-footer__features-wrapper {
  width: 100% !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e5e5e5 !important;
  padding: 15px 0 !important;
}
.ps-footer .ps-footer__content.grey-bg {
  width: 100% !important;
  background-color: #f0f1f2 !important;
  padding: 35px 0 25px 0 !important;
}
.ps-footer .ps-footer__copyright {
  width: 100% !important;
  background-color: #f0f1f2 !important;
  border-top: 1px solid #e2e5e8 !important;
  padding: 20px 0 !important;
}
.ps-footer .ps-footer__copyright .container {
  width: 100% !important;
}
.ps-footer .ps-footer__copyright-inner {
  display: flex !important;
  flex-flow: row wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
}
.ps-footer .ps-footer__copyright-inner p {
  margin: 0 !important;
  font-size: 13px !important;
  color: #666666 !important;
}

@media (max-width: 767px) {
  .ps-footer .ps-footer__features-wrapper {
    padding: 12px 0 !important;
  }
  .ps-footer .ps-footer__content.grey-bg {
    padding: 22px 0 14px 0 !important;
  }
  .ps-footer .ps-footer__content .col-6 {
    margin-bottom: 14px !important;
  }
  .ps-footer .ps-footer__content .col-12 {
    margin-bottom: 14px !important;
  }
  .ps-footer .ps-footer__content ul.ps-list--link li {
    margin-bottom: 8px !important;
  }
  .ps-footer .ps-footer__content ul.ps-list--link li a {
    font-size: 13px !important;
    color: #444444 !important;
  }
  .ps-footer .ps-footer__content ul.ps-list--link li a:hover {
    color: #fcb800 !important;
  }
  .ps-footer .ps-footer__copyright-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 10px !important;
  }
}

/* ==========================================================================
   7. DESKTOP HOME PAGE - ADVERTISE PANEL & PRODUCT GRID (3 PER ROW)
   ========================================================================== */
@media (min-width: 1200px) {
  #homepage-kids .ps-home-banner .owl-slider .owl-stage-outer {
    height: auto !important;
    transition: none !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-item {
    height: auto !important;
  }
  #homepage-kids .ps-home-banner .owl-slider .owl-item img {
    width: 100% !important;
    height: auto !important;
  }
  #homepage-kids .ps-block--products-of-category {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    margin-bottom: 45px !important;
    width: 100% !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__slider {
    flex: 0 0 270px !important;
    max-width: 270px !important;
    width: 270px !important;
    margin: 0 25px 0 0 !important; /* Margin from advertise panel to product grid */
  }
  #homepage-kids .ps-block--products-of-category .ps-block__slider a {
    display: block !important;
    height: 100% !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__slider a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__product-box {
    flex: 1 1 calc(100% - 295px) !important;
    max-width: calc(100% - 295px) !important;
    width: calc(100% - 295px) !important;
    display: flex !important;
    flex-flow: row wrap !important;
    align-content: flex-start !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__product-box > .ps-product--simple {
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 33.333333% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border: none !important;
    border-right: 1px solid #eeeeee !important;
    border-bottom: 1px solid #eeeeee !important;
    padding: 20px 15px 22px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    transition: all 0.2s ease !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__product-box > .ps-product--simple:nth-child(3n) {
    border-right: none !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-block__product-box > .ps-product--simple:hover {
    background-color: #fafafa !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__thumbnail {
    width: 100% !important;
    height: 220px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 12px !important;
    position: relative !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__thumbnail a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__thumbnail img {
    max-width: 100% !important;
    max-height: 210px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple:hover .ps-product__thumbnail img {
    transform: scale(1.04) !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: auto !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0066cc !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 38px !important;
    text-align: center !important;
    text-decoration: none !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__title:hover {
    color: #fcb800 !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-btn.btn-new {
    background-color: #fcb800 !important;
    color: #222222 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 8px 24px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    margin-top: 4px !important;
    display: inline-block !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-btn.btn-new:hover {
    background-color: #e5a700 !important;
    color: #111111 !important;
  }
  #homepage-kids .ps-block--products-of-category .ps-product--simple .ps-product__price {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #e62e04 !important;
    margin-bottom: 0 !important;
    margin-top: 4px !important;
    text-align: center !important;
  }
}

