/*
 * 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;
    /* Discreto: el logo grande vive ahora en el hero de la portada. */
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    overflow-wrap: break-word;
    line-height: 1.2;
    color: var(--color-text-muted);
}

.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: 32px;
    width: auto;
}

@media (max-width: 480px) {
    .site-header__brand {
        font-size: 11px;
    }
    .site-header__logo {
        height: 28px;
    }
}

.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);
    /* Piso de 520px: en notebooks 60vh rondaba 390px y logo + titular + CTA
       lo llenaban entero, sin lugar para mover el logo arriba/medio/abajo. */
    min-height: max(60vh, 520px);
    display: flex;
    align-items: stretch;
    padding: var(--space-xl);
}

.hero__content {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding-bottom: var(--space-lg);
    /* Columna de todo el alto del hero: titular + CTA siempre abajo, el
       logo se ubica arriba/medio/abajo según .hero--logo-v-*. */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Logo grande sobre la imagen del hero. La alineación la elige la tienda
   en el panel (Tenant.hero_logo_position) y llega como modificador
   .hero--logo-left/center/right; el contenedor es flex y se alinea con
   justify-content. */
.hero__logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: var(--space-lg);
}

.hero--logo-center .hero__logo {
    justify-content: center;
}

.hero--logo-right .hero__logo {
    justify-content: flex-end;
}

/* Altura: arriba empuja el resto hacia abajo; medio ocupa el espacio libre
   sobre el titular y centra el logo ahí; abajo (default) queda justo encima
   del titular. */
.hero--logo-v-top .hero__logo {
    margin-bottom: auto;
    padding-bottom: var(--space-lg);
}

.hero--logo-v-middle .hero__logo {
    flex: 1 1 auto;
    align-items: center;
}

.hero__logo-image {
    display: block;
    width: auto;
    max-width: min(100%, 420px);
    max-height: clamp(90px, 18vw, 200px);
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}

.hero__logo-text {
    font-size: clamp(34px, 7vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero--logo-center .hero__logo-text {
    text-align: center;
}

.hero--logo-right .hero__logo-text {
    text-align: right;
}

.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 {
    /* .hero__content es una columna flex: sin esto el botón se estira. */
    align-self: flex-start;
    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: max(55vh, 460px);
        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 {
    /* full-bleed, mismo truco que .hero: rompe el max-width/padding de
       .site-main. El margin-top negativo anula el margin-bottom del hero,
       así la imagen del destacado toca la imagen de arriba. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: calc(-1 * var(--space-xl));
    margin-bottom: var(--space-xl);
    /* Margen del texto hacia el borde de la pantalla: alineado con el
       contenido de .site-main y nunca menor que lo que ocupa la flecha. */
    --featured-gutter: max(72px, calc((100vw - var(--container-max)) / 2 + var(--space-xl)));
}

/* Un banner por slide, sin tarjeta: imagen pegada al borde de la pantalla
   que se desvanece (mask-image a transparente = el fondo de la página)
   hacia el texto, que va directo sobre el fondo del lado contrario. */
.featured-carousel,
.featured-carousel__viewport,
.featured-carousel__slide {
    min-width: 0;
}

.featured-carousel__viewport {
    position: relative;
}

.featured-banner {
    position: relative;
    display: flex;
    justify-content: flex-end;
    min-height: 480px;
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
}

.featured-banner--reverse {
    justify-content: flex-start;
}

.featured-banner__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
}

.featured-banner--reverse .featured-banner__media {
    left: auto;
    right: 0;
}

.featured-banner__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Se desvanece hacia el texto y, suave, hacia abajo; el borde de arriba
       queda firme para tocar la imagen del hero. */
    -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 35%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-composite: intersect;
    transition: transform 0.6s ease;
}

.featured-banner--reverse .featured-banner__image {
    -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
    mask-image: linear-gradient(to left, #000 35%, transparent 100%), linear-gradient(to bottom, #000 80%, transparent 100%);
}

.featured-banner:hover .featured-banner__image {
    transform: scale(1.03);
}

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

.featured-banner__info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-sm);
    width: 50%;
    padding: var(--space-xl) var(--featured-gutter) var(--space-xl) var(--space-xl);
}

.featured-banner--reverse .featured-banner__info {
    padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--featured-gutter);
}

.featured-banner__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-lime-ink);
    background: var(--color-lime);
    padding: 3px 10px;
    border-radius: 999px;
}

.featured-banner__title {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
}

.featured-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: 0;
}

.featured-banner__meta div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-banner__meta dt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.featured-banner__meta dd {
    margin: 0;
}

.featured-banner__description {
    margin: 0;
    max-width: 46ch;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.55;
}

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

.featured-banner__price {
    font-size: 24px;
    font-weight: 800;
}

.featured-banner__cta {
    margin-top: var(--space-xs);
}

.featured-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.featured-carousel__arrow--prev {
    left: 16px;
}

.featured-carousel__arrow--next {
    right: 16px;
}

/* Celular: imagen arriba de borde a borde desvaneciéndose hacia abajo,
   texto debajo sobre el fondo. */
@media (max-width: 720px) {
    .featured-banner,
    .featured-banner--reverse {
        flex-direction: column;
        min-height: 0;
    }
    .featured-banner__media,
    .featured-banner--reverse .featured-banner__media {
        position: relative;
        width: 100%;
        height: 300px;
    }
    .featured-banner__image,
    .featured-banner--reverse .featured-banner__image {
        -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    }
    .featured-banner__info,
    .featured-banner--reverse .featured-banner__info {
        width: 100%;
        margin-top: -56px;
        padding: 0 var(--space-lg) var(--space-md);
    }
    .featured-carousel__arrow {
        top: 150px;
    }
}

.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));
}

/* -- secciones por categoría (portada y página de categoría) -- */

/* Full-bleed como .hero/.featured: el banner de la categoría ocupa todo el
   ancho y todo el contenido (título, subcategorías, marcas, productos) va
   encima. El degradado oscurece de a poco hacia abajo para que el título
   lima y las tarjetas se lean sobre cualquier foto. */
.category-showcase {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: var(--space-xl) 0 calc(var(--space-xl) * 1.5);
    background-color: #111;
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.6) 280px, rgba(0, 0, 0, 0.85) 100%),
        var(--category-banner, var(--hero-gradient));
    background-size: cover;
    background-position: center top;
    color: var(--color-on-hero);
}

.category-showcase + .category-showcase {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.category-showcase__title {
    margin: var(--space-lg) 0 var(--space-md);
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.category-showcase__title a {
    color: var(--color-lime);
    text-decoration: none;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.category-showcase__subcats,
.category-showcase__brands {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.category-showcase__brands {
    margin-top: var(--space-sm);
}

/* Subcategoría: panel blanco con borde y letra lima. */
.subcat-chip {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-lime);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-lime);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.subcat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Marca: botoncito azul (mismo azul que la etiqueta de marca). */
.brand-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #2f6fd6;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.brand-chip:hover {
    background: #1d4a99;
}

.category-showcase__grid {
    margin-top: var(--space-xl);
}

/* Las tarjetas son blancas: no heredar el texto blanco del banner. */
.category-showcase .card {
    color: var(--color-text);
}

.category-showcase__more {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.category-showcase__more-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    font-weight: 700;
    text-decoration: none;
}

.category-showcase__more-btn:hover {
    filter: brightness(0.95);
}

/* En la página de una categoría la sección es solo el encabezado. */
.breadcrumb + .category-showcase {
    margin-bottom: var(--space-xl);
}

.listing-header {
    margin: 0 0 var(--space-lg);
}

.listing-header__title {
    margin: var(--space-xs) 0 0;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
}

@media (max-width: 480px) {
    .category-showcase__inner {
        padding: 0 var(--space-md);
    }
    .subcat-chip {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* -- 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;
}

/* Etiquetas de marca (azul) y categoría (verde) del producto. */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: #fff;
}

.product-tag--marca {
    background: #2f6fd6;
}

.product-tag--categoria {
    background: #2e9d4f;
}

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;
}

/* -- buscador del header (al lado del carrito, sugerencias en vivo) -- */

.store-search {
    position: relative;
    flex: 0 1 460px;
    min-width: 0;
    margin: 0 var(--space-xs) 0 var(--space-md);
}

.store-search__box {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 3px 3px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.store-search__box:hover {
    border-color: color-mix(in srgb, var(--color-lime) 60%, var(--color-border));
}

.store-search__box:focus-within,
.store-search.is-open .store-search__box {
    border-color: var(--color-lime);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-lime) 28%, transparent);
}

/* Ganarle a `form input { width:100%; border; padding }` de más abajo. */
.store-search .store-search__input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 7px 0;
    border: none;
    border-radius: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--color-text);
}

.store-search__input::placeholder {
    color: var(--color-text-muted);
}

/* Lupa: lleva a la página con todos los resultados. */
.store-search__button {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-search__button:hover {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-lime) 60%, transparent);
}

.store-search__button:focus-visible {
    outline: 3px solid var(--color-lime-ink);
    outline-offset: 2px;
}

/* Mientras busca, la lupa late. */
.store-search.is-loading .store-search__button svg {
    animation: store-search-pulso 0.8s ease-in-out infinite;
}

@keyframes store-search-pulso {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.6; }
}

.store-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 80;
    min-width: 340px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-lime);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    animation: store-search-aparece 0.15s ease;
}

@keyframes store-search-aparece {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-search__list {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.store-search__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 10px;
    border-left: 3px solid transparent;
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.store-search__item:hover,
.store-search__item.is-active {
    background: color-mix(in srgb, var(--color-lime) 16%, transparent);
    border-left-color: var(--color-lime);
}

.store-search__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--hero-gradient);
}

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

.store-search__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-search__name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.store-search__mark {
    border-radius: 2px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
}

.store-search__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.store-search__chip {
    padding: 1px 7px;
    border-radius: 999px;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
}

.store-search__chip--categoria {
    background: #2e9d4f;
}

.store-search__chip--marca {
    background: #2f6fd6;
}

.store-search__why {
    font-size: 10.5px;
    color: var(--color-text-muted);
}

.store-search__price {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.store-search__agotado {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.store-search__all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 6px 6px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.store-search__all-arrow {
    transition: transform 0.15s ease;
}

.store-search__all:hover .store-search__all-arrow {
    transform: translateX(4px);
}

.store-search__state {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.store-search__state strong {
    color: var(--color-text);
    font-size: 14px;
}

.store-search__state--error {
    color: var(--color-error);
}

/* Celular: el buscador baja a una fila propia, a todo el ancho. */
@media (max-width: 720px) {
    .site-header {
        flex-wrap: wrap;
    }
    .store-search {
        order: 3;
        flex: 1 1 100%;
        margin: var(--space-xs) 0 0;
    }
    .store-search__panel {
        min-width: 0;
        max-height: 65vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-search.is-loading .store-search__button svg,
    .store-search__panel {
        animation: none;
    }
}

/* -- encabezado de la página de resultados de búsqueda -- */

.search-results-header {
    margin: 0 0 var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    border-left: 6px solid var(--color-lime);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.search-results-header__eyebrow {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-results-header__title {
    margin: var(--space-xs) 0 2px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.search-results-header__count {
    margin: 0;
    color: var(--color-text-muted);
}

/* -- menú lateral (☰) de la tienda -- */

body.store-menu-locked {
    overflow: hidden;
}

.store-menu-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;
}

.store-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.store-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: min(340px, 88vw);
    background: var(--color-surface);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    /* Cerrado: además de fuera de pantalla, invisible para Tab y lectores
       de pantalla (visibility espera a que termine la animación). */
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    z-index: 91;
    display: flex;
    flex-direction: column;
}

.store-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
}

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

.store-menu__brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.store-menu__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);
}

.store-menu__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: var(--space-sm) var(--space-lg) var(--space-xl);
}

.store-menu__heading {
    margin: var(--space-lg) 0 var(--space-xs);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.store-menu__list,
.store-menu__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 12px;
    margin: 0 -12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.store-menu__link:hover,
.store-menu__link:focus-visible {
    background: var(--color-badge-bg);
}

/* Categoría con subcategorías: se despliega con <details>. */
.store-menu__summary {
    list-style: none;
    justify-content: space-between;
}

.store-menu__summary::-webkit-details-marker {
    display: none;
}

.store-menu__summary::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
}

.store-menu__group[open] > .store-menu__summary::after {
    transform: rotate(90deg);
}

.store-menu__sublist {
    margin: 2px 0 var(--space-xs);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--color-lime);
}

.store-menu__sublink {
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    text-decoration: none;
}

.store-menu__sublink:hover,
.store-menu__sublink:focus-visible {
    background: var(--color-badge-bg);
}

.store-menu__brands {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.store-menu__count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--color-lime);
    color: var(--color-lime-ink);
    font-size: 12px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .store-menu,
    .store-menu.is-open,
    .store-menu-backdrop {
        transition: none;
    }
}

/* -- 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;
    }
}
