@media (max-width: 767px) {
  a[href="#top"],
  a[href="#"],
  .js-back-to-top,
  .back-to-top-button,
  .back-to-top-link,
  .scrollup,
  .scroll-up,
  .go-top,
  .gotop,
  .to-top,
  .totop,
  .backtop,
  .back-top,
  .btn-back-to-top,
  [class*="back-to-top"],
  [class*="scroll-to-top"],
  [class*="to-top"],
  [id*="back-to-top"],
  [id*="scroll-to-top"],
  [id*="to-top"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}





#pw-load-more-wrap + div,
#pw-load-more-wrap + .pagination,
#pw-load-more-wrap + nav,
#pw-load-more-wrap + * .pagination {
    display: none !important;
}


#product-column .pagination {
    display: none !important;
}

/* =========================================================
   Tablet footer 
========================================================= */
@media (max-width: 575px) {

    .pw-footer-column {
        margin-bottom: 10px !important;
    }

    .pw-footer-column h4,
    .pw-footer-column .title_block {
        margin-bottom: 6px !important;
        padding-bottom: 0 !important;
    }

    .pw-footer-column ul {
        margin-bottom: 8px !important;
    }

    .pw-footer-column ul li {
        margin-bottom: 2px !important;
    }

    .pw-footer-main {
        gap: 10px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

}/* =========================================================
   PRODUCT PAGE
========================================================= */

/* Move "Back To Top" arrow above sticky add-to-cart bar */
body#product a#goToTop.show {
    transform: translateY(-55px) !important;
}

/* Hide payment text block */
.payment-content {
    display: none !important;
}

/* Remove Product Details tab */
.nav-tabs .nav-link[href="#product-details"],
.nav-tabs a[data-toggle="tab"][href="#product-details"],
#product-details,
.tab-content > #product-details {
    display: none !important;
}


/* =========================================================
   BESTSELLERS SECTION
========================================================= */

/* Remove divider line between image and text */
.bestsellerli .ttproduct-image,
.bestsellerli .ttproduct-desc {
    border: none !important;
}


/* =========================================================
   PRODUCT MINIATURE / GRID
========================================================= */

/* Product category text styling */
.product-miniature .cat-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e73be;
    line-height: 1.3;
    display: block;
    margin-bottom: 6px;
}

.product-miniature .cat-name a,
.product-miniature .cat-name:hover {
    color: #155a96;
}

/* Fix product grid spacing / left border issue */
.products .row {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.products .row > div {
    padding-left: 5px !important;
    padding-right: 5px !important;
box-sizing: border-box !important;
}

/* Product card styling */
#products .product-miniature {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

/* Product hover effect */
#products .product-miniature:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Product title */
#products .product-miniature .product-title {
    text-align: center;
    font-size: 14px;
}

/* Hide duplicate title */
#products .product-miniature h3:first-of-type {
    display: none;
}

/* Center product content */
#products .product-miniature .thumbnail-container {
    text-align: center;
}


/* =========================================================
   PRODUCT ACTION BUTTONS / QUICK VIEW
========================================================= */

/* Position action buttons top-right */
#products .product-miniature .product-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    opacity: 1;
    display: flex;
    gap: 5px;
}

/* Button styling */
#products .product-miniature .product-actions a {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 5px;
}

/* Keep visible on hover */
#products .product-miniature:hover .product-actions {
    opacity: 1;
}


/* =========================================================
   LEFT COLUMN CATEGORY MENU
========================================================= */

/* Main categories */
#left-column .block-categories .category-sub-menu > li > a {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    padding: 4px 0;
    line-height: 1.2;
    display: block;
}

/* Main category hover */
#left-column .block-categories .category-sub-menu > li > a:hover {
    color: #d32f2f;
    background: rgba(211,47,47,0.08);
    padding-left: 6px;
    border-radius: 3px;
}

/* Subcategories */
#left-column .block-categories .category-sub-menu .category-sub-menu a {
    color: #7f8c8d;
    font-size: 14px;
    padding: 3px 0;
    line-height: 1.2;
}

/* Subcategory hover */
#left-column .block-categories .category-sub-menu .category-sub-menu a:hover {
    color: #d32f2f;
    background: rgba(211,47,47,0.06);
    padding-left: 8px;
    border-radius: 3px;
}


/* =========================================================
   CATEGORY PAGE CLEANUP
========================================================= */

/* Remove category banner */
.category-cover,
.category-banner {
    display: none !important;
}


/* =========================================================
   SUBCATEGORY CLEANUP
========================================================= */

/* Hide subcategory images */
.subcategories-list img,
.subcategory-image {
    display: none !important;
}

/* Subcategory layout */
.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.subcategories-list li {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    background: #f9f9f9;
    text-align: center;
}

.subcategories-list li a {
    display: block;
}


/* =========================================================
   HOMEPAGE CATEGORY BLOCKS
========================================================= */

.ttcategory {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
}


/* =========================================================
   YOU MAY ALSO LIKE / ACCESSORIES
========================================================= */

/* Remove boxed styling */
.product-accessories .product-miniature,
.featured-products .product-miniature {
    border: none !important;
    padding: 5px !important;
    margin: 0 !important;
}

/* Improve spacing */
/*
.product-accessories .products,
.featured-products .products {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
*/










/* Mobile search width tidy-up */
@media (max-width: 767px) {
  .pw-livesearch-wrapper,
  .pw-live-search,
  #pw_livesearch,
  .search-widget {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .pw-livesearch-wrapper form,
  .pw-live-search form,
  #pw_livesearch form,
  .search-widget form {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .pw-livesearch-wrapper input,
  .pw-live-search input,
  #pw_livesearch input,
  .search-widget input[type="text"],
  .search-widget input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }

  .pw-livesearch-wrapper button,
  .pw-live-search button,
  #pw_livesearch button,
  .search-widget button {
    flex: 0 0 auto !important;
    width: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    white-space: nowrap !important;
  }
}


























/* =========================================================
   MOBILE CART OVERLAY FIX - SAFER VERSION
========================================================= */

@media (max-width: 767px) {

  #_mobile_cart {
    position: relative !important;
    z-index: 100000 !important;
  }

  #_mobile_cart .blockcart.cart-preview.active {
    z-index: 100001 !important;
  }

  #_mobile_cart .blockcart.cart-preview.active .cart_block {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 75vw !important;
    max-width: 340px !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 100002 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 15px !important;
    box-shadow: -4px 0 18px rgba(0,0,0,0.25) !important;
  }

  #_mobile_cart .blockcart.cart-preview.active ~ *,
  body:has(#_mobile_cart .blockcart.cart-preview.active) #pw-mobile-category-menu,
  body:has(#_mobile_cart .blockcart.cart-preview.active) .pw-mobile-category-menu,
  body:has(#_mobile_cart .blockcart.cart-preview.active) .mobile-category-menu {
    display: none !important;
  }
}


