/**
 * L'art et la matière - Custom Header Styles
 * PrestaShop 9.0.1 Theme: lelm
 */

/* ========================================
   CSS Variables - Color Palette
   ======================================== */
:root {
  /* Primary Colors */
  --lelm-primary-brown: #9B5F45;
  --lelm-secondary-beige: #F3D2C3;
  --lelm-white: #FFFFFF;
  
  /* Typography */
  --lelm-font-heading: 'Dancing Script', cursive;
  --lelm-font-nav: 'Playfair Display', serif;
  --lelm-font-body: 'Nimbus Sans', sans-serif;
}

#wrapper{
  background-color: var(--lelm-white)!important;
}
/* ========================================
   Custom Header Component
   ======================================== */
.lelm-header {
  width: 100%;
  padding-left: 104px!important;
  padding-right: 104px!important;
  background: var(--lelm-primary-brown);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.lelm-header__container {
  align-self: stretch;
  height: 80px;
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* ========================================
   Logo Section
   ======================================== */
.lelm-header__logo-wrapper {
  position: absolute;
  left: 0;
  top: 16px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
}

.lelm-header__logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* Logo image container */
.lelm-header__logo-icon h1,
.lelm-header__logo-icon a {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lelm-header__logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

.lelm-header__logo-icon svg {
  width: 20px;
  height: 20px;
}

.lelm-header__logo-icon svg path {
  fill: var(--lelm-primary-brown);
}

.lelm-header__brand {
  padding-left: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.lelm-header__brand-title {
  width: 196.28px;
  height: 36px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: var(--lelm-white)!important;
  font-size: 30px;
  font-family: var(--lelm-font-heading);
  font-weight: 600;
  line-height: 36px;
  word-wrap: break-word;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.lelm-header__brand-title:hover {
  color: var(--lelm-white)!important;
  opacity: 0.85;
  text-decoration: none;
}

/* ========================================
   Navigation Menu - PrestaShop Integration
   ======================================== */
.lelm-header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 28px;
}

.lelm-header__nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Style PrestaShop menu */
.lelm-header__nav-menu #_desktop_top_menu {
  display: flex;
  justify-content: center;
}

.lelm-header__nav-menu .top-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lelm-header__nav-menu .top-menu > li {
  position: relative;
}

.lelm-header__nav-menu .top-menu > li > a {
  color: var(--lelm-white) !important;
  font-size: 16px;
  font-family: var(--lelm-font-nav);
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: block;
  padding: 0;
}

.lelm-header__nav-menu .top-menu > li > a:hover {
  opacity: 0.8;
  text-decoration: underline;
  color: var(--lelm-white) !important;
}

.lelm-header__nav-menu .top-menu > li.current > a {
  font-weight: 600;
  text-decoration: underline;
  color: var(--lelm-white) !important;
}

/* Ensure dropdown arrow is white */
.lelm-header__nav-menu .top-menu .dropdown .expand-more {
  color: var(--lelm-white) !important;
}

/* Dropdown styles for PrestaShop menu - DISABLED HOVER */
.lelm-header__nav-menu .top-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 200px;
  display: none !important;
  z-index: 1000;
  list-style: none;
}

/* Remove hover dropdown - only parent link is clickable */
.lelm-header__nav-menu .top-menu > li:hover .sub-menu {
  display: none !important;
}

.lelm-header__nav-menu .sub-menu .dropdown-menu {
  background: var(--lelm-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
}

/* Direct submenu styling */
.lelm-header__nav-menu .sub-menu li,
.lelm-header__nav-menu .dropdown-menu li {
  background: var(--lelm-white);
}

.lelm-header__nav-menu .sub-menu li a,
.lelm-header__nav-menu .dropdown-menu li a {
  padding: 10px 20px;
  display: block;
  color: var(--lelm-primary-brown) !important;
  text-decoration: none;
  font-family: var(--lelm-font-nav);
  font-size: 14px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.lelm-header__nav-menu .sub-menu li a:hover,
.lelm-header__nav-menu .dropdown-menu li a:hover {
  background-color: var(--lelm-secondary-beige);
  color: var(--lelm-primary-brown) !important;
}

/* Alternative dropdown structure */
.lelm-header__nav-menu .dropdown-menu {
  background: var(--lelm-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 0;
  border: none;
}

.lelm-header__nav-menu .popover {
  background: var(--lelm-white);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  margin-top: 8px;
}

/* Hide search bar from nav menu area */
.lelm-header__nav-menu #search_widget {
  display: none !important;
}

/* ========================================
   Header Actions (Search, User Account & Cart)
   ======================================== */
.lelm-header__actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

/* Search Bar in Actions */
.lelm-header__actions #search_widget {
  display: inline-block;
}

.lelm-header__actions #search_widget form {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--lelm-white);
  border-radius: 24px;
  padding: 6px 14px;
  transition: all 0.3s ease;
  height: 36px;
}

.lelm-header__actions #search_widget form:hover,
.lelm-header__actions #search_widget form:focus-within {
  background: rgba(255, 255, 255, 0.1);
}

.lelm-header__actions #search_widget input[type="text"] {
  background: transparent;
  border: none;
  color: var(--lelm-white);
  font-family: var(--lelm-font-nav);
  font-size: 14px;
  padding: 0 8px;
  outline: none;
  width: 160px;
  line-height: 20px;
}

.lelm-header__actions #search_widget input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.lelm-header__actions #search_widget button[type="submit"] {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lelm-header__actions #search_widget button[type="submit"] i,
.lelm-header__actions #search_widget button[type="submit"] svg {
  color: var(--lelm-white);
  fill: var(--lelm-white);
  width: 16px;
  height: 16px;
}

.lelm-header__actions #search_widget .material-icons {
  color: var(--lelm-white);
  font-size: 16px;
  line-height: 16px;
}

/* Hamburger Menu Button */
.lelm-header__hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  outline: none;
}

.lelm-header__hamburger:focus,
.lelm-header__hamburger:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.lelm-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--lelm-white);
  transition: all 0.3s ease;
  pointer-events: none;
}

.lelm-header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.lelm-header__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.lelm-header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.lelm-header__action-button {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  text-decoration: none;
}

.lelm-header__action-icon {
  display: inline-flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.lelm-header__action-icon svg path {
  fill: var(--lelm-white);
}

.lelm-header__action-button--user svg {
  width: 18px;
  height: 18px;
}

.lelm-header__action-button--cart svg {
  width: 16px;
  height: 18px;
}

.lelm-header__cart-badge {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 3.75px;
  top: -8px;
  background: var(--lelm-secondary-beige);
  border-radius: 9999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.lelm-header__cart-badge-text {
  width: 6.69px;
  height: 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column;
  color: var(--lelm-primary-brown);
  font-size: 12px;
  font-family: var(--lelm-font-body);
  font-weight: 400;
  line-height: 16px;
  word-wrap: break-word;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1440px) {
  .lelm-header {
    padding-left: 60px!important;
    padding-right: 60px!important;
  }
  
  .lelm-header__nav-menu .top-menu {
    gap: 24px;
  }
}

@media (max-width: 1200px) {
  .lelm-header {
    padding-left: 40px!important;
    padding-right: 40px!important;
  }
  
  .lelm-header__nav-menu .top-menu {
    gap: 20px;
  }
  
  .lelm-header__nav-menu .top-menu > li > a {
    font-size: 15px;
  }
}

@media (max-width: 992px) {
  .lelm-header {
    padding-left: 20px!important;
    padding-right: 20px!important;
  }
  
  .lelm-header__nav {
    display: none !important; /* Hide desktop nav on tablet/mobile */
  }
  
  .lelm-header__actions {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .lelm-header__hamburger {
    display: flex !important;
  }
  
  .lelm-header__actions #search_widget {
    display: none !important; /* Hide search on mobile */
  }
  
  /* Hide search widget in desktop nav area on mobile */
  .lelm-header__nav-menu #search_widget,
  #_desktop_top_menu #search_widget {
    display: none !important;
  }
  
  /* Hide default PrestaShop mobile header */
  .header-nav.hidden-md-up,
  #menu-icon,
  #_mobile_cart,
  #_mobile_user_info,
  #_mobile_logo,
  #mobile_top_menu_wrapper {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .lelm-header {
    padding-left: 15px!important;
    padding-right: 15px!important;
  }
  
  .lelm-header__container {
    height: 60px;
  }
  
  .lelm-header__logo-wrapper {
    top: 6px;
  }
  
  .lelm-header__logo-icon {
    width: 40px;
    height: 40px;
  }

  .lelm-header__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .lelm-header__brand-title {
    font-size: 24px;
    line-height: 30px;
    height: 30px;
  }
  
  .lelm-header__actions {
    gap: 12px;
  }
  
  .lelm-mobile-menu {
    top: 60px;
  }
}

@media (max-width: 576px) {
  .lelm-header {
    padding-left: 10px!important;
    padding-right: 10px!important;
  }
  
  .lelm-header__logo-icon {
    width: 36px;
    height: 36px;
  }

  .lelm-header__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .lelm-header__brand-title {
    font-size: 20px;
    line-height: 26px;
    height: 26px;
    width: auto;
  }
  
  .lelm-header__actions {
    gap: 10px;
  }
  
  .lelm-header__action-icon svg {
    width: 16px;
    height: 16px;
  }
  
  /* Force mobile menu display on extra small devices */
  .lelm-mobile-menu.active {
    display: flex !important;
  }
  
  .lelm-mobile-menu #_desktop_top_menu,
  .lelm-mobile-menu .menu,
  .lelm-mobile-menu .top-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .lelm-mobile-menu .top-menu li {
    display: block !important;
  }
  
  .lelm-mobile-menu .top-menu li a {
    display: block !important;
    visibility: visible !important;
  }
}

/* Mobile Menu Overlay */
.lelm-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lelm-primary-brown);
  z-index: 999;
  display: none;
  overflow-y: auto;
  padding: 20px;
  flex-direction: column;
}

.lelm-mobile-menu.active {
  display: flex;
}

/* Search bar in mobile menu */
.lelm-mobile-menu #search_widget {
  margin-block: 20px;
  width: 100%;
}

.lelm-mobile-menu #search_widget form {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--lelm-white);
  border-radius: 24px;
  padding: 10px 16px;
  width: 100%;
}

.lelm-mobile-menu #search_widget input[type="text"] {
  background: transparent;
  border: none;
  color: var(--lelm-white);
  font-family: var(--lelm-font-nav);
  font-size: 16px;
  padding: 0 8px;
  outline: none;
  width: 100%;
}

.lelm-mobile-menu #search_widget input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.lelm-mobile-menu #search_widget button[type="submit"] {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lelm-mobile-menu #search_widget button[type="submit"] i,
.lelm-mobile-menu #search_widget button[type="submit"] svg {
  color: var(--lelm-white);
  fill: var(--lelm-white);
  width: 18px;
  height: 18px;
}

.lelm-mobile-menu #search_widget .material-icons {
  color: var(--lelm-white);
  font-size: 18px;
}

/* Mobile menu navigation */
.lelm-mobile-menu #_desktop_top_menu {
  width: 100%;
  display: block !important;
}

.lelm-mobile-menu .menu {
  display: block !important;
}

.lelm-mobile-menu .hidden-sm-down {
  display: block !important;
}

.lelm-mobile-menu .top-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column;
  width: 100%;
}

.lelm-mobile-menu .top-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  display: block !important;
}

.lelm-mobile-menu .top-menu li a {
  display: block !important;
  padding: 18px 0;
  color: var(--lelm-white) !important;
  font-family: var(--lelm-font-nav);
  font-size: 18px;
  text-decoration: none;
  background: transparent !important;
  width: 100%;
}

.lelm-mobile-menu .top-menu li a:hover,
.lelm-mobile-menu .top-menu li a:focus,
.lelm-mobile-menu .top-menu li a:active {
  opacity: 0.8;
  background: transparent !important;
}

/* ========================================
   Hover States
   ======================================== */
.lelm-header__action-button:hover {
  opacity: 0.8;
  transform: scale(1.05);
  transition: all 0.2s ease;
}

header #search_widget form i{
  padding: 0!important;
}

 header #search_widget input[type="text"]{
  margin-left: 15px!important;
}

.page-index #wrapper{
  padding-top: 0!important;
}