a {
    text-decoration: none;
    color: inherit;
}

span.menu {
    display: block;
    text-align: right;
}

.desktop-msg {display: none;}
.mobile-msg > .msg, .desktop-msg > .msg {        
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.4rem;
    text-align: center;
    padding: .4rem .4rem 0;
    margin-top:0;
    }
.mobile-msg > .msg:not(:last-child){margin-bottom: .8rem;}
.primary-header {
    position: sticky;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    color: #ffffff;
    top: 0;
    z-index: 10;
    height: 5.6rem;
   /*justify-content: center;*/
    
}

a.p-code {
    text-transform: capitalize;
    font-weight: 500;
    font-family: Montserrat;
    letter-spacing: normal;
    font-size: 1.4rem;
    text-decoration: underline;
}


.primary-header .baseline {
    height: 6.4rem;
    display: flex;
    align-items: center;
    background-color: #000000;
}

.primary-header .infos {
    display: none;
}

.promocodes {
  text-align: center;
}
.promocodes > img {
  height: 7.2rem;
  width:auto;
}
.baseline .logo {
    padding-left:.8rem;
}
.baseline .logo-kutvek {
    height: 4.8rem;
    width: 5.92rem;
}

.primary-header .contact-us {
    display: inline-flex;
    align-items: center;
    letter-spacing: .85px;
}

.primary-header .contact-us img {
    height: 2rem;
    margin-right: 0.8rem;
}

.message-bar {
    display: none;
}

.gift-c {
    color: #ff0000;
    vertical-align: bottom;
    padding-right: .4rem;
}
nav.main-nav {
    transform: translateX(-100%);
    transition: transform .3s;
    width: 100vw;
    position: absolute;
    
    /*left: 0;*/
    /*bottom: 0;*/
    z-index: -1;
    background-color: #000000;
    color: #FFFFFF;
}

nav.main-nav a {
    color: inherit;
    text-decoration: none;
}

body.opened .primary-header {height:auto;}
body.opened nav.main-nav {
    transform: translateX(0);
    height: 100vh;
    overflow-y: auto;
}

body.opened nav.main-nav div label > span {
    display: initial;
}

nav.main-nav input[type="checkbox"] {
    display: none;
}

.main-nav ul li {
    list-style-type: none;
}

nav.main-nav > ul {
    min-height: 200%;
    display: flex;
    margin: 0;
    flex-direction: column;
    list-style: none;
}

nav.main-nav > ul > li {
    /*padding-left: 1.6rem;
    padding-right: 1.6rem;*/
}

nav.main-nav > ul > li > div,
ul.dropdown-content > li > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.8rem;
}

nav.main-nav > ul > li > div > a,
nav.main-nav > ul > li > a,
nav.main-nav li div > span {
    align-self: center;
    text-align: center;
    border: none;
    text-transform: uppercase;
    font-family: 'Oswald';
    font-size: 1.4rem;

    height: 4rem;
    align-items: center;
    display: flex;
    justify-content: space-between;
    font-weight: 400;
    letter-spacing: 1px;
}

nav.main-nav > ul > li > div > a, nav.main-nav > ul > li > div > span {padding-left:.8rem;}

ul.dropdown-content {
    margin-left: 0;
}

.main-nav ul.dropdown-content {
    display: none;
}

.dropdown-content > li {background-color:#868686;}

.dropdown-content > li a {
    padding-left: 1.6rem;
    font-size: 2rem;
    text-transform: capitalize;
}

.dropdown-content > li > ul {
    background-color: #FFFFFF;
    color: #000000;
}

nav.main-nav > ul > li > input[type="checkbox"]:checked + ul.dropdown-content {
    display: flex;
    flex-direction: column;
}

ul.dropdown-content > li > ul {
    display: none;
    margin: auto;
}


ul.dropdown-content > li > input[type="checkbox"]:checked + ul {
    display: block;
}

ul.dropdown-content > li > a,
ul.dropdown-content > li > div > a {
    font-family: 'Oswald';
    text-transform: uppercase;
    display: block;
    font-size: 1.6rem;
    /*Rendre cliquable  le niveau*/
    z-index: 2;
}

ul.dropdown-content > li > a {
    height: 4rem;
    line-height: 4rem;
}

.main-nav > ul > li > div,
.dropdown-content {
    position: relative;
}

.main-nav > ul > li > div > label,
.dropdown-content > li > div > label {
    position: absolute;
    right:0;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.dropdown-content > li > ul > li > a,.dropdown-content > li > ul > li > span.item-name{
    display: inline-block;
    height: 4rem;
    line-height: 4rem;
    font-family: 'Oswald';
    font-size: 1.6rem;
    padding-left: 2.4rem;
    
}

.secondary-nav {
    display: none;

}
.secondary-nav > ul li {display: inline-block;}

.user-actions {
    display: flex;
    
}

.user-actions .action:not(:last-child) {
    margin-right: 1rem;
}

.user-actions .icon,
.menu .icon {
    line-height: 3.6rem;
    width: 3.6rem;
    height: 3.6rem;
    font-size: 3.2rem;
    text-align: center;
}

.user-account > .obf {
    overflow: hidden;
    cursor: pointer;
}

.user-actions .cart {
    position: relative;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    width: 3.6rem;
    height: 3.6rem;
    font-size: 2.4rem;
    text-align: center;
}
.user-actions .cart > .counter {
    position: absolute;
    /* display: inline-flex; */
    /* align-items: center; */
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    top: 0;
    right: 0;
    font-size: 1rem;
    font-weight: bold;
    /* justify-content: center; */
    /* border-width: 0.1rem; */
    /* border-style: solid; */
    border-radius: 50%;
    margin-bottom: 0;
    transition: transform, .3s;
    background-color: rgb(0,0,0);
    color: rgb(255,255,255);
    z-index: 3;
}
 .user-actions .cart:hover {
    cursor: pointer;
  }

.user-actions  a.phone {
    position: absolute;
    bottom: -4.8rem;
    visibility: hidden;
    height: 0rem;background-color: #FFFFFF;
    color: #212121;
    font-weight: 600;
    text-align: center;    
    transition: height .2s;
    width: 100%;
    left: 0;    
}

#see-phone:checked + a {
    visibility: visible;
    
    height: 4.8rem;
    
    line-height: 4.8rem;
}

.user-actions .contact-us::after,
.trads-container li.current > a::after {
    content: '\e5cf';
    font-family: 'Material Symbols Rounded';
}

.trads-container {
    position: relative;
    width: 4.4rem;
    height: 3.6rem;
    z-index: 100
}

.trads-container > ul {
    display: flex;
    position: absolute;
    top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    list-style: none;
    list-style-type: none;
    margin: 0;
    height: 100%;
    overflow-y: hidden;
    color: #000000;
    padding-left: 0;
}

.trads-container > ul > li {
    order: 2;
    height: 100%;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    padding-left: .4rem;
}

.trads-container > ul > li.current {
    order: 1;
}

.trads-container > ul > li a {    
    font-family: 'Oswald';
    text-transform: uppercase;
    opacity: .67;
}

.trads-container > ul > li.current > a {
    pointer-events: none;
    opacity: 1;
}

.trads-container li > a::after {
    content: ' ';
    min-width: 1.6rem;
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 1.6rem;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    padding-left: .4rem;
}

.trads-container > ul:hover {
    overflow-y: initial;
}
  

.account-circle {
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
}

.primary-header .logo-footer {
    display: none;
}

.baseline > div.red ,.baseline > div.orange {
    display: flex;   
    align-self: stretch;  
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;  
    justify-content: flex-end;
    align-items: center;

}
.msg-info {
    text-align: center;
    min-height: 4rem;
    
    /* font-family: Oswald; */
    /* font-size: 2rem; */
    font-weight: 400;   
}
.msg-info > span.red {
    color: #ff0000;
    font-weight: 500;
    text-transform: uppercase;
}
.msg-info > span.blue {
    color: #0E0AFB;
    font-weight: 600;
    text-transform: uppercase;
}


nav.main-nav > ul > li > div.preferences-selector { justify-content: start; }
.preferences-selector {display: inline-flex;align-items: center;}
.preferences-selector > span , span.choose-lang {padding-right: 1.2rem;text-transform: uppercase;}
.preferences-selector > span::after, span.choose-lang::after {content: ' :';}
.preferences-selector > div:hover { cursor: pointer; }

.preferences-selector  img,
ul.country-currency img {
    border-radius: 50%;
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 1.6rem;
    margin-left: .4rem;
    
}
ul.country-currency img{margin-left: 1.6rem;}

.preferences-selector > span {
   align-self: center;
}
.preferences-selector .currency::after{
    content: '\e5cf';
    font-family: 'Material Symbols Rounded';
    min-width: 1.6rem;    
    font-weight: normal;
    font-style: normal;
    font-size: 1.6rem;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    padding-left:.4rem;
}
ul.country-currency {
    color: black;
    height: 100vh;
    overflow-y: scroll;
}

ul.country-currency::-webkit-scrollbar {
    width: 3px;
}

ul.country-currency > li {
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: .4rem .8rem;
    margin: .4rem .8rem; 
}
ul.country-currency > li span {
    vertical-align: middle;
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 500;
}
ul.country-currency > li span.name {flex: 1;}
ul.country-currency > li:hover,
ul.country-currency > li.selected { background-color:#e9e9e9; cursor: pointer; }

.country-search { display: flex; margin: 1rem 0; }
.country-search input { width: 100%; }
.country-search > .icon {
    line-height: 3.6rem;
    width: 3.6rem;
    height: 3.6rem;
    font-size: 3.2rem !important;
    text-align: center;
}

nav.main-nav > div.preferences-selector {
    height: 4.8rem;
    width: 100%;
    margin-top: 6.4rem;
    padding-left: 0.8rem;
    font-family: 'Oswald';
    border-bottom: 1px solid #222222;
}

.french-days {text-align: center; padding: .4rem;}
.french-days .blue {color: #0E0AFB;font-weight: 600;}

@media only screen and (min-width: 800px) {
    .mobile-msg {display:none;}
    .desktop-msg {display:block;}
    .message-bar .desktop-msg {margin: 0 0 0 auto;flex: 1;}

    nav.main-nav {position: relative;}
    nav.main-nav > ul {padding-top:0;}
    nav.main-nav > ul > li > div.preferences-selector { display: none; }
    ul.country-currency { max-height:40rem; }
    .message-bar {
        background-color: #5c5c5c;
        min-height: 3.2rem;
        display: flex;
        align-items: center;
        text-align: center;
    }
}


@media only screen and (min-width: 1024px) {

    a.menu,
    span.menu {
        display: none;
    }    

    .message-bar > span {
        width: 100%;
    }

    .message-bar > a:first-of-type {
        margin: 0 .8rem 0 auto;
    }

    .message-bar > a {
        margin-right: .8rem;
    }

    .message-bar img {
        width: 24px;
        height: 24px;
    }

    .msg-info {
        padding-top: .8rem;
    }

    .primary-header {
        position: relative;
        padding: 0;
        height:auto;
        justify-content: initial;
    }

    /* Flexbox order to control visual layout */
    .message-bar {
        order: 1; /* Promo bar at top */
    }

    .primary-header .infos {
        order: 2; /* Phone/Trustpilot bar second */
        display: flex;
        height: 4.2rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background-color: black;
        padding: 0 14rem 0 24rem;
        font-size: 1.4rem;
        font-family: 'Oswald';
        letter-spacing: .8px;
    }

    .primary-header .infos > div {
        display: flex;
        align-items: center;
    }

    .primary-header .infos > div div:not(:last-child) {
        margin-right: 3rem;
    }

    .primary-header .infos img.picto.phone {
        height: 24px;
        width: 28px;
        vertical-align: middle;
        margin-right: .8rem;
    }

    .user-actions {
        margin: 0 4rem 0 auto;
        padding-top: 0.4rem;
        display: inline-flex;
    }

    .user-actions .contact-us {
        display: none;
    }

    .user-icon,
    .user-account {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .user-account > .obf {
        position: initial;
        width: auto;
        height: auto;
        overflow: initial;
        opacity: 1;
    }

    .user-actions .icon:not(:last-child) {
        margin-right: .8rem;
    }

    .user-actions .trads-container {
        display: none;
    }

    .trust {
        padding-top: 0.8rem;
    }

    .trads-container {
        position: relative;
        width: 4.4rem;
        height: 3.6rem;
        z-index: 100;
    }

    .trads-container > ul {
        display: flex;
        position: absolute;
        top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding-left: 0;
        list-style: none;
        list-style-type: none;
        height: 100%;
        overflow-y: hidden;
        color: #FFFFFF;
        text-transform: uppercase;
    }

    .trads-container > ul:hover {
        overflow-y: initial;
    }

    .trads-container > ul > li {
        order: 2;
        height: 100%;
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: black;
        padding-left: 0.4rem;
    }

    .trads-container > ul > li.current {
        order: 1;
    }

    .trads-container > ul > li a {       
        text-decoration: none;
        color: inherit;
    }

    .trads-container > ul > li.current a {
        opacity: 1;
    }

    .trads-container > ul > li.current > a {
        pointer-events: none;
    }   

    .primary-header .baseline {
        order: 3; /* Red bar with KITS DÉCO third */
        height: auto;
    }

    .baseline > div.red,.baseline > div.orange {
        /*margin: 0 0 0 1.6rem;*/
        /*background-color: #ff640a;
        background-color: #585858;*/
        background-color: #ff0000;
        align-self: initial;
        justify-content: inherit;
        height: 4.8rem;        
    }
    .baseline > div.orange {
        background-color: #FA7000;
    }
    .baseline > div.red > ul {
        display: inline-flex;
        list-style: none;
        list-style-type: none;
        text-transform: uppercase;
    }

    .baseline > div.red > ul a {
        color: inherit;
        text-decoration: none;
    }

    .primary-header .logo-kutvek {
        width:69px;
        height: 56px;
    }

    .primary-header .logo-footer {
        height: 32px;
        width: 219px;
        display: initial;
    }

    .baseline > div.red::before,.baseline > div.orange::before {
        display: inline-block;
        content: "";
        height: 0;
        width: 0;
        border-top: 4.8rem solid #000000;
        border-right: 4.8rem solid transparent;
    }

    nav.main-nav {
        /*position: static;*/
        transform: none;
        transition: none;
        width: auto;
        z-index: 1;
        order: 10; /* Force main navigation to appear at the bottom */
    }

    nav.main-nav > ul {
        position: relative;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    nav.main-nav > ul li {
        display: inline-flex;
        padding: .8rem 0;
        margin-right: 1.6rem;
    }

    nav.main-nav > ul > li > div > label .material-symbols-rounded {
        font-size: 1.6rem;
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    }

    nav.main-nav > ul > li > a,
    nav.main-nav > ul > li > div > a, nav.main-nav > ul > li > div > span{
        padding-left:0;
        display: inline-flex;
    }    

   .main-nav ul li:hover ul.dropdown-content {
        display: grid;
        grid-template-columns: repeat(3,minmax(16rem , 32rem));
        min-height: 24rem;
        grid-template-rows: repeat(6, minmax(4.8rem,5.6rem));
        padding-top: 1.6rem;
        padding-bottom: 2.4rem;
        padding-left: 3.2rem;
        background-color: #ffffff;        
        align-items: start;
        grid-auto-flow: column;
        grid-auto-columns: minmax(16rem, 32rem);
    }
    nav.main-nav > ul > li > input[type="checkbox"]:checked + ul.dropdown-content {
        display: flex;
        flex-direction: column;
    }
    .main-nav ul li:hover ul.dropdown-content > li {background-color: transparent; color: #000000;}

   
    .main-nav ul li:hover ul.dropdown-content > li > a {
        min-width: 12rem;
        border-bottom-color: transparent;
        padding: .8rem;
        height: auto;
        width: auto;
        line-height: unset;
        background-color: transparent;
        border-radius: .4rem;
        transition: background-color .3s, color .3s;
    }

    .main-nav ul li:hover ul.dropdown-content > li > a:hover{background-color: #000000; color:#FFFFFF;}
    .dropdown-content > li {background-color: #000000;}
    .dropdown-content > li > ul {background-color: #000000;color: #FFFFFF;}
    .dropdown-content > li > ul > li > a, .dropdown-content > li > ul > li > span.item-name {
        display: inline;
        height:auto;
        line-height: initial;
        font-size: 1.4rem;
    }

    ul.dropdown-content > li > input[type="checkbox"]:checked + ul {
        display: block;
    }

    .main-nav ul.dropdown-content {
        width: 100%;
        margin: 0;
        color: #ffffff;
        background-color: #000000;
        position: absolute;
        left: 0;
        top: 4.8rem;
        transition: display .5s;
    }

    .main-nav ul.dropdown-content li {
        display: flex;
        flex-direction: column;
    }
    
    .main-nav ul.dropdown-content ul {
        display: flex;
        flex-direction: column;
        margin: 0;
    } 

    .main-nav ul.dropdown-content > ul {
        margin-right: 3.2rem;
    }

    .main-nav ul.dropdown-content ul li {
        padding-left: 0;
    }

    .main-nav ul.dropdown-content > li > div {
        height: auto;
    }

    .dropdown-content a {
        border-bottom-width: .2rem;
        border-bottom-style: solid;
        border-bottom-color: #000000;
        padding-bottom: .2rem;
    }

    .dropdown-content > li > div > label:not(.depth-0) {
        display: none;
    }

    .main-nav > ul > li > div,
    .dropdown-content {
        position: initial;
    }

    nav.main-nav > ul > li > div > label,
    .dropdown-content > li > div > label {
        position: initial;
    }

    nav.main-nav > ul > li > div > label {
        width: auto;
    }

    nav.main-nav > ul > li > div {
        height: 100%;
    }

    /* TODO Est ce vraiment utile ? */
    nav.main-nav > ul > li > div > a > span {
        border-bottom-width: .2rem;
        border-bottom-style: solid;
        border-bottom-color: transparent;
        transition: border-bottom-color .3s;
    }

    /* TODO Est ce vraiment utile ? */
    nav.main-nav > ul > li:hover > div > a > span {
        border-bottom-color: black;
    }

    .main-nav > ul > li label {
        pointer-events: none;
    }

    nav.main-nav > div.preferences-selector {
        display: none;
    }

    .dropdown-content > li > ul > li {
        padding: 0;
    }

    .secondary-nav {
        display: flex;
        flex-grow: 1;
        flex-shrink: 1;
        flex-basis: 0%;
        margin-left: 3.2rem;
    }

    .secondary-nav ul {
        display: flex;
        margin: 0;
        width: 100%;
    }

    .secondary-nav li {

        margin-right: 1.2rem;
        list-style-type: none;
    }

    .secondary-nav ul >li:nth-child(5) {
        margin-left:auto;
    }

    .secondary-nav ul li a,
    .secondary-nav ul li span {
        font-family: 'Oswald';
        font-weight: 500;
        height: auto;
        display: inline-flex;
        text-transform: uppercase;
    }
}

.frdays {
    display: inline-flex;
    flex-direction: column;
}
.frdays > .flag {
    height: 0.4rem;
    background: linear-gradient(90deg, rgba(14, 10, 251, 1) 25%, rgba(255, 255, 255, 1) 35%, rgba(255, 255, 255, 1) 65%, rgba(235, 13, 13, 1) 75%);

}
@media only screen and (min-width: 1360px) {
    .primary-header .baseline {padding-left: 12rem;}
    .user-actions{margin:0 12rem 0 auto;}
    nav.main-nav > ul li {
        margin-right: 1.8rem;
    }
}
@media only screen and (min-width: 1819px) {
    .secondary-nav li {margin-right: 3.2rem;}
    .secondary-nav ul li span,
    .secondary-nav ul li a {
        font-size: 2rem;
        font-weight: 400;
    }
    .primary-header .baseline {padding-left: 24rem;}
    .user-actions{margin:0 20rem 0 auto;}
}

/* ========================================
   SEO Optimization: Header Link Order
   ======================================== */

/* Desktop: Use flexbox order to reposition elements visually
   while keeping SEO-friendly HTML source order */
@media only screen and (min-width: 1024px) {

    /* Make header a flex container to control child order */
    .primary-header {
        display: flex;
        flex-direction: column;
    }

    /* Visual order (what users see):
       1. message-bar (social links)
       2. infos (trustpilot + phone + country)
       3. baseline (logo + menu + actions)
       4. main-nav (megamenu)
    */

    .seo-order-social {
        order: 1;
        display: flex !important; /* Override display: none */
    }

    .seo-order-infos {
        order: 2;
    }

    .seo-order-baseline {
        order: 3;
    }

    /* Main navigation naturally comes after in DOM, so no order needed */

    /* User actions order within baseline */
    .user-actions {
        display: inline-flex;
    }

    .seo-order-search {
        order: 1;
    }

    .seo-order-account {
        order: 2;
    }

    .seo-order-phone {
        order: 3;
    }

    .seo-order-lang {
        order: 4;
    }

    .seo-order-cart {
        order: 5;
    }

    .seo-order-menu {
        order: 6;
    }

    /* Hide social links and phone on desktop (SEO recommendation) */
    .message-bar .hide-desktop {
        display: none !important;
    }

    .infos .hide-desktop {
        display: none !important;
    }
}

/* Mobile: No order changes needed, follow natural HTML flow */
@media only screen and (max-width: 1023px) {
    /* message-bar and infos stay hidden on mobile (existing behavior) */
    .message-bar {
        display: none !important;
    }

    .infos {
        display: none !important;
    }

    .hide-mobile {
        display: none !important;
    }
}