/**
 * Mobile View Styles for Reliable Sign Supply
 * Includes mobile navbar, drawer menu, and responsive search functionality
 */

/* Prevent horizontal scroll on mobile */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative !important;
  }

  body {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ensure all containers stay within viewport */
  .container,
  .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Header and menubar containers should allow dropdown overflow */
  .header .container,
  .menubar .container {
    overflow-y: visible !important;
  }

  /* Prevent row overflow */
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure all images stay within bounds */
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix wrapper and sections */
  .wrapper-main,
  .slider-section,
  .section-pad-comman,
  .footer {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* ===== FOOTER MOBILE RESPONSIVENESS ===== */

  /* Vertical gradient on mobile instead of horizontal */
  .footer {
    background: linear-gradient(180deg, #50575f 0%, #4a6474 35%, #0b7f9f 70%, #00c0ec 100%) !important;
  }

  /* Remove large top margin from container */
  .footer .container.mt-5 {
    margin-top: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 0 !important;
  }

  /* Hide empty spacer columns on mobile */
  .footer > .container > .row > .col-md-1 {
    display: none !important;
  }

  /* Logo - centered and compact */
  .footer .footer-logo {
    text-align: center !important;
    margin-bottom: 5px !important;
  }

  .footer .footer-logo img {
    max-width: 55px !important;
    width: 55px !important;
    height: auto !important;
  }

  /* Center the left column (logo, address, socials) */
  .footer .col-md-6 {
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  /* Reduce address/phone spacing */
  .footer .col-md-6 > div.mt-4 {
    margin-top: 6px !important;
    font-size: 12px !important;
  }

  .footer .col-md-6 > div:not(.footer-logo) {
    font-size: 12px !important;
    margin-bottom: 1px !important;
  }

  /* Social icons - compact and centered */
  .footer .soicalicon {
    display: flex !important;
    justify-content: center !important;
    padding-left: 0 !important;
  }

  .footer .soicalicon.mt-5 {
    margin-top: 8px !important;
  }

  .footer .soicalicon.mb-0,
  .footer .soicalicon.my-2 {
    margin-bottom: 5px !important;
  }

  .footer .soicalicon li {
    margin: 0 6px !important;
  }

  .footer .soicalicon i {
    font-size: 16px !important;
  }

  /* Section headings - more breathing room between sections */
  .footer h6 {
    font-size: 14px !important;
    margin-top: 18px !important;
    margin-bottom: 4px !important;
  }

  /* First h6 in footer sections doesn't need extra top margin */
  .footer .col-md-4 .col-lg-12:first-child h6 {
    margin-top: 10px !important;
  }

  /* Links - compact */
  .footer ul {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
  }

  .footer ul li a,
  .footer ul li {
    font-size: 12px !important;
  }

  /* Sections column - remove excess margins */
  .footer .col-md-4 {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
  }

  .footer .col-md-4 .row {
    margin-top: 0 !important;
  }

  .footer .col-md-4 .col-lg-12 {
    margin-bottom: 2px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .footer .row.mt-4 {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .footer .row.mt-4 .col-md-4 {
    margin-bottom: 0 !important;
  }

  /* Copyright bar - compact */
  .footer .copyright {
    margin-top: 8px !important;
    padding: 4px 0 !important;
  }

  .copyright .row {
    gap: 0 !important;
  }

  .copyright .col-md-6 {
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Override inline style="margin-top: 10px" on the <p> tags */
  .copyright .col-md-6 p,
  .copyright p {
    font-size: 10px !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 6px 0 !important;
    line-height: 1.4 !important;
  }

  .copyright .col-lg-12 {
    font-size: 10px !important;
    text-align: center !important;
  }

  /* Header and menubar should allow overflow for dropdown */
  .header,
  .menubar {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* Reduce spacing in sections on mobile */
  .section-pad-comman {
    padding: 20px 0 !important;
    left: 0 !important;
    /* Reset the left offset from inline styles */
  }

  /* Fix main image container on mobile */
  .main-image-container {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px !important;
    max-height: 280px !important;
    /* Limit height on mobile */
  }

  .main-image-container img {
    object-fit: contain !important;
    max-height: 100% !important;
  }

  /* Resize thumbnails for mobile */
  .thumbnail-nav-container {
    width: 60px !important;
    height: 300px !important;
    max-height: 300px !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
  }

  .thumbnail-nav {
    top: 10px !important;
    bottom: 10px !important;
    width: 100% !important;
  }

  .thumbnail-nav .item {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 8px !important;
    padding: 1px !important;
  }

  /* Hide thumbnail navigation arrows */
  .thumbnail-nav .slick-prev,
  .thumbnail-nav .slick-next,
  .thumbnail-nav .slick-arrow {
    display: none !important;
  }

  /* Fix Breadcrumb Layout */
  .breadcrumb,
  nav[aria-label="breadcrumb"] .breadcrumb,
  #breadcrumbTrail {
    display: none !important;
  }

  nav[aria-label="breadcrumb"] {
    display: none !important;
  }

  /* Fix Product Info Layout */
  .productPreviewDescription h1,
  .productPreviewDescription h2,
  .productPreviewDescription h3,
  .productPreviewDescription .product-name,
  .productPreviewDescription div[class*="name"],
  .productPreviewDescription div[class*="title"],
  .product-name {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 5px !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  .product-specs {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Fix Dropdowns */
  select,
  .form-select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .productPreviewDescription .select-wrapper,
  .product-details .select-wrapper,
  div.select-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .productPreviewDescription .variable-input.form-select,
  .productPreviewDescription input.form-select,
  .product-details .variable-input.form-select,
  .product-details input.form-select {
    max-width: 100% !important;
    width: 100% !important;
  }

  .product-options-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  .product-options-row > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Reset quantity pricing section margins for mobile */
  #quantityPricingSection {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .product-options-row .select-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .product-options-row .variable-input,
  .product-options-row .form-select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile: make dropdown options inline in the page flow instead of absolute/scrollable */
  .select-wrapper .option-list {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    margin-top: 4px !important;
    z-index: auto !important;
  }
  .select-wrapper .select-options {
    max-height: none !important;
    overflow-y: visible !important;
  }
  /* Pin chevron arrow and clear button to the input area (top 24px = half of 48px input height) */
  .select-wrapper::after {
    top: 24px !important;
  }
  .select-wrapper .clear-input-btn {
    top: 24px !important;
  }

  /* Mobile: push COLOR dropdown to last among dropdowns, swatches right after it,
     and pricing table at the very end */
  .product-options-row .variable-color-dropdown {
    order: 90 !important;
  }
  .product-options-row .color-swatches-container {
    order: 91 !important;
    margin-top: 0 !important;
  }
  .color-swatches-container.has-qty-pricing {
    margin-top: 0 !important;
  }
  .product-options-row #quantityPricingSection {
    order: 100 !important;
  }

  /* Fix Cart Actions (Add to Cart & Quantity) - Single Row & Equal Width */
  .cart-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    /* Allow wrapping for info box */
  }

  .quantity-control {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    /* Allow shrinking */
    max-width: none !important;
    margin-bottom: 0 !important;
  }

  .add-to-cart-btn {
    flex: 1 !important;
    width: auto !important;
    margin-top: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
    font-size: 14px !important;
  }

  /* Info Box (Yellow Box) - Force to new line */
  .min-qty-indicator,
  .quantity-note,
  /* Guessing class name */
  .cart-actions>div:not(.quantity-control):not(.add-to-cart-btn) {
    width: 100% !important;
    flex: 0 0 100% !important;
    order: 10 !important;
    margin-top: 10px !important;
  }

  /* Fix Compare and Wishlist Icons - Below Image */
  .product-gallery+div {
    display: flex !important;
    flex-wrap: wrap !important;
    position: relative !important;
  }

  #productMainImg {
    width: 100% !important;
    order: 1 !important;
    margin-bottom: 0px !important;
    /* Remove bottom margin */
  }

  .click-full-view-link {
    order: 2 !important;
    width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 4px !important;
  }

  .compare-btn {
    display: inline-flex !important;
    position: static !important;
    /* Reset absolute */
    order: 3 !important;
    margin-right: auto !important;
    /* Push to left */
    background: none !important;
    /* Remove background if needed */
    padding: 0 !important;
    color: #000 !important;
    margin-top: -5px !important;
    /* Move up slightly */
  }

  .product-links {
    display: inline-block !important;
    position: static !important;
    /* Reset absolute */
    order: 4 !important;
    margin-left: auto !important;
    /* Push to right */
    margin-top: -3px !important;
    /* Align with compare button */
  }

  .wishlist-btn i {
    font-size: 24px !important;
    bottom: auto !important;
    right: auto !important;
  }

  /* Product Details Page - Layout: main img, then [Compare] [Click to see full view] [Heart] in same row */
  .product-details-page .product-gallery+div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0 12px !important;
  }

  .product-details-page .product-gallery+div .click-full-view-link {
    order: 3 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    font-size: 12px !important;
  }

  .product-details-page .product-gallery+div .compare-btn {
    display: inline-flex !important;
    align-items: center !important;
    order: 2 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    font-size: 12px !important;
    padding: 4px 0 !important;
    margin: 0 !important;
  }

  .product-details-page .product-gallery+div .compare-btn i {
    font-size: 11px !important;
    margin-right: 4px !important;
  }

  .product-details-page .product-gallery+div .product-links {
    display: flex !important;
    order: 4 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .product-details-page .product-gallery+div .wishlist-btn {
    padding: 4px !important;
  }

  .product-details-page .product-gallery+div .wishlist-btn i {
    font-size: 16px !important;
    bottom: auto !important;
    right: auto !important;
  }

  .stock-status-container {
    flex-wrap: wrap !important;
  }

  /* Fix Product Info Container Width */
  .productPreviewDescription {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 20px !important;
    padding: 0 15px !important;
  }

  /* Reset section margins */
  .section-pad-comman {
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .section-pad-comman .row .col-md-6 {
    margin-right: 0 !important;
  }


  .popular-brand {
    padding: 15px 0 !important;
    overflow: visible !important;
  }

  .popular-brand .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow: visible !important;
  }

  .popular-brand .headingTitle {
    margin-bottom: 15px !important;
  }

  .popular-brand .row {
    margin-top: 0 !important;
  }

  /* Reduce carousel item spacing and height */
  .home-brand-slider.owl-carousel {
    margin: 0 !important;
  }

  .home-brand-slider .item {
    padding: 5px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .home-brand-slider .item img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 60px !important;
    padding: 0 !important;
    margin: auto !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Brand slider arrows - match Popular Products style */
  .popular-brand .owl-carousel .owl-nav button.owl-prev,
  .popular-brand .owl-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    margin: auto !important;
    width: 30px !important;
    height: 50px !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .popular-brand .owl-carousel .owl-nav button.owl-prev {
    left: -5px !important;
  }

  .popular-brand .owl-carousel .owl-nav button.owl-next {
    right: -5px !important;
    transform: rotate(180deg) !important;
  }

  .popular-brand .owl-carousel .owl-nav button.owl-prev img,
  .popular-brand .owl-carousel .owl-nav button.owl-next img {
    width: 18px !important;
    height: 18px !important;
    max-width: none !important;
  }

  /* Reduce gaps in other sections too */
  .trending-products,
  .top-Collection,
  .reliable-equipment-software {
    padding: 20px 0 !important;
  }

  .headingTitle {
    margin-bottom: 15px !important;
  }

  /* Hide desktop featured categories on mobile */
  .featured-categories-desktop {
    display: none !important;
  }

  /* Mobile-only Featured Categories */
  .featured-categories-mobile {
    display: block !important;
    padding: 20px 0 !important;
    overflow: visible !important;
  }

  .featured-categories-mobile .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: visible !important;
  }

  .featured-categories-mobile .headingTitle {
    padding-left: 27px !important;
    margin-bottom: 15px !important;
  }

  .featured-categories-mobile .headingTitle h2 {
    font-style: normal !important;
  }

  .mobile-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .mobile-categories-grid .mobile-cat-card {
    position: relative !important;
    width: 100% !important;
    height: 150px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
  }

  .mobile-categories-grid .mobile-cat-card a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none !important;
  }

  .mobile-categories-grid .mobile-cat-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
  }

  .mobile-categories-grid .mobile-cat-card .mobile-cat-label {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.55) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    border-radius: 0 0 10px 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
  }

  .featured-categories-mobile .actiondiv {
    text-align: center !important;
    margin-top: 15px !important;
    position: static !important;
    top: auto !important;
    padding-bottom: 5px !important;
  }

  .featured-categories-mobile .viewallbutton {
    font-size: 14px !important;
    padding: 12px 40px !important;
    margin: 10px auto !important;
    display: inline-block !important;
    white-space: nowrap !important;
    min-width: 200px !important;
    text-align: center !important;
  }

  /* Explore RSS Exclusive - 2 cards per row */
  .top-Collection .row > .col-md-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .top-Collection .shop {
    margin: 5px 0 !important;
    border-radius: 8px !important;
  }

  .top-Collection .shop .shop-body h3 {
    font-size: 14px !important;
  }

  .top-Collection .shop .shop-body .cta-btn {
    font-size: 10px !important;
  }

  /* Mobile navbar styles */
  .menubar .navbar {
    padding: 5px 0 !important;
  }

  .mobile-navbar-row {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .mobile-nav-items {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important;
  }

  .mobile-nav-items .nav-item {
    text-align: center !important;
  }

  .mobile-nav-items .nav-link {
    padding: 10px 8px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }

  /* Hide Application Assistants on mobile */
  .desktop-only-nav-item {
    display: none !important;
  }

  /* Show search bar on mobile - positioned on the right */
  .mobile-search-bar {
    display: flex !important;
    margin: 0 !important;
    margin-left: auto !important;
  }

  .mobile-search-bar .search-box {
    width: fit-content !important;
    height: fit-content !important;
    position: relative !important;
    background: #fff !important;
    border-radius: 35px !important;
  }

  /* Collapsed state - show only icon */
  .mobile-search-bar .input-search {
    height: 35px !important;
    width: 35px !important;
    border-style: none !important;
    padding: 0px !important;
    font-size: 13px !important;
    outline: none !important;
    border-radius: 25px !important;
    transition: all .5s ease-in-out !important;
    padding-right: 35px !important;
    color: #000 !important;
    background-color: transparent !important;
  }

  .mobile-search-bar .input-search::placeholder {
    color: rgba(0, 0, 0, 1) !important;
    font-size: 12px !important;
  }

  .mobile-search-bar .btn-search {
    width: 35px !important;
    height: 35px !important;
    border-style: none !important;
    font-size: 16px !important;
    font-weight: bold !important;
    outline: none !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    position: absolute !important;
    right: 0px !important;
    color: #000 !important;
    background: transparent !important;
    pointer-events: painted !important;
  }

  /* Expanded state - when button or input is focused/clicked */
  .mobile-search-bar .btn-search:focus~.input-search {
    width: 180px !important;
    border-radius: 35px !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .5) !important;
    border: solid 1px #fff !important;
    transition: all 500ms cubic-bezier(0, 0.110, 0.35, 2) !important;
    padding-left: 15px !important;
  }

  .mobile-search-bar .input-search:focus {
    width: 180px !important;
    border-radius: 35px !important;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .5) !important;
    border: solid 1px #fff !important;
    padding-left: 15px !important;
  }

  /* Search dropdown visibility on mobile */
  .mobile-search-bar .search-box {
    position: relative !important;
  }

  /* Position menubar to help with dropdown placement */
  .menubar {
    position: relative !important;
    z-index: 5000 !important;
    overflow: visible !important;
  }

  /* Header should also have z-index */
  .header {
    position: relative !important;
    z-index: 5000 !important;
    overflow: visible !important;
  }

  /* Ensure navbar doesn't clip dropdown */
  .navbar {
    overflow: visible !important;
    z-index: 5001 !important;
  }

  .search-dropdown {
    position: fixed !important;
    /* top will be set by JavaScript */
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 70vh !important;
    z-index: 9998 !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15) !important;
    background: white !important;
    border-radius: 0 0 10px 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    display: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* When dropdown has content and is active, show it */
  .search-dropdown[style*="display: block"] {
    display: block !important;
  }

  /* Search result items styling for better visibility */
  .search-dropdown .search-result-item {
    border-bottom: 1px solid #eee !important;
    background: white !important;
  }

  .search-dropdown .search-result-item:hover {
    background: #f5f5f5 !important;
  }

  /* Make header-search take full width for proper dropdown positioning */
  .header-search {
    position: static !important;
    width: 100% !important;
  }

  /* Ensure search dropdown is always on top but below navbar */
  .navbar {
    position: relative !important;
    z-index: 10001 !important;
  }

  /* Ensure wrapper and other page content have lower z-index */
  .wrapper-main,
  .slider-section {
    position: relative !important;
    z-index: 1 !important;
  }

  /* Adjust dropdown menu positioning for mobile */
  .mobile-nav-items .dropdown-menu {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 350px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
  }

  /* Hide regular dropdown on mobile */
  .mobile-nav-items .dropdown-menu {
    display: none !important;
  }

  /* Hide profile dropdown on mobile */
  .myaccountTop .dropdown-menu {
    display: none !important;
  }

  /* ===== HEADER-TOP MOBILE LAYOUT ===== */
  .header-top .container {
    padding: 4px 10px !important;
    margin-bottom: -8px !important;
  }

  .header-top .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  /* Logo column - shrink to fit */
  .header-top .col-6:first-child {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    padding-right: 5px !important;
    display: flex !important;
    align-items: center !important;
  }

  .header-top .navbar-brand img {
    max-width: 130px !important;
    height: auto !important;
    margin-bottom: -28px !important;
  }

  body.not-logged-in .header-top .navbar-brand img {
    margin-bottom: -10px !important;
  }

  /* --- Right column - fill remaining space --- */
  .header-top .col-6:last-child {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
  }

  /* --- Header UL: NEVER wrap, always single row, right-aligned --- */
  .header-top ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important;
    min-height: 36px !important;
    list-style: none !important;
    margin-right: -25px !important; /* Move more to the right */
  }

  /* Adjust gap for before login */
  body.not-logged-in .header-top ul {
    gap: 15px !important;
    margin-right: -20px !important; /* Move more to the right */
  }

  /* --- Right column - fill remaining space --- */
  .header-top .col-6:last-child {
    flex: 1 !important;
    width: auto !important;
    max-width: none !important;
    display: flex !important;
    justify-content: flex-end !important; /* This forces content to the right edge */
  }

  /* --- Hide ALL li in header UL by default on mobile --- */
  .header-top ul > li {
    display: none !important;
  }

  /* --- LOGGED-OUT: Show Sign In + Contact Us, single row, pushed right --- */
  body.not-logged-in .header-top ul > li.loginButtonMenu {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 2px !important;
    border: none !important;
    white-space: nowrap !important;
    align-items: center !important;
  }

  body.not-logged-in .header-top ul > li.loginButtonMenu:first-child {
    /* No margin left auto here anymore because we are forcing it to the right with flex container */
    margin-left: 0 !important;
  }

  .header-top ul li.loginButtonMenu a {
    display: inline-block !important;
    padding: 5px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    color: #000000 !important;
    font-weight: 500 !important;
    margin-right: 0 !important;
  }

  /* --- LOGGED-IN: Show My Account + Cart, single row, pushed right --- */
  body.logged-in .header-top ul > li.myaccountTop {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
  }

  .myaccountTop > a,
  .myaccountTop > .dropdown-toggle {
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px !important;
    white-space: nowrap !important;
    margin-right: -15px !important; /* Move more to the right */
  }

  .myaccountTop img.profileimg {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
  }

  .myaccountTop .fa-user-circle {
    font-size: 22px !important;
  }

  /* Cart li - immediately after My Account */
  body.logged-in .header-top ul > li.myaccountTop + li {
    display: flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
  }

  /* Cart link styling */
  .header-top ul li a[href*="cart"],
  .header-top ul li a[href*="checkout"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 4px !important;
    margin-right: -15px !important; /* Move more to the right */
  }

  .header-top ul li a[href*="cart"] .fa-shopping-cart,
  .header-top ul li a[href*="checkout"] .fa-shopping-cart {
    font-size: 18px !important;
  }

  .header-top ul li a .cart-icon {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
  }

  /* Cart badge */
  .header-top ul li a[href*="cart"] .badge,
  .header-top ul li a[href*="checkout"] .badge {
    min-width: 16px !important;
    min-height: 16px !important;
    font-size: 10px !important;
    top: -6px !important;
    right: -4px !important;
  }

  .header-top #cart-count {
    position: absolute !important;
    left: auto !important;
    top: -2px !important;
    right: -6px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    font-size: 8px !important;
    padding: 1px 2px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
  }

  /* --- Language switcher: ALWAYS hide from header UL on mobile --- */
  .header-top ul > li:has(#langSwitcher),
  .header-top .lang-switcher-li,
  .header-top #langSwitcher {
    display: none !important;
  }

  /* Hide menubar language switcher on mobile */
  .menubar #langSwitcher,
  .menubar li:has(#google_translate_element),
  li:has(#google_translate_element) {
    display: none !important;
  }

  /* --- Mobile Available Credit row (below header icons) --- */
  .mobile-credit-row {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    padding: 0 10px 0 0 !important;
    font-size: 13px !important;
    color: #000000 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin-top: -2px !important;
  }

  /* --- Mobile Language switcher row (below credit) --- */
  .mobile-lang-row {
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    padding: 0 10px 2px 0 !important;
    line-height: 1 !important;
    margin-top: 3px !important;
  }

  .mobile-lang-row #mobileLangSwitcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    white-space: nowrap !important;
    user-select: none !important;
  }

  .mobile-lang-row .lang-btn {
    display: inline-block !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 2px 2px !important;
    color: #2e2e2e !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    line-height: 1 !important;
  }

  .mobile-lang-row .lang-btn.active {
    color: #00c0e5 !important;
  }

  .mobile-lang-row .lang-divider {
    display: inline-block !important;
    color: #2e2e2e !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  /* Prevent duplicate credit/lang rows */
  .header .header-top .container .mobile-credit-row ~ .mobile-credit-row,
  .header .header-top .container .mobile-lang-row ~ .mobile-lang-row {
    display: none !important;
  }

  .profile-page .menubar #google_translate_element,
  .profile-page .menubar .nav-item:has(#google_translate_element) {
    display: none !important;
  }

  /* Contact Page - Make map responsive on mobile */
  .contactPage .col-md-6 {
    margin-bottom: 20px !important;
  }

  .contactPage .iframeDiv {
    min-height: 300px !important;
    height: 300px !important;
  }

  .contactPage .contactinfo {
    margin-top: 20px !important;
  }
}

/* Tablet and small screens */
@media (min-width: 768px) and (max-width: 991px) {
  .mobile-nav-items .nav-link {
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  .desktop-only-nav-item {
    display: block !important;
  }

  .mobile-search-bar {
    display: flex !important;
  }

  /* Surface Pro 7 and tablet view adjustments */
  .col-md-9 {
    padding-left: 80px !important;
    padding-right: 15px !important;
  }

  .headingTitle {
    padding-left: 80px !important;
    padding-right: 15px !important;
  }

  #product-container {
    padding-left: 10px !important;
    padding-right: 5px !important;
  }

  #product-container>.col-lg-3 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .section-pad-comman .container-fluid {
    padding-right: 0 !important;
  }
}

/* iPad Pro and similar screens (1024px width) */
@media (min-width: 992px) and (max-width: 1199px) {

  /* Move content to the right */
  .col-md-9 {
    padding-left: 60px !important;
    padding-right: 20px !important;
  }

  .headingTitle {
    padding-left: 60px !important;
    padding-right: 20px !important;
  }

  /* 3 cards per row */
  #product-container>.col-lg-3 {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #product-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Desktop - show all items */
@media (min-width: 768px) {
  .desktop-only-nav-item {
    display: block !important;
  }

  .mobile-search-bar {
    display: flex !important;
  }

  /* Hide mobile drawer on desktop */
  .mobile-drawer-menu {
    display: none !important;
  }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Drawer Menu Styles */
.mobile-drawer-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: #ffffff;
  z-index: 100001;
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-menu.active {
  left: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  overflow: hidden;
  touch-action: none;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.drawer-header {
  background: #00c0e5;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  position: relative;
}

/* Profile drawer specific styling - white background with thin blue underline */
.drawer-header.profile-drawer {
  background: #ffffff;
  color: #00c0e5;
  border-bottom: 1px solid #00c0e5;
  box-shadow: 0 2px 8px rgba(0, 192, 229, 0.15);
}

.drawer-back {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  position: absolute;
  left: 15px;
  display: none;
}

.drawer-header.profile-drawer .drawer-back {
  color: #00c0e5;
}

.drawer-back.active {
  display: block;
}

.drawer-title {
  flex: 1;
  text-align: center;
  color: inherit;
}

.drawer-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 15px;
}

.drawer-header.profile-drawer .drawer-close {
  color: #00c0e5;
}

.drawer-content {
  padding: 0;
}

/* Drawer search bar */
.drawer-search-wrapper {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drawer-search-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-right: 10px;
  white-space: nowrap;
}

.drawer-search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 14px;
  flex: 1;
}

.drawer-search-box:focus-within {
  border-color: #2A8FAB;
}

.drawer-search-icon {
  color: #999;
  margin-right: 8px;
  font-size: 14px;
}

.drawer-search-input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  background: transparent;
}

.drawer-menu-item {
  border-bottom: 1px solid #eee;
}

.drawer-menu-item:last-child {
  border-bottom: none;
}

/* Remove border for profile drawer items */
.drawer-section .drawer-menu-item {
  border-bottom: none;
}

.drawer-menu-item>a,
.drawer-menu-item>button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  font-family: inherit;
  background: white;
  transition: background 0.2s;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}

.drawer-menu-item>a:hover,
.drawer-menu-item>button:hover {
  background: #f5f5f5;
}

.drawer-menu-item>button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.drawer-menu-item .arrow {
  color: #00c0e5;
  font-size: 18px;
  font-weight: bold;
}

/* Profile Drawer Sections */
.drawer-section {
  border-bottom: none;
  padding: 15px 0 5px 0;
}

.drawer-section:last-child {
  border-bottom: none;
}

.drawer-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #212529;
  text-transform: none;
  padding: 5px 20px 8px 20px;
  letter-spacing: 0;
}

.drawer-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(2853%) hue-rotate(162deg) brightness(95%) contrast(101%);
}

.drawer-section .drawer-menu-item a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #212529;
  font-size: 15px;
  padding: 12px 20px;
}

.drawer-section .drawer-menu-item a:hover {
  background: #f5f5f5;
}

.drawer-section .drawer-menu-item a img.drawer-icon {
  flex-shrink: 0;
}

/* Logout button styling in drawer */
.drawer-menu-item.logout-item {
  margin: 20px;
  border-top: none;
  padding-top: 0;
  border-bottom: none;
}

.drawer-menu-item.logout-item a {
  background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
  color: white;
  font-weight: 600;
  font-size: 16px;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 8px;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
  transition: all 0.3s ease;
}

.drawer-menu-item.logout-item a:hover {
  background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
  transform: translateY(-1px);
}

.drawer-menu-item.logout-item .fa-sign-out {
  margin-left: 8px;
  font-size: 18px;
}

/* Brand slider centering - applies to all screen sizes */
.home-brand-slider .item {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.home-brand-slider .item img {
  margin: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* ===== MOBILE FILTER STYLES (Product Listing Page) ===== */
/* Hide desktop filters and breadcrumbs on mobile */
@media (max-width: 768px) {
  .col-md-3 .filter-wrapper {
    display: none !important;
  }

  nav[aria-label="breadcrumb"] {
    display: none !important;
  }

  /* Show mobile filter trigger */
  .mobile-filter-trigger {
    display: flex !important;
  }
}

/* Mobile filter trigger bar */
.mobile-filter-trigger {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-filter-left {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}

.mobile-filter-left:active {
  opacity: 0.7;
}

.mobile-filter-trigger h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.mobile-filter-trigger .filter-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

/* Mobile breadcrumb styling */
.mobile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.mobile-breadcrumb a {
  color: #007bff;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-breadcrumb a:hover {
  text-decoration: underline;
}

.mobile-breadcrumb .breadcrumb-separator {
  color: #999;
  margin: 0 4px;
}

.mobile-breadcrumb .breadcrumb-current {
  color: #333;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile filter drawer overlay */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-filter-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile filter drawer */
.mobile-filter-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  overflow-y: auto;
  transition: left 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
}

.mobile-filter-drawer.active {
  left: 0;
}

/* Mobile filter drawer header */
.mobile-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #ffffff;
  border-bottom: 2px solid #0DDBFF;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-filter-drawer-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.mobile-filter-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-clear-all-link {
  background: none;
  border: none;
  color: #007bff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-clear-all-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.mobile-clear-all-link:active {
  color: #004085;
}

.mobile-filter-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-filter-close:active {
  color: #333;
}

/* Mobile filter content */
.mobile-filter-content {
  padding: 0;
}

/* Adjust filter sections for mobile drawer */
@media (max-width: 768px) {
  .mobile-filter-drawer .filter-main-container {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .mobile-filter-drawer .filter-sections-wrapper {
    border-radius: 0;
    border: none;
  }

  .mobile-filter-drawer .filter-section {
    border-bottom: 1px solid #e9ecef;
  }

  /* Product Listing Page - Fix heading and cards alignment */
  .headingTitle {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: left !important;
  }

  .headingTitle h2 {
    margin-left: -30px !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    font-size: 23px !important;
  }

  /* Fix product container alignment */
  .col-md-9 {
    margin-left: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Product grid - 2 columns on mobile */
  #product-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  #product-container>.col-lg-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin-bottom: 15px !important;
  }

  /* Product cards on mobile - fixed uniform height */
  #product-container > .col-lg-3 {
    margin-bottom: 10px !important;
  }

  .product-listing {
    height: 100% !important;
  }

  .product-listing .card {
    margin-bottom: 0 !important;
    height: 270px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .product-listing .card-body {
    padding: 6px 8px 22px 12px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  #product-container .product-listing .card-title,
  #product-container .product-listing .card-title.product-name {
    font-size: 13px !important;
    min-height: auto !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
    margin-left: -5px !important;
    font-weight: 600 !important;
  }

  /* Adjust image height on mobile */
  .product-listing .image-container {
    height: 120px !important;
    flex-shrink: 0 !important;
  }

  /* Reduce key features text size and spacing */
  .product-listing .key-features-text {
    min-height: auto !important;
    margin-top: 0px !important;
    padding: 0 !important;
  }

  .product-listing .key-features-text .key-features-list {
    font-size: 10px !important;
  }

  .product-listing .key-features-text .key-features-list strong {
    font-size: 10px !important;
    margin-bottom: 0px !important;
  }

  .product-listing .key-features-text ul {
    height: auto !important;
    min-height: auto !important;
    margin-top: 0px !important;
    gap: 0 !important;
  }

  .product-listing .key-features-text li {
    font-size: 10px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    margin-bottom: 0 !important;
  }

  .product-listing .key-features-text li::before {
    font-size: 10px !important;
    margin-right: 4px !important;
  }

  .product-listing .contentpoint {
    min-height: auto !important;
    margin-top: 2px !important;
    flex: 1 !important;
  }

  /* Card is the positioning parent */
  .product-listing .card {
    position: relative !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  /* Bottom controls row inside card: thumbnails left, compare right */
  .product-listing .form-check {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    z-index: 3 !important;
  }

  /* Color thumbnails - fixed left in bottom row */
  #product-container .product-listing .color-thumbnails {
    position: static !important;
    margin: 0 !important;
    gap: 3px !important;
    z-index: 3 !important;
  }

  #product-container .product-listing .color-thumb {
    width: 12px !important;
    height: 12px !important;
  }

  #product-container .product-listing .color-thumb-more {
    font-size: 10px !important;
    line-height: 1 !important;
    margin-left: 0 !important;
  }

  /* Compare button - fixed right in bottom row */
  #product-container .product-listing .card .card-body .form-check .compare-btn,
  #product-container .product-listing .compare-btn,
  .product-listing a.compare-btn[id^="compare-btn-"] {
    position: static !important;
    margin: 0 16px 0 auto !important;
    font-size: 8px !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: fit-content !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
    z-index: 3 !important;
    float: none !important;
  }

  #product-container .product-listing .compare-btn i {
    font-size: 7px !important;
  }

  /* Reduce sale tag size */
  .product-listing .sale-tag {
    width: 45px !important;
    height: 45px !important;
    top: -6px !important;
    left: -6px !important;
  }

  .product-listing .sale-tag img {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }

  /* Alternative selector if sale tag is an img directly */
  .product-listing img.sale-tag,
  .product-listing img[src*="sale"] {
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }

  /* Hide desktop-only column on mobile */
  .col-md-3:has(.filter-wrapper) {
    display: none !important;
  }

  /* Make product column full width on mobile */
  .col-md-9 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Container fluid adjustments */
  .section-pad-comman .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ===== MOBILE PRODUCT HEADER - NAME ABOVE IMAGE ===== */
  /* Show mobile product header above the image */
  .mobile-product-header {
    display: block !important;
    width: 100% !important;
    padding: 10px 15px !important;
    margin-bottom: 10px !important;
  }

  .mobile-product-name {
    font-family: 'Reem Kufi', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #272727 !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
  }

  .mobile-product-sku {
    font-size: 14px !important;
    color: #000 !important;
    font-weight: 700 !important;
    margin-bottom: -10px !important;
  }

  .mobile-product-sku span {
    font-weight: 700 !important;
  }

  /* Hide the desktop product name and SKU in productPreviewDescription on mobile */
  .productPreviewDescription .product-name,
  .productPreviewDescription #productName,
  .productPreviewDescription .sku-display {
    display: none !important;
  }

  /* ===== PRODUCT DETAILS PAGE - MOBILE FIX ===== */
  /* Fix product details page alignment on mobile */
  .product-details-page .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }

  /* Reset negative margins for product details sections */
  .product-details-page .section-pad-comman {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Fix breadcrumb alignment on mobile */
  .product-details-page .breadcrumb {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Fix product columns on mobile */
  .product-details-page .col-md-6 {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Fix product preview description alignment */
  .product-details-page .productPreviewDescription {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-top: 20px !important;
  }

  /* Fix product main image container */
  .product-details-page #productMainImg {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 20px !important;
  }

  /* Fix product gallery alignment */
  .product-details-page .product-gallery {
    margin-left: 0 !important;
    margin-right: 10px !important;
  }

  /* Fix description and review section */
  .product-details-page #descriptionAndReview {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    margin-top: 20px !important;
  }

  /* Product Details heading */
  .product-details-page .product-details-heading {
    font-size: 17px !important;
    margin-bottom: -30px !important;
  }

  /* Product Description tabs */
  .product-details-page #product-tab {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .product-details-page #product-tab .nav-link {
    font-size: 13px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }

  /* Product description text */
  .product-details-page #productDescription {
    font-size: 13px !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  /* Resources section */
  .product-details-page #resourcesContainer {
    margin-top: 15px !important;
    font-size: 0.85rem !important;
  }

  .product-details-page #resourcesContainer > p {
    font-size: 15px !important;
  }

  /* Resource items - make them stack properly on small screens */
  .product-details-page #resourcesSection p {
    flex-wrap: wrap !important;
    gap: 4px !important;
    font-size: 12px !important;
  }

  .product-details-page #resourcesSection strong {
    font-size: 13px !important;
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .product-details-page #resourcesSection a {
    font-size: 12px !important;
  }

  .product-details-page #resourcesSection a img {
    width: 12px !important;
    height: 12px !important;
  }

  /* Fix product details content alignment */
  .product-details-page .product-details {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Ensure row doesn't cause horizontal scroll */
  .product-details-page .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Fix main image container */
  .product-details-page .main-image-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  .product-details-page .main-image-container img {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Fix thumbnail navigation */
  .product-details-page .thumbnail-nav-container {
    margin-left: 0 !important;
    padding: 0 5px !important;
  }

  /* Fix pricing and form elements alignment */
  .product-details-page .pricing-container,
  .product-details-page .select-wrapper,
  .product-details-page .stock-status-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ===== PRODUCT OUTLINE (Specs) - MOBILE FIX ===== */
  .product-specs {
    max-width: 100% !important;
    margin-top: 5px !important;
  }

  /* Reduce the mt-4 spacer above the heading */
  .product-details-page .col-lg-5.col-md-6 > .mt-4 {
    margin-top: 0.5rem !important;
  }

  .spec-item {
    gap: 15px !important;
  }

  .spec-label {
    min-width: 90px !important;
    padding-left: 10px !important;
  }

  .spec-value {
    padding-left: 0 !important;
  }

  /* Override inline padding on the specs parent column */
  .product-details-page .col-lg-5.col-md-6 {
    padding-right: 15px !important;
    padding-left: 15px !important;
  }

  /* ===== IMAGE LIGHTBOX - MOBILE RESPONSIVE (Zoom/Full View) ===== */
  #imageLightboxOverlay.image-lightbox-overlay {
    padding: 0 !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #imageLightboxOverlay .lightbox-container {
    width: 100vw !important;
    min-height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
  }

  #imageLightboxOverlay .lightbox-header {
    padding: 12px 16px !important;
    min-height: 52px !important;
    flex-shrink: 0 !important;
  }

  #imageLightboxOverlay .lightbox-title {
    font-size: 16px !important;
    max-width: calc(100% - 56px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #imageLightboxOverlay .lightbox-close {
    width: 40px !important;
    height: 40px !important;
    font-size: 22px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  #imageLightboxOverlay .lightbox-content {
    flex-direction: column !important;
    min-height: auto !important;
    height: auto !important;
  }

  #imageLightboxOverlay .lightbox-main-image {
    min-height: 50vh !important;
    padding: 16px !important;
    flex: 0 0 auto !important;
  }

  #imageLightboxOverlay .lightbox-main-image img {
    max-height: 70vh !important;
    object-fit: contain !important;
  }

  #imageLightboxOverlay .lightbox-sidebar {
    width: 100% !important;
    max-height: 40vh !important;
    min-height: 180px !important;
    border-left: none !important;
    border-top: 1px solid #e0e0e0 !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
  }

  #imageLightboxOverlay .lightbox-product-info {
    padding: 16px !important;
  }

  #imageLightboxOverlay .lightbox-product-details {
    font-size: 14px !important;
    padding: 12px !important;
    line-height: 1.5 !important;
  }

  #imageLightboxOverlay .lightbox-thumbnails {
    padding: 12px 16px !important;
  }

  #imageLightboxOverlay .lightbox-tabs {
    margin-bottom: 12px !important;
  }

  #imageLightboxOverlay .lightbox-tab {
    padding: 6px 14px !important;
    font-size: 12px !important;
  }

  #imageLightboxOverlay .lightbox-thumbnail-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
  }

  #imageLightboxOverlay .lightbox-thumbnail {
    border-width: 2px !important;
  }

  #imageLightboxOverlay .lightbox-nav-arrow {
    width: 44px !important;
    height: 44px !important;
    font-size: 20px !important;
  }

  #imageLightboxOverlay .lightbox-nav-prev {
    left: 12px !important;
  }

  #imageLightboxOverlay .lightbox-nav-next {
    right: 12px !important;
  }

  #imageLightboxOverlay .lightbox-counter {
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    min-width: 60px !important;
  }

  /* Touch-friendly tap targets */
  #imageLightboxOverlay .lightbox-close,
  #imageLightboxOverlay .lightbox-nav-arrow,
  #imageLightboxOverlay .lightbox-thumbnail {
    min-height: 44px !important;
    cursor: pointer !important;
  }

  /* ===== PROFILE PAGE MOBILE MENU ===== */
  /* Hamburger button for profile page sidebar */
  .mobile-profile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
    z-index: 10;
  }

  .mobile-profile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-profile-menu-btn:hover span {
    background-color: #00c0e5;
  }

  /* Hide the profile sidebar on mobile */
  .col-lg-3:has(.myaccountTab) {
    display: none !important;
  }

  /* Make right side content full width */
  .col-lg-9.rightSideDetails {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .section-pad-comman1 {
    padding: 15px 0 5px 0 !important;
  }

  .section-pad-comman1 > .container-fluid {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  /* Reduce bottom space on mobile - account/profile/order pages */
  .account_wrapper {
    padding: 0 10px 8px 10px !important;
  }

  /* Reduce ORDER Summary title space */
  .informationdetails .aside-title {
    margin-bottom: 6px !important;
  }

  /* Profile Sidebar Drawer Content Styles */
  .profile-sidebar-drawer .drawer-sidebar-card {
    background: #fff;
    padding: 0;
  }

  .profile-sidebar-drawer .sidebar-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .profile-sidebar-drawer .sidebar-header .profileimg {
    width: 40px;
    height: 40px;
  }

  .profile-sidebar-drawer .sidebar-header .title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
  }

  .profile-sidebar-drawer .sidebar-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .profile-sidebar-drawer .sidebar-section:last-child {
    border-bottom: none;
  }

  .profile-sidebar-drawer .sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .profile-sidebar-drawer .sidebar-section-title .iconstyle {
    width: 18px;
    height: 18px;
    filter: brightness(0) saturate(100%) invert(64%) sepia(88%) saturate(2853%) hue-rotate(162deg) brightness(95%) contrast(101%);
  }

  .profile-sidebar-drawer .sidebar-section-title .fa {
    color: #00c0e5;
    width: 18px;
    text-align: center;
  }

  .profile-sidebar-drawer .sidebar-menu-item {
    display: block;
  }

  .profile-sidebar-drawer .sidebar-menu-item a {
    display: block;
    padding: 12px 20px 12px 48px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
  }

  .profile-sidebar-drawer .sidebar-menu-item a:hover,
  .profile-sidebar-drawer .sidebar-menu-item a.active {
    background: #f0f8ff;
    color: #00c0e5;
  }

  .profile-sidebar-drawer .sidebar-logout {
    padding: 15px 20px;
    margin-top: 10px;
  }

  .profile-sidebar-drawer .sidebar-logout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e91e63 0%, #d81b60 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .profile-sidebar-drawer .sidebar-logout a:hover {
    background: linear-gradient(135deg, #d81b60 0%, #c2185b 100%);
  }

  /* ===== ORDERS PAGE - MOBILE RESPONSIVE ===== */
  /* Hide desktop table, show mobile cards */
  .desktop-orders {
    display: none !important;
  }

  .mobile-orders-list {
    display: block !important;
    width: 100% !important;
  }

  /* Mobile order card - image left, info right */
  .mobile-order-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid #eee !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s !important;
  }

  .mobile-order-card:last-child {
    border-bottom: none !important;
  }

  .mobile-order-card:active {
    background: #f8f8f8 !important;
  }

  /* Product image thumbnail */
  .mobile-order-img {
    flex-shrink: 0 !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e8e8e8 !important;
    background: #fff !important;
    position: relative !important;
  }

  .mobile-order-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 4px !important;
  }

  .mobile-order-badge {
    position: absolute !important;
    bottom: 2px !important;
    right: 2px !important;
    background: #1181A0 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 1px 5px !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
  }

  /* Order info */
  .mobile-order-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .mobile-order-number {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.3 !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .mobile-order-meta {
    font-size: 12px !important;
    color: #666 !important;
    margin-bottom: 4px !important;
  }

  .mobile-order-delivery {
    font-size: 11px !important;
  }

  .mobile-delivery-status {
    font-weight: 600 !important;
    font-size: 11px !important;
  }

  .mobile-delivery-status.delivered {
    color: #0DA41C !important;
  }

  .mobile-delivery-status.processing {
    color: #1181A0 !important;
  }

  .mobile-delivery-status.pending {
    color: #e67e22 !important;
  }

  .mobile-delivery-status.returned {
    color: #e74c3c !important;
  }

  /* Right arrow */
  .mobile-order-arrow {
    flex-shrink: 0 !important;
    color: #bbb !important;
    font-size: 14px !important;
    padding-right: 4px !important;
  }

  /* Orders page breadcrumb fix */
  .rightSideDetails .breadcrumb-header {
    font-size: 18px !important;
  }

  .rightSideDetails .breadcrumb-tree {
    font-size: 12px !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    align-items: center !important;
  }

  .rightSideDetails .breadcrumb-tree li {
    margin-bottom: 0 !important;
    white-space: nowrap !important;
  }

  /* Invoice page - Search/ClearAll row, hide desktop print, show mobile print */
  .search-clear-col {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  .print-desktop {
    display: none !important;
  }

  .print-mobile {
    display: flex !important;
    margin-top: 10px;
  }

  /* All Orders title */
  .account_wrapper .aside-title {
    font-size: 18px !important;
  }

  /* ===== ORDER VIEW DETAILS PAGE - MOBILE RESPONSIVE ===== */

  /* Methods containers - full width, minimal padding to bring product list up */
  .informationdetails .methods {
    padding: 8px 10px 4px 10px !important;
    margin-bottom: 2px !important;
  }

  /* Order summary top row - 2 columns */
  .informationdetails .methods > .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .informationdetails .methods > .row > .col-3,
  .informationdetails .methods > .row > .col-2 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    padding: 0 8px !important;
    margin-bottom: 6px !important;
  }

  .informationdetails .methods > .row > .col-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 8px !important;
    margin-bottom: 6px !important;
  }

  .informationdetails .methods .custom-table {
    width: 100% !important;
    max-width: 100% !important;
  }

  .informationdetails .methods > .row > .col-4 .form-group {
    width: 100% !important;
  }

  /* Hide empty spacer column on mobile */
  .informationdetails .methods > .row > .col-2:empty {
    display: none !important;
  }

  .informationdetails .methods .form-group {
    margin-bottom: 4px !important;
  }

  .informationdetails .methods label {
    font-size: 12px !important;
  }

  .informationdetails .methods .information {
    font-size: 13px !important;
    word-break: break-word !important;
  }

  /* Print/Download button - full width on mobile, proper alignment */
  .informationdetails .methods > .row > .col-2:nth-child(5) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .informationdetails .print-download-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    margin-top: 4px !important;
  }

  .informationdetails .print-download-wrapper .btn-outline-primary {
    font-size: 13px !important;
    padding: 8px 16px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .informationdetails .print-download-wrapper img[alt="Print"] {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
  }

  /* Reorder & Return buttons - single row */
  .action-buttons-row {
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .action-buttons-row .actionretun {
    font-size: 10px !important;
    padding: 3px 8px !important;
    white-space: nowrap !important;
  }

  /* Order Details table - prevent word breaking */
  .informationdetails .custom-table td {
    white-space: nowrap !important;
    font-size: 13px !important;
    padding: 6px 4px !important;
  }

  /* ===== PROGRESS TRACKER - MOBILE (reduced height for hidden values) ===== */
  .informationdetails .wrapper {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
  }

  .informationdetails .margin-area {
    position: relative !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 5px !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 12px !important;
  }

  /* Dots - smaller, compact layout */
  .informationdetails .dot {
    position: absolute !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    font-size: 10px !important;
    z-index: 2 !important;
    top: 0 !important;
  }

  /* Tighter spacing between progress steps on mobile */
  .informationdetails .dot.one {
    left: 8% !important;
  }
  .informationdetails .dot.two {
    left: 33% !important;
  }
  .informationdetails .dot.three {
    left: 58% !important;
  }
  .informationdetails .dot.four {
    left: 83% !important;
  }

  /* Progress bars between dots */
  .informationdetails .progress-bar {
    position: absolute !important;
    height: 4px !important;
    top: 8px !important;
    z-index: 1 !important;
  }

  .informationdetails .progress-bar.first {
    left: calc(8% + 22px) !important;
    width: calc(25% - 22px) !important;
  }

  .informationdetails .progress-bar.second {
    left: calc(33% + 22px) !important;
    width: calc(25% - 22px) !important;
  }

  .informationdetails .progress-bar.third {
    left: calc(58% + 22px) !important;
    width: calc(25% - 22px) !important;
  }

  /* Step labels - compact, under dots */
  .informationdetails .message {
    position: absolute !important;
    top: 24px !important;
    width: 65px !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 9px !important;
    text-align: center !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
  }

  .informationdetails .message.message-1 {
    left: calc(8% - 20px) !important;
  }
  .informationdetails .message.message-2 {
    left: calc(33% - 20px) !important;
  }
  .informationdetails .message.message-3 {
    left: calc(58% - 20px) !important;
  }
  .informationdetails .message.message-4 {
    left: calc(83% - 20px) !important;
  }

  /* Reduce hr spacing above progress tracker */
  .informationdetails .methods hr {
    margin: 6px 0 !important;
  }

  /* Reduce space between progress tracker row and product list */
  .informationdetails .methods > .row:has(.wrapper) {
    margin-bottom: 2px !important;
  }

  /* ===== ORDER PRODUCT LIST (shippedTable) - BRING UP, REDUCED GAPS ===== */
  .shippedTable {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
  }

  /* Reduce space below order product list row */
  .informationdetails .row:has(.shippedTable) {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }

  .shippedTable tbody tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 6px 0 !important;
    border-bottom: 1px solid #eee !important;
    gap: 4px 8px !important;
  }

  .shippedTable tbody td {
    border: none !important;
    padding: 2px 4px !important;
    font-size: 12px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
  }

  /* Image column */
  .shippedTable tbody td:nth-child(1) {
    flex: 0 0 50px !important;
    order: 1 !important;
    padding: 2px 4px 2px 0 !important;
  }

  .shippedTable tbody td:nth-child(1) img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
    border-radius: 6px !important;
  }

  /* Product name + SKU column - tight line spacing */
  .shippedTable tbody td:nth-child(2) {
    flex: 1 !important;
    min-width: 0 !important;
    order: 2 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  .shippedTable tbody td:nth-child(2) br {
    line-height: 1.1 !important;
  }

  /* Price column */
  .shippedTable tbody td:nth-child(3) {
    flex: 0 0 auto !important;
    order: 3 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* Qty / shipped column */
  .shippedTable tbody td:nth-child(4) {
    flex: 0 0 auto !important;
    order: 4 !important;
    font-size: 11px !important;
    color: #666 !important;
    white-space: nowrap !important;
  }

  /* Total column */
  .shippedTable tbody td:nth-child(5) {
    flex: 0 0 auto !important;
    order: 5 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* ===== INVOICES & STATEMENTS PAGE - MOBILE RESPONSIVE ===== */

  /* Increase main container width */
  .informationdetails {
    padding: 0 !important;
    margin: 0 !important;
    width: 107% !important;
    margin-left: -3.5% !important;
  }

  .informationdetails .aside {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Methods container - full width, minimal padding to bring product list up */
  .informationdetails .methods {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px 4px 10px !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
  }

  /* Financial summary grid - 2 items per row, compact */
  .informationdetails .methods>.row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    row-gap: 0 !important;
  }

  .informationdetails .methods>.row>[class*="col-"]:not(.col-12) {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    margin-bottom: 4px !important;
    padding: 0 8px !important;
  }

  /* Checkout address cards - override to full width on mobile */
  .make-payment .informationdetails .methods>.row>.col-12 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  /* Financial summary - compact layout with larger font */
  .informationdetails .methods .form-group {
    margin-bottom: 2px !important;
  }

  .informationdetails .methods .form-group label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 0 !important;
  }

  .informationdetails .methods .form-group .information {
    font-size: 14px !important;
    margin-bottom: 2px !important;
  }

  /* Date filters and search row - stack properly */
  .informationdetails .methods .methods>.row {
    flex-wrap: wrap !important;
  }

  .informationdetails .methods .methods>.row>[class*="col-"] {
    width: 50% !important;
    flex: 0 0 50% !important;
    margin-bottom: 10px !important;
  }

  /* Search and Print Statement buttons - same row */
  .informationdetails .methods .methods>.row>.col-md-1 {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  .informationdetails .methods .methods>.row>.col-md-2:last-child {
    width: 50% !important;
    flex: 0 0 50% !important;
  }

  /* Button white text on mobile */
  .informationdetails .btn.information,
  .informationdetails .btn-primary.information {
    color: #fff !important;
  }

  /* Make date inputs full width within container */
  .informationdetails .input-group.date {
    width: 100% !important;
  }

  .informationdetails .input-group.date input {
    width: 100% !important;
  }

  /* Buttons row - side by side */
  .informationdetails .methods[style*="border: 0px"]>.row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
  }

  .informationdetails .methods[style*="border: 0px"]>.row>.col-3 {
    width: 50% !important;
    flex: 0 0 50% !important;
    margin-bottom: 10px !important;
    padding: 0 5px !important;
  }

  .informationdetails .methods[style*="border: 0px"] .btn {
    width: 100% !important;
    font-size: 12px !important;
    padding: 10px 8px !important;
  }

  /* Invoice table - horizontal scroll */
  .informationdetails .methods1 {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .informationdetails .methods1 table {
    min-width: 700px !important;
  }

  .informationdetails .methods1 table th,
  .informationdetails .methods1 table td {
    white-space: nowrap !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  /* Page title responsive */
  .informationdetails .aside-title {
    font-size: 16px !important;
  }

  /* Main methods container padding - minimal to bring product list up */
  .informationdetails .methods {
    padding: 8px 10px 4px 10px !important;
  }

  /* ===== MAKE PAYMENT PAGE - MOBILE RESPONSIVE ===== */

  /* Full width - remove boxed effect on mobile */
  .make-payment.section-pad-comman1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .make-payment .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100vw !important;
  }

  .make-payment .container-fluid > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .make-payment .col-lg-12.rightSideDetails {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .make-payment .informationdetails {
    padding: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .make-payment .informationdetails .aside {
    padding: 0 !important;
  }

  .make-payment .informationdetails > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .make-payment .methods {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 12px 16px !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  .make-payment .rightSideDetails {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .make-payment .account_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .make-payment .col-8.panel,
  .make-payment .col-4.meta-info {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .make-payment .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .make-payment .track-bar {
    width: 100% !important;
    padding: 15px 0 !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
  }

  .make-payment .track-bar.methods {
    border: none !important;
    padding: 10px 0 30px 0 !important;
  }

  /* Progress dots - fit all on screen */
  .make-payment .dot-container {
    overflow-x: hidden !important;
    padding-bottom: 25px !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .make-payment .dot {
    margin: 0 !important;
    flex-shrink: 0 !important;
    height: 12px !important;
    width: 12px !important;
  }

  .make-payment .dot-label {
    width: 4rem !important;
    font-size: 0.55rem !important;
    top: 15px !important;
  }

  .make-payment .dot+.dot::before {
    left: -3.5rem !important;
    width: 3rem !important;
  }

  /* Main content and payment box stacking */
  .make-payment .informationdetails>div>.row {
    flex-direction: column !important;
  }

  .make-payment .informationdetails>div>.row>.col-8 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: 1 !important;
  }

  .make-payment .informationdetails>div>.row>.col-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    order: 2 !important;
    margin-top: 20px !important;
  }

  /* Shipping address cards - full width on mobile */
  .make-payment .shipping-address .col-md-6,
  .make-payment .cls-2 .col-md-6,
  .make-payment .addressDeatils {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .make-payment .addressDeatils .mb-2 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Credit payment section - mobile responsive */
  .make-payment .credit-payment-section {
    padding: 12px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .make-payment .credit-payment-section .credit-header {
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }

  .make-payment .credit-payment-section #credit-amount-section {
    padding: 10px !important;
  }

  .make-payment .credit-payment-section .credit-input-row {
    flex-wrap: nowrap !important;
  }

  .make-payment .credit-payment-section .credit-input-row input {
    min-width: 0 !important;
    font-size: 14px !important;
  }

  .make-payment .credit-payment-section .credit-info-row {
    line-height: 1.5 !important;
  }

  .make-payment .credit-payment-section #credit-only-submit-btn {
    width: 100% !important;
    font-size: 13px !important;
    padding: 10px !important;
  }

  /* Saved Payment Methods info banner - responsive on mobile */
  .make-payment .saved-payment-info-banner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
  }

  .make-payment .saved-payment-info-banner p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  .make-payment .saved-payment-info-banner .fa-info-circle {
    flex-shrink: 0 !important;
    vertical-align: top !important;
    margin-top: 2px !important;
  }

  /* Date and search row */
  .make-payment .select-invoice>.row.methods {
    flex-wrap: wrap !important;
  }

  .make-payment .select-invoice>.row.methods>[class*="col-"] {
    width: 50% !important;
    flex: 0 0 50% !important;
    margin-bottom: 10px !important;
  }

  .make-payment .select-invoice>.row.methods>.col-md-2 {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .make-payment .select-invoice>.row.methods .btn-rss {
    width: 100% !important;
  }

  /* Order table - horizontal scroll */
  .make-payment .select-invoice>.row.methods:has(table) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .make-payment #orderTable {
    min-width: 500px !important;
  }

  .make-payment #orderTable th,
  .make-payment #orderTable td {
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 8px 5px !important;
  }

  /* Back and Next buttons */
  .make-payment .col-4>.row.m-1 {
    margin: 0 !important;
  }

  .make-payment .col-4>.row.m-1>[class*="col-"] {
    padding: 5px !important;
  }

  /* Payment summary box - compact on mobile */
  .make-payment .payment-box {
    margin: 0 !important;
    padding: 8px 10px !important;
  }

  .make-payment .payment-box #textbox,
  .make-payment .payment-box #taxable {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .make-payment .payment-box #textbox p,
  .make-payment .payment-box #taxable p {
    float: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    font-size: 0.85rem !important;
  }

  .make-payment .payment-box hr {
    margin: 5px 0 !important;
  }

  /* $5 FEE UNDER $200 - display below full set of charges on mobile */
  .make-payment .payment-box #deliveryFeeMessage,
  .make-payment .payment-box .delivery-fee-message {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin: 4px 0 8px 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  /* Will Call section compact */
  .make-payment .col-4.meta-info {
    margin-top: 10px !important;
    padding: 0 5px !important;
  }

  .make-payment .col-4.meta-info .delivery-status {
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
    padding: 4px 0 !important;
  }

  .make-payment .col-4.meta-info .delivery-options {
    margin-top: 8px !important;
  }

  .make-payment .col-4.meta-info .delivery-options .displayWeb {
    margin-bottom: 4px !important;
  }

  .make-payment .col-4.meta-info .delivery-options label {
    font-size: 0.85rem !important;
  }

  /* ===== CHECKOUT PAGE - MOBILE RESPONSIVE ===== */

  /* Hide desktop progress section on mobile - show mobile-specific section instead */
  .make-payment .methods.track-bar {
    display: none !important;
  }

  /* Mobile-specific progress section - full width, shown only on mobile */
  .checkout-progress-mobile {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 12px 10px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
    margin-bottom: 15px !important;
    background: #f8f9fa !important;
    border-radius: 0 !important;
    order: -2 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    box-sizing: border-box !important;
  }

  .checkout-progress-mobile .mobile-progress-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .checkout-progress-mobile .mobile-progress-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot {
    flex-shrink: 0 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background-color: #bbb !important;
    position: relative !important;
    cursor: default !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot::before {
    display: none !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot-label {
    display: none !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot.active-task {
    background-color: #15b422 !important;
    box-shadow: 0 0 0 2px rgba(21, 180, 34, 0.3) !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot.checkmark {
    background-color: #15b422 !important;
    box-shadow: 0 0 0 2px rgba(21, 180, 34, 0.3) !important;
  }

  .checkout-progress-mobile .mobile-progress-dots .dot.checkmark::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 8px !important;
    color: #fff !important;
    font-weight: bold !important;
  }

  .checkout-progress-mobile .mobile-step-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-align: center !important;
  }

  /* Mobile nav buttons - above progress dots */
  .checkout-mobile-nav-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 12px 10px !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    background: #f8f9fa !important;
    border-radius: 0 !important;
    order: -1 !important;
  }

  .checkout-mobile-nav-buttons .btn {
    flex: 1 !important;
    max-width: 120px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    margin: 0 !important;
    border-radius: 20px !important;
  }

  /* Ensure parent container is flex for ordering to work */
  .informationdetails.aside {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Checkout panels - only show active panel (match desktop flow) */
  .make-payment .panel {
    display: none !important;
  }
  .make-payment .panel.active-panel {
    display: block !important;
  }

  /* Checkout panels full width on mobile */
  .make-payment .col-8.panel,
  .make-payment .col-4.meta-info {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* ===== CART: Hide desktop table, show mobile cards ===== */
  .cart-desktop-view {
    display: none !important;
  }

  .cart-mobile-view {
    display: block !important;
    width: 100% !important;
    padding: 0 5px !important;
  }

  /* Mobile card item */
  .cart-mobile-card {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  /* Top row: checkbox | image | product info | delete */
  .cart-mobile-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .cart-mobile-top .checkbox-container {
    flex-shrink: 0;
    padding-top: 8px;
  }

  .cart-mobile-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    flex-shrink: 0;
    background: #fff;
    padding: 2px;
  }

  .cart-mobile-info {
    flex: 1;
    min-width: 0;
  }

  .cart-mobile-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 3px;
    word-break: break-word;
  }

  .cart-mobile-sku {
    font-size: 11px;
    color: #888;
  }

  .cart-mobile-top .delete-item {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
  }

  .cart-mobile-top .delete-item img {
    width: 14px;
    height: 14px;
  }

  /* Bottom row: qty controls + price */
  .cart-mobile-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-left: 30px;
  }

  .cart-mobile-bottom .quantity-controls {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
    background: #fff;
    display: inline-flex;
    align-items: center;
  }

  .cart-mobile-bottom .quantity-input {
    width: 32px;
    border: none;
    background: transparent;
    height: 26px;
    font-size: 13px;
    padding: 0;
    text-align: center;
  }

  .cart-mobile-bottom .increase-qty,
  .cart-mobile-bottom .decrease-qty {
    width: 26px;
    height: 26px;
    border: none;
    background: #f5f5f5;
    border-radius: 2px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .cart-mobile-price {
    font-size: 15px;
    font-weight: 600;
    color: #000;
  }

  /* Row wrapper for checkout */
  .make-payment .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* ===== SHIPMENTS TAB - Product list responsive ===== */
  .shipments.panel .shipmentsProduct .table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .shipments.panel .shipmentsProduct .table tbody tr {
    display: grid !important;
    grid-template-columns: 24px 50px 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 4px 8px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee !important;
    align-items: center !important;
  }

  .shipments.panel .shipmentsProduct .table td {
    border: none !important;
    padding: 0 !important;
  }

  /* 1. Checkbox - row 1, col 1 */
  .shipments.panel .shipmentsProduct .table td:nth-child(1) {
    grid-row: 1 !important;
    grid-column: 1 !important;
    display: flex !important;
    align-items: flex-start !important;
    padding-top: 6px !important;
  }

  .shipments.panel .shipmentsProduct .table td:nth-child(1) input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
  }

  /* 2. Image - row 1, col 2 */
  .shipments.panel .shipmentsProduct .table td:nth-child(2) {
    grid-row: 1 !important;
    grid-column: 2 !important;
  }

  .shipments.panel .shipmentsProduct .table td:nth-child(2) img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 4px !important;
    background: #fff !important;
  }

  /* 3. Product name - row 1, col 3 */
  .shipments.panel .shipmentsProduct .table td:nth-child(3) {
    grid-row: 1 !important;
    grid-column: 3 / -1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
    min-width: 0 !important;
  }

  /* 4. Quantity - row 2, col 2 */
  .shipments.panel .shipmentsProduct .table td:nth-child(4) {
    grid-row: 2 !important;
    grid-column: 2 !important;
  }

  .shipments.panel .shipmentsProduct .table td:nth-child(4) input {
    width: 40px !important;
    height: 28px !important;
    text-align: center !important;
    font-size: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 2px !important;
  }

  /* 5. Price - row 2, col 3 */
  .shipments.panel .shipmentsProduct .table td:nth-child(5) {
    grid-row: 2 !important;
    grid-column: 3 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #000 !important;
  }

  /* Shipments scroll container fix */
  .shipments.panel .shipmentsProduct {
    overflow-x: visible !important;
    width: 100% !important;
  }

  /* ===== WISHLIST PAGE - MOBILE RESPONSIVE ===== */

  /* Hide desktop table on mobile */
  .Orderlist.desktop-wishlist {
    display: none !important;
  }

  /* Show mobile wishlist cards */
  .mobile-wishlist-list {
    display: block !important;
  }

  /* Wishlist title */
  .account_wrapper .aside-title {
    font-size: 16px !important;
    padding: 0 5px !important;
    margin-bottom: 10px !important;
  }

  /* Each wishlist card */
  .mobile-wishlist-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 8px !important;
    border-bottom: 1px solid #eee !important;
    position: relative !important;
  }

  /* Product image on the left */
  .mobile-wishlist-card .wishlist-card-img {
    width: 80px !important;
    min-width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mobile-wishlist-card .wishlist-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Info section on the right */
  .mobile-wishlist-card .wishlist-card-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .mobile-wishlist-card .wishlist-card-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    padding-right: 24px !important;
  }

  .mobile-wishlist-card .wishlist-card-price {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 8px !important;
  }

  /* Bottom row: qty + add to cart */
  .mobile-wishlist-card .wishlist-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Compact quantity controls */
  .mobile-wishlist-card .wishlist-qty-controls {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .mobile-wishlist-card .wishlist-qty-controls button {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: #333 !important;
  }

  .mobile-wishlist-card .wishlist-qty-controls input {
    width: 36px !important;
    height: 26px !important;
    text-align: center !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    padding: 0 !important;
  }

  /* Add to Cart button */
  .mobile-wishlist-card .wishlist-add-cart-btn {
    background-color: #1181A0 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .mobile-wishlist-card .wishlist-add-cart-btn i {
    font-size: 11px !important;
  }

  /* Delete icon - top right corner */
  .mobile-wishlist-card .wishlist-delete-btn {
    position: absolute !important;
    top: 10px !important;
    right: 6px !important;
    background: none !important;
    border: none !important;
    color: #999 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
  }

  .mobile-wishlist-card .wishlist-delete-btn:hover {
    color: #d9181f !important;
  }

  /* Empty wishlist message */
  .mobile-wishlist-empty {
    text-align: center !important;
    padding: 30px 15px !important;
    color: #666 !important;
  }

  .mobile-wishlist-empty .btn {
    margin-top: 10px !important;
  }

  /* Footer fix for wishlist page */
  .section-pad-comman1 {
    padding: 15px 0 !important;
  }

  .section-pad-comman1 .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* Hide hamburger, mobile credit, and mobile orders on desktop */
@media (min-width: 768px) {
  .mobile-profile-menu-btn {
    display: none !important;
  }

  .mobile-credit-row {
    display: none !important;
  }

  .mobile-lang-row {
    display: none !important;
  }

  .mobile-orders-list {
    display: none !important;
  }

  .mobile-wishlist-list {
    display: none !important;
  }
}

/* Invoices page button text - white on all screens */
.informationdetails .btn.information,
.informationdetails .btn-primary.information {
  color: #fff !important;
}

/* Featured categories mobile - hidden on desktop */
.featured-categories-mobile {
  display: none;
}

/* Hide checkout mobile elements on desktop */
@media (min-width: 768px) {
  .checkout-progress-mobile,
  .checkout-mobile-nav-buttons {
    display: none !important;
  }

  .cart-mobile-view {
    display: none !important;
  }

  /* Hide mobile address summary on desktop */
  .mobile-address-summary {
    display: none !important;
  }
}

/* Extend mobile progress visibility to 768px (covers tablets in portrait) */
@media (max-width: 768px) {
  /* Full width checkout - remove boxed effect */
  .make-payment .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .make-payment .informationdetails .aside {
    padding: 0 !important;
  }
  .make-payment .methods.track-bar {
    display: none !important;
  }
  .checkout-progress-mobile {
    display: flex !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
    border-radius: 0 !important;
  }
  .checkout-mobile-nav-buttons {
    display: flex !important;
  }
  .checkout-mobile-nav-buttons .btn {
    padding: 8px 12px !important;
    font-size: 12px !important;
    max-width: 120px !important;
  }

  /* ===== PRODUCT DETAILS - SINGLE PARENT PRODUCT CART ACTIONS FIX ===== */

  /* Remove the bottom offset that pushes cart buttons down and causes separate scroll */
  .single-product-cart-actions {
    position: static !important;
    bottom: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 15px 0 !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  /* Quantity control wrapper - no column stacking needed */
  .single-product-cart-actions .quantity-control-wrapper {
    flex-shrink: 0 !important;
  }

  /* Quantity control - compact pill shape */
  .single-product-cart-actions .quantity-control {
    width: 120px !important;
    height: 40px !important;
    padding: 4px !important;
    border-radius: 50px !important;
    border: 2px solid #ec008c !important;
    background: white !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  /* Input number container */
  .single-product-cart-actions .input-number {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Qty buttons inside the pill - no separate circles */
  .single-product-cart-actions .qty-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: #333 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Qty input */
  .single-product-cart-actions .input-number input {
    width: 35px !important;
    font-size: 15px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
  }

  /* Add to cart button - inline with quantity, not full width */
  .single-product-cart-actions .add-to-cart-btn {
    height: 40px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    border-radius: 9999px !important;
    flex: 1 !important;
    max-width: none !important;
    width: auto !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
    gap: 6px !important;
  }

  /* Fix productPreviewDescription separate scroll on mobile */
  .product-details-page .productPreviewDescription {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }

  /* Ensure the parent section doesn't create a separate scroll context */
  .product-details-page .section-pad-comman {
    overflow: visible !important;
  }

  .product-details-page .container-fluid {
    overflow: visible !important;
  }

  .product-details-page .col-md-6 {
    overflow: visible !important;
  }

  /* Fix cart-actions container on product details page */
  .product-details-page .cart-actions {
    margin: 10px 0 !important;
    overflow: visible !important;
  }

  /* ===== PRODUCT DETAILS - MOBILE SWIPE CAROUSEL ===== */

  /* Hide thumbnail sidebar on mobile (keep in DOM for JS) */
  .product-details-page .product-gallery {
    display: none !important;
  }

  .product-details-page .thumbnail-nav-container {
    display: none !important;
  }

  /* Break the side-by-side d-flex layout on mobile */
  .product-details-page .col-md-6 > .d-flex {
    display: block !important;
  }

  /* Main image full width for carousel */
  .product-details-page #productMainImg {
    width: 100% !important;
    margin-top: 5px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .product-details-page .main-image-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 320px !important;
    aspect-ratio: auto !important;
    margin-left: 0 !important;
    touch-action: pan-y pinch-zoom !important;
  }

  /* Carousel indicator dots */
  .carousel-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 0 4px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    flex-wrap: wrap !important;
  }

  .carousel-dots .dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: #d0d0d0 !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
  }

  .carousel-dots .dot.active {
    background-color: #333 !important;
    transform: scale(1.3) !important;
  }
}

/* Hide carousel dots on desktop */
@media (min-width: 768px) {
  .carousel-dots {
    display: none !important;
  }
}

/* ===== MAKE PAYMENT PAGE - MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
  /* Progress dots - compact for mobile */
  .make-payment .track-bar .dot-container {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .make-payment .dot {
    margin: 0px 1.2rem !important;
    height: 12px !important;
    width: 12px !important;
  }

  .make-payment .dot-label {
    width: auto !important;
    font-size: 0.6rem !important;
    white-space: nowrap !important;
  }

  .make-payment .dot + .dot::before {
    left: -2.4rem !important;
    width: 2rem !important;
  }

  /* Stack cols vertically on mobile */
  .make-payment .panel .row > .col-8,
  .make-payment .panel .row > .col-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .make-payment .panel .row > .col-4 {
    margin-top: 15px !important;
  }

  /* Search filters - 2 per row */
  .make-payment .methods .row > [class*="col-md-3"],
  .make-payment .methods .row > [class*="col-md-2"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    margin-bottom: 8px !important;
  }

  /* Payment box summary */
  .make-payment .payment-box {
    margin: 0.5rem 0 !important;
  }

  /* Saved Payment Methods info banner - compact on extra small screens */
  .make-payment .saved-payment-info-banner {
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
  }

  .make-payment .saved-payment-info-banner p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  /* $5 FEE UNDER $200 - compact on extra small screens */
  .make-payment .payment-box #deliveryFeeMessage,
  .make-payment .payment-box .delivery-fee-message {
    font-size: 10px !important;
    margin: 2px 0 6px 0 !important;
  }

  /* Account wrapper spacing */
  .make-payment .account_wrapper {
    padding: 0 5px !important;
  }

  /* Methods section padding */
  .make-payment .methods {
    padding: 12px !important;
  }

  /* Table responsive */
  .make-payment table {
    font-size: 0.7rem !important;
  }

  .make-payment table th,
  .make-payment table td {
    padding: 6px 4px !important;
  }

  /* Action buttons row */
  .make-payment .row.m-1 {
    margin: 0 !important;
  }

  .make-payment .btn.action-btn {
    padding: 5px 20px !important;
    font-size: 0.65rem !important;
  }

  /* Step 2 credit section */
  .make-payment .credit-allocation-table {
    font-size: 0.7rem !important;
  }

  /* Step 4 review */
  .make-payment .review-table {
    font-size: 0.7rem !important;
  }

  /* Step 5 confirmation */
  .make-payment .panel.cls-5 .p-5 {
    padding: 1.5rem !important;
  }

  .make-payment .panel.cls-5 h2 {
    font-size: 1.3rem !important;
  }

  /* Breadcrumb */
  .make-payment .breadcrumb-header {
    font-size: 1.1rem !important;
  }

  .make-payment .breadcrumb-tree {
    font-size: 0.75rem !important;
  }

  /* Aside title */
  .make-payment .aside-title {
    font-size: 1rem !important;
  }
}

/* ===== PAYMENT HISTORY PAGE - MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
  /* Filter section - 2-row layout using flex wrap */
  .information-details .filterSection {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    row-gap: 10px !important;
  }

  /* Row 1: Start date (45%) + End date (35%) + Clear All (20%) */
  .information-details .filterSection > .col-md-2:nth-child(1) {
    flex: 0 0 42% !important;
    max-width: 42% !important;
    padding-left: 0 !important;
    padding-right: 5px !important;
  }

  .information-details .filterSection > .col-md-2:nth-child(2) {
    flex: 0 0 38% !important;
    max-width: 38% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .information-details .filterSection > .col-md-auto {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    padding-left: 5px !important;
    padding-right: 0 !important;
  }

  /* Row 2: Search input + button - full width */
  .information-details .filterSection > .col-md-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .information-details .filterSection > .col-md-3 .d-flex {
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .information-details .filterSection > .col-md-3 .form-control {
    flex: 1 !important;
  }

  .information-details .filterSection > .col-md-3 .btn {
    top: 0 !important;
    flex-shrink: 0 !important;
  }

  /* Filter labels */
  .information-details .filterSection label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  /* Date inputs */
  .information-details .filterSection .form-control {
    font-size: 0.75rem !important;
    padding: 4px 6px !important;
  }

  /* Clear All link alignment */
  .information-details .filterSection #clear-filters {
    font-size: 11px !important;
    padding-bottom: 6px !important;
  }

  /* Table responsive on mobile */
  .information-details .custom-table {
    width: 100% !important;
    font-size: 0.7rem !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .information-details .custom-table thead th,
  .information-details .custom-table tbody td {
    padding: 6px 8px !important;
    white-space: nowrap !important;
  }

  /* Aside title */
  .information-details .aside-title {
    font-size: 1rem !important;
  }
}

/* ===== LOGIN PAGE - SMALL PHONE FIX ===== */
@media (max-width: 767px) {
  /* Allow page to scroll instead of cutting off content */
  .wrapper {
    align-items: flex-start !important;
    min-height: 100vh;
    padding: 0 !important;
  }

  .inner {
    min-width: auto !important;
    width: 100% !important;
    padding: 10px 0 20px !important;
    background: none !important;
  }

  /* Shrink logo on mobile */
  .logo-login {
    width: auto !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
  .logo-login img {
    width: 140px !important;
  }

  /* Form takes full width, compact spacing */
  .form-slider {
    width: 100% !important;
    padding: 0 15px !important;
  }
  .form-slider h3 {
    font-size: 18px !important;
    margin-bottom: 18px !important;
  }

  /* Smaller form inputs */
  .form-slider .form-wrapper {
    margin-bottom: 10px !important;
  }
  .form-slider .form-wrapper label {
    margin-bottom: 5px !important;
    font-size: 12px !important;
  }
  .form-slider .form-control {
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 15px !important;
  }

  /* Compact links row */
  .form-links {
    margin-top: 8px !important;
    margin-bottom: 3px !important;
  }
  .form-links a {
    font-size: 11px !important;
  }

  /* Smaller buttons */
  .form-slider .submitbtn,
  .form-slider .singup,
  .form-slider button {
    height: 36px !important;
    font-size: 12px !important;
    margin-top: 14px !important;
  }

  /* Compact agreement text */
  .agreement-text {
    margin-top: 8px !important;
    font-size: 10px !important;
  }
}

/* Extra small phones (iPhone SE, 375px) */
@media (max-width: 400px) {
  .logo-login img {
    width: 120px !important;
  }
  .form-slider h3 {
    font-size: 16px !important;
    margin-bottom: 14px !important;
  }
  .form-slider .form-control {
    height: 34px !important;
  }
  .form-slider .submitbtn,
  .form-slider .singup,
  .form-slider button {
    height: 34px !important;
    margin-top: 10px !important;
  }
  .form-slider .form-wrapper {
    margin-bottom: 8px !important;
  }
}

/* ===== MAKE PAYMENT - MOBILE NAV & SUMMARY ===== */

/* Hidden on desktop */
.mobile-payment-summary,
.mobile-payment-nav,
.mobile-step-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Mobile nav buttons */
  .mobile-payment-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
  }

  .mobile-payment-nav .btn {
    min-width: 110px !important;
    padding: 10px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
  }

  /* Mobile step nav (steps 2, 3, 4) */
  .mobile-step-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 5px !important;
    margin-bottom: 10px !important;
  }

  .mobile-step-nav .btn {
    min-width: 110px !important;
    padding: 10px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 25px !important;
  }

  /* Mobile summary between search and table */
  .mobile-payment-summary {
    display: block !important;
    border: 1px solid #e3e3e5 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    margin: 10px 0 !important;
    background: #fafafa !important;
  }

  .mobile-summary-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 3px 0 !important;
    font-size: 13px !important;
    color: #575f6d !important;
  }

  .mobile-summary-total {
    font-size: 14px !important;
    color: #333 !important;
  }

  /* Hide the desktop sidebar (col-4) with back/next/summary on mobile */
  .make-payment .panel .row > .col-4 {
    display: none !important;
  }

  /* Make col-8 full width since col-4 is hidden */
  .make-payment .panel .row > .col-8 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* ===== MOBILE ADDRESS SELECTION ===== */

  /* Show mobile address summary on mobile */
  .mobile-address-summary {
    display: block !important;
    width: 100%;
    margin-bottom: 12px;
  }

  /* Selected address display on mobile */
  .mobile-selected-address {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }

  .mobile-selected-address .selected-addr-company {
    font-weight: 700;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
  }

  .mobile-selected-address .selected-addr-name {
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 2px;
  }

  .mobile-selected-address .selected-addr-line {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
  }

  .mobile-selected-address .no-address-text {
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin: 0;
  }

  /* Change Address button */
  .btn-change-address {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #00c0e5;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 8px;
  }

  .btn-change-address .fa {
    font-size: 16px;
    color: #00c0e5;
  }

  /* Hide desktop address grid on mobile */
  .shipping-address.panel.cls-2 .row.methods > .row {
    display: none !important;
  }

  /* Saved Payment Methods banner - full width on mobile */
  .saved-payment-info-banner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 30px !important;
  }

  .payment.panel .row.methods,
  .payment.panel .row.methods .row,
  .payment.panel .row.methods .row > [class*="col"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .payment.panel .row.methods .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ===== ADDRESS SELECTION DRAWER (Mobile) ===== */

.address-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  touch-action: none;
}

.address-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.address-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 100001;
  transition: left 0.3s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
}

.address-drawer.active {
  left: 0;
}

.address-drawer-header {
  background: #00c0e5;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1;
}

.address-drawer-title {
  font-size: 17px;
  font-weight: 700;
}

.address-drawer-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.address-drawer-content {
  padding: 12px;
}

/* Individual address card in drawer */
.address-drawer-card {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.address-drawer-card:active {
  transform: scale(0.98);
}

.address-drawer-card.selected {
  border-color: #00c0e5;
  background: rgba(0, 192, 229, 0.05);
  box-shadow: 0 0 0 1px #00c0e5;
}

.address-drawer-card .addr-company {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin-bottom: 3px;
}

.address-drawer-card .addr-name {
  font-weight: 600;
  font-size: 13px;
  color: #444;
  margin-bottom: 3px;
}

.address-drawer-card .addr-line {
  font-size: 12px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.address-drawer-card .addr-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.address-drawer-card.selected .addr-check {
  border-color: #00c0e5;
  background: #00c0e5;
}

.address-drawer-card.selected .addr-check::after {
  content: "\2713";
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}