* {
    box-sizing: border-box;
}

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

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--color-primary);
    color: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.logo__img {
    max-height: 40px;
    width: auto;
    display: block;
}

.main-nav a {
    margin-left: 1.5rem;
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Header builder rows/columns */
.header-row__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
}

.header-row--cols-1 .header-row__inner {
    justify-content: center;
}

.header-col {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-col--banner {
    width: 100%;
}

.header-col--ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.header-ticker--marquee {
    position: relative;
}

.header-ticker__track {
    display: flex;
    width: max-content;
    animation: header-ticker-scroll var(--ticker-speed, 15s) linear infinite;
}

.header-ticker__item {
    padding-right: 3rem;
}

@keyframes header-ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.header-social {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.1rem;
}

.header-social__link {
    display: inline-flex;
    align-items: center;
    opacity: 0.9;
}

.header-social__link:hover {
    opacity: 1;
}

.header-social__link svg {
    display: block;
}

.header-custom-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
}

.header-custom-link:hover {
    opacity: 1;
}

/* Header banner / carousel */
.header-banner {
    position: relative;
    width: 100%;
    aspect-ratio: var(--banner-desktop-ratio, 1920/500);
    overflow: hidden;
}

@media (max-width: 767px) {
    .header-banner {
        aspect-ratio: var(--banner-mobile-ratio, 1080/1350);
    }
}

.header-banner__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.header-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.header-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.header-banner[data-transition-desktop="slide"] .header-banner__slide,
.header-banner[data-transition-mobile="slide"] .header-banner__slide {
    transition: transform 0.6s ease, opacity 0s;
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    position: absolute;
}

.header-banner[data-transition-desktop="slide"] .header-banner__slide.is-active,
.header-banner[data-transition-mobile="slide"] .header-banner__slide.is-active {
    transform: translateX(0);
}

.header-banner[data-transition-desktop="slide"] .header-banner__slide.is-prev,
.header-banner[data-transition-mobile="slide"] .header-banner__slide.is-prev {
    transform: translateX(-100%);
}

.header-banner__slide a,
.header-banner__slide picture,
.header-banner__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: var(--banner-controls-color, #fff);
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.header-banner__arrow--prev {
    left: 0.75rem;
}

.header-banner__arrow--next {
    right: 0.75rem;
}

.header-banner__dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    z-index: 2;
}

.header-banner__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--banner-controls-color, rgba(255, 255, 255, 0.55));
    opacity: 0.55;
    border: none;
    padding: 0;
    cursor: pointer;
}

.header-banner__dot.is-active {
    opacity: 1;
}

/* Standalone banner module (outside the header row/column grid) */
.site-banner-section {
    width: 100%;
}

.site-banner-section--full {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Page title */
.page-title {
    margin-top: 2rem;
    font-size: 1.75rem;
}

/* Content blocks (Estructura del sitio) */
.content-block {
    margin-top: 2.5rem;
}

.content-block:first-child {
    margin-top: 2rem;
}

.content-block__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content-block--banner {
    margin-top: 0;
    margin-bottom: 0;
}

.content-block--banner + .content-block {
    margin-top: 0;
}

/* Category filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-filter a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.category-filter a.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--catalog-columns, 4), 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(36, 26, 23, 0.08);
}

.product-card__image-link {
    display: block;
}

.product-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.product-card__size-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.product-card:hover .product-card__size-overlay,
.product-card__size-overlay.show-overlay {
    opacity: 1;
    visibility: visible;
}

.card-size-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 0.35rem;
    border: 1.5px solid rgba(36, 26, 23, 0.55);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.7rem;
    color: #000;
}

.card-size-btn:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.product-card__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1rem 0;
}

.card-color-swatch {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(36, 26, 23, 0.55);
    cursor: pointer;
    padding: 0;
}

.card-color-swatch.active {
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 1.5px var(--color-text);
}

.product-card__body {
    padding: 1rem;
}

.product-card__body h2 {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.empty-state {
    color: var(--color-text-muted);
    padding: 2rem 0;
}

/* Product detail */
.product-detail {
    padding-bottom: 3rem;
}

.back-link {
    display: inline-block;
    margin: 1.5rem 0 1rem;
    color: var(--color-text-muted);
}

.product-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.product-gallery {
    min-width: 0;
    width: 100%;
}

.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 65vh;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.product-gallery__main img,
.product-gallery__main video,
.product-gallery__main iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(36, 26, 23, 0.15);
    z-index: 2;
}

.gallery-arrow:hover {
    background: #fff;
}

.gallery-arrow--prev {
    left: 0.75rem;
}

.gallery-arrow--next {
    right: 0.75rem;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.gallery-thumb-btn {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: var(--color-surface);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-btn.active {
    border-color: var(--color-primary);
}

.gallery-thumb-btn--video {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--color-primary);
    background: var(--color-bg);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.lightbox.open {
    display: flex;
}

.lightbox-media {
    max-width: 100%;
    max-height: 100%;
}

.lightbox-media img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
}

.product-detail__info {
    min-width: 0;
}

.product-detail__info h1 {
    margin-top: 0;
    font-size: 1.6rem;
}

.product-detail__info .price {
    font-size: 1.9rem;
    margin: 0.5rem 0 1rem;
}

.product-reference {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 0.1rem 0 0;
    text-transform: uppercase;
}

.product-short-desc {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0.6rem 0 0;
    line-height: 1.5;
}

.price-original {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 400;
    margin-right: 0.6rem;
}

.price-current {
    color: var(--color-accent);
}

.price-tagline {
    margin: -0.5rem 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.add-to-cart-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.option-group {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.option-label {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}

.selected-option-name {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.selected-option-name::before {
    content: '—';
    margin-right: 0.5rem;
}

.selected-option-name:empty::before {
    content: '';
    margin-right: 0;
}

.color-swatches {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.color-swatch {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid rgba(36, 26, 23, 0.55);
    cursor: pointer;
    padding: 0;
}

.color-swatch.active {
    border: 2px solid var(--color-surface);
    box-shadow: 0 0 0 1.5px var(--color-text);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--color-text);
    color: var(--color-surface);
    font-size: 0.6rem;
    line-height: 15px;
    text-align: center;
}

.size-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 28px;
    height: 28px;
    padding: 0 0.3rem;
    border: 1.5px solid rgba(36, 26, 23, 0.55);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.75rem;
    color: #000;
}

.size-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.size-guide-link,
.shipping-calc-link {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
    color: #000;
}

.shipping-calc-link {
    display: block;
    margin-top: 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    text-decoration: none;
    text-align: center;
}

.add-to-cart-form input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.add-to-cart-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}

.add-to-cart-submit:hover {
    background: var(--color-primary-dark);
}

.out-of-stock {
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* Trust badges */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius);
    text-align: center;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.8rem;
    position: relative;
}

.trust-badge__icon {
    font-size: 1.3rem;
}

.trust-badge__title {
    font-weight: 700;
}

.trust-badge__info-wrap {
    position: relative;
    display: inline-block;
}

.trust-badge__info {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1;
}

.trust-badge__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    background: var(--color-text);
    color: var(--color-surface);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.trust-badge__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--color-text);
}

.trust-badge__info-wrap:hover .trust-badge__tooltip,
.trust-badge__info-wrap.open .trust-badge__tooltip {
    opacity: 1;
    visibility: visible;
}

.payment-methods-image {
    display: block;
    margin: 1rem 0;
    max-width: 100%;
}

/* Accordion */
.product-accordion {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.product-accordion details {
    border-bottom: 1px solid var(--color-border);
    padding: 0.85rem 0;
}

.product-accordion summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-accordion summary::-webkit-details-marker {
    display: none;
}

.product-accordion summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
}

.product-accordion details[open] summary::after {
    content: '−';
}

.product-accordion__content {
    margin-top: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ cards (modo "tarjetas") */
.faq-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-category {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--color-surface);
}

.faq-category__title {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-category__title::-webkit-details-marker {
    display: none;
}

.faq-category__title::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
}

.faq-category[open] > .faq-category__title::after {
    content: '−';
}

.faq-category__items {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border-top: 1px solid var(--color-border);
    padding-top: 0.5rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item__content {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Generic modal (size guide / shipping calculator) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text);
}

.btn-modal-close {
    display: block;
    width: 100%;
    margin-top: 1rem;
    background: var(--color-text);
    color: var(--color-surface);
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem;
    cursor: pointer;
    font-weight: 600;
}

.size-guide-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.size-guide-body img {
    max-width: 100%;
    align-self: center;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.size-guide-table th,
.size-guide-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem;
    text-align: left;
}

.size-guide-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

#shipping-calc-department {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-top: 0.4rem;
}

#shipping-calc-result {
    margin-top: 1rem;
}

.shipping-calc-cost {
    font-size: 1rem;
}

.shipping-calc-hint {
    color: #2e7d32;
    font-style: italic;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Cart indicator */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 1.2rem;
}

.cart-count {
    display: none;
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--color-accent);
    color: #241a17;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count.is-visible {
    display: flex;
}

/* Checkout */
.checkout {
    padding-bottom: 3rem;
}

.checkout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.checkout .page-title {
    margin-top: 0.5rem;
}

.checkout__section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout__section h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.checkout__section label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.checkout__section input[type="text"],
.checkout__section input[type="email"],
.checkout__section input[type="tel"],
.checkout__section textarea,
.checkout__section select {
    font-family: inherit;
    font-weight: 400;
    padding: 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.radio-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400 !important;
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 0.6rem !important;
    cursor: pointer;
}

.checkout__submit {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    animation: checkout-submit-pulse 2.2s infinite;
}

.checkout__submit--top {
    margin: 1rem 0 1.25rem;
}

@keyframes checkout-submit-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.checkout__submit:hover {
    background: var(--color-primary-dark);
}

.checkout__summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 1.5rem;
}

.checkout__summary h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.checkout__summary-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout__summary-section h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.checkout__summary-section .radio-option {
    margin-bottom: 0.5rem !important;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.summary-items {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    gap: 0.75rem;
}

.summary-item__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
}

.summary-item__name {
    font-weight: 700;
    font-size: 1rem;
}

.summary-item__variant,
.summary-item__qty {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.summary-item__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.summary-item__actions > span {
    font-size: 1.05rem;
}

.summary-item__qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.qty-btn {
    width: 18px;
    height: 18px;
    line-height: 1;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--color-text);
}

.qty-btn:hover {
    background: var(--color-border);
}

.qty-input {
    width: 32px;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.7rem;
    padding: 0.15rem 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-weight: 400;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0.35rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0.4rem 0 0;
}

/* Order confirmation */
.order-confirmation {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.order-confirmation__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    max-width: 480px;
}

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.03em;
}

.btn-continue {
    display: inline-block;
    margin-top: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
}

/* Cart drawer (agregar rápido desde el catálogo) */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.cart-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 100%);
    background: var(--color-surface);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

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

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

.cart-drawer__header h2 {
    margin: 0;
    font-size: 1.15rem;
}

.cart-drawer__close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text);
}

.cart-drawer__items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer__empty {
    color: var(--color-text-muted);
}

.cart-drawer__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-drawer__item img,
.cart-drawer__item-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-bg);
    flex-shrink: 0;
}

.cart-drawer__item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
}

.cart-drawer__item-name {
    font-weight: 600;
}

.cart-drawer__item-variant,
.cart-drawer__item-qty {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.cart-drawer__item-price {
    font-weight: 700;
    white-space: nowrap;
}

.cart-drawer__footer {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin: 0 0 1rem;
}

.cart-drawer__checkout-btn {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem;
    border-radius: var(--radius);
    font-weight: 600;
}
