/*
 * TPY-14 — estructura lista para recibir diseño (evervessel.com como referencia).
 * Todos los valores de marca viven en :root como custom properties: cuando llegue
 * el diseño de Steven, se reemplazan estos valores (o se agregan aquí variantes de
 * tenant) sin tocar el HTML de las páginas.
 */

:root {
    /* Paleta 2026-08-04 -- referencia visual provista por Steven (kit
       "Urban Threads": blanco/negro + verde lima como acento único). */
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #111111;
    --color-text-muted: #7a7a7a;
    --color-border: #ececec;
    --color-accent: #111111;
    --color-lime: #c6f135;
    --color-lime-ink: #16210a;
    --color-badge-bg: #f2f2f2;
    --color-error: #b3261e;
    --color-error-bg: #fdecea;

    /* Hero: gradiente placeholder hasta que llegue fotografía real de
       producto de Steven -- ver hero.html, se reemplaza por
       background-image sin tocar el HTML. */
    --hero-gradient: linear-gradient(135deg, #111111 0%, #1c1c1c 55%, #2a2a2a 100%);
    --color-on-hero: #ffffff;

    --font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --radius-md: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --container-max: 1100px;
    --grid-min-card: 220px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    margin: 0;
    color: var(--color-text);
    background: var(--color-bg);
    max-width: 100vw;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

/* -- layout -- */

.announcement-bar {
    background: var(--color-accent);
    color: var(--color-on-hero);
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-md);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.site-header__menu {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
}

.site-header__brand {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.site-header__brand a {
    color: inherit;
    text-decoration: none;
}

.site-header__menu,
.site-header__nav {
    flex: 0 0 auto;
}

.site-header__logo {
    display: block;
    height: 68px;
    width: auto;
}

@media (max-width: 480px) {
    .site-header__brand {
        font-size: 14px;
    }
}

.site-header__nav a {
    font-size: 18px;
    text-decoration: none;
}

/* -- hero -- */

.hero {
    /* full-bleed: rompe el max-width/padding de .site-main sin tener que
       sacar el include de dentro del bloque {% block content %} (así se
       puede condicionar a "solo portada, no vistas filtradas por categoría"). */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(-1 * var(--space-xl));
    margin-bottom: var(--space-xl);
    background: var(--hero-gradient);
    color: var(--color-on-hero);
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
}

.hero__content {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding-bottom: var(--space-lg);
}

.hero__headline {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.15;
    margin: 0 0 var(--space-lg);
}

.hero__headline em {
    font-style: italic;
    font-weight: 400;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-lime);
    border: none;
    color: var(--color-lime-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-pill);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hero__cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .hero {
        /* 70vh er un celular angosto fuerza un recorte horizontal muy
           agresivo sobre una foto panorámica (para "cubrir" un contenedor
           altísimo y angosto, el navegador termina mostrando una franja
           vertical muy zoomeada del centro de la imagen) -- 55vh es
           suficiente para el titular + CTA sin recortar tanto. */
        min-height: 55vh;
        padding: var(--space-lg);
    }
}

.site-main {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl);
}

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* -- destacados (home) -- */

.featured {
    margin-bottom: var(--space-xl);
}

.featured__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 var(--space-lg);
}

/* Una sola card chica rotando, no toda la grilla -- "destacado" pierde el
   sentido si se muestran todos a la vez del mismo tamaño que el catálogo. */
.featured-carousel {
    max-width: 190px;
    margin: 0 auto;
}

.featured-carousel__viewport {
    position: relative;
}

.featured-carousel__slide {
    display: none;
}

.featured-carousel__slide.is-active {
    display: block;
    animation: featured-carousel-fade 0.3s ease;
}

@keyframes featured-carousel-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.featured-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
}

.featured-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
}

.featured-carousel__dot.is-active {
    background: var(--color-lime, var(--color-accent));
}

/* -- grilla responsive de catálogo -- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-min-card), 1fr));
    gap: var(--space-lg);
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .site-main {
        padding: var(--space-md);
    }
    .site-header {
        padding: var(--space-md);
    }
}

/* -- componentes -- */

.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
}

.card__image-placeholder {
    background: var(--hero-gradient);
}

.card h3 {
    margin: 0 0 var(--space-xs);
    font-size: 15px;
}

.card__meta {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0;
}

a.card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.price {
    font-weight: 600;
    color: var(--color-accent);
}

.breadcrumb {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--color-text);
}

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.product-detail__media {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-detail__image-btn {
    display: block;
    position: relative;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
}

.product-detail__image {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.product-detail__zoom-hint {
    position: absolute;
    right: var(--space-sm);
    bottom: var(--space-sm);
    background: rgba(17, 17, 17, 0.75);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-pill, 999px);
}

.product-detail__thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.product-detail__thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
}

.product-detail__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail__thumb.is-active {
    border-color: var(--color-lime, var(--color-accent));
}

.product-detail__image-placeholder {
    aspect-ratio: 1 / 1;
    background: var(--hero-gradient);
}

/* -- zoom de producto: overlay de pantalla completa, el pellizco nativo
   del navegador para acercar ya funciona solo sobre la imagen grande -- */

.product-zoom-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    overflow: auto;
}

.product-zoom-backdrop.is-open {
    display: flex;
}

.product-zoom-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-sm);
    /* Sin esto, el navegador interpreta el pellizco como zoom de TODA la
       página (queda corrida/zoomeada al cerrar el visor) en vez de dejar
       que el JS controle el pinch-zoom solo de esta imagen. */
    touch-action: none;
    user-select: none;
}

.product-zoom-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.product-detail__info {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-detail__title {
    margin: var(--space-xs) 0 var(--space-sm);
    font-size: 26px;
}

.product-detail__description {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 var(--space-lg);
}

.product-detail__price {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 var(--space-lg);
}

.product-detail__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.product-detail__quantity-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
}

.quantity-stepper__btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.quantity-stepper input {
    width: 48px;
    text-align: center;
    border: none;
    background: var(--color-ink, #111111);
    color: #ffffff;
    border-radius: 50%;
    height: 36px;
    font-weight: 700;
    font-size: 14px;
    padding: 0;
    -moz-appearance: textfield;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.button--dark {
    background: #111111;
    color: #ffffff;
}

.product-detail__add {
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 14px var(--space-lg);
}

@media (max-width: 720px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .product-detail__title {
        font-size: 22px;
    }
    .product-detail__price {
        font-size: 24px;
    }
}

.empty {
    color: var(--color-text-muted);
    text-align: center;
    padding: 64px 0;
}

.badge {
    display: inline-block;
    background: var(--color-badge-bg);
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 4px var(--space-md);
    border-radius: var(--radius-pill);
    margin-bottom: var(--space-sm);
}

.messages {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md);
}

.message {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
}

.message-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.category-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    background: var(--color-badge-bg);
    transition: background 0.15s ease, color 0.15s ease;
}

.category-nav a.is-active {
    color: var(--color-lime-ink);
    background: var(--color-lime);
}

.search-form {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    max-width: 400px;
}

.search-form input {
    flex: 1;
}

.help-text {
    color: var(--color-text-muted);
    font-size: 13px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--color-text-muted);
    font-size: 13px;
}

.pagination a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
}

.data-table td {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-xs) 0;
}

/* -- botones y formularios (checkout/carrito) -- */

.button {
    display: inline-block;
    border: none;
    border-radius: var(--radius-pill);
    padding: var(--space-sm) var(--space-xl);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.button--primary {
    background: var(--color-lime);
    color: var(--color-lime-ink);
}

.button--secondary {
    background: var(--color-badge-bg);
    color: var(--color-text);
}

form p {
    margin: 0 0 var(--space-md);
}

form label {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

form input,
form select,
form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

form textarea {
    min-height: 80px;
    resize: vertical;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.quantity-form input {
    width: 4.5em;
}

.quantity-form label {
    margin-bottom: 0;
}

.quantity-form input {
    width: 4em;
    flex: 0 0 auto;
}

/* -- carrito: lista de tarjetas, responsive sin tabla -- */

.cart-list {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cart-item__image {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item__image-placeholder {
    background: var(--hero-gradient);
}

.cart-item__info {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item__name {
    margin: 0 0 var(--space-xs);
    font-size: 15px;
    overflow-wrap: break-word;
}

.cart-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.cart-item__actions .quantity-form {
    flex-wrap: wrap;
}

.cart-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.cart-summary__total {
    margin: 0;
    font-size: 18px;
}

/* -- pagina de carrito completa: 2 columnas en desktop (lista + resumen
   fijo), 1 sola columna apilada en mobile/tablet -- */

.cart-page {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.cart-page .cart-list {
    margin: 0;
}

.cart-summary-panel {
    position: sticky;
    top: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.cart-summary-panel__title {
    margin: 0 0 var(--space-md);
    font-size: 16px;
}

.cart-summary-panel__list {
    list-style: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-height: 240px;
    overflow-y: auto;
}

.cart-summary-panel__list li {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--color-text-muted);
}

.cart-summary-panel__qty {
    color: var(--color-text-muted);
    font-size: 12px;
}

.cart-summary-panel__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cart-summary-panel__total {
    font-size: 20px;
}

.cart-summary-panel__cta {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--space-md);
}

@media (max-width: 900px) {
    .cart-page {
        grid-template-columns: 1fr;
    }
    .cart-summary-panel {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-item {
        flex-direction: column;
    }
    .cart-item__image {
        width: 100%;
        height: 160px;
    }
}

/* -- header: icono de carrito con badge -- */

.site-header__cart {
    position: relative;
    display: inline-flex;
    text-decoration: none;
    font-size: 20px;
}

.site-header__cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* -- drawer lateral de carrito -- */

body.cart-drawer-locked {
    overflow: hidden;
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
}

.cart-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    /* 100vh en mobile incluye el área que tapa la barra de direcciones del
       navegador cuando está visible -- el drawer terminaba más alto que
       la pantalla real y el botón "Continuar al checkout" quedaba tapado
       abajo. 100dvh (viewport dinámico) sí se ajusta a lo que se ve de
       verdad; se declara después como mejora progresiva, los navegadores
       que no la soportan se quedan con el 100vh de arriba. */
    height: 100vh;
    height: 100dvh;
    width: min(400px, 100vw);
    background: var(--color-surface);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 91;
    display: flex;
    flex-direction: column;
}

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

.cart-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.cart-drawer__title {
    margin: 0;
    font-size: 18px;
}

.cart-drawer__count {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.cart-drawer__close {
    background: var(--color-badge-bg);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text);
}

.cart-drawer__list {
    list-style: none;
    margin: 0;
    padding: var(--space-md) var(--space-lg);
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-drawer__item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.cart-drawer__image {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-drawer__item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-drawer__item-name {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: break-word;
}

.cart-drawer__item-unit {
    margin: 0 0 var(--space-xs);
    font-size: 11px;
    color: var(--color-text-muted);
}

.cart-drawer__qty-form {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.cart-drawer__step {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

.cart-drawer__qty {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-drawer__item-end {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xs);
}

.cart-drawer__item-end .price {
    font-size: 13px;
}

.cart-drawer__remove {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.cart-drawer__footer {
    padding: var(--space-lg);
    /* iPhones con home indicator: sin esto, el botón queda pegado (o
       tapado) por esa franja segura de abajo. */
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
}

.cart-drawer__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.cart-drawer__total {
    font-size: 18px;
}

.cart-drawer__checkout {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: var(--space-sm);
}

.cart-drawer__view-all {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
}

.cart-drawer__empty {
    padding: var(--space-xl);
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100vw;
    }
}

.order-summary {
    margin-bottom: var(--space-lg);
}

.order-summary li {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--color-border);
    list-style: none;
}

/* -- confirmación de pedido -- */

.confirmation {
    max-width: 480px;
    margin: var(--space-lg) auto 0;
    text-align: center;
}

.confirmation__icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.confirmation__title {
    margin: 0 0 var(--space-xs);
    font-size: 26px;
    font-weight: 800;
}

.confirmation__subtitle {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
}

.confirmation-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: var(--space-md);
    text-align: left;
}

.confirmation-card__title {
    margin: 0 0 var(--space-sm);
    font-size: 15px;
}

.confirmation-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

.confirmation-card__row--total {
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 700;
}

.confirmation-card__value {
    color: var(--color-text);
    font-weight: 600;
}

.confirmation-card__value--big {
    font-size: 20px;
}

.transfer-detail {
    background: var(--color-badge-bg);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin: var(--space-md) 0;
}

.transfer-detail__row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 14px;
}

.transfer-detail__label {
    color: var(--color-text-muted);
}

.transfer-detail__value {
    font-weight: 600;
}

.confirmation-card__actions {
    display: flex;
    gap: var(--space-sm);
}

.confirmation-card__actions .button {
    flex: 1;
    text-align: center;
}

.confirmation__back {
    display: inline-block;
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.confirmation__back:hover {
    color: var(--color-text);
}

@media (max-width: 480px) {
    .confirmation-card__actions {
        flex-direction: column;
    }
}
