/* old navbar
nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  align-items: center;
  background-color: transparent;
  position: fixed;
  width: 100vw;
  height: 60px;
  z-index: 99999;
  transition:
    background-color 0.4s ease-in-out,
    transform 0.4s ease-in-out;
}*/
nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 24px;
  align-items: center;
  background-color: transparent;
  position: fixed;
  top: 36px;
  width: 100vw;
  height: 68px;
  z-index: 99999;
  transition:
    background-color 0.4s ease-in-out,
    transform 0.4s ease-in-out;
  box-sizing: border-box;
}

/* Hide navbar on scroll down with smooth transition */
nav.hidden {
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

/* Show navbar when scrolling up */
nav.nav-visible {
  transform: translateY(0);
  background-color: white;
  transition:
    transform 0.4s ease-in-out,
    background-color 0.4s ease-in-out;
}

/* Show links and background when hovering or when nav is visible */
nav:hover,
nav.nav-visible {
  background-color: white;
}

.progress-bar-images {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  position: relative;
  z-index: 20;
}

.progress-bar-img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  display: block;
}

.scent-left-img {
  margin-right: -15px;
}

.bottle-right-img {
  margin-left: -15px;
}

/* Left container styles */
nav .left-container-nav {
  display: flex;
  align-items: center;
  gap: 7vw;
  order: 1;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  right: 220px;
  width: calc(100vw - 268px);
}

/* Quiz Progress Bar Styles */
.quiz-navbar-progress-bar-outer {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 24px;
  min-width: 300px;
  margin-left: 18px;
  margin-right: 0;
  position: relative;
  z-index: 100;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}

.quiz-navbar-progress-bar-track {
  width: 88%;
  height: 3.5px;
  background: #d4c2a6;
  border-radius: 0px;
  position: relative;
}

.circle-number {
  color: white;
  font-family: "Jost", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  user-select: none;
  letter-spacing: 0.5px;
  z-index: 11;
}

.circle-label {
  display: block;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  margin-top: 2px;
  color: black;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 12;
}

.quiz-navbar-progress-bar-circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #d4c2a6;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 8px #d4c2a655;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.quiz-navbar-progress-bar-circle.circle-1 {
  left: 25%;
  top: 50%;
}
.quiz-navbar-progress-bar-circle.circle-2 {
  left: 50%;
  top: 50%;
}
.quiz-navbar-progress-bar-circle.circle-3 {
  left: 75%;
  top: 50%;
}

.quiz-navbar-progress-bar-circle.passed {
  background: #111;
  color: #fff;
  box-shadow: 0 2px 8px #1112;
}
.quiz-navbar-progress-bar-circle.passed .circle-number {
  color: #fff;
}

.quiz-navbar-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: black;
  border-radius: 0px;
  transition:
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s;
  box-shadow: 0 2px 12px 0 #d4c2a655;
}

nav:hover .quiz-navbar-progress-bar-outer,
nav:focus-within .quiz-navbar-progress-bar-outer {
  opacity: 0;
  pointer-events: none;
}

/* Logo styles */
nav .logo {
  display: flex;
  align-items: center;
  width: auto;
  min-width: 150px;
  margin-right: 0;
  flex-shrink: 0;
}

nav .logo img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

nav .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav .logo a:hover::after {
  display: none;
}

/* Translate button styles */
nav .gtranslate_wrapper {
  display: none !important;
  position: static;
  transform: none;
  max-width: 5rem;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.4s ease-in-out,
    visibility 0.4s ease-in-out;
}

/* Show translate button on hover for desktop through min-width */
@media screen and (min-width: 769px) {
  nav:hover .gtranslate_wrapper {
    opacity: 1;
    visibility: visible;
  }
}

nav .gtranslate_wrapper select,
nav .gtranslate_wrapper .gt_selector {
  font-family: inherit;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: normal;
  color: #000;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 5ch;
  text-overflow: clip;
  letter-spacing: 1px;
}

nav .gtranslate_wrapper select option {
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
  font-weight: normal;
  color: #000;
}

/* Links container */
nav .links {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  margin-left: 50px;
}

/* Hide translate in mobile links by default */
nav .links .gtranslate_wrapper {
  display: none;
}

/* Navigation links */
nav .links ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  gap: 40px;
  text-transform: uppercase;
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 1.4px;
  transition:
    opacity 0.4s ease-in-out,
    visibility 0.4s ease-in-out;
  margin: 0;
  padding: 0;
}

/* Show links on hover or when navbar is visible */
nav:hover .links ul,
nav.nav-visible .links ul {
  opacity: 1;
  visibility: visible;
}

/* Actions (icons) */
nav .actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  order: 3;
  padding-right: 20px;
}

nav .actions ul {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Link styles */
nav .links li a {
  text-decoration: none;
  text-wrap: nowrap;
  color: #000;
  position: relative;
}

nav .links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  background-color: rgb(0, 0, 0);
  margin: 0 auto;
  transition: 0.5s;
  bottom: -5px;
  right: 50%;
}

nav .links li a:hover::after {
  width: 100%;
  right: 0;
}

nav .actions ul li:nth-child(2) {
  border-left: 2px solid #000;
  padding-left: 15px;
}

/* Class to show the navbar */
nav.visible {
  opacity: 1;
  transform: translateY(0);
}

ul .mobile-logo {
  width: 140px;
  display: none;
}
nav .mobile-logo img {
  width: 100%;
  height: auto;
}

/* Navbar Progress Bar Styles */
.navbar-progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 100;
}

.navbar-progress-bar {
  height: 100%;
  width: 0%;
  background: #d4c2a6;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
  nav .left-container-nav {
    gap: 4vw;
  }

  nav .links {
    margin-left: 30px;
  }

  nav .links ul {
    gap: 28px;
    font-size: 13px;
  }

  nav .logo img {
    height: 38px;
  }
}

@media screen and (max-width: 1024px) {
  nav .links ul {
    gap: 20px;
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  .mobile-menu-btn {
    display: block !important;
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100000;
  }

  /* Hide the left container in mobile view */
  nav > .left-container-nav {
    display: none;
  }

  nav .links .gtranslate_wrapper {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  ul > .mobile-logo {
    display: block;
  }

  nav .links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    margin: 0;
    padding: 0;
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  nav .links.active {
    left: 0;
  }

  /* Logo in mobile menu */
  nav .links .logo {
    display: block;
    width: 140px;
    min-width: unset;
    margin: 0;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    color: #000;
  }

  nav .links ul {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    opacity: 1;
    visibility: visible;
    margin: 0;
    padding: 20px;
    padding-top: 90px;
    position: absolute;
    top: 1%;
    gap: 25px;
  }

  /* Adjust actions position in mobile */
  nav .actions {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .menu-overlay.active {
    display: block;
  }

  .logo-item {
    width: 140px;
    margin-bottom: 30px;
    padding: 10px 0;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 10px 15px;
    height: 64px;
  }

  nav .logo img {
    height: 34px;
  }

  nav .actions {
    padding-right: 15px;
  }

  nav .actions ul {
    font-size: 16px;
    gap: 8px;
    margin-right: -25px;
  }

  nav .actions ul li:nth-child(2) {
    padding-right: 8px;
    padding-left: 8px;
  }

  .mobile-menu-btn {
    font-size: 20px;
    padding: 8px;
  }
}

/* Logo styles */
.logo-item {
  width: 140px;
  margin-bottom: 20px;
  padding: 10px 0;
}

.logo-item img {
  width: 100%;
  height: auto;
}

.logo-item a {
  display: block;
}

.logo-item a:hover::after {
  display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 100000;
  order: 2;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
}

.mobile-menu-btn:visited {
  color: #000;
}

/* Actions (icons) */
nav .actions {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  order: 3;
  padding-right: 20px;
  color: #000;
}

nav .actions ul li a {
  color: #000;
}

nav .actions ul li a:visited {
  color: #000;
}

.search-icon-btn .fa-magnifying-glass {
  display: inline-block !important;
}

nav .actions ul li:nth-child(2) {
  padding-right: 0px;
}

nav .profile {
  width: 30px;
  margin-right: 0;
}

nav .profile img {
  width: 100%;
  height: auto;
}

nav .profile a:hover::after {
  display: none;
}

nav .profile img,
.profile-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #000;
}

nav.user-logged-in .actions ul {
  display: flex;
  align-items: center;
}
nav.user-logged-in .actions ul li {
  display: flex;
  align-items: center;
  height: 40px;
}
nav.user-logged-in .actions ul li .gtranslate_wrapper,
nav.user-logged-in .actions ul li .fa-cart-shopping,
nav.user-logged-in .actions ul li .fa-right-from-bracket,
nav.user-logged-in .actions ul li .profile {
  display: flex;
  align-items: center;
  height: 40px;
}

nav .actions ul li a#logoutLink {
  text-decoration: none !important;
}

/* Ensure all navbar icons are black, regardless of parent */
nav .actions ul li i {
  color: #000 !important;
}

/* Also, make sure buttons don't override the color */
nav .actions ul li button,
nav .actions ul li button:active,
nav .actions ul li button:focus {
  color: #000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.cart-toggle-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
}

.offcanvas {
  width: 420px !important;
}

.offcanvas-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

#cartItems {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  align-items: flex-start;
}

.cart-item-image img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f7f7;
  padding: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h6 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
}

.cart-item-info p {
  margin: 0 0 4px;
  font-size: 13px;
  color: #444;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.cart-item-right {
  text-align: right;
}

.cart-item-subtotal {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.cart-item-remove {
  border: none;
  background: transparent;
  color: #c00;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 18px;
  margin-top: 20px;
}

#emptyCartMessage {
  font-size: 16px;
  color: #222;
}

/* modal passer commande */
.checkout-modal-content {
  border-radius: 16px;
  padding: 0;
  border: none;
}

#checkoutModal .modal-dialog {
  max-width: 540px;
  width: 100%;
}

#checkoutModal .modal-content {
  background: #fff;
}

#checkoutModal .modal-header {
  padding: 18px 24px 8px;
  align-items: flex-start;
}

#checkoutModal .modal-title {
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  color: #111;
  font-family: inherit;
  text-transform: none;
}

#checkoutModal .btn-close {
  margin: 0;
  padding: 0;
  font-size: 12px;
}

#checkoutModal .modal-body {
  padding: 8px 24px 24px;
}

.delivery-box h5 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.delivery-option {
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-option input[type="radio"] {
  transform: scale(1);
}

.delivery-option span {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.checkout-section-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 18px;
  line-height: 1.4;
}

.checkout-field {
  margin-bottom: 14px;
}

.checkout-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.checkout-field label span {
  color: #d60000;
}

.checkout-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.checkout-field input:focus {
  border-color: #111;
}

.checkout-summary {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 8px;
  color: #111;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.total-row {
  border-top: 1px solid #ddd;
  margin-top: 10px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
}

.checkout-final-btn {
  margin-top: 18px;
  height: 50px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}

.checkout-products-list {
  margin-top: 16px;
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.checkout-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-product-item:last-child {
  border-bottom: none;
}

.checkout-product-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}

.checkout-product-info {
  flex: 1;
  min-width: 0;
}

.checkout-product-info h6 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}

.checkout-product-info p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.checkout-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

@media (max-width: 576px) {
  #checkoutModal .modal-dialog {
    max-width: 100%;
    margin: 10px;
  }

  #checkoutModal .modal-header {
    padding: 16px 16px 8px;
  }

  #checkoutModal .modal-body {
    padding: 8px 16px 16px;
  }

  .checkout-section-title {
    font-size: 15px;
  }
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background-color: #2f4ea2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  z-index: 1100;
  letter-spacing: 0.3px;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "▾";
  font-size: 11px;
  transition: transform 0.25s ease;
}

.has-dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

nav .links ul .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

nav .links ul .dropdown li {
  width: 100%;
}

nav .links ul .dropdown li a {
  display: block;
  width: 100%;
  padding: 11px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #111;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

nav .links ul .dropdown li a::after {
  display: none !important;
}

nav .links ul .dropdown li a:hover {
  background: #f8f8f8;
  padding-left: 24px;
}

.has-dropdown.open > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.search-nav-item {
  position: relative;
}

.search-icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.search-box {
  position: absolute;
  top: 35px;
  right: 0;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 100001;
}

.search-box.active {
  width: 320px;
  opacity: 1;
  overflow: visible;
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 0 16px;
  outline: none;
  font-size: 14px;
  background: white;
}

.search-results {
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 350px;
  overflow-y: auto;
  display: none;
}

.search-result-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #f1f1f1;
}

.search-result-item:hover {
  background: #f8f8f8;
}

.search-result-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 8px;
}

.search-result-item h6 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.search-result-item p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #666;
}
