/* header.css */

/* Desktop Header */

.desktop__header--container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 10px 20px;
}


/* Logo */
.desktop__header--container .logo,
.desktop__header--container .custom-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

/* Navigation Links */
.desktop__header--container .links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.links__url{
    color: #FFF;
    font-weight: 400;
    padding-bottom: 17px;
    line-height: 120%; /* 20.4px */
}

.links__url-active, .links__url:hover {
    border-bottom: 3px solid #55F5FF;
}

/* Search */
.search-form {
    position: relative;
    width: 287px;
    height: 36px;
    z-index: 1;
}

.search-form form{
    height: 100%;
}

.search__input {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid #E8EAED;
    background-color: black;
    color: white;

    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 19.2px;
    outline: none;
    padding: 16px;
}
.search__input::placeholder {
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0;
    color: white;
}
.search__input--svg {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search__input--svg:hover {
    color: #D1D5DB;
}

/* Pro Logo */
.logo__pro {
    border-radius: var(--br-5xs);
    border: 1px solid var(--color-white);
    background: #191919;
    width: 236px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.logo__pro img{
    width : 180px;
}

/* Header Icons */
.header__icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.header__icons .pointer {
    cursor: pointer;
}

.header__icons svg {
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
     .header__icons svg:hover path, .header__icons .header__icons--active svg path{
         fill: var(--light-blue-color)
     }
 }

.header__icons .active--icon svg path{
    fill: var(--color-royalblue)
}

/* Mobile Header - Hidden by default */
.header__phone {
    display: none;
}

@media (max-width: 1320px) {

    .logo__pro{
        display: none;
    }

    .header__phone--container {
        background-color: #1a1a1a;
        display: grid;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 20px;
        grid-template-areas:
        "logo logo icons icons icons"
        "nav search search search search";
        grid-template-columns: repeat(5, 1fr);
        gap:20px;
    }

    .header__phone--search {
        width: 100%;
    }
    .header__phone--container .logo {
        width: 180px;
        
    }

    .header__icons {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 20px;
    }

          /* Quand on scroll : devient sticky + layout compact */
      .header__phone--container.sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        grid-template-areas:
        "nav search search search icons";
        grid-template-columns: auto 1fr auto;
        z-index: 1;
      }
      
      /* Cacher ce qui est inutile en sticky */
      .header__phone--container.sticky .logo,
      .header__phone--container.sticky .header__phone--logo {
        display: none;
      }
      
      /* S'assurer que les éléments internes s'affichent bien */
      .header__phone--container.sticky .open__navbar__menu,
      .header__phone--container.sticky .header__phone--search-form {
        display: block;
      }
      .header__phone--container.sticky .header__phone--icons {
        display: inline-flex;
        gap: 8px;
    }
}


/* Tablets (768px to 1079px) */
@media (max-width: 1079px) {
    .desktop__header{
        display: none;
    }

    .header__phone{
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .header__phone--menuAndSearch{
        display: flex;
        justify-content: center;
        width: 94%;
        margin: 0 auto;
        align-items: center;
        gap: 20px;
    }

    .header__phone--menuAndSearch .search{
        position: relative;
        width: 100%;
        height: 36px;
    }
}



/* Mobile Styles */
@media only screen and (max-width: 600px) {
    .desktop__header {
        display: none;
    }

    .header-spacer {
        height: 0;
    }

    .header__phone {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        /*margin: 30px auto 0 auto;*/
    }

    .header__phone.sticky {
        height: 80px;
    }

    .header__phone--container {
        background-color: #1a1a1a;
        display: grid;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 20px;
        grid-template-areas:
        "logo logo icons icons icons"
        "nav search search search search";
        grid-template-columns: repeat(5, 1fr);
        gap:20px;
    }

    .header__phone--search {
        width: 100%;
    }
    .header__phone--container .logo {
        width: 180px;
        
    }

    .header__phone--menuAndSearch {
        display: flex;
        align-items: center;
    }

    .header__phone--menuAndSearch .open__navbar__menu {
        height: 36px;
        display: flex;
        align-items: center;
        margin-right: 23px;
    }

    /* Mobile Search */
    .header__phone .search {
        width: 100%;
    }

    /* Mobile Icons */
    .header__phone .header__icons {
        justify-content: flex-end;
        gap: 16px;
    }

    .header__phone .header__icons svg {
        width: 24px;
        height: 24px;
    }
	
	.header__icons .mobile-active-icon svg path{
         fill: var(--light-blue-color)
     }


     .header__phone {
        position: relative;
        background-color: #1a1a1a;
        transition: all 0.3s ease;
        z-index: 999;
        height: 120px;
        width: 100%;
      }
      
      /* Quand on scroll : devient sticky + layout compact */
      .header__phone--container.sticky {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        grid-template-areas:
        "nav search search search icons";
        grid-template-columns: auto 1fr auto;
      }
      
      /* Cacher ce qui est inutile en sticky */
      .header__phone--container.sticky .logo,
      .header__phone--container.sticky .header__phone--logo {
        display: none;
      }
      
      /* S'assurer que les éléments internes s'affichent bien */
      .header__phone--container.sticky .open__navbar__menu,
      .header__phone--container.sticky .header__phone--search-form {
        display: block;
      }
      .header__phone--container.sticky .header__phone--icons {
        display: inline-flex;
        gap: 8px;
    }


}

.cart-icon-wrapper {
    position: relative;
}

.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: var(--color-gray-200);
    border: 1px solid var(--color-whitesmoke);
    border-radius: var(--br-5xs);
    padding: 1rem;
    display: none;
    z-index: 1000;
}

@media (min-width: 768px) {
     .cart-icon-wrapper:hover .mini-cart-dropdown {
         display: block;
     }
 }

.mini-cart-wrapper {
    color: var(--color-white);
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-whitesmoke);
}

.mini-cart-products {
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.item-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.mini-cart-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-whitesmoke);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.mini-cart-buttons {
    display: flex;
    gap: 1rem;
}

.mini-cart-buttons .button {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: var(--br-5xs);
    background: var(--color-gray-100);
    transition: opacity 0.3s;
}

/* Modal styling */
.geolocationModal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #D9D9D9A6;
    overflow: auto;
}

.geolocationModal .geolocationModal-content {
    background-color: #000;
    margin: 5% auto;
    padding: 30px 86px;
    border-radius: 10px;
    width: 70%;
    max-width: 1070px;
    box-sizing: border-box;
    color: white;
    position:relative;
    height: 425px;
    overflow: auto;
}

.geolocationModal .geolocationModal-close {
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 0px;
    right: 10px;
}

.geolocationModal .geolocationModal-close:hover,
.geolocationModal .geolocationModal-close:focus {
    text-decoration: none;
    cursor: pointer;
}

.geolocationModal h2 {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
	text-align: center;
}

.geolocationModal .geolocationModal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.geolocationModal .geolocate-btn {
    background-color: #54f5ff;
    color: #161822;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    font-size: 16px;
    width: 535px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.geolocationModal .find-btn {
    padding: 12px 25px;
    border: #fff solid 1px;
    width: 535px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    max-width: 450px;
    background-color: unset;
    color: #fff;
}

.geolocationModal input {
    margin: 10px 0;
    max-width: 450px;
    font-size: 16px;
    color: white;
    width: 528px !important;
    height: 48px;
    border: 1px solid #343640;
    border-radius: 12.63px;
    gap: 12.63px;
    padding: 18.94px;
    background-color: #343640;
}

.geolocationModal .ou-div {
    width: 535px;
    border-bottom: #54f5ff solid 1px;
    position:relative;
    margin: 30px 70px 20px;
}

.geolocationModal-form-search{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.geolocationModal label {
    text-align: center;
    font-size: 14px;
}

.geolocationModal p {
    position: absolute;
    font-size: 16px;
    color: white;
    font-weight: 500;
    text-align: center;
    left: calc(50% - 15px);
    top: -13px;
    z-index: 1111;
    background-color: #000;
    width: 30px;
}

.page__desktop--content--body--list .dokan-geolocation-location-filters, .page__desktop--content--body--list .dokan-geolocation-locations-map-top{
    display:none;
}

@media (max-width: 600px) {
    .geolocationModal .geolocationModal-content {
        width: 90%;
        padding: 20px;
    }

    .geolocationModal input {
        width: 90%;
    }

    .geolocationModal .geolocationModal-form {
        padding: 10px;
    }
}

/* Popup Styling */
#location-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
    border-radius: 8px;
    z-index: 1000;
}

#location-popup p{
    color: #1a1a1a
}

#location-popup button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
#accept-location {
    background: green;
    color: white;
}
#decline-location {
    background: red;
    color: white;
}

.desktop__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    z-index: 1000;
    height: 80px;
  }
  
  .header-spacer {
    height: 80px;
    transition: height 0.3s ease;
  }
  .home-container {
    width: 100%;
    /*padding: 50px 0;*/
  }