.loader-spinner {
  -webkit-animation: spin 2s linear infinite !important;
  animation: spin 2s linear infinite !important;
}



.order-confirm {
  width: 17%;
}

.courier {
  width: 40%;
}

.way {
  width: 62%;
}
.pickup {
  width: 100%;
}

.cate-menu-active {
  color: var(--primary) !important;
}

.search {
  position: relative;
}
.search input {
  line-height: 1.8rem;
  text-indent: 25px;
  border-radius: 30px;
}
.search input:focus {
  border: 2px solid var(--primary);
}

.search .fa-search {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  transition: 0.4s ease;
  color: var(--gray-3);
}
.search .fa-search:hover {
  color: var(--primary);
  transform: scale(1.05) translateY(-50%);
}

/* Seller login link styling */
.seller-login-link {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border: 1px solid var(--primary);
  border-radius: 5px;
}

.seller-login-link:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.seller-login-link i {
  margin-right: 5px;
  font-size: 1.1em;
}

.search button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 35px;
  width: 60px;
  background: var(--primary);
}

.newsletter-submit {
  overflow: inherit !important;
}
.input-group-news {
  position: relative;
  background-color: var(--primary-light);
  margin-bottom: 2rem;
  border-radius: 50px;
  border: 1px solid var(--primary-light-border);
}
.input-group-news input {
  border: 0.1rem solid transparent;
  background-color: var(--primary-light);
  border-radius: 50px;
  -webkit-border-radius: 50px;
  width: 100%;
  padding: 1.5rem 10rem 1.5rem 2rem;
  box-sizing: border-box;
  font-size: 1.4rem;
  background-color: transparent;
  color: var(--gray-1);
}
.input-group-news .input-group-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
}
.input-group-news .input-group-btn .btn {
  background: var(--primary);
  color: var(--text-primary);
  font-size: 1.4rem;
  min-height: 40px;
  height: 40px;
  min-width: 95px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
}

.input-group-news input:focus {
  outline: none;
  border-color: var(--primary);
  transition: border-color 0.2s ease-in-out;
}

.order-product-details h5 a {
  color: inherit !important;
}

/* Product Card Image Sizing Fix - Apply to all product cards */
.product-item .product-img,
.best-selling-item .product-img,
.todays-deal-product .product-img,
.trending-product-item .product-img,
.digital-product-item .product-img,
.new-product-item .product-img,
.flash-deal-item .product-img {
  position: relative !important;
  width: 100% !important;
  height: 250px !important; /* Fixed height for all product images */
  overflow: hidden !important;
  background: #f6f6f6 !important;
}

.product-item .product-img > a,
.best-selling-item .product-img > a,
.todays-deal-product .product-img > a,
.trending-product-item .product-img > a,
.digital-product-item .product-img > a,
.new-product-item .product-img > a,
.flash-deal-item .product-img > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.product-item .product-img > a img,
.best-selling-item .product-img > a img,
.todays-deal-product .product-img > a img,
.trending-product-item .product-img > a img,
.digital-product-item .product-img > a img,
.new-product-item .product-img > a img,
.flash-deal-item .product-img > a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important; /* Ensures image covers the entire container */
  object-position: center !important; /* Centers the image */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-item .product-img,
  .best-selling-item .product-img,
  .todays-deal-product .product-img,
  .trending-product-item .product-img,
  .digital-product-item .product-img,
  .new-product-item .product-img,
  .flash-deal-item .product-img {
    height: 200px !important; /* Smaller height on mobile */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-item .product-img,
  .best-selling-item .product-img,
  .todays-deal-product .product-img,
  .trending-product-item .product-img,
  .digital-product-item .product-img,
  .new-product-item .product-img,
  .flash-deal-item .product-img {
    height: 220px !important; /* Medium height on tablets */
  }
}

/* Modal Text Visibility Improvements */
.modal-content {
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.modal-body {
  background-color: #ffffff !important;
  color: #212529 !important;
}

.modal-body h4 {
  color: #212529 !important;
  font-weight: 600 !important;
  font-size: 1.25rem !important;
  margin-bottom: 1rem !important;
  text-align: center !important;
}

.modal-body p {
  color: #6c757d !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin-bottom: 0 !important;
}

.modal-body .text-muted {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Ensure modal buttons are visible */
.modal-footer .btn,
.modal-body .btn {
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px !important;
}

.modal-footer .btn-danger,
.modal-body .btn-danger {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #ffffff !important;
}

.modal-footer .btn-danger:hover,
.modal-body .btn-danger:hover {
  background-color: #c82333 !important;
  border-color: #bd2130 !important;
}

/* Fix for any text contrast issues */
.modal .fs-15 {
  font-size: 1rem !important;
}

.modal .mt-4 {
  margin-top: 1.5rem !important;
}

/* Remember Me Checkbox and Label Visibility Improvements */
.remember-me {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 0.75rem !important;
  padding: 8px !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 4px !important;
}

.remember-me input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--primary, #e40046) !important;
  cursor: pointer !important;
}

.remember-me label {
  color: #000000 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  margin: 0 !important;
  user-select: none !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

/* Age verification modal specific improvements */
.age-verification-modal .remember-me label {
  color: #000000 !important;
  opacity: 1 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

.age-verification-modal .modal-body {
  background-color: #ffffff !important;
  color: #212529 !important;
}

.age-verification-modal .welcome-title {
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 2.2rem !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

.age-verification-modal .age-question {
  color: #000000 !important;
  font-weight: 600 !important;
  font-size: 1.7rem !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

/* General form checkbox improvements */
.form-check-input {
  accent-color: var(--primary, #e40046) !important;
}

.form-check-label {
  color: #212529 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
}

/* Ensure all checkbox labels are visible */
label[for*="remember"], 
label[for*="Remember"],
input[type="checkbox"] + label {
  color: #000000 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

/* Force theme colors for section icons */
.section-title-enhanced h3 i,
.section-title-enhanced h3 i.fas,
.section-title-enhanced h3 i.text-primary {
  color: var(--primary, #e40046) !important;
}

/* Override Bootstrap text utility classes for section icons */
.enhanced-products-section .section-title-enhanced h3 i.text-primary,
.enhanced-products-section .section-title-enhanced h3 i.text-info,
.enhanced-products-section .section-title-enhanced h3 i.text-success {
  color: var(--primary, #e40046) !important;
}

/* Ensure all product cards have same height */
.product-item,
.best-selling-item,
.todays-deal-product,
.trending-product-item,
.digital-product-item,
.new-product-item,
.flash-deal-item {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-item .product-info,
.best-selling-item .product-info,
.todays-deal-product .product-info,
.trending-product-item .product-info,
.digital-product-item .product-info,
.new-product-item .product-info,
.flash-deal-item .product-info {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Make cards stack nicely on mobile */
@media (max-width: 768px) {
  .best-selling-items .col-xl-4.col-md-6,
  .row > [class*="col-"] {
    margin-bottom: 20px;
  }
}
