/* Sort by selection styling */
.products-sort-order {
  position: relative !important;
  z-index: 100 !important;
}

.products-sort-order .select-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 9px 16px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #495057 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  min-width: 180px !important;
  height: 40px !important;
  transition: all 0.2s ease-in-out !important;
  line-height: 1.5 !important;
  outline: none !important;
  position: relative !important;
  z-index: 101 !important;
}

.products-sort-order .select-title:hover,
.products-sort-order .select-title:focus {
  background-color: #f8f9fa !important;
  border-color: #0252b4 !important;
  color: #212529 !important;
  box-shadow: 0 0 0 3px rgba(2, 82, 180, 0.08) !important;
}

.products-sort-order .select-title i {
  margin-left: 10px !important;
  font-size: 1.2rem !important;
  color: #6c757d !important;
  transition: transform 0.2s ease !important;
}

.products-sort-order.show .select-title i {
  transform: rotate(180deg) !important;
}

.products-sort-order .dropdown-menu {
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 6px 0 !important;
  margin-top: 6px !important;
  z-index: 1060 !important;
  min-width: 100% !important;
  overflow: hidden !important;
}

.products-sort-order .select-list {
  display: block !important;
  padding: 10px 16px !important;
  color: #495057 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  font-weight: 500 !important;
}

.products-sort-order .select-list:hover {
  background-color: #f0f4f8 !important;
  color: #0252b4 !important;
  padding-left: 20px !important;
}

.products-sort-order .select-list.current {
  background-color: rgba(229, 46, 46, 0.08) !important;
  color: #e52e2e !important;
  font-weight: 600 !important;
}

/* Brand logo marquee slider */
.partners-block {
  background-color: #ffffff;
  padding: 30px 0;
  border-top: 1px solid #f1f3f5;
  border-bottom: 1px solid #f1f3f5;
}

.partner-logos-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.partner-logos-slider::before,
.partner-logos-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partner-logos-slider::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0));
}

.partner-logos-slider::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
}

.partner-logos-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scroll-marquee 25s linear infinite;
}

.partner-logos-track:hover {
  animation-play-state: paused;
}

.partner-logos-track .logo-item {
  width: 140px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  transition: transform 0.25s ease;
}

.partner-logos-track .logo-item:hover {
  transform: scale(1.08);
}

.partner-logos-track .logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all 0.3s ease;
}

.partner-logos-track .logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Fix side filter checkboxes alignment */
#search_filters .facet-label {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
}

#search_filters .custom-checkbox,
#search_filters .custom-radio {
  position: relative !important;
  top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  align-self: center !important;
}

#search_filters .facet-label a {
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
}

/* Hide layout switcher buttons and back-to-top button */
.view-modes,
.view-btn,
.up,
.products-selection .up,
a[href="#header"] {
  display: none !important;
}

/* My Account Dashboard Styling */
.page-my-account #content {
  background: #f8f9fa !important;
  padding: 30px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.page-my-account #content .links {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-my-account #content .links a {
  padding: 0 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  display: block !important;
}

.page-my-account .link-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: #ffffff !important;
  border: 1.5px solid #e9ecef !important;
  border-radius: 14px !important;
  padding: 28px 16px !important;
  min-height: 160px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.page-my-account .link-item i {
  font-size: 2.2rem !important;
  margin-bottom: 14px !important;
  color: #0252b4 !important;
  background: rgba(2, 82, 180, 0.07) !important;
  width: 56px !important;
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

/* Hover effects */
.page-my-account #content .links a:hover .link-item {
  transform: translateY(-4px) !important;
  border-color: #e52e2e !important;
  box-shadow: 0 12px 28px rgba(229, 46, 46, 0.1) !important;
}

.page-my-account #content .links a:hover .link-item i {
  color: #ffffff !important;
  background: #e52e2e !important;
  transform: scale(1.08) !important;
}

/* Text styles */
.page-my-account .link-item {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #343a40 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  line-height: 1.35 !important;
}

/* Sign out link */
.page-my-account .page-footer {
  text-align: center !important;
}

.page-my-account .page-footer a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #e52e2e !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  padding: 10px 24px !important;
  border: 2px solid #e52e2e !important;
  border-radius: 50px !important;
  background: transparent !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  margin-top: 20px !important;
}

.page-my-account .page-footer a:hover {
  background: #e52e2e !important;
  color: #ffffff !important;
  box-shadow: 0 6px 15px rgba(229, 46, 46, 0.2) !important;
}

/* ---- My Account MOBILE responsive ---- */
@media (max-width: 991.98px) {
  .page-my-account #content .links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 575.98px) {
  .page-my-account #content {
    padding: 16px 12px !important;
    border-radius: 12px !important;
  }
  .page-my-account #content .links {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .page-my-account .link-item {
    padding: 20px 10px !important;
    min-height: 130px !important;
    border-radius: 12px !important;
  }
  .page-my-account .link-item i {
    font-size: 1.8rem !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 10px !important;
  }
  .page-my-account .link-item {
    font-size: 0.78rem !important;
    letter-spacing: 0.2px !important;
  }
  .page-my-account .page-footer a {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
  }
}

/* Customer sub-pages (Address list, Order History, Identity) */
.page-customer-portal #content,
.page-addresses #content,
.page-history #content,
.page-identity #content,
.page-discount #content {
  background: #ffffff !important;
  padding: 30px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid #e9ecef !important;
}

.address-card {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
  transition: all 0.2s ease !important;
}

.address-card:hover {
  border-color: #0252b4 !important;
  box-shadow: 0 6px 15px rgba(2, 82, 180, 0.05) !important;
}

.address-card .address-footer a {
  color: #495057 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin-right: 15px !important;
  transition: color 0.15s ease !important;
}

.address-card .address-footer a:hover {
  color: #e52e2e !important;
}

/* History table */
.page-history .table {
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

.page-history .table tr {
  background: #f8f9fa !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01) !important;
  transition: all 0.2s ease !important;
}

.page-history .table tr:hover {
  background: #f1f3f5 !important;
}

.page-history .table th {
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  color: #6c757d !important;
  letter-spacing: 0.5px !important;
  padding: 12px 16px !important;
}

.page-history .table td {
  border: none !important;
  padding: 16px !important;
  vertical-align: middle !important;
}

.page-history .table td:first-child {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

.page-history .table td:last-child {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.page-history .badge {
  padding: 6px 12px !important;
  border-radius: 50px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

/* Cart / Panier Styles */
.cart-grid-body {
  background: #ffffff !important;
  padding: 25px !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid #e9ecef !important;
}

.cart-item {
  padding: 20px 0 !important;
  border-bottom: 1px solid #f1f3f5 !important;
  display: flex !important;
  align-items: center !important;
}

.cart-item:last-child {
  border-bottom: none !important;
}

.product-line-grid {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

/* Product image inside cart line */
.product-image img {
  border-radius: 8px !important;
  border: 1px solid #e9ecef !important;
  transition: transform 0.2s ease !important;
}

.product-image img:hover {
  transform: scale(1.04) !important;
}

/* Product details / name */
.product-line-info .label {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #212529 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.product-line-info .label:hover {
  color: #e52e2e !important;
}

/* Quantity controls styling */
.cart-item .bootstrap-touchspin {
  border: 1px solid #ced4da !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  max-width: 130px !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
}

.cart-item .bootstrap-touchspin input.js-cart-line-product-quantity {
  border: none !important;
  text-align: center !important;
  font-weight: 600 !important;
  color: #212529 !important;
  width: 50px !important;
  height: 100% !important;
  background: transparent !important;
  outline: none !important;
}

.cart-item .bootstrap-touchspin .btn-touchspin {
  background: transparent !important;
  border: none !important;
  color: #495057 !important;
  width: 35px !important;
  height: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.cart-item .bootstrap-touchspin .btn-touchspin:hover {
  background: #f1f3f5 !important;
  color: #e52e2e !important;
}

/* Trash / remove button */
.remove-from-cart {
  color: #adb5bd !important;
  transition: all 0.2s ease !important;
  padding: 8px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.02) !important;
}

.remove-from-cart:hover {
  color: #e52e2e !important;
  background: rgba(229, 46, 46, 0.08) !important;
  transform: scale(1.1) !important;
}

/* Summary Block (right sidebar) */
.cart-summary-block {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.summary-title {
  font-size: 1.25rem !important;
  margin-bottom: 20px !important;
  border-bottom: 1px solid #f1f3f5 !important;
  padding-bottom: 15px !important;
}

.cart-detailed-totals .cart-summary-line {
  padding: 12px 0 !important;
  border-bottom: 1px dashed #e9ecef !important;
}

.cart-detailed-totals .cart-summary-line:last-child {
  border-bottom: none !important;
  padding-top: 15px !important;
}

.cart-detailed-totals .cart-summary-line.cart-total {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #212529 !important;
}

.cart-detailed-totals .cart-summary-line.cart-total .value {
  color: #e52e2e !important;
}

/* Checkout CTA Button */
.checkout.cart-detailed-actions .btn-primary {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background-color: #e52e2e !important;
  border-color: #e52e2e !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  border-radius: 50px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(229, 46, 46, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.checkout.cart-detailed-actions .btn-primary:hover {
  background-color: #cb2424 !important;
  border-color: #cb2424 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(229, 46, 46, 0.25) !important;
}

/* Wishlist / Favorites Styles */
.wishlist-container {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 25px !important;
}

.wishlist-title {
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: #212529 !important;
  margin-bottom: 20px !important;
}

.wishlist-list-item {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 20px !important;
  margin-bottom: 15px !important;
  transition: all 0.2s ease !important;
}

.wishlist-list-item:hover {
  border-color: #0252b4 !important;
  box-shadow: 0 6px 15px rgba(2, 82, 180, 0.04) !important;
}

/* Wishlist footer back links */
.wishlist-footer-links {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  margin-top: 30px !important;
}

.wishlist-footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.wishlist-footer-links a:hover {
  color: #e52e2e !important;
}

/* Checkout multi-step process styling */
.checkout-step {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 25px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s ease !important;
}

.checkout-step.-current {
  border-color: #0252b4 !important;
  box-shadow: 0 6px 18px rgba(2, 82, 180, 0.06) !important;
}

.checkout-step .step-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #495057 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #f1f3f5 !important;
  padding-bottom: 15px !important;
  margin-bottom: 15px !important;
}

.checkout-step.-current .step-title {
  color: #0252b4 !important;
  border-color: rgba(2, 82, 180, 0.1) !important;
}

.checkout-step.-reachable.-complete .step-title {
  color: #2b8a3e !important;
  /* Green for completed steps */
}

/* Number step badge */
.checkout-step .step-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #e9ecef !important;
  color: #495057 !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
}

.checkout-step.-current .step-number {
  background: #0252b4 !important;
  color: #ffffff !important;
}

.checkout-step.-reachable.-complete .step-number {
  background: #2b8a3e !important;
  color: #ffffff !important;
}

/* Inputs and forms inside checkout steps */
.checkout-step .form-group {
  margin-bottom: 20px !important;
}

.checkout-step label {
  font-weight: 600 !important;
  color: #495057 !important;
  margin-bottom: 6px !important;
}

.checkout-step input[type="text"],
.checkout-step input[type="email"],
.checkout-step input[type="password"],
.checkout-step select,
.checkout-step textarea {
  border-radius: 8px !important;
  border: 1px solid #ced4da !important;
  padding: 10px 14px !important;
  transition: all 0.15s ease-in-out !important;
}

.checkout-step input:focus,
.checkout-step select:focus,
.checkout-step textarea:focus {
  border-color: #0252b4 !important;
  box-shadow: 0 0 0 3px rgba(2, 82, 180, 0.1) !important;
  outline: none !important;
}

/* Checkout Delivery options line */
.delivery-option {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.delivery-option:hover {
  border-color: #0252b4 !important;
  background: #ffffff !important;
}

.delivery-option input[type="radio"] {
  margin-right: 15px !important;
  align-self: center !important;
}

/* Checkout Payment options list */
.payment-option {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-bottom: 10px !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

.payment-option label {
  margin-bottom: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.payment-option input[type="radio"] {
  margin-right: 15px !important;
  align-self: center !important;
}

/* Payment CTA block button */
#payment-confirmation button[type="submit"] {
  width: 100% !important;
  background-color: #e52e2e !important;
  border-color: #e52e2e !important;
  color: #ffffff !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  padding: 16px 24px !important;
  border-radius: 50px !important;
  font-size: 1rem !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(229, 46, 46, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

#payment-confirmation button[type="submit"]:hover {
  background-color: #cb2424 !important;
  border-color: #cb2424 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(229, 46, 46, 0.25) !important;
}

/* Generic Customer Portal Form Styles */
.page-customer-portal input[type="text"],
.page-customer-portal input[type="email"],
.page-customer-portal input[type="password"],
.page-customer-portal select,
.page-customer-portal textarea,
.page-addresses input[type="text"],
.page-addresses select,
.page-addresses textarea,
.page-identity input[type="text"],
.page-identity input[type="email"],
.page-identity input[type="password"],
.page-identity select,
.page-identity textarea {
  border-radius: 8px !important;
  border: 1px solid #ced4da !important;
  padding: 10px 14px !important;
  width: 100% !important;
  transition: all 0.15s ease-in-out !important;
}

.page-customer-portal input:focus,
.page-customer-portal select:focus,
.page-customer-portal textarea:focus,
.page-addresses input:focus,
.page-addresses select:focus,
.page-addresses textarea:focus,
.page-identity input:focus,
.page-identity select:focus,
.page-identity textarea:focus {
  border-color: #0252b4 !important;
  box-shadow: 0 0 0 3px rgba(2, 82, 180, 0.1) !important;
  outline: none !important;
}

/* Form submit buttons styling */
.page-customer-portal button[type="submit"],
.page-addresses button[type="submit"],
.page-identity button[type="submit"] {
  background-color: #0252b4 !important;
  border-color: #0252b4 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.page-customer-portal button[type="submit"]:hover,
.page-addresses button[type="submit"]:hover,
.page-identity button[type="submit"]:hover {
  background-color: #014397 !important;
  border-color: #014397 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(2, 82, 180, 0.2) !important;
}

/* GDPR and Special Modules pages styling */
.psgdpr-content,
.psgdpr-card,
.page-email-alerts #content,
.wishlist-products-list {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 30px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 25px !important;
}

/* Navigation buttons (Back to Account, Home) */
.page-footer .account-link,
.wishlist-footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #ffffff !important;
  color: #495057 !important;
  border: 1px solid #ced4da !important;
  border-radius: 50px !important;
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s ease-in-out !important;
  margin-right: 12px !important;
  margin-top: 15px !important;
}

.page-footer .account-link i,
.wishlist-footer-links a i {
  font-size: 1.25rem !important;
  color: #6c757d !important;
  transition: color 0.15s ease !important;
}

/* Hover effects */
.page-footer .account-link:hover,
.wishlist-footer-links a:hover {
  background-color: #f8f9fa !important;
  border-color: #e52e2e !important;
  /* Brand red border */
  color: #e52e2e !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(229, 46, 46, 0.08) !important;
}

.page-footer .account-link:hover i,
.wishlist-footer-links a:hover i {
  color: #e52e2e !important;
}

.page-footer {
  margin-top: 30px !important;
  border-top: 1px solid #e9ecef !important;
  padding-top: 20px !important;
}

/* ============================================
   PREMIUM CUSTOMER PAGES & FORMS DESIGN
   ============================================ */

/* Page header titles */
#main>.page-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#main>.page-header h1 {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
  letter-spacing: -0.3px !important;
  margin-bottom: 8px !important;
}

/* Page content card wrapper */
#main>.page-content {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 32px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 0 !important;
}

/* Breadcrumb */
.breadcrumb {
  background: transparent !important;
  padding: 12px 0 !important;
  margin-bottom: 8px !important;
  font-size: 0.82rem !important;
}

.breadcrumb li a {
  color: #6c757d !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.breadcrumb li a:hover {
  color: #0252b4 !important;
}

.breadcrumb li::after,
.breadcrumb li .separator {
  color: #adb5bd !important;
}

/* ---- FORM FIELD OVERHAUL ---- */

/* Form group wrapper */
.form-group {
  margin-bottom: 22px !important;
}

/* Labels */
.form-group label,
.form-group .form-control-label {
  font-weight: 600 !important;
  color: #343a40 !important;
  font-size: 0.875rem !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Text inputs, selects, textareas */
.page-content input[type="text"],
.page-content input[type="email"],
.page-content input[type="password"],
.page-content input[type="tel"],
.page-content input[type="date"],
.page-content select,
.page-content textarea,
.js-customer-form input[type="text"],
.js-customer-form input[type="email"],
.js-customer-form input[type="password"],
.js-customer-form input[type="tel"],
.js-customer-form input[type="date"],
.js-customer-form select,
.js-customer-form textarea {
  width: 100% !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 0.9rem !important;
  color: #212529 !important;
  background-color: #fafbfc !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

.page-content input:focus,
.page-content select:focus,
.page-content textarea:focus,
.js-customer-form input:focus,
.js-customer-form select:focus,
.js-customer-form textarea:focus {
  border-color: #0252b4 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 82, 180, 0.08) !important;
}

/* Password field filled state */
.page-content input[type="password"] {
  background-color: #f0f4f8 !important;
}

/* Help text / comments */
.form-group .form-control-comment {
  font-size: 0.78rem !important;
  color: #868e96 !important;
  font-style: normal !important;
  margin-top: 4px !important;
}

.form-group .form-informations {
  font-size: 0.78rem !important;
  color: #868e96 !important;
  margin-top: 2px !important;
}

/* Radio buttons row (Titre: M. / Mme) */
.radio-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-right: 16px !important;
  font-weight: 500 !important;
  color: #495057 !important;
  cursor: pointer !important;
}

.radio-inline input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #0252b4 !important;
  cursor: pointer !important;
}

/* Custom checkboxes */
.custom-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.custom-checkbox input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  accent-color: #0252b4 !important;
  margin-top: 2px !important;
  cursor: pointer !important;
}

.custom-checkbox label {
  font-size: 0.85rem !important;
  color: #495057 !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
}

/* Password policy strength bar */
.field-password-policy .password-strength-feedback {
  margin-top: 8px !important;
}

.field-password-policy .progress {
  border-radius: 50px !important;
  height: 6px !important;
  background: #e9ecef !important;
  overflow: hidden !important;
}

/* Show / hide password toggle */
.field-password-policy .input-group-btn button,
.input-group .btn[data-action="show-password"] {
  border-radius: 0 10px 10px 0 !important;
  border: 1.5px solid #dee2e6 !important;
  border-left: none !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  font-size: 0.82rem !important;
  padding: 10px 14px !important;
}

/* Submit / Save button */
.form-footer .form-control-submit,
.form-footer .btn-primary,
footer.form-footer .btn-primary {
  background: linear-gradient(135deg, #0252b4 0%, #0367d4 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(2, 82, 180, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-footer .form-control-submit:hover,
.form-footer .btn-primary:hover,
footer.form-footer .btn-primary:hover {
  background: linear-gradient(135deg, #014397 0%, #0252b4 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(2, 82, 180, 0.3) !important;
}

/* ---- ADDRESS CARDS ---- */
.address {
  background: #ffffff !important;
  border: 1.5px solid #e9ecef !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.25s ease !important;
}

.address:hover {
  border-color: #0252b4 !important;
  box-shadow: 0 6px 20px rgba(2, 82, 180, 0.06) !important;
  transform: translateY(-2px) !important;
}

.address .address-body h4 {
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: #1a1a2e !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

.address .address-body address {
  font-style: normal !important;
  color: #495057 !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
}

.address .address-footer {
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f3f5 !important;
  display: flex !important;
  gap: 12px !important;
}

.address .address-footer a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.address .address-footer a[data-link-action="edit-address"] {
  background: #e8f4fd !important;
  color: #0252b4 !important;
}

.address .address-footer a[data-link-action="edit-address"]:hover {
  background: #0252b4 !important;
  color: #ffffff !important;
}

.address .address-footer a[data-link-action="delete-address"] {
  background: #fde8e8 !important;
  color: #e52e2e !important;
}

.address .address-footer a[data-link-action="delete-address"]:hover {
  background: #e52e2e !important;
  color: #ffffff !important;
}

/* Create new address link */
.addresses-footer {
  margin-top: 20px !important;
}

.addresses-footer a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: linear-gradient(135deg, #0252b4 0%, #0367d4 100%) !important;
  color: #ffffff !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 14px rgba(2, 82, 180, 0.2) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.addresses-footer a:hover {
  background: linear-gradient(135deg, #014397 0%, #0252b4 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(2, 82, 180, 0.3) !important;
  color: #ffffff !important;
}

.addresses-footer a i {
  font-size: 1.2rem !important;
}

/* ---- ORDER HISTORY TABLE ---- */
.table-striped,
.table-bordered,
.table-labeled {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e9ecef !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.table thead th {
  background: #f8f9fa !important;
  color: #495057 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 14px 16px !important;
  border-bottom: 2px solid #e9ecef !important;
}

.table tbody td,
.table tbody th {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  font-size: 0.88rem !important;
  color: #495057 !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafbfc !important;
}

.table-striped tbody tr:hover {
  background-color: #f0f4f8 !important;
}

/* Order status badge */
.label-pill {
  border-radius: 50px !important;
  padding: 5px 14px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

/* Order actions links */
.order-actions a {
  color: #0252b4 !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.order-actions a:hover {
  color: #e52e2e !important;
}

.view-order-details-link {
  color: #0252b4 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.view-order-details-link:hover {
  color: #e52e2e !important;
  text-decoration: underline !important;
}

.reorder-link {
  color: #2b8a3e !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin-left: 10px !important;
}

.reorder-link:hover {
  color: #1e7a32 !important;
}

/* ---- ALERT BANNERS ---- */
.alert {
  border-radius: 10px !important;
  padding: 16px 20px !important;
  font-size: 0.88rem !important;
  border: none !important;
}

.alert-info {
  background: #e8f4fd !important;
  color: #0252b4 !important;
}

.alert-warning {
  background: #fff8e1 !important;
  color: #e65100 !important;
}

.alert-success {
  background: #e8f5e9 !important;
  color: #2b8a3e !important;
}

.alert-danger {
  background: #fde8e8 !important;
  color: #e52e2e !important;
}

.alert a {
  font-weight: 700 !important;
  text-decoration: underline !important;
}

/* ============================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ============================================ */

/* Ensure header sits above page content so dropdown overlays properly */
#header .header-top {
  position: relative !important;
  z-index: 100 !important;
}

/* Fix search widget overflow so dropdown is visible */
#search_widget {
  overflow: visible !important;
  position: relative !important;
  z-index: 101 !important;
}

.ui-autocomplete.searchbar-autocomplete {
  background: #ffffff !important;
  border: 1px solid #e0e3e7 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  padding: 6px 0 !important;
  margin-top: 8px !important;
  z-index: 99999 !important;
  max-height: 420px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  list-style: none !important;
}

.ui-autocomplete.searchbar-autocomplete li {
  border-bottom: 1px solid #f1f3f5 !important;
  list-style: none !important;
}

.ui-autocomplete.searchbar-autocomplete li:last-child {
  border-bottom: none !important;
}

.ui-autocomplete.searchbar-autocomplete li a,
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: #212529 !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  transition: background-color 0.15s ease !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

.ui-autocomplete.searchbar-autocomplete li a:hover,
.ui-autocomplete.searchbar-autocomplete li a.ui-state-focus:hover {
  background-color: #f0f4f8 !important;
}

.ui-autocomplete.searchbar-autocomplete li a .autocomplete-thumbnail {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid #eef0f2 !important;
  background: #fafbfc !important;
  flex-shrink: 0 !important;
  float: none !important;
}

.ui-autocomplete.searchbar-autocomplete li a span.product {
  flex: 1 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Scrollbar styling for the dropdown */
.ui-autocomplete.searchbar-autocomplete::-webkit-scrollbar {
  width: 5px !important;
}

.ui-autocomplete.searchbar-autocomplete::-webkit-scrollbar-track {
  background: transparent !important;
}

.ui-autocomplete.searchbar-autocomplete::-webkit-scrollbar-thumb {
  background: #ced4da !important;
  border-radius: 10px !important;
}

@media only screen and (min-width: 768px) {
  .ui-autocomplete.searchbar-autocomplete {
    min-width: 420px !important;
  }
}

/* ============================================
   HOMEPAGE SLIDER ENHANCEMENTS (Desktop & Tablet)
   ============================================ */
@media (min-width: 768px) {
  .hero-slider-wrap {
    margin-top: 32px !important;
    /* Space above slider to separate from navbar */
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  }

  .hero-slider-wrap .hero-slide-inner {
    min-height: 450px !important;
    /* Make slider taller to accommodate bigger image */
    padding: 40px 56px !important;
  }

  .hero-slider-wrap .hero-slide-image {
    flex: 1.2 !important;
    /* Give more space to the image */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    /* Rounded corners on parent */
    overflow: hidden !important;
    /* Clip content */
  }

  .hero-slider-wrap .hero-slide-image img {
    max-width: 100% !important;
    max-height: 400px !important;
    /* Bigger image */
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    /* Beautiful crop filling the area */
    border-radius: 20px !important;
    /* Rounded corners for the image */
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    /* Subtle premium shadow for the image */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
  }
}

/* ============================================
   GLOBAL OVERFLOW, HOME PAGE LAYOUT & VIEWPORT FIXES
   ============================================ */
html,
body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

#header {
  overflow-x: hidden !important;
  width: 100% !important;
}

/* Home Page Structure */
.page-home #content-wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.page-home #content.page-home {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-home #left-column,
.page-home #right-column {
  display: none !important;
}

/* Desktop Header Alignment Fixes */
@media (min-width: 992px) {
  .search-bar-container {
    width: auto !important;
    flex-grow: 1 !important;
  }
  /* Responsive Logo alignment fixes to match content borders */
  .header-logo {
    margin-left: -32px !important; /* desktop default shift left */
  }
}

.header-logo {
  margin-left: -12px !important; /* mobile default shift left */
  transition: margin-left 0.2s ease !important;
}

@media (min-width: 576px) {
  .header-logo {
    margin-left: -16px !important;
  }
}

@media (min-width: 768px) {
  .header-logo {
    margin-left: -20px !important;
  }
}

@media (min-width: 992px) {
  .header-logo {
    margin-left: -32px !important; /* desktop shift left */
  }
}


/* Homepage Slider Centering, Reset & Layout Enhancements */
.hero-slider-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
  margin-top: 32px !important;
}

.hero-slider-wrap .carousel-inner,
.hero-slider-wrap .carousel-item {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.hero-slider-wrap .hero-slide-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 1140px !important;
  box-sizing: border-box !important;
  padding: 48px 56px !important;
}

.hero-slider-wrap .hero-slide-image img {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 767.98px) {
  .hero-slider-wrap {
    margin: 16px 0 0 0 !important; /* Center on mobile with 0 margins */
    border-radius: 12px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  }

  .hero-slider-wrap .hero-slide-inner {
    min-height: auto !important;
    padding: 24px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-slider-wrap .hero-slide-text {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .hero-slider-wrap .hero-title {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-bottom: 8px !important;
  }

  .hero-slider-wrap .hero-subtitle {
    font-size: 0.85rem !important;
    text-align: center !important;
    margin-bottom: 12px !important;
  }

  .hero-slider-wrap .hero-slide-image {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: -1 !important; /* Image on top of text on mobile */
  }

  .hero-slider-wrap .hero-slide-image img {
    max-height: 180px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    border-radius: 12px !important; /* Rounded corners on mobile */
    overflow: hidden !important;
  }
}

/* ============================================
   MOBILE & TABLET NAVBAR RESPONSIVENESS (Under 992px)
   ============================================ */
@media (max-width: 991.98px) {
  /* Convert account link to a clean circular icon on all mobile/tablet screens */
  .user-info-widget .account-link {
    width: 40px !important;
    height: 40px !important;
    background-color: #f8f9fa !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
  }

  .user-info-widget .account-link span:not(.material-icons),
  .user-info-widget .account-link .text-muted,
  .user-info-widget .account-link .material-icons {
    display: none !important;
  }

  .user-info-widget .account-link::before {
    font-family: "Material Icons" !important;
    content: "\e853" !important; /* Person circle icon code */
    font-size: 1.4rem !important;
    color: #212529 !important;
    line-height: 1 !important;
    display: inline-block !important;
  }

  .user-info-widget .account-link:hover {
    background-color: #eef1f5 !important;
  }

  /* Hide cart count text labels on tablet as well so they match mobile design */
  .blockcart .lh-1 {
    display: none !important;
  }

  /* Make sure the logo and action items are clean and vertically centered */
  .header-top .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* Prevent logo from scaling too large on smaller mobile screens */
  .header-logo img,
  .header-logo .logoimg {
    max-height: 36px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
  }

  /* Action items flex layout */
  .header-top .d-flex.align-items-center.order-2 {
    gap: 8px !important;
    margin-left: auto !important; /* Align action items perfectly to the right */
  }
}

@media (max-width: 360px) {
  .header-logo img,
  .header-logo .logoimg {
    max-height: 30px !important; /* Even smaller logo on extra-small mobile */
    max-width: 130px !important;
  }

  .header-top .d-flex.align-items-center.order-2 {
    gap: 6px !important;
  }

  .user-info-widget .account-link,
  .header-action-item a {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ============================================
   CHECKOUT PAGE (/commande) STYLING
   ============================================ */

/* Checkout container spacing */
#checkout {
  padding-top: 24px !important;
  background-color: #f8f9fa !important;
}

/* Checkout multi-step card layout */
.checkout-step {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Highlight current active step */
.checkout-step.-current {
  border-color: #0252b4 !important;
  border-left: 5px solid #0252b4 !important;
  box-shadow: 0 8px 30px rgba(2, 82, 180, 0.08) !important;
}

/* Completed step — collapsed look */
.checkout-step.-complete:not(.-current) {
  background: #f9fbfc !important;
  border-color: #d4edda !important;
  border-left: 5px solid #28a745 !important;
  padding: 20px 32px !important;
}

.checkout-step.-complete:not(.-current) .content {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: max-height 0.4s ease, opacity 0.3s ease !important;
}

.checkout-step.-complete:not(.-current) .step-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  cursor: pointer !important;
}

/* Unreachable/disabled step styling */
.checkout-step.-unreachable {
  opacity: 0.5 !important;
  background: #fcfdfe !important;
  border-color: #e9ecef !important;
  border-left: 5px solid #dee2e6 !important;
}

.checkout-step.-unreachable .step-title {
  color: #adb5bd !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.checkout-step.-unreachable .content {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Checkout step title line */
.checkout-step .step-title {
  display: flex !important;
  align-items: center !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #f1f3f5 !important;
  position: relative !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
}

/* Done step checks styling */
.checkout-step .step-title .done {
  color: #28a745 !important;
  font-size: 1.3rem !important;
  margin-right: 8px !important;
  display: none !important;
}

.checkout-step.-complete .step-title .done {
  display: inline-flex !important;
  align-items: center !important;
}

/* Step number indicators */
.checkout-step .step-number {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #e8edf2, #f0f4f8) !important;
  color: #6c757d !important;
  font-weight: 800 !important;
  margin-right: 14px !important;
  font-size: 0.95rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.checkout-step.-current .step-number {
  background: linear-gradient(135deg, #0252b4, #0366d6) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 82, 180, 0.3) !important;
  transform: scale(1.05) !important;
}

.checkout-step.-complete .step-number {
  background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
  color: #155724 !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15) !important;
}

/* Step edit edit link/icon */
.checkout-step .step-edit {
  margin-left: auto !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #0252b4 !important;
  background: #e8f4fd !important;
  padding: 6px 14px !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.checkout-step .step-edit:hover {
  background: #0252b4 !important;
  color: #ffffff !important;
}

.checkout-step .step-edit i {
  font-size: 0.95rem !important;
}

/* Step Content padding */
.checkout-step .content {
  padding-top: 8px !important;
}

/* Carrier/Shipping delivery option cards */
.delivery-options-list .delivery-option {
  background: #ffffff !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.delivery-options-list .delivery-option:hover {
  border-color: #adb5bd !important;
  background-color: #f8f9fa !important;
}

/* Highlight selected carrier */
.delivery-options-list .delivery-option input[type="radio"]:checked+label,
.delivery-options-list .delivery-option.selected {
  border-color: #0252b4 !important;
  background-color: #f4f8fd !important;
}

.delivery-option label {
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.delivery-option label .carrier-delay {
  font-size: 0.82rem !important;
  color: #6c757d !important;
}

.delivery-option label .carrier-name {
  font-weight: 600 !important;
  color: #212529 !important;
}

/* Payment option cards styling */
.payment-options .payment-option {
  background: #ffffff !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.payment-options .payment-option:hover {
  border-color: #adb5bd !important;
  background-color: #f8f9fa !important;
}

.payment-options .payment-option.selected,
.payment-options .payment-option input[type="radio"]:checked {
  border-color: #0252b4 !important;
  background-color: #f4f8fd !important;
}

.payment-option label {
  margin: 0 !important;
  font-weight: 600 !important;
  color: #212529 !important;
  cursor: pointer !important;
}

/* Checkout cart summary sidebar */
.cart-summary {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
  margin-bottom: 24px !important;
}

.cart-summary .card-block {
  padding: 0 !important;
}

.cart-summary .cart-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  font-size: 0.9rem !important;
  color: #495057 !important;
}

.cart-summary .cart-summary-line.cart-total {
  font-weight: 800 !important;
  color: #1a1a2e !important;
  font-size: 1.1rem !important;
  border-top: 1px solid #e9ecef !important;
  padding-top: 14px !important;
  margin-top: 14px !important;
}

/* Reassurance highlights sidebar card */
#block-reassurance {
  background: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

#block-reassurance li {
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f3f5 !important;
}

#block-reassurance li:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#block-reassurance li .block-reassurance-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#block-reassurance li img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
}

#block-reassurance li span {
  font-size: 0.85rem !important;
  color: #495057 !important;
  line-height: 1.4 !important;
}

/* inputs override specifically inside checkout */
.checkout-step input[type="text"],
.checkout-step input[type="email"],
.checkout-step input[type="password"],
.checkout-step input[type="tel"],
.checkout-step input[type="date"],
.checkout-step select,
.checkout-step textarea {
  border: 1.5px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  background-color: #fafbfc !important;
  transition: all 0.2s ease !important;
  font-size: 0.88rem !important;
}

.checkout-step input[type="text"]:focus,
.checkout-step input[type="email"]:focus,
.checkout-step input[type="password"]:focus,
.checkout-step input[type="tel"]:focus,
.checkout-step input[type="date"]:focus,
.checkout-step select:focus {
  border-color: #0252b4 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(2, 82, 180, 0.08) !important;
}

/* Specific styling for the checkout summary box */
#js-checkout-summary.card {
  background: #ffffff !important;
  border: 1px solid #eef0f2 !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
  margin-bottom: 24px !important;
}

#js-checkout-summary .card-block {
  padding: 0 !important;
}

#js-checkout-summary .cart-summary-products {
  padding-bottom: 16px !important;
  border-bottom: 1.5px dashed #e9ecef !important;
  margin-bottom: 16px !important;
}

#js-checkout-summary .cart-summary-products p {
  margin: 0 !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
}

#js-checkout-summary .cart-summary-products p+p {
  margin-top: 8px !important;
}

#js-checkout-summary .cart-summary-products a.js-show-details {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #0252b4 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

#js-checkout-summary .cart-summary-products a.js-show-details:hover {
  color: #e52e2e !important;
}

#js-checkout-summary .cart-summary-products a.js-show-details i.material-icons {
  font-size: 1.2rem !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-subtotals-container {
  padding: 0 0 12px 0 !important;
  border-bottom: 1.5px dashed #e9ecef !important;
  margin-bottom: 16px !important;
}

#js-checkout-summary .cart-summary-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 6px 0 !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-line .label {
  color: #495057 !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  padding: 0 !important;
}

#js-checkout-summary .cart-summary-line .value {
  color: #1a1a2e !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

#js-checkout-summary .cart-summary-totals {
  padding: 0 !important;
}

#js-checkout-summary .cart-summary-line.cart-total {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-line.cart-total .label {
  font-weight: 800 !important;
  color: #1a1a2e !important;
  font-size: 1.05rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#js-checkout-summary .cart-summary-line.cart-total .value {
  font-weight: 900 !important;
  color: #e52e2e !important;
  font-size: 1.35rem !important;
}

#js-checkout-summary .cart-summary-totals .cart-summary-line+.cart-summary-line {
  margin-top: 4px !important;
}

/* Checkout summary product details list styling */
#js-checkout-summary .cart-summary-products ul.media-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 0 !important;
}

#js-checkout-summary .cart-summary-products ul.media-list li.media {
  list-style: none !important;
  display: flex !important;
  gap: 14px !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid #f1f3f5 !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-products ul.media-list li.media::before {
  display: none !important;
  /* Hide list bullets/markers on PrestaShop lists */
}

#js-checkout-summary .cart-summary-products ul.media-list li.media:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#js-checkout-summary .cart-summary-products .media-left {
  padding: 0 !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-products .media-left img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  border: 1px solid #eef0f2 !important;
  background: #fafbfc !important;
  display: block !important;
}

#js-checkout-summary .cart-summary-products .media-body {
  flex: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-name {
  display: inline-block !important;
  margin-bottom: 2px !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-name a {
  font-weight: 600 !important;
  color: #1a1a2e !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-name a:hover {
  color: #0252b4 !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-quantity {
  font-weight: 700 !important;
  color: #868e96 !important;
  font-size: 0.8rem !important;
  margin-left: 6px !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-price {
  font-weight: 700 !important;
  color: #1a1a2e !important;
  font-size: 0.88rem !important;
  float: right !important;
}

#js-checkout-summary .cart-summary-products .media-body .product-line-info {
  font-size: 0.78rem !important;
  margin-top: 3px !important;
  line-height: 1.35 !important;
  color: #6c757d !important;
}

#js-checkout-summary .cart-summary-products .media-body br {
  display: none !important;
  /* Hide extra line breaks inside media-body */
}

/* Recommended/Main payment option highlight */
.payment-options .payment-option.recommended-payment-option {
  border-color: #0252b4 !important;
  background-color: #f4f8fd !important;
  position: relative !important;
  box-shadow: 0 4px 15px rgba(2, 82, 180, 0.05) !important;
  padding-right: 130px !important;
  /* Make room for the recommended badge */
}

.payment-options .payment-option.recommended-payment-option::after {
  content: 'Option Recommandée' !important;
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #0252b4 !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 30px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

@media only screen and (max-width: 575px) {
  .payment-options .payment-option.recommended-payment-option {
    padding-right: 20px !important;
    /* Reset extra right padding on small mobile */
  }

  .payment-options .payment-option.recommended-payment-option::after {
    position: static !important;
    display: inline-block !important;
    transform: none !important;
    margin-top: 8px !important;
    margin-left: 28px !important;
  }
}

/* Fix terms checkbox and custom checkboxes/radios styling */
#conditions-to-approve ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 0 !important;
}

#conditions-to-approve ul li {
  list-style: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
  position: relative !important;
}

#conditions-to-approve ul li::before {
  display: none !important;
}

#conditions-to-approve .custom-checkbox {
  position: relative !important;
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  vertical-align: middle !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

#conditions-to-approve .custom-checkbox input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
}

#conditions-to-approve .custom-checkbox span {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 20px !important;
  height: 20px !important;
  background: #ffffff !important;
  border: 2px solid #ced4da !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#conditions-to-approve .custom-checkbox input[type="checkbox"]:checked+span {
  background: #0252b4 !important;
  border-color: #0252b4 !important;
}

#conditions-to-approve .custom-checkbox span i.material-icons {
  font-size: 14px !important;
  display: none !important;
  /* Hidden by default in case core JS/CSS hides it */
  font-weight: bold !important;
}

#conditions-to-approve .custom-checkbox input[type="checkbox"]:checked+span i.material-icons {
  display: inline-block !important;
  /* Force visible when checked */
  color: #ffffff !important;
}

#conditions-to-approve .condition-label label {
  font-size: 0.88rem !important;
  color: #495057 !important;
  cursor: pointer !important;
  user-select: none !important;
  line-height: 1.4 !important;
}

/* ============================================
   CHECKOUT ADDRESS CARDS STYLING
   ============================================ */
.address-selector {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
}

.js-address-form>form>p:first-of-type {
  font-size: 0.92rem !important;
  color: #6c757d !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  background: #f8f9fa !important;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  border-left: 4px solid #0252b4 !important;
}

.address-item {
  background: #ffffff !important;
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 20px !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
}

.address-item:hover {
  border-color: #ced4da !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-2px) !important;
}

.address-item.selected {
  border-color: #0252b4 !important;
  background-color: #f4f8fd !important;
  box-shadow: 0 8px 24px rgba(2, 82, 180, 0.08) !important;
}

.address-item .radio-block {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.address-item .custom-radio {
  margin-right: 8px !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.address-item .address-alias {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  margin-bottom: 8px !important;
  display: inline-block !important;
}

.address-item .address {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  color: #495057 !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
}

.address-item.selected .address {
  color: #212529 !important;
}

.address-item hr {
  border-top: 1px solid #e9ecef !important;
  margin: 16px 0 !important;
}

.address-item.selected hr {
  border-top-color: rgba(2, 82, 180, 0.12) !important;
}

.address-item .address-footer {
  display: flex !important;
  gap: 16px !important;
  justify-content: flex-end !important;
  margin-top: auto !important;
}

.address-item .address-footer a {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #6c757d !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.address-item .address-footer a:hover {
  color: #0252b4 !important;
}

.address-item .address-footer a.delete-address:hover {
  color: #e52e2e !important;
}

.address-item .address-footer a i {
  font-size: 16px !important;
}

/* Fix add address link button styling */
.add-address a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 600 !important;
  color: #0252b4 !important;
  text-decoration: none !important;
  margin-top: 16px !important;
  padding: 8px 16px !important;
  border: 1px dashed #0252b4 !important;
  border-radius: 8px !important;
  background: #f4f8fd !important;
  transition: all 0.2s ease !important;
}

.add-address a:hover {
  background: #0252b4 !important;
  color: #ffffff !important;
  border-style: solid !important;
}

/* ============================================
   DELIVERY / SHIPPING SECTIONS STYLING
   ============================================ */
.delivery-options-list .delivery-option {
  display: flex !important;
  align-items: center !important;
  padding: 20px !important;
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  transition: all 0.25s ease !important;
  margin-bottom: 16px !important;
  gap: 16px !important;
}

.delivery-options-list .delivery-option:hover {
  border-color: #ced4da !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03) !important;
}

.delivery-options-list .delivery-option.selected,
.delivery-options-list .delivery-option input[type="radio"]:checked+label,
.delivery-options-list .delivery-option input[type="radio"]:checked~label {
  border-color: #0252b4 !important;
  background-color: #f4f8fd !important;
  box-shadow: 0 6px 20px rgba(2, 82, 180, 0.05) !important;
}

.delivery-options-list .delivery-option>div:first-child {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.delivery-options-list .delivery-option .delivery-option-2 {
  flex: 1 1 auto !important;
  padding: 0 0 0 12px !important;
  margin: 0 !important;
}

.delivery-options-list .delivery-option-2>.row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 !important;
}

.delivery-options-list .delivery-option-2>.row>div {
  padding: 0 !important;
}

.delivery-options-list .carrier {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.delivery-options-list .carrier-logo {
  flex: 0 0 auto !important;
  width: 54px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  border: 1px solid #e9ecef !important;
  padding: 4px !important;
}

.delivery-options-list .carrier-logo img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.delivery-options-list .carrier-name {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
}

.delivery-options-list .carrier-delay {
  font-size: 0.88rem !important;
  color: #495057 !important;
  font-weight: 500 !important;
}

.delivery-options-list .carrier-price {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0252b4 !important;
  text-align: right !important;
  display: block !important;
}

@media (min-width: 768px) {
  .delivery-options-list .delivery-option-2>.row>div:nth-child(1) {
    flex: 1 1 45% !important;
  }

  .delivery-options-list .delivery-option-2>.row>div:nth-child(2) {
    flex: 1 1 35% !important;
  }

  .delivery-options-list .delivery-option-2>.row>div:nth-child(3) {
    flex: 1 1 12% !important;
    text-align: right !important;
  }
}

/* ============================================
   DELIVERY COMMENT/MESSAGE BOX
   ============================================ */
.order-options #delivery {
  background: #f8f9fa !important;
  border-radius: 12px !important;
  padding: 20px 24px !important;
  border: 1px solid #e9ecef !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.order-options label[for="delivery_message"] {
  font-weight: 600 !important;
  color: #495057 !important;
  font-size: 0.9rem !important;
  line-height: 1.5 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

#delivery_message,
#gift_message {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 90px !important;
  padding: 12px 16px !important;
  border: 1px solid #ced4da !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  font-size: 0.9rem !important;
  color: #495057 !important;
  outline: none !important;
  resize: vertical !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  margin-top: 8px !important;
}

#delivery_message:focus,
#gift_message:focus {
  border-color: #0252b4 !important;
  box-shadow: 0 0 0 3px rgba(2, 82, 180, 0.15) !important;
}

/* ============================================
   SEARCH AUTOCOMPLETE ALIGNMENT
   ============================================ */
#search_widget {
  position: relative !important;
}

/* ============================================
   FIX: DOUBLE-CLICK BUG
   Hide all modal backdrops by default to prevent them from blocking clicks.
   Also neutralize Bootstrap 4's dropdown-backdrop which is created on touch
   devices and intercepts all subsequent clicks.
   ============================================ */
.modal-backdrop {
  display: none !important;
  pointer-events: none !important;
}

/* Show the backdrop for visual dimming only — pointer-events stays NONE.
   The .modal element itself handles click-to-dismiss functionality. */
.modal-backdrop.in,
.modal-backdrop.show,
.modal-open > .modal-backdrop {
  display: block !important;
}

/* Ensure Bootstrap 4 Alpha 5 modals (which use .in instead of .show) are visible in Bootstrap 5 */
.modal.in {
  opacity: 1 !important;
  display: block !important;
}
.modal.in .modal-dialog {
  transform: none !important;
}
.modal-backdrop.in {
  opacity: 0.5 !important;
}

/* Bootstrap 4 Alpha 5 creates dropdown-backdrop on touch devices — kill it */
.dropdown-backdrop {
  display: none !important;
  pointer-events: none !important;
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  z-index: -1 !important;
}

/* ============================================
   MOBILE: REMOVE WHITE MARGIN ABOVE NAVBAR
   ============================================ */
@media (max-width: 767.98px) {
  #header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  #header .promo-banner {
    margin-top: 0 !important;
  }
  #header .header-top {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  body,
  main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* ============================================
   MOBILE FOOTER ENHANCEMENTS
   ============================================ */
@media (max-width: 767.98px) {

  /* Footer container */
  .footer-container {
    padding: 30px 0 20px !important;
  }

  /* Footer brand section */
  .footer-container .footer-logo {
    display: block !important;
    margin: 0 auto 15px !important;
  }

  .footer-container .footer-about {
    text-align: center !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .footer-container .social-links {
    justify-content: center !important;
    margin-bottom: 20px !important;
  }

  /* Footer accordion blocks */
  .footer-link-block {
    margin-bottom: 0 !important;
    padding: 0 15px !important;
  }

  .footer-accordion-toggle {
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
  }

  .footer-accordion-toggle:active {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .footer-accordion-toggle .footer-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: #fff !important;
  }

  /* Footer link lists on mobile — hidden by default, shown via JS toggle */
  .footer-link-list {
    display: none;
    padding: 8px 0 12px 12px !important;
    margin-bottom: 0 !important;
  }

  .footer-link-list.collapse-show {
    display: block !important;
  }

  .footer-link-list li {
    margin-bottom: 6px !important;
  }

  .footer-link-item,
  .footer-link-list a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
    padding: 3px 0 !important;
  }

  .footer-link-item:hover,
  .footer-link-list a:hover {
    color: #fff !important;
  }

  /* Customer account links in footer (VOTRE COMPTE) */
  .links .wrapper,
  #footer .links .wrapper {
    margin-bottom: 0 !important;
  }

  /* Footer column link blocks */
  .footer-container .col-lg-9 .col-md-6 {
    padding: 0 15px !important;
  }

  /* Align VOTRE COMPTE and INFORMATIONS (col-md-3) columns on mobile */
  .footer-container .col-lg-9 #block_myaccount_infos,
  .footer-container .col-lg-9 .block-contact {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  /* Footer bottom bar — stacked centered layout */
  .footer-bottom {
    padding: 18px 0 !important;
    text-align: center !important;
  }

  .footer-bottom .row {
    flex-direction: column !important;
    align-items: center !important;
  }

  .footer-bottom p {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 8px !important;
    text-align: center !important;
  }

  .footer-bottom .bottom-links {
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-bottom .bottom-links a {
    font-size: 0.72rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
  }

  .footer-bottom .bottom-links a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .footer-bottom .bottom-links .list-inline-item {
    margin: 0 !important;
  }

  /* Contact info in footer */
  .block-contact .block-contact-title {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }
}

/* ============================================
   MOBILE SLIDER / IMAGE SLIDER ENHANCEMENTS
   ============================================ */
@media (max-width: 767.98px) {
  .hero-slider-wrap .hero-slide-inner {
    padding: 24px 16px !important;
    min-height: auto !important;
  }
  .hero-slider-wrap .hero-slide-image {
    padding: 10px 0 !important;
    width: 100% !important;
    background: transparent !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .hero-slider-wrap .hero-slide-image img {
    max-height: 250px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08)) !important;
  }
}

/* ============================================
   MOBILE SEARCH AUTOCOMPLETE FIX
   ============================================ */
@media (max-width: 767.98px) {
  #search_widget {
    position: relative !important;
    z-index: 1050 !important;
  }
  .ui-autocomplete,
  .ui-widget-content,
  #search_widget .ui-autocomplete {
    width: calc(100% - 30px) !important;
    max-width: none !important;
    left: 15px !important;
    right: 15px !important;
    z-index: 9999 !important;
    position: absolute !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    max-height: 350px !important;
    overflow-y: auto !important;
  }
  .ui-autocomplete .ui-menu-item,
  #search_widget .ui-autocomplete li {
    padding: 10px 14px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-size: 0.85rem !important;
  }
  .ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none !important;
  }
}

/* ============================================
   CART PAGE (MON PANIER) MOBILE REDESIGN
   ============================================ */
@media (max-width: 767.98px) {
  /* Cart page title */
  .cart-grid .h2,
  .cart-grid h1 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    padding: 12px 4px !important;
  }

  /* Cart detailed products layout on mobile */
  .cart-items-column .cart-item-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    gap: 12px 16px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 16px !important;
    background-color: #ffffff !important;
  }

  /* Product image inside card */
  .cart-items-column .cart-item-card .item-image {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    border: 1px solid #f0f4f8 !important;
    padding: 4px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .cart-items-column .cart-item-card .item-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }

  /* Product info (title, attributes) */
  .cart-items-column .cart-item-card .item-info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding-right: 28px !important; /* Space for delete button */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .cart-items-column .cart-item-card .item-name {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
    margin-bottom: 4px !important;
  }
  .cart-items-column .cart-item-card .item-name a {
    color: #1a1a2e !important;
    font-weight: 700 !important;
  }
  .cart-items-column .cart-item-card .item-attributes {
    font-size: 0.78rem !important;
    color: #718096 !important;
    margin-bottom: 0 !important;
  }

  /* Bottom line: Quantity controls and Price */
  .cart-items-column .cart-item-card .item-qty-price {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 12px !important;
    border-top: 1px solid #f0f4f8 !important;
    margin-top: 4px !important;
    width: 100% !important;
  }

  /* Quantity TouchSpin spinner styling */
  .cart-items-column .cart-item-card .qty {
    max-width: 110px !important;
    flex: 0 0 110px !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin {
    height: 36px !important;
    width: 110px !important;
    max-width: 110px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 50px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .input-group-btn-vertical {
    display: contents !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .bootstrap-touchspin-down {
    order: 1 !important;
    width: 32px !important;
    height: 36px !important;
    border: none !important;
    background: #f7fafc !important;
    color: #4a5568 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .bootstrap-touchspin-down::before {
    content: "−" !important;
    font-weight: bold !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin input.item-qty-input {
    order: 2 !important;
    width: 44px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #212529 !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .bootstrap-touchspin-up {
    order: 3 !important;
    width: 32px !important;
    height: 36px !important;
    border: none !important;
    background: #f7fafc !important;
    color: #4a5568 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .bootstrap-touchspin-up::before {
    content: "+" !important;
    font-weight: bold !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .btn-touchspin i {
    display: none !important;
  }
  .cart-items-column .cart-item-card .bootstrap-touchspin .btn-touchspin:hover {
    background-color: #edf2f7 !important;
    color: #1a202c !important;
  }

  /* Price styling */
  .cart-items-column .cart-item-card .item-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #ff3131 !important;
  }

  /* Position absolute delete button in top-right corner */
  .cart-items-column .cart-item-card .item-actions {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
  }
  .cart-items-column .cart-item-card .item-delete-btn {
    color: #a0aec0 !important;
    transition: color 0.2s ease !important;
  }
  .cart-items-column .cart-item-card .item-delete-btn:hover {
    color: #e53e3e !important;
  }
  .cart-items-column .cart-item-card .item-delete-btn i {
    font-size: 1.25rem !important;
  }

  /* Cart summary block enhancements */
  .cart-summary {
    margin-top: 24px !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f5 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
  }
  .cart-summary .summary-title {
    font-size: 1rem !important;
    padding: 16px !important;
    background: #f7fafc !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #eef2f5 !important;
  }
  .cart-summary .cart-summary-line {
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
  }
  .cart-summary .cart-total {
    padding: 14px 16px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    border-top: 1px solid #eef2f5 !important;
  }

  /* Checkout button */
  .cart-detailed-actions .btn-primary,
  .cart-grid .checkout a.btn {
    width: 100% !important;
    padding: 14px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Continue shopping button */
  .cart-grid .cart-grid-body .mt-4 a.btn-outline-secondary {
    font-size: 0.8rem !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Stack columns on mobile */
  .cart-grid .cart-grid-body,
  .cart-grid .cart-grid-right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================
   BLOCKCART MODAL REDESIGN (ADD TO CART POPUP)
   ============================================ */
#blockcart-modal {
  z-index: 1050 !important;
}

#blockcart-modal .modal-dialog {
  max-width: 750px !important;
  margin: 10% auto !important;
}

#blockcart-modal .modal-content {
  border-radius: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  padding: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* Modal Header styling */
#blockcart-modal .modal-header {
  border-bottom: 1px solid #f0f4f8 !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  background: #ffffff !important;
}

#blockcart-modal .modal-header .close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #f1f5f9 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  transition: all 0.25s ease !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  z-index: 10 !important;
}

#blockcart-modal .modal-header .close span,
#blockcart-modal .modal-header .close i,
#blockcart-modal .modal-header .close .material-icons {
  color: #64748b !important;
  font-size: 20px !important;
  line-height: 1 !important;
  transition: color 0.25s ease !important;
}

#blockcart-modal .modal-header .close:hover {
  background: #ff3131 !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 3px 10px rgba(255, 49, 49, 0.3) !important;
}

#blockcart-modal .modal-header .close:hover span,
#blockcart-modal .modal-header .close:hover i,
#blockcart-modal .modal-header .close:hover .material-icons {
  color: #ffffff !important;
}

#blockcart-modal .modal-title {
  color: #10b981 !important; /* Premium emerald color */
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

#blockcart-modal .modal-title i {
  font-size: 1.6rem !important;
  color: #10b981 !important;
  vertical-align: middle !important;
}

/* Modal Body styling */
#blockcart-modal .modal-body {
  padding: 24px 20px !important;
  background: #ffffff !important;
}

/* Product section (Left side) */
#blockcart-modal .divide-right {
  border-right: 1px solid #eef2f6 !important;
  padding-right: 24px !important;
}

#blockcart-modal .product-image {
  border-radius: 12px !important;
  border: 1px solid #eef2f6 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  height: auto !important;
}

#blockcart-modal .product-name {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
}

#blockcart-modal .product-price {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #0252b4 !important; /* Theme blue color */
  margin-bottom: 12px !important;
}

#blockcart-modal .modal-body span.product-quantity,
#blockcart-modal .modal-body span {
  font-size: 0.85rem !important;
  color: #64748b !important;
  display: inline-block !important;
  margin-bottom: 4px !important;
}

#blockcart-modal .modal-body span strong {
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* Cart content section (Right side) */
#blockcart-modal .cart-content {
  padding-left: 16px !important;
}

#blockcart-modal .cart-products-count {
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0252b4 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  background: #edf2f9 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  border-left: 4px solid #0252b4 !important;
}

#blockcart-modal .cart-content p:not(.cart-products-count) {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.9rem !important;
  color: #64748b !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

#blockcart-modal .cart-content p .value {
  color: #1e293b !important;
  font-weight: 700 !important;
}

/* Total price line styling */
#blockcart-modal .cart-content p.product-total {
  font-size: 1.1rem !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  border-bottom: none !important;
  padding-top: 8px !important;
  margin-top: 12px !important;
}

#blockcart-modal .cart-content p.product-total .value {
  font-size: 1.3rem !important;
  color: #ff3131 !important; /* Highlight total price in red */
  font-weight: 800 !important;
}

/* Button section */
#blockcart-modal .cart-content-btn {
  display: flex !important;
  gap: 12px !important;
  margin-top: 24px !important;
}

#blockcart-modal .cart-content-btn .btn {
  flex: 1 !important;
  padding: 12px 20px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  outline: none !important;
  cursor: pointer !important;
}

#blockcart-modal .cart-content-btn .btn-secondary {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

#blockcart-modal .cart-content-btn .btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

#blockcart-modal .cart-content-btn .btn-primary {
  background: #0252b4 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(2, 82, 180, 0.25) !important;
}

#blockcart-modal .cart-content-btn .btn-primary:hover {
  background: #024192 !important;
  box-shadow: 0 6px 16px rgba(2, 82, 180, 0.4) !important;
  transform: translateY(-1px) !important;
}

#blockcart-modal .cart-content-btn .btn-primary i {
  font-size: 1.1rem !important;
}

/* Responsive fixes for mobile devices */
@media (max-width: 767.98px) {
  #blockcart-modal .modal-dialog {
    margin: 15px !important;
    max-width: 100% !important;
  }
  
  #blockcart-modal .divide-right {
    border-right: none !important;
    border-bottom: 1px solid #f0f4f8 !important;
    padding-right: 0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }
  
  #blockcart-modal .cart-content {
    padding-left: 0 !important;
  }
  
  #blockcart-modal .cart-content-btn {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  #blockcart-modal .cart-content-btn .btn {
    width: 100% !important;
  }
}

/* Fixed Navbar - always visible at top when scrolling */
#header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
  overflow: visible !important;
}

/* Prevent scroll-to-top when interacting with forms under fixed header */
html {
  scroll-padding-top: 180px !important;
  scroll-behavior: smooth !important;
}

#header .main-header,
#header .header-top {
  overflow: visible !important;
}

/* Search autocomplete dropdown must appear above page content */
.ui-autocomplete,
.ui-widget,
#search_widget .ui-autocomplete,
#search_widget ul,
.search-widget ul {
  z-index: 99999 !important;
  position: absolute !important;
}

/* Push page content down so it doesn't hide behind the fixed header */
#wrapper {
  padding-top: 140px !important;
}

@media (max-width: 991.98px) {
  #wrapper {
    padding-top: 170px !important;
  }
}

@media (max-width: 575.98px) {
  #wrapper {
    padding-top: 160px !important;
  }
}

/* Footer Link Blocks - Even 4-column alignment on desktop */
@media (min-width: 768px) {
  .footer-container .col-lg-9 > .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  /* Make the linklist wrapper (col-md-6) expand to fill and remove its nested row padding */
  .footer-container .col-lg-9 > .row > .col-md-6.links {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .footer-container .col-lg-9 > .row > .col-md-6.links > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .footer-container .col-lg-9 > .row > .col-md-6.links > .row > .col-md-6 {
    flex: 1 1 50% !important;
    max-width: 50% !important;
  }

  /* Make the standalone blocks (account + contact) each take 25% */
  .footer-container .col-lg-9 > .row > .col-md-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
  }
}