/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

#product h2,custumunderlined h2{

    text-decoration: underline solid #b9c642 3px!important;
}
.opmegamenu-submenu-container h5,#footer h5{
        text-decoration: underline solid #b9c642 2px!important;

}
#desktop-header-container .material-icons, #desktop-header-container .material-icons-outlined{
    font-size: 40px;
}

#desktop_logo  .logo
{
    max-width: 300px;
}

.mobile-menu__submenu .block-links ul>li a,.mobile-menu__submenu .ddbuilder  a{
	
    font-size: 16px;
    line-height: 30px;
}
.product-add-cart{
    position:relative;
}

.btn-product-list:after {
    content: "";
    width: 50%;
    max-width: 110px;
    background: #b4c314;
    height: 5px;
    position: absolute;
    top: 100%;

    left: -1px;
    right: auto;
}

/* Scoped Payment Options Styles */
.payment-options {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: white;
}

/* Payment Option Items - Scoped to container */
.payment-options .payment-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
#checkout .form-group{
       margin-bottom: 1px;

}
.payment-options .payment-option:hover {
  border-color: #b5b5b5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-options .payment-option label {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
  margin-left: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.payment-options .payment-option img {
  margin-left: auto;
  max-height: 24px;
  max-width: 120px;
  object-fit: contain;
}

/* Custom Radio Buttons - Scoped to container */

/* Additional Information Section - Scoped to container */
.payment-options .additional-information {
  padding: 16px;
  margin: 12px 0;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #e10098;
  animation: payment-fadeIn 0.3s ease;
}

.payment-options .additional-information section {
  color: #555;
  line-height: 1.6;
}

.payment-options .additional-information dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 12px 0;
}

.payment-options .additional-information dt {
  font-weight: 600;
  color: #333;
}

.payment-options .additional-information dd {
  margin: 0;
}

/* Active State - Scoped to container */
.payment-options .payment-option.active {
  border-color: #e10098;
  background-color: rgba(76, 175, 80, 0.05);
}

/* Scoped Animations */
@keyframes payment-fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Adjustments - Scoped to container */
@media (max-width: 480px) {
  .payment-options {
    padding: 15px;
  }
  
  .payment-options .payment-option {
    padding: 12px 15px;
  }
  
  .payment-options .payment-option label {
    font-size: 15px;
  }
  
  .payment-options .additional-information dl {
    grid-template-columns: 1fr;
  }
}

/* checkout */ 

/* 1. Force both login + registration forms to always be visible */
#personal-information-step-login,
#customer-form {
  display: block !important;
  margin-bottom: 20px;
}

/* 2. Wrap the toggles into a flex row above the forms */
#checkout-personal-information-step .content {
  position: relative;
  padding-top: 30px; /* space for the buttons */
}

#checkout-personal-information-step .toggle-buttons {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 1;
    padding: 17px;
    background: #cccccc;
}
/* 3. Style the three main action buttons */
#checkout-personal-information-step .toggle-buttons a {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
#checkout-personal-information-step .toggle-buttons a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* Individual button colors */
#btn-login {
  background: #007bff;
}
#btn-register {
  background: #28a745;
}
#btn-guest {
  background: #6c757d;
}

/* 4. Card-style for forms */
#login-form,
#customer-form {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 25px;
}

/* 5. Tidy up headings */
#checkout-personal-information-step .step-title {
  border-bottom: none;
  margin-bottom: 20px;
}

/* 6. Make the “Continuer” buttons stretch full-width inside each form */
#login-form .continue,
#customer-form .continue {
  width: 100%;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
}
 #checkout-personal-information-step .content {
    display: block;
    padding: 10px;
}
body#checkout section.checkout-step #personal-information-step-login {
    background: rgba(204, 204, 204, .15);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 50px;
    padding: 0;
}
/* Alternative Prominent Styling */
.signup-header {
    background-color: #f5fbfd;
    border-left: 4px solid #25b9d7;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    text-align: left;
}

.signup-title {
    color: #363a41;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.signup-title:before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2325b9d7"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-repeat: no-repeat;
    margin-right: 10px;
}

.signup-subtitle {
    color: #666;
    font-size: 14px;
    margin-left: 34px;
}

#checkout  #customer-form > div {
  display: flex;
  flex-direction: column;
}
#checkout .form-group{
    width: 100%;
    padding: 3px 5px;
    border: 0px solid #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
   
}
/* Target the E-mail block and move it to the top */
#checkout  .form-group:has(#field-email) {
  order: -1;
}
/* Create a visual block for Account mode */
#checkout .field-password-policy {
  border: 1px solid #ccc;
  padding: 1rem;
  margin-top: 2rem;
  background: #f9f9f9;
  position: relative;
  margin-bottom:2rem;
}

/* Create a visual block for Guest mode by default styles */
 #checkout  .form-group:first-child {
  margin-top: 1rem;
}

/* Reorder form fields to show email first */
#customer-form > div {
  display: flex;
  flex-direction: column;
}

/* Create two clear sections */
#customer-form > div::before,
#customer-form > div::after {
  content: "";
  display: block;
  width: 100%;
  margin: 20px 0;
  border-top: 1px solid #eee;
}

/* Make password section clearly optional */

.field-password-policy .form-control-comment {
  color: #25b9d7;
  font-weight: bold;
}

/* Style the "Create account" section header */
#customer-form > div > p {
  font-size: 1.1rem;
  padding: 10px 15px;
  background-color: #f5fbfd;
  border-left: 4px solid #25b9d7;
  margin: 20px 0 10px;
}

#customer-form > div > p span.font-weight-bold {
  color: #25b9d7;
}

#header-user-link :not(.dropdown-menu-custom).dropdown-menu.show {
	    margin-left: -290px!important;

}

#cart .cart-totals .clearfix,#cart .cart-summary-totals .cart-total {
    position: relative;
    padding-bottom: 1.2rem; /* Space for badge */
}
#cart .cart-totals .clearfix::after ,#cart  .cart-summary-totals .cart-total::after{
   content: "Frais de livraison calculés à l’étape suivante";
  display: inline-block;
  position: absolute;
  bottom: -0.5rem;
  left: 0;

  font-size: 0.7rem;
  color: #000;

  padding: 0.15rem 0.5rem;
  border-radius: 0.75rem;
  white-space: nowrap;
}
.cart-total.no-after::after ,
.cart-totals .clearfix.no-after::after {
    display: none;
}
.badge-info_cart {
    background-color: #d0d3dd;
    color: #ffffff;
    font-size: 9px;
}
#blockcart-modal .cart-subtotals{
	margin-bottom: 20px;
}

/* Custom Required Field Styling *//* Custom Required Field Styling - Blue by default */
input:required{
    border-color: #0066cc;
}

/* Red when invalid and not empty */
input:required:not(:placeholder-shown):invalid {

    animation: shake 0.5s ease-in-out;
}

/* Optional: Keep blue when valid and filled */
input:required:not(:placeholder-shown):valid {
    border-color: #00cc66;
}

/* Custom Error Message (Hidden by Default) */
.custom-error-message {
    display: none;
    color: #ff3860;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

/* Show Error Message When Invalid */
input:required:invalid:focus + .custom-error-message,
input:required:not(:placeholder-shown):invalid + .custom-error-message {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Shake Animation for Invalid Input */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Optional: Style for when field is focused */
input:required:focus {
    border-color: #0066cc !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2) !important;
}

/* Optional: Style for placeholder text in required fields */
input:required::placeholder {
    color: #999;
    font-style: italic;
}
/* Custom Required Field Styling */
.required-field-group {
  position: relative;
  margin-bottom: 1.2rem;
  transition: all 0.3s ease;
}

.required-field-group.error {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.required-field-group.error .form-control {
  border-color: #ff3860;
  box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.2);
}

.custom-error-message {
  display: none;
  color: #ff3860;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: rgba(255, 56, 96, 0.1);
  border-radius: 4px;
  animation: fadeInUp 0.3s ease-out;
}

.required-field-group.error .custom-error-message {
  display: block;
}

/* Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating label effect */
.floating-label {
  position: relative;
}

.floating-label label {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  color: #999;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-label.focused label,
.floating-label.filled label {
  top: -0.5rem;
  left: 0.8rem;
  font-size: 0.75rem;
  background: white;
  padding: 0 0.2rem;
  color: #333;
}

.floating-label.error label {
  color: #ff3860;
}

 .product__flash {
    text-transform: uppercase;
    color: #ff3860;
    font-weight: 700;
    text-align: center;
    /* padding: 0 10px; */
    /* margin-bottom: 8px; */
    font-size: 11px;
} .product__flash .product__flash_content {
    border: 1px solid #ff3860;
    border-radius: 4px;
    margin: 0 auto;
    padding: 3px 0;
}.product__flash .product__flash_content ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 575.98px) {
#header .block-oplinksmanager{
  display: none !important;;
}
#mobile-cart-wrapper{
  position: relative;
}
.js-product-availability{
white-space:normal;
}
}
