/* Nav Bar Responsive */

@media (max-width: 1024px){
    :root{
    --topbar-h: 80px;
}

.layout{
    grid-template-columns: 1fr;
}
@media (max-width: 1024px){

.layout{
    grid-template-columns: 1fr;
}

.lateral-bar{
    max-width: none;
    width: 100%;
    min-height: auto;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    padding: 16px 0;

    display: grid;
    grid-template-columns: 1fr auto auto; /* Empty| icons | burger */
    grid-template-rows: auto auto;        /* top | delivery */
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;

    /* important : si tu avais justify-content: space-between sur desktop */
    justify-content: initial;
}

/* top row */
.icons{
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-direction: row;
    gap: 8px;
}

.menu-toggle{
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 24px;
}

  /* delivery row */
  .delivery{
    grid-column: 1 / -1;
    grid-row: 2;

    writing-mode: horizontal-tb;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
}

.toggle-lang{
    visibility: hidden;
    pointer-events: none;
}


/* Logo part */
.logo{
    position: fixed;
    z-index: 100;
    top: 4px;
    left: 4px;
}
.logo h1,
.logo span{
    color: var(--color-secondary)
}
.logo h1{
    font-family: var(--font-secondary) ;
    font-size: var(--font-size-medium) ;
    font-weight: var(--font-weight-regular) ;
    letter-spacing: var(--letter-spacing-secondary);
    line-height: var(--line-height-xsmall);

    margin-bottom: 2px
}
.logo span{
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
    letter-spacing: var(--letter-spacing-primary-large);
    line-height: var(--line-height-small);
}

/* Off-canvas panel slides under the top bar */
.off-canvas{
    top: var(--topbar-h);
    width: 100%;
    height: auto;
    left: 0;
    bottom: 0;
    right: 0;

    padding-block: 0;
    z-index: 9999;

    border-top: var(--border-width-regular) var(--color-hover);
}

/* Language toggle moves into the off-canvas on mobile */
.toggle__lang-canvas{
    display: block;
    margin-right: 40px;
}
.shop{
    padding-block: 40px;
}

/* Marquee structure (animation will be handled later) */
.delivery{
    width: 100%;
    height: auto;
    justify-content: center;
    background-color: var(--color-secondary);
    color: var(--color-primary);

    grid-column: 1 / -1;
    grid-row: 2;

    writing-mode: horizontal-tb;
    white-space: nowrap;
    overflow: hidden;

    margin: 0;
    margin-top: 16px;
}
.delivery__viewport{
    overflow: hidden;
    white-space: nowrap;
}

/* If the animation will be by CSS, it will be by the animation & @keyframes property at this level of "HTML" */
.delivery__track{
    display: flex;
    align-items: center;
    width: 100%;
}
.delivery__content{
    display: flex;
    gap: 32px;
}

/* Hide <br> on mobile to keep the text on one line */
.delivery__content br{
    display: none;
}
.delivery__content p{
    display: inline-flex;
    color: var(--color-primary);
    font-family: var(--font-primary) ;
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-regular);
}
.product{
    position: relative;
    max-width: 350px;
    width: 100%;
    height: 350px;
    margin: 16px;
}
.product__img{
    max-width: 270px;
    width: 100%;
    height: 300px;
}
.product__meta{
    bottom: 15%;
    padding-inline: 32px;
}

/* Reposition accordion +/- icon for mobile */
summary::before{
    right: 40px;
}
summary::after{
    right: 46px;
}
}
}
