/* Mini cart panel */
.kl-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: saturate(90%) blur(1px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    z-index: 9998;
}

.kl-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 24px);
    height: 100vh;
    background: var(--color-white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    z-index: 9999;
    transform: translateX(104%);
    transition: transform 240ms ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #dfdfdf;
}

.kl-cart-panel.is-active {
    transform: translateX(0);
}

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

.kl-cart-panel__head {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid #e2e2e2;
}

.kl-cart-panel__title {
    margin: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: var(--gray-800);
}

.kl-cart-panel__close {
    border: 0;
    background: none;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0;
}

.kl-cart-panel__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.kl-cart-panel__loading {
    margin: 0;
    padding: 18px;
    text-align: center;
}

body.kl-cart-panel-open {
    overflow: hidden;
}

/* Carrito lateral Luciana */
.luciana-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(23, 20, 18, .48);
    opacity: 0;
    transition: opacity .28s ease;
}

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

.luciana-cart-panel {
    --luciana-cart-accent: #df604e;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(510px, 36vw);
    height: 100dvh;
    color: #df604e;
    background: #fbfaf7;
    box-shadow: -12px 0 35px rgba(0, 0, 0, .18);
    transform: translateX(102%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

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

.luciana-cart-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 77px;
    padding: 0 36px;
    border-bottom: 1px solid #eaded8;
}

.luciana-cart-panel__header h2 {
    margin: 0;
    color: var(--luciana-cart-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 400;
}

.luciana-cart-panel__close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    color: #e58a7d;
    background: transparent;
    font-size: 32px;
    font-weight: 200;
    line-height: 25px;
    cursor: pointer;
}

.luciana-cart-panel__content {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-direction: column;
}

.luciana-cart-panel__empty {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 45px 30px;
    text-align: center;
}

.luciana-cart-panel__empty p {
    margin: 0;
    font-size: 16px;
}

.luciana-cart-panel__items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.luciana-cart-item {
    display: grid;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 28px;
    padding: 36px;
    border-bottom: 1px solid #eaded8;
}

.luciana-cart-item__image {
    display: grid;
    width: 136px;
    height: 182px;
    place-items: center;
    background: #f1f1f1;
}

.luciana-cart-item__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.luciana-cart-item__details {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.luciana-cart-item__name {
    color: var(--luciana-cart-accent);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
    text-transform: uppercase;
}

.luciana-cart-item__meta,
.luciana-cart-item__meta * {
    margin: 6px 0 0;
    color: #e58a7d;
    font-size: 12px;
    line-height: 1.4;
}

.luciana-cart-item__meta dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0 5px;
}

.luciana-cart-item__meta dt,
.luciana-cart-item__meta dd {
    margin: 0;
}

.luciana-cart-item__price {
    margin: 8px 0 18px;
    color: #e58a7d;
    font-size: 16px;
}

.luciana-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.luciana-cart-quantity {
    display: grid;
    grid-template-columns: 36px 42px 36px;
    min-height: 40px;
    border: 1px solid #efcfc7;
}

.luciana-cart-quantity button,
.luciana-cart-quantity span {
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    color: #df887a;
    background: transparent;
    font-size: 18px;
    line-height: 1;
}

.luciana-cart-quantity button {
    cursor: pointer;
}

.luciana-cart-quantity span {
    font-size: 14px;
}

.luciana-cart-item__remove {
    color: #df604e;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.luciana-cart-panel__footer {
    flex: 0 0 auto;
    padding: 27px 36px 36px;
    border-top: 1px solid #eaded8;
}

.luciana-cart-panel__footer p {
    margin: 0 0 7px;
    color: #df604e;
    font-size: 14px;
    line-height: 1.35;
}

.luciana-cart-panel__footer p + p {
    color: #e58a7d;
}

.luciana-cart-panel__checkout {
    display: flex;
    min-height: 48px;
    margin-top: 21px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #20201f;
    font-size: 13px;
    letter-spacing: .11em;
    text-decoration: none;
    text-transform: uppercase;
}

.luciana-cart-panel__checkout:hover,
.luciana-cart-panel__checkout:focus {
    color: #fff;
    background: #393937;
}

body.luciana-cart-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .luciana-cart-panel {
        width: min(100%, 480px);
    }

    .luciana-cart-panel__header,
    .luciana-cart-panel__footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    .luciana-cart-item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 18px;
        padding: 24px;
    }

    .luciana-cart-item__image {
        width: 105px;
        height: 140px;
    }
}
