/**
 * Custom Pagination Go To Styles
 */
.products.wrapper ~ .toolbar-products .pages {
  display: inline !important;
}

.go-to-page {
    display: block;
    margin: 0 15px 0 0;
    float: left;
    margin-top: -2px !important;
}

.goto-label {
    display: inline-block;
    margin-right: 8px;
    font-weight: normal;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.goto-input {
    width: 44px !important;
    height: 44px !important;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    margin-right: 8px;
    transition: border-color 0.3s ease;
}

.goto-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

#goto-page-button,
#goto-page-button:hover,
#goto-page-button:focus {
    background-color: #e64d22;
    border-color: #e64d22;
    outline: none;
}

#goto-page-button:active {
    background-color: #e64d22;
    border-color: #e64d22;
}


/* Mobile responsiveness */


/* Double left arrow for first page */
.pages .action.first::before {
  content: '\f104\f104' !important; /* FontAwesome angle-double-left */
  font-family: 'FontAwesome' !important;
  color: #1a3764 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

/* Double right arrow for last page */
.pages .action.last::before {
  content: '\f105\f105' !important; /* FontAwesome angle-double-right */
  font-family: 'FontAwesome' !important;
  color: #1a3764 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

/* Single left arrow for previous page */
.pages .action.previous::before {
  content: '\f105' !important; /* FontAwesome angle-left */
  font-family: 'FontAwesome' !important;
  color: #1a3764 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Single right arrow for next page */
.pages .action.next::before {
  content: '\f105' !important; /* FontAwesome angle-right */
  font-family: 'FontAwesome' !important;
  color: #1a3764 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

/* Remove default background images */
.toolbar .pages .action, .toolbar .sorter-action::before {
  background-image: none !important;
}

.pages .action {
  padding: 0 0px !important;
}

@media (max-width: 768px) {
    /* Ensure touch targets are at least 44px */
    .item .action,.item a {
      min-height: 5px !important;
      min-width: 5px !important;
    }
}

@media only screen and (max-width: 639px) {
  .pages-item-next {
    position: relative;
    right: 0;
    top: 0;
    z-index: 1;
  }
}