/* ========================================== */
/* STRUCTURE CSS - SKARIUM TOP BAR            */
/* Design minimal, uniquement la structure    */
/* ========================================== */
  /* TOP BAR CONTAINER */
  #block-rhythm-sub-skariumtopbar {
    margin-bottom: 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
  }
  .desktop-version .top-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    letter-spacing: 0.5px;
    background: #f4f4f4;
  }
  .top-bar .logo-adresse,
  .top-bar .search,
  .top-bar .user-menu,
  .top-bar .cart {
    align-items: center;
    display: flex;
    min-height: 60px;
  }

  /* LOGO */
  .top-bar__logo {
    flex: 0 0 auto;
  }

  .top-bar__logo a {
    display: block;
  }

  .top-bar__logo img {
    display: block;
    height: auto;
  }

  /* ADRESSE DE LIVRAISON */
  .delivery-address {
    flex: 1;
  }

  .delivery-address__content {
    display: flex;
  }

  .delivery-address__icon {
    flex: 0 0 auto;
  }

  .delivery-address__text {
    flex: 1;
  }

  /* TEXTE INFO */
  .info-text {
    flex: 1;
  }

  /* CONTAINER USER + COMMANDES */
  .user-commands-container {
    flex: 1;
    display: flex;
    align-items: center;
  }

  /* MENU UTILISATEUR */
  .user-menu {
    flex: 1;
    position: relative;
  }

  .user-menu__toggle {
    display: flex;
    width: 100%;
  }

  .user-menu__icon {
    flex: 0 0 auto;
  }

  .user-menu__chevron {
    position: relative;
    color: rgba(2, 163, 136);
    top: 0;
    left: 2px;
  }

  /* SOUS-MENU UTILISATEUR */
  .user-menu__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    width: 226px;
    right: 0;
    background: #ffffff;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px 0;
    transform: translateY(-10px);
    transition: opacity 0.25s;
  }

  .user-main-navigation:hover .user-menu__dropdown {
    display: block;
  }

  .user-menu__dropdown a {
    display: flex;
  }

  .user-menu__dropdown-icon {
    flex: 0 0 auto;
  }

  /* BOUTON CONNEXION */
  .user-menu__login-btn {
    display: flex;
    justify-content: center;
  }

  /* LIEN COMMANDES */
  .orders-link {
    display: flex;
    justify-content: center;
  }

  /* Flèche pointant vers le menu parent */
  .user-menu__dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 50px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(58, 138, 190, 0.15);
    border-top: 1px solid rgba(58, 138, 190, 0.15);
    z-index: -1;
  }
  /* Liens du menu */
  .user-menu__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border-left: 3px solid transparent;
  }

  /* Effet hover élégant */
  .user-menu__dropdown a:hover {
    background: linear-gradient(90deg, rgba(2, 147, 122, 0.08), rgba(2, 147, 122, 0.04));
    color: rgba(2, 147, 122);
    border-left-color: rgba(2, 147, 122);
    padding-left: 24px;
  }

  /* PANIER */
  .top-bar__cart {
    display: flex;
    flex: 0 0 auto;
  }

  .cart-icon {
    flex: 0 0 auto;
  }

  .cart-label {
    flex: 1;
  }

  .cart-count {
    flex: 0 0 auto;
  }

  /* ========================================== */
  /* TRANSFORMATION MENU CATÉGORIES - CSS SEUL */
  /* ========================================== */

  .main-menu-topbar {
    background: rgba(2, 163, 136);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
  }

  .main-navigation {
    width: 100%;
    overflow: hidden;
  }

  .main-navigation > .clearlist {
    display: flex !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0 !important;
    max-width: 1400px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .main-navigation > .clearlist > a {
    font-size: 12.5px
    flex: 0 0 auto !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  /* Transforme les liens actuels en catégories */
  .main-navigation > .clearlist > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 5px !important;
    text-decoration: none !important;
    /*text-transform: uppercase !important;*/
    color: #ffffff !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  /* Hover effects */
  .main-navigation > .clearlist > a:hover {
    background: rgba(2, 147, 122) !important;
    transform: translateY(-1px) !important;
    color: #fff !important
  }

  /* ========================================== */
  /* BARRE DE RECHERCHE                        */
  /* ========================================== */

  .search-container {
    position: relative;
    width: 100%;
  }

  .search-form {
    margin: 0;
  }

  .search-input-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .search-input-wrapper:focus-within {
    border-color: rgba(2, 163, 136);
    box-shadow: 0 2px 12px rgba(2, 147, 122);
  }

  .search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #333;
    min-width: 0;
  }

  .search-input::placeholder {
    color: #888;
    font-size: 13px;
  }

  .search-button {
    background: #3a8abe;
    border: none;
    height: 42px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .search-button:hover {
    transform: scale(1.2);
    color: #000000;
  }

  .search-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
  }
  .search-icon::before,
  .search-icon::after {
    content: '';
    position: absolute;
    background: white;
  }

  .search-icon::before {
    /* Cercle */
    width: 14px;
    height: 14px;
    border: 3px solid rgba(2, 163, 136);
    border-radius: 50%;
    top: 0;
    left: 0;
  }

  .search-icon::after {
    /* Poignée */
    width: 8px;
    height: 2px;
    background: rgba(2, 163, 136);
    transform: rotate(45deg);
    top: 14px;
    left: 11px;
  }

  /* Résultats de recherche */
  .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1001;
    max-height: 350px;
    overflow-y: auto;
    display: none;
    border: 1px solid #e0e0e0;
  }

  .search-results.active {
    display: block;
    animation: fadeInDropdown 0.2s ease;
  }

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

  .search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
  }

  .search-result-item:hover {
    background: #f8f9fa;
    color: rgba(2, 147, 122);
  }

  .search-result-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #888;
  }

  .search-result-content {
    flex: 1;
    min-width: 0;
  }

  .search-result-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-result-price {
    font-weight: 600;
    color: rgba(2, 163, 136);
    font-size: 13px;
  }

  .search-no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
  }

  .search-loading {
    padding: 20px;
    text-align: center;
  }

  .search-loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3a8abe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Flèche du dropdown */
  .search-results::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
  }

/* Cacher complètement sur mobile */
/* Empêcher le chargement des ressources aussi */

/* Styles pour les écrans de 768px de large ou moins */
@media screen and (max-width: 768px) {
  .skarium-top-bar-desktop-only,
  .skarium-top-bar-desktop-only * {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .delivery-address__text,
  .user-menu__greeting {
    font-size: 10px; 
  }
  .top-bar__logo,
  .top-bar .cart {
    padding: 0 !important;
  }
  .order-back {
    display: none;
  }
}