/* Wishlist & Compare Styles - Following Original HTML Pattern */

/* Header Icons */
.header-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-icon-link:hover {
  color: #007bff;
}

.header-icon-link i {
  font-size: 18px;
}

.header-icon-link .notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Wishlist and Compare menu items in header */
.wishlist-menu-item a,
.compare-menu-item a {
  font-size: 20px;
  line-height: 1;
  color: #242424;
  position: relative;
  text-decoration: none;
}

.wishlist-menu-item a:hover,
.compare-menu-item a:hover {
  color: #010096;
}

.wishlist-menu-item a i,
.compare-menu-item a i {
  font-size: 22px !important;
  transform: none !important;
}

.wishlist-menu-item a .notification,
.compare-menu-item a .notification {
  top: 3px;
  right: -3px;
  position: absolute;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  color: #fff;
  border-radius: 50%;
  background-color: #010096;
}

/* Product Card Action Buttons */
.btn-action {
  background: none;
  border: none;
  color: #666;
  font-size: 16px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-action:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.btn-action.active {
  background: #007bff;
  color: white;
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Product Grid Action Buttons - Show on Hover (Desktop Only) */
@media (min-width: 992px) {
  .product-item .button-group {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 10;
  }

  .product-item:hover .button-group {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .product-item .button-group a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .product-item .button-group a:hover {
    background: #010096;
    color: white;
    border-color: #010096;
    transform: scale(1.1);
  }

  .product-item .button-group a.active {
    background: #010096;
    color: white;
    border-color: #010096;
  }

  .product-item .button-group a i {
    font-size: 16px;
  }

  /* Tooltip customization for action buttons */
  .product-item .button-group a[data-bs-toggle="tooltip"] {
    position: relative;
  }

  /* Custom tooltip styles to prevent text cutting - High Priority */
  .product-item .button-group [data-bs-toggle="tooltip"] + .tooltip,
  .tooltip.show,
  .bs-tooltip-auto[data-popper-placement^="left"],
  .bs-tooltip-left {
    font-size: 12px !important;
    z-index: 10001 !important;
  }

  .product-item .button-group [data-bs-toggle="tooltip"] + .tooltip .tooltip-inner,
  .tooltip.show .tooltip-inner,
  .bs-tooltip-auto[data-popper-placement^="left"] .tooltip-inner,
  .bs-tooltip-left .tooltip-inner,
  .bs-tooltip-auto[data-popper-placement^="right"] .tooltip-inner,
  .bs-tooltip-right .tooltip-inner,
  .bs-tooltip-auto[data-popper-placement^="top"] .tooltip-inner,
  .bs-tooltip-top .tooltip-inner,
  .bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-inner,
  .bs-tooltip-bottom .tooltip-inner {
    max-width: 300px !important;
    width: max-content !important;
    white-space: nowrap !important;
    padding: 6px 10px !important;
    background-color: #333 !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-overflow: unset !important;
    overflow: visible !important;
  }

  /* Arrow colors for all tooltip directions */
  .bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
  .bs-tooltip-left .tooltip-arrow::before {
    border-left-color: #333 !important;
  }

  .bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
  .bs-tooltip-right .tooltip-arrow::before {
    border-right-color: #333 !important;
  }

  .bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
  .bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #333 !important;
  }

  .bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
  .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #333 !important;
  }

  /* Ensure tooltips don't get cut off at screen edges */
  .bs-tooltip-left {
    margin-right: 15px !important;
  }

  .bs-tooltip-right {
    margin-left: 15px !important;
  }

  .bs-tooltip-top {
    margin-bottom: 15px !important;
  }

  .bs-tooltip-bottom {
    margin-top: 15px !important;
  }
}

/* Hide action buttons on mobile and tablet */
@media (max-width: 991.98px) {
  .product-item .button-group {
    display: none !important;
  }
  
  .product-list-item .button-group {
    display: none !important;
  }
}

/* Extra safety for mobile - hide individual buttons */
@media (max-width: 767.98px) {
  .button-group a[data-bs-toggle="tooltip"] {
    display: none !important;
  }
  
  .product-item .button-group,
  .product-list-item .button-group {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* Breadcrumb Area - Following Original Pattern */
.breadcrumb-area {
  background: #f8f9fa;
}

.breadcrumb-wrap {
  padding: 40px 0;
  text-align: center;
}

@media only screen and (max-width: 767.98px) {
  .breadcrumb-wrap {
    padding: 30px 0;
  }
}

.breadcrumb-wrap h1 {
  font-size: 30px;
  font-weight: 400;
  color: #333;
}

@media only screen and (max-width: 767.98px) {
  .breadcrumb-wrap h1 {
    font-size: 22px;
  }
}

.breadcrumb-nav {
  width: 100%;
}

.breadcrumb {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: transparent;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin: 0 5px;
  color: #7e7e7e;
}

.breadcrumb-item a {
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  text-transform: capitalize;
}

.breadcrumb-item a:hover {
  color: #010096;
}

.breadcrumb-item.active {
  color: #010096;
  font-size: 14px;
}

/* Wishlist Main Wrapper - Following Original Pattern */
.wishlist-main-wrapper {
  padding-top: 40px;
  padding-bottom: 80px;
}

@media only screen and (max-width: 767.98px) {
  .wishlist-main-wrapper {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}

/* Empty States */
.empty-wishlist,
.empty-compare {
  padding: 0px!important;
}

.empty-wishlist i,
.empty-compare i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.empty-wishlist h3,
.empty-compare h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.empty-wishlist p,
.empty-compare p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.empty-wishlist .btn,
.empty-compare .btn {
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.empty-wishlist .btn:hover,
.empty-compare .btn:hover {
  transform: translateY(-1px);
}

/* Wishlist Table - Using Original cart-table Styles */
.cart-table .table {
  margin: 0;
  white-space: nowrap;
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.cart-table .table thead {
  background-color: #010096;
}

.cart-table .table thead tr th {
  border-color: #010096;
  border-bottom: 0 solid transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 15px;
  text-transform: uppercase;
}

.cart-table .table tbody tr td {
  border-color: #ccc;
  text-align: center;
  vertical-align: middle;
  padding: 15px;
  color: #242424;
}

.cart-table .table tbody tr td a {
  color: #242424;
  font-weight: 400;
  text-transform: capitalize;
  text-decoration: none;
}

.cart-table .table tbody tr td a:hover {
  color: #010096;
}

.cart-table .table tbody tr td a.btn,
.cart-table .table tbody tr td button.btn,
.compare-table .table tbody tr td a.btn,
.compare-table .table tbody tr td button.btn {
  color: #fff;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cart-table .table tbody tr td a.btn:hover,
.cart-table .table tbody tr td button.btn:hover,
.compare-table .table tbody tr td a.btn:hover,
.compare-table .table tbody tr td button.btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.cart-table .table tr .pro-thumbnail,
.cart-table .table tr .pro-price,
.cart-table .table tr .pro-quantity,
.cart-table .table tr .pro-subtotal,
.cart-table .table tr .pro-remove {
  width: 140px;
}

.cart-table .table .pro-thumbnail img {
  border-radius: 4px;
  transition: transform 0.3s ease;
  max-width: 100px;
  height: auto;
}

.cart-table .table .pro-thumbnail img:hover {
  transform: scale(1.05);
}

.cart-table .table .pro-title a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cart-table .table .pro-title a:hover {
  color: #010096;
}

.cart-table .table .brand-name {
  margin-top: 5px;
}

.cart-table .table .brand-name small {
  color: #666;
  font-style: italic;
}

.cart-table .table .price-regular {
  font-weight: 600;
  color: #010096;
  font-size: 1.1rem;
}

.cart-table .table .price-old {
  color: #999;
  font-size: 0.9rem;
}

.cart-table .table .btn-remove {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.cart-table .table .btn-remove:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Center remove button in table cell */
.cart-table .table .pro-remove {
  text-align: center;
  vertical-align: middle;
}

/* Compare Page Styles */
.compare-page-wrapper {
  padding-top: 40px;
  padding-bottom: 80px;
}

@media only screen and (max-width: 767.98px) {
  .compare-page-wrapper {
    padding-top: 62px;
    padding-bottom: 62px;
  }
}

.compare-table {
  background: white;
  border-radius: 0;
  overflow: hidden;
}

.compare-table .table tbody tr td {
  vertical-align: top;
  padding: 15px;
}

.compare-table .first-column {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
  width: 150px;
  min-width: 150px;
}

.compare-table .product-image-title {
  text-align: center;
  padding: 20px;
  min-width: 310px;
  vertical-align: top;
}

@media only screen and (max-width: 767.98px) {
  .compare-table .product-image-title {
    min-width: 220px;
  }
}

.compare-table .product-image-title .image {
  clear: both;
  width: 100%;
  margin-bottom: 15px;
  display: block;
}

.compare-table .product-image-title .image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  transition: transform 0.3s ease;
  background: #f8f9fa;
}

@media only screen and (max-width: 767.98px) {
  .compare-table .product-image-title .image img {
    height: 150px;
  }
}

.compare-table .product-image-title .image img:hover {
  transform: scale(1.05);
}

.compare-table .product-image-title .category {
  display: block;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-decoration: none;
  line-height: 1.3;
}

.compare-table .product-image-title .category:hover {
  color: #010096;
}

.compare-table .product-image-title .title {
  display: block;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  min-height: 2.8em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compare-table .product-image-title .title:hover {
  color: #010096;
}

.compare-table .pro-desc p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.compare-table .pro-price {
  font-weight: 600;
  color: #010096;
  font-size: 1.1rem;
}

.compare-table .pro-remove button {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 18px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.compare-table .pro-remove button:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

/* Actions */
.wishlist-actions,
.compare-actions {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.wishlist-actions .btn,
.compare-actions .btn {
  min-width: 150px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.wishlist-actions .btn:hover,
.compare-actions .btn:hover {
  transform: translateY(-1px);
}

/* Quick View Modal */
.modal.show {
  display: block !important;
}

.modal {
  backdrop-filter: blur(2px);
}

.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
  padding: 10px 15px;
}

.modal-header .close,
.modal-header .btn-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  opacity: 1;
}

.modal-header .close:hover,
.modal-header .btn-close:hover {
  background: #f8f9fa;
  color: #333;
  opacity: 1;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

/* Ensure modal columns don't overflow */
.modal-body .col-lg-5,
.modal-body .col-md-5 {
  max-width: 100%;
  overflow: hidden;
}

.modal-body .col-lg-7,
.modal-body .col-md-7 {
  max-width: 100%;
  overflow: hidden;
}

/* Prevent modal from interfering with hover effects */
.modal-backdrop {
  z-index: 9998;
}

.modal {
  z-index: 9999;
}

/* Ensure modal doesn't trigger hover effects on underlying elements */
.modal-dialog {
  pointer-events: auto;
}

.modal-backdrop,
.modal {
  pointer-events: auto;
}

.quick-details .manufacturer-name {
  margin-bottom: 8px;
}

.quick-details .manufacturer-name a {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
}

.quick-details .manufacturer-name a:hover {
  color: #010096;
}

.quick-details .product-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin: 8px 0;
  line-height: 1.3;
}

.quick-details .price-box {
  margin: 12px 0;
}

.quick-details .price-regular {
  font-size: 1.2rem;
  font-weight: 600;
  color: #010096;
}

.quick-details .price-old {
  color: #999;
  margin-left: 8px;
  font-size: 1rem;
}

.quick-details .availability {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.quick-details .availability i {
  font-size: 14px;
}

.quick-details .availability i.fa-check-circle {
  color: #28a745;
}

.quick-details .availability i.fa-times-circle {
  color: #dc3545;
}

.quick-details .pro-desc {
  color: #666;
  line-height: 1.5;
  margin: 12px 0;
  font-size: 0.9rem;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.quick-details .quantity-cart-box {
  margin: 15px 0;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap;
}

.quick-details .qty-label {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.quick-details .quantity {
  flex-shrink: 0;
}

.quick-details .pro-qty {
  height: 38px;
  min-width: 130px;
}

.quick-details .pro-qty .qtybtn {
  width: 35px;
  min-width: 35px;
  font-size: 1.1rem;
}

.quick-details .pro-qty input {
  width: 50px;
  min-width: 50px;
  font-size: 0.95rem;
}

.quick-details .action_link {
  flex: 1;
  min-width: 150px;
}

.quick-details .btn-cart2 {
  padding: 10px 20px;
  font-size: 0.95rem;
  width: 100%;
}

.quick-details .useful-links {
  margin: 15px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-details .useful-links .btn-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.85rem;
  padding: 5px 0;
}

.quick-details .useful-links .btn-link i {
  font-size: 14px;
}

.quick-details .useful-links .btn-link:hover {
  color: #010096;
}

.quick-details .useful-links .btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Quick View Image */
.quick-details .pro-large-img {
  margin-bottom: 15px;
  width: 100%;
  max-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.quick-details .pro-large-img img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 6px;
}

/* Ensure modal images don't overflow */
.modal-body .product-large-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.modal-body .pro-large-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-body .pro-large-img img {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Responsive adjustments for Quick View */
@media (max-width: 768px) {
  .modal-body {
    padding: 15px;
    max-height: 80vh;
  }
  
  .quick-details .product-name {
    font-size: 1.1rem;
  }
  
  .quick-details .price-regular {
    font-size: 1.1rem;
  }
  
  .quick-details .pro-large-img {
    max-height: 200px;
  }
  
  .quick-details .pro-large-img img {
    max-height: 200px;
  }
  
  .modal-body .pro-large-img {
    max-height: 250px;
  }
  
  .modal-body .pro-large-img img {
    max-height: 250px;
  }
  
  .quick-details .useful-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .quick-details .btn-cart2 {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .quick-details .quantity-cart-box {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .quick-details .qty-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .quick-details .quantity {
    flex: 0 0 auto;
  }
  
  .quick-details .action_link {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .quick-details .pro-qty {
    height: 36px;
    min-width: 115px;
  }
  
  .quick-details .pro-qty .qtybtn {
    width: 32px;
    min-width: 32px;
    font-size: 1rem;
  }
  
  .quick-details .pro-qty input {
    width: 45px;
    min-width: 45px;
    font-size: 0.9rem;
  }
}

/* Product Detail Page Fixes */
.product-details-inner {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-details-des .useful-links .btn-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  margin-right: 15px;
  padding: 5px 0;
}

.product-details-des .useful-links .btn-link:hover {
  color: #010096;
}

.product-details-des .useful-links .btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-details-des .useful-links .btn-link i {
  font-size: 16px;
}

/* Quantity Controls - Global Styles */
.quantity-cart-box {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.quantity-cart-box .qty-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  text-transform: uppercase;
  flex-shrink: 0;
}

.quantity-cart-box .quantity {
  flex-shrink: 0;
}

.pro-qty {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  height: 45px;
  min-width: 140px;
  padding: 0;
}

.pro-qty .qtybtn {
  background: #f8f9fa;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 700;
  color: #333;
  font-size: 1.2rem;
  width: 40px;
  min-width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex-shrink: 0;
}

.pro-qty .qtybtn:hover:not(:disabled) {
  background: #010096;
  color: white;
}

.pro-qty .qtybtn:active:not(:disabled) {
  background: #000066;
}

.pro-qty .qtybtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f8f9fa;
}

.pro-qty input {
  border: none;
  border-left: 2px solid #ddd;
  border-right: 2px solid #ddd;
  text-align: center;
  padding: 0 10px;
  width: 60px;
  min-width: 60px;
  height: 100%;
  background: white;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  flex-shrink: 0;
}

.pro-qty input:focus {
  outline: none;
  background: #f8f9fa;
}

.pro-qty input::-webkit-outer-spin-button,
.pro-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pro-qty input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-cart-box .action_link {
  flex: 1;
  min-width: 200px;
}

.product-details-des .btn-cart2,
.btn-add-to-cart {
  background: #010096;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-details-des .btn-cart2:hover,
.btn-add-to-cart:hover:not(:disabled) {
  background: #000066;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(1, 0, 150, 0.3);
}

.product-details-des .btn-cart2:disabled,
.btn-add-to-cart:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.product-details-des .product-meta {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.product-details-des .product-meta a {
  color: #010096;
  text-decoration: none;
}

.product-details-des .product-meta a:hover {
  text-decoration: underline;
}

/* Image zoom button styling */
.img-zoom-btn {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.img-zoom-btn:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Thumbnail navigation */
.pro-nav {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.pro-nav-thumb button {
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pro-nav-thumb button:hover,
.pro-nav-thumb button.active {
  border-color: #010096;
  box-shadow: 0 2px 8px rgba(1,0,150,0.3);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .cart-table .table,
  .compare-table {
    font-size: 0.9rem;
  }
  
  .cart-table .table th,
  .cart-table .table td,
  .compare-table th,
  .compare-table td {
    padding: 10px 8px;
  }
  
  .compare-table .first-column {
    width: 120px;
    min-width: 120px;
  }
  
  .quick-details .product-name {
    font-size: 1.3rem;
  }
  
  .quick-details .price-regular {
    font-size: 1.2rem;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .product-details-inner {
    padding: 20px 15px;
  }
  
  .product-details-des .useful-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .product-details-des .useful-links .btn-link {
    margin-right: 0;
  }
  
  .quantity-cart-box {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .quantity-cart-box .qty-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .quantity-cart-box .quantity {
    flex: 0 0 auto;
  }
  
  .quantity-cart-box .action_link {
    flex: 1 1 100%;
    min-width: 100%;
  }
  
  .pro-qty {
    height: 40px;
    min-width: 120px;
  }
  
  .pro-qty .qtybtn {
    width: 35px;
    min-width: 35px;
    font-size: 1.1rem;
  }
  
  .pro-qty input {
    width: 50px;
    min-width: 50px;
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  
  .product-details-des .btn-cart2 {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .wishlist-main-wrapper,
  .compare-page-wrapper {
    padding: 40px 0;
  }
  
  .empty-wishlist,
  .empty-compare {
    padding: 60px 15px;
  }
  
  .wishlist-actions .row,
  .compare-actions .row {
    text-align: center;
  }
  
  .wishlist-actions .col-md-6,
  .compare-actions .col-md-6 {
    margin-bottom: 15px;
  }
  
  .wishlist-actions .text-right,
  .compare-actions .text-right {
    text-align: center !important;
  }
}

/* Global tooltip overrides - Must be at the end to have highest priority */
.tooltip,
.bs-tooltip-auto,
.bs-tooltip-top,
.bs-tooltip-right,
.bs-tooltip-bottom,
.bs-tooltip-left {
  font-size: 12px !important;
  z-index: 10001 !important;
}

.tooltip .tooltip-inner,
.bs-tooltip-auto .tooltip-inner,
.bs-tooltip-top .tooltip-inner,
.bs-tooltip-right .tooltip-inner,
.bs-tooltip-bottom .tooltip-inner,
.bs-tooltip-left .tooltip-inner {
  max-width: 400px !important;
  width: max-content !important;
  min-width: auto !important;
  white-space: nowrap !important;
  padding: 6px 10px !important;
  background-color: #333 !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  text-overflow: unset !important;
  overflow: visible !important;
  word-wrap: normal !important;
  text-align: center !important;
}

/* Force tooltip arrows to be correct color */
.tooltip .tooltip-arrow::before,
.bs-tooltip-auto .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-right .tooltip-arrow::before,
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-left .tooltip-arrow::before {
  border-color: #333 !important;
}

.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #333 !important;
}

.bs-tooltip-right .tooltip-arrow::before {
  border-right-color: #333 !important;
}

.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #333 !important;
}

.bs-tooltip-left .tooltip-arrow::before {
  border-left-color: #333 !important;
}