/* LÜN — BEANIE */

.bonnet-page .collection-product-heading {
display: none;
}

/* CARACTÉRISTIQUES */

.bonnet-page .product-specs {
display: flex;
flex-direction: column;
}

.bonnet-page .product-specs > div {
position: relative;
padding: 13px 0;
border: none !important;
}

.bonnet-page .product-specs > div:not(:last-child)::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1px;
background: rgba(255, 255, 255, 0.14);
}

/* QUANTITÉ */

.bonnet-quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    margin-bottom: 22px;
}

.quantity-label {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}

.quantity-label::after {
    content: " :";
}

.quantity-control {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    width: 112px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.quantity-btn {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 40px;
padding: 0;
border: none;
background: transparent;
color: inherit;
font-family: inherit;
font-size: 17px;
font-weight: 300;
line-height: 1;
cursor: pointer;
}

.quantity-btn:hover {
opacity: 0.55;
}

.quantity-btn:disabled {
opacity: 0.25;
cursor: default;
}

.quantity-value {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 40px;
font-size: 12px;
font-weight: 500;
text-align: center;
}

/* COMPTEUR PANIER */

.bonnet-page .header-order-link {
position: relative;
display: inline-flex;
align-items: center;
}

.cart-count {
position: absolute;
top: -9px;
right: -13px;
display: flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 50%;
background: #ffffff;
color: #111111;
font-size: 9px;
font-weight: 600;
line-height: 1;
opacity: 0;
transform: scale(0.2) translateY(5px);
pointer-events: none;
}

.cart-count.is-visible {
opacity: 1;
animation: cartBadgeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.cart-count.bump {
animation: cartBadgeBump 0.35s ease;
}

@keyframes cartBadgeIn {
0% {
opacity: 0;
transform: scale(0.2) translateY(5px);
}

65% {
    opacity: 1;
    transform: scale(1.15) translateY(-1px);
}

100% {
    opacity: 1;
    transform: scale(1) translateY(0);
}
}

@keyframes cartBadgeBump {
0% {
transform: scale(1);
}

45% {
    transform: scale(1.25);
}

100% {
    transform: scale(1);
}

}

/* MINI PANIER — FOND */

.cart-overlay {
position: fixed;
inset: 0;
z-index: 900;
background: rgba(0, 0, 0, 0.48);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.is-open {
opacity: 1;
visibility: visible;
}

/* MINI PANIER — PANNEAU */

.cart-drawer {
position: fixed;
top: 0;
right: 0;
bottom: 0;
z-index: 901;
display: flex;
flex-direction: column;
width: min(420px, 92vw);
background: #111111;
color: #ffffff;
box-shadow: -20px 0 50px rgba(0, 0, 0, 0.22);
transform: translateX(100%);
transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-drawer.is-open {
transform: translateX(0);
}

/* HEADER */

.cart-drawer-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 26px;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cart-drawer-title {
font-size: 13px;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.cart-drawer-close {
width: 32px;
height: 32px;
padding: 0;
border: none;
background: transparent;
color: #ffffff;
font-size: 25px;
font-weight: 300;
line-height: 1;
cursor: pointer;
opacity: 0.7;
}

.cart-drawer-close:hover {
opacity: 1;
}

/* CONTENU */

.cart-drawer-content {
flex: 1;
padding: 26px;
}

.cart-drawer-product {
display: flex;
gap: 18px;
}

.cart-drawer-image {
flex: 0 0 105px;
width: 105px;
height: 125px;
overflow: hidden;
background: #f2f2f2;
}

.cart-drawer-image img {
width: 100%;
height: 100%;
object-fit: cover;
}

.cart-drawer-info {
padding-top: 2px;
}

.cart-drawer-info h3 {
margin: 0 0 18px;
font-size: 14px;
font-weight: 500;
}

.cart-drawer-info p {
margin: 7px 0;
font-size: 11px;
line-height: 1.5;
opacity: 0.7;
}

.cart-drawer-info .drawer-product-price {
margin-top: 16px;
font-size: 13px;
opacity: 1;
}

.cart-drawer-total {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 32px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cart-drawer-total span {
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.cart-drawer-total strong {
font-size: 15px;
font-weight: 500;
}

/* BOUTONS */

.cart-drawer-actions {
display: flex;
flex-direction: column;
gap: 9px;
padding: 22px 26px 26px;
}

.drawer-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 48px;
border: none;
font-family: inherit;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.08em;
text-decoration: none;
cursor: pointer;
transition: opacity 0.2s ease;
}

.drawer-btn:hover {
opacity: 0.85;
}

.drawer-btn-primary {
background: #ffffff;
color: #111111;
}

.drawer-btn-secondary {
background: #3b3b3b;
color: #ffffff;
}

/* MOBILE */

@media (max-width: 600px) {
.cart-drawer {
width: 100%;
}
.cart-drawer-header {
    padding: 20px;
}

.cart-drawer-content {
    padding: 20px;
}

.cart-drawer-actions {
    padding: 18px 20px 22px;
}

}

/* LÜN — À associer avec */

.lun-related {
    margin: 72px 0 48px;
    color: #f2f0eb;
}

.lun-related__title {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lun-related__line {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.lun-related__carousel {
    position: relative;
    width: 100%;
}

/* Le carrousel défile entre les deux extrémités */

.lun-related__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.lun-related__track::-webkit-scrollbar {
    display: none;
}

.lun-related__product {
    display: flex;
    flex: 0 0 180px;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
    scroll-snap-align: start;
}

.lun-related__product img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 5px;
    background: #191919;
    transition: opacity 0.25s ease;
}

.lun-related__product:hover img {
    opacity: 0.85;
}

.lun-related__name {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
}

.lun-related__price {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 300;
    opacity: 0.7;
}

/* Flèches aux extrémités du carrousel */

.lun-related__arrow {
    position: absolute;
    z-index: 2;
    top: 70px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.75);
    color: #fff;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lun-related__arrow:hover {
    background: #333;
}

.lun-related__arrow--prev {
    left: 0;
    transform: translateX(-50%);
}

.lun-related__arrow--next {
    right: 0;
    transform: translateX(50%);
}

@media (max-width: 600px) {
    .lun-related {
        margin: 48px 0 32px;
    }

    .lun-related__product {
        flex-basis: 150px;
    }

    .lun-related__arrow {
        top: 58px;
        width: 30px;
        height: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lun-related__track,
    .lun-related__product img {
        scroll-behavior: auto;
        transition: none;
    }
}
