/* ==========================================================================
   SYNEXTA PREMIUM MENU - V28.0 (MOBILE SEARCH MARGINS)
   ========================================================================== */

:root {
    --syn-bg: #ffffff;
    --syn-text: #333333;       
    --syn-accent: #00BFFF;     /* Couleur active */
    --syn-gray-sidebar: #f7f9fa; 
    --syn-border: #e6e6e6;     
    --syn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --syn-shadow-deep: 0 15px 40px rgba(0,0,0,0.12); 
}

.syn-menu-wrapper, .syn-menu-wrapper * { box-sizing: border-box; }
.syn-menu-wrapper { position: relative; width: 100%; font-family: var(--syn-font); line-height: 1.5;}
    .syn-menu-search-results{
          max-height: 214px;
    overflow-y: auto;
    overflow-x: hidden;
    }

/* --- 1. NAVBAR --- */
.syn-menu-wrapper .syn-navbar { 
    display: flex; align-items: center; justify-content: space-between; 
    background: var(--syn-bg); position: relative !important; z-index: 100; 
    width: 100%; padding: 0; 
    border-bottom: none; 
}

/* DESKTOP MENU ITEMS */
.syn-menu-wrapper .syn-menu-root { display: flex; flex-wrap: wrap; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.syn-menu-wrapper .syn-menu-root > li { position: relative !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }

.syn-menu-wrapper .syn-menu-root > li > a { 
    display: inline-flex; align-items: center; 
    text-decoration: none !important; 
    color: var(--syn-text); 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    padding: 18px 12px; 
    transition: all 0.2s ease;
    border: none; 
}

.syn-menu-wrapper .syn-menu-icon { 
    width: 20px; height: 20px; object-fit: contain; 
    margin-right: 6px; vertical-align: middle; display: inline-block; 
}

.syn-menu-wrapper .syn-menu-root > li:hover > a { 
    background-color: var(--syn-accent); 
    color: #ffffff; 
}
.syn-menu-wrapper .syn-menu-root > li:hover > a .syn-menu-icon { filter: brightness(0) invert(1); }


/* --- 2. DROPDOWN CONTAINER --- */
.syn-menu-wrapper .syn-mega-dropdown, .syn-menu-wrapper .sub-menu { 
    display: none; position: absolute; top: 100%; left: 0; 
    background: #fff; 
    border-top: 1px solid var(--syn-border); 
    box-shadow: var(--syn-shadow-deep); 
    z-index: 1000; 
    width: max-content; 
    min-width: 220px; 
}
.syn-menu-wrapper .syn-menu-root > li:hover .syn-mega-dropdown, 
.syn-menu-wrapper .syn-menu-root > li:hover .sub-menu { display: block; }
.syn-menu-wrapper .syn-mega-dropdown.syn-flip-right, 
.syn-menu-wrapper .sub-menu.syn-flip-right { left: auto; right: 0; }


/* --- 3. SPLIT LAYOUT (Desktop) --- */
.syn-menu-wrapper .syn-split-layout {
    display: none; 
    width: max-content;
    min-width: 720px;  
    max-width: 1000px; 
    height: auto;
    min-height: 380px;
    flex-direction: row;
    align-items: stretch;
    background: #fff;
}
.syn-menu-wrapper .syn-menu-root > li:hover .syn-split-layout { display: flex; }

/* COLONNE GAUCHE */
.syn-split-nav {
    width: 260px; 
    flex-shrink: 0;
    background: var(--syn-gray-sidebar); 
    border-right: 1px solid var(--syn-border);
    padding: 0; 
    overflow-y: auto;
}
.syn-split-nav ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.syn-split-nav li { display: block; margin: 0 !important; padding: 0 !important; border-bottom: 1px solid #e0e0e0; }
.syn-split-nav li:last-child { border-bottom: none; }

.syn-split-nav li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 20px; 
    color: #444; text-decoration: none !important;
    font-size: 14px; font-weight: 600; text-transform: none; 
    transition: background 0.1s ease, color 0.1s ease;
    background: transparent;
}
.syn-split-nav li a::after { content: '›'; font-size: 18px; line-height: 1; color: #bbb; font-weight: 300; }

.syn-split-nav li:hover, .syn-split-nav li.active { 
    background: #ffffff; margin-right: -1px; border-right: 1px solid #fff; position: relative; z-index: 10;
}
.syn-split-nav li:hover a, .syn-split-nav li.active a { color: var(--syn-accent); font-weight: 700; }
.syn-split-nav li:hover a::after, .syn-split-nav li.active a::after { color: var(--syn-accent); }

/* COLONNE DROITE */
.syn-split-content { 
    flex: 1; padding: 25px 30px; background: #fff;
    background-image: radial-gradient(#e5e8eb 1px, transparent 1px);
    background-size: 20px 20px;
}
.syn-split-panel { display: none; width: 100%; animation: synFadeIn 0.2s ease; }
.syn-split-panel.active { display: block; }
@keyframes synFadeIn { from { opacity: 0; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }

.syn-child-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.syn-child-list li { margin-bottom: 10px !important; break-inside: avoid; }
.syn-child-list li a { 
    font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
    color: #666; text-decoration: none !important; transition: color 0.2s, transform 0.2s; display: block; 
}
.syn-child-list li a:hover { color: var(--syn-accent); transform: translateX(3px); }

.syn-cols-2 .syn-child-list { column-count: 2; column-gap: 40px; }
.syn-split-panel { min-width: 350px; }


/* --- 4. STANDARD SUBMENU --- */
.syn-menu-wrapper .sub-menu:not(.syn-mega-dropdown) { padding: 10px 0; border-top: 2px solid var(--syn-accent); }
.syn-menu-wrapper .sub-menu li a { display: block; padding: 10px 25px; color: #555; text-decoration: none; font-size: 14px; transition: background 0.2s, color 0.2s; }
.syn-menu-wrapper .sub-menu li a:hover { background: #f9f9f9; color: var(--syn-accent); }


/* --- 5. DRAWERS & MOBILE --- */
.syn-menu-wrapper .syn-drawer { 
    position: fixed; top: 0; bottom: 0; width: 100%; max-width: 350px; 
    background: #fff; z-index: 99999; 
    box-shadow: 0 0 50px rgba(0,0,0,0.2); 
    display: none; transform: translateX(100%); 
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    flex-direction: column; 
}
.syn-menu-wrapper[data-side="gauche"] .syn-drawer-mobile { left: 0; transform: translateX(-100%); }
.syn-menu-wrapper[data-side="droite"] .syn-drawer-mobile { right: 0; transform: translateX(100%); }
.syn-menu-wrapper .syn-drawer-cart { right: 0; transform: translateX(100%); }
.syn-menu-wrapper .syn-drawer.open { display: flex; transform: translateX(0);min-height: 97vh; height: 100%; }

/* Header Mobile */
.syn-menu-wrapper .syn-drawer-header { 
    padding: 20px 25px; background: #1a1a1a; border-bottom: 1px solid #333; 
    display: flex; justify-content: space-between; align-items: center; 
    font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; color: #fff; flex-shrink: 0; 
}
.syn-menu-wrapper .syn-close-btn { background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1; color: #fff; transition: opacity 0.3s; }
.syn-menu-wrapper .syn-close-btn:hover { opacity: 0.7; }
.syn-menu-wrapper .syn-drawer-content { flex: 1; /*overflow-y: auto; overflow-x: hidden;*/ position: relative; background: #fff; }

/* --- MOBILE LIST STYLE --- */
.syn-menu-wrapper .syn-drawer-content .syn-menu-root { display: block; padding-bottom: 60px; }

/* Niveau 1 Mobile */
.syn-menu-wrapper .syn-drawer-content .syn-mobile-root { 
    border-bottom: 1px solid #f0f0f0; margin: 0 !important; padding: 0 !important; position: relative !important; 
}
.syn-menu-wrapper .syn-drawer-content .syn-mobile-root > a { 
    width: 100%; padding: 20px 25px; padding-right: 60px; 
    border: none; font-size: 16px; font-weight: 800; color: #222; 
    text-transform: uppercase; display: flex; align-items: center; text-decoration: none !important; 
}

/* === MOBILE SEARCH (NEW PADDING) === */
.syn-mobile-search-li {
    width: 100%;
    /* On enlève le padding direct du LI, on le gère dans le wrapper */
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}
.syn-mobile-search-wrapper {
    padding: 10px 25px;
}

.syn-mobile-search-wrapper input {
    border: 0px transparent !important;
}

.syn-mobile-search-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    border-radius: 0 !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    color: #333 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
}
.syn-mobile-search-input:focus {
    border-bottom-color: var(--syn-accent) !important;
}
.syn-mobile-search-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Toggle */
.syn-menu-wrapper .syn-mobile-toggle { 
    position: absolute; top: 0; right: 0; width: 60px; height: 60px; 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; color: #888; z-index: 10; border-left: 1px solid #f9f9f9; 
}
.syn-menu-wrapper .syn-mobile-toggle.active { background: #f9f9f9; color: var(--syn-accent); }

/* Niveau 2 Mobile */
.syn-mobile-sub { display: none; background: #fcfcfc; list-style: none; margin: 0; padding: 0; box-shadow: inset 0 4px 10px -5px rgba(0,0,0,0.03); }
.syn-mobile-sub li { border-bottom: 1px solid #f0f0f0; margin: 0; }
.syn-mobile-sub li:last-child { border-bottom: none; }
.syn-mobile-sub li a { padding: 16px 25px 16px 35px !important; font-size: 14px !important; font-weight: 500 !important; color: #555 !important; text-decoration: none !important; display: block; transition: all 0.2s; border-left: 3px solid transparent; }
.syn-mobile-sub li a:hover { color: var(--syn-accent) !important; background: #fff; border-left-color: var(--syn-accent); padding-left: 40px !important; }


/* --- UI UTILS .syn-menu-wrapper.syn-menu-wrapper--- */
 .syn-overlay { position: fixed; top: 0; left: 0; right: 0;min-height: 100vh; bottom: 0; background: rgba(0, 0, 0, 0.7); /*backdrop-filter: blur(4px);*/ z-index: 9990; display: none; opacity: 1 !important; transition: opacity 0.3s; }
 .syn-overlay.active { display: block; opacity: 1; }

.syn-menu-wrapper .syn-burger-btn { padding: 10px; cursor: pointer; background: transparent !important; border: 2px solid #222 !important; border-radius: 4px; }
.syn-menu-wrapper .syn-burger-btn span { display: block; width: 22px; height: 2px; background: #222; margin-bottom: 4px; transition: 0.3s; }
.syn-menu-wrapper .syn-burger-btn span:last-child { margin-bottom: 0; }

.syn-menu-wrapper .syn-cart-trigger { margin-left: 25px; }
.syn-menu-wrapper .syn-cart-icon { color: var(--syn-text); position: relative; display: flex; transition: color 0.3s; }
.syn-menu-wrapper .syn-cart-icon:hover { color: var(--syn-accent); }
.syn-menu-wrapper .syn-cart-count { position: absolute; top: -8px; right: -8px; background: var(--syn-accent); color: #fff; font-size: 10px; font-weight: 800; height: 18px; min-width: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* --- SIDEBAR CART --- */
.synexta-custom-cart, .syn-cart-body { height: 100%; display: flex; flex-direction: column; }
.syn-cart-list { flex: 1; overflow-y: auto; padding: 20px; margin: 0; list-style: none !important; display: flex; flex-direction: column; gap: 15px; }
.syn-cart-item { display: flex; align-items: stretch; padding: 0; border: 1px solid #eee; border-radius: 6px; margin: 0 !important; position: relative; background: #fff; overflow: hidden; }
.syn-item-left { width: 90px; flex-shrink: 0; border-right: 1px solid #f9f9f9; display: flex; align-items: center; justify-content: center; background: #fff; }
.syn-item-left img { width: 70px; height: 70px; object-fit: contain; border-radius: 0; border: none; mix-blend-mode: multiply; }
.syn-item-right { flex: 1; min-width: 0; padding: 12px 15px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.syn-row-title { display: flex; justify-content: space-between; align-items: flex-start; }
.syn-product-name { font-weight: 700; color: #222; text-decoration: none; font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; display: block; }
.syn-product-name:hover { color: var(--syn-accent); }
.syn-remove-btn { color: #ccc !important; font-size: 20px; line-height: 1; text-decoration: none; transition: 0.2s; margin-left: 10px; cursor: pointer; background: transparent; border: none; padding: 0; }
.syn-remove-btn:hover { color: #ff4d4d !important; }
.syn-row-price { font-size: 13px; color: #555; }
.syn-row-price strong { color: #000; font-weight: 700; }
.syn-cart-footer { flex-shrink: 0; background: #fff; border-top: 1px solid #eee; padding: 20px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); z-index: 10; }
.syn-cart-total { display: flex; justify-content: space-between; align-items: center; margin: 0 0 15px 0; font-size: 16px; color: #222; }
.syn-cart-total .syn-label { font-weight: 700; text-transform: uppercase; font-size: 13px; color: #666; }
.syn-cart-total .syn-value { font-weight: 800; font-size: 18px; }
.syn-cart-buttons a.checkout { display: block; width: 100%; text-align: center; padding: 16px; font-weight: 800; text-transform: uppercase; text-decoration: none; border-radius: 4px; font-size: 14px; background: var(--syn-accent); color: #fff; transition: 0.2s; border: none; cursor: pointer; }
.syn-cart-buttons a.checkout:hover { background: #000; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.syn-cart-empty { padding: 50px 20px; text-align: center; color: #888; }
.syn-menu-wrapper .syn-drawer-content li.syn-cart-item{ border-bottom: 1px solid #f0f0f0; display: flex; }
.syn-item-row-top{ display: flex; }
.syn-item-row-bottom {
    font-size: 0.8em;
    border-top: 1px solid #efefef;
    max-width: 150px;
    padding: 5px 0;
    margin-top: 5px;
}

.syn-item-row-bottom strong {

}
.syn-item-title{ display: inline-block; max-width: 31ch; /*white-space: nowrap;*/ overflow: hidden; text-overflow: ellipsis; }
.syn-item-thumb img, .syn-item-thumb img {
   width: 50px;
    /*height: auto;
     width: 100%; */
    height: 50px;
}