/* ================================================================
   KOSTAS TIENDA — Estilos del catálogo, carrito y checkout
   Importa landing.css antes de este archivo
   ================================================================ */

/* ================================================================
   CATÁLOGO — sección embebida en index.php
   ================================================================ */

.catalog-section {
    padding: var(--space-20) 6%;
    background: var(--bg-section);
}
.catalog-section .section-header { margin-bottom: var(--space-10); }

/* Barra de búsqueda + filtros */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    margin-bottom: var(--space-8);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}
.catalog-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.catalog-search input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-sm);
    background: var(--bg-input);
    color: var(--text-body);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}
.catalog-search input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: var(--white);
}
.catalog-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}
.catalog-selects {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.catalog-selects select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-sm);
    color: var(--text-body);
    background: var(--bg-input);
    cursor: pointer;
    outline: none;
    transition: border-color var(--t-fast);
}
.catalog-selects select:focus { border-color: var(--border-focus); }

/* Filtros de talla */
.size-filters {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    align-items: center;
}
.size-filters .size-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-weight: 500;
    margin-right: var(--space-1);
}
.size-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--white);
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font);
}
.size-btn:hover  { border-color: var(--primary-light); color: var(--primary-light); }
.size-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-6);
    min-height: 300px;
}

/* Tarjeta de producto */
.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--t-normal), box-shadow var(--t-normal);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-img {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-img .no-img-icon {
    font-size: 56px;
    color: var(--gray-300);
}
.product-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .3px;
}
.product-body {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.product-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.product-name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.product-price {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--primary);
}
.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: var(--space-1);
}
.product-size-chip {
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--text-body);
    background: var(--white);
}
.product-size-chip.agotado {
    color: var(--text-light);
    text-decoration: line-through;
    border-color: var(--gray-200);
    background: var(--gray-50);
}
.product-actions {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border);
}
.btn-add-cart {
    width: 100%;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-add-cart:hover  { background: var(--primary-mid); }
.btn-add-cart:active { transform: scale(.98); }

/* ── Skeleton loader ── */
.skeleton {
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.skeleton-img  { height: 180px; }
.skeleton-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.skeleton-line { height: 14px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.h-20 { height: 20px; }

/* Empty state catálogo */
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--text-muted);
}
.catalog-empty i    { font-size: 48px; margin-bottom: var(--space-4); color: var(--gray-300); display: block; }
.catalog-empty p    { font-size: var(--text-base); margin-bottom: var(--space-4); }

/* Paginación catálogo */
.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
    flex-wrap: wrap;
}
.catalog-pagination .page-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    background: var(--white);
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font);
}
.catalog-pagination .page-btn:hover  { border-color: var(--primary-light); color: var(--primary-light); }
.catalog-pagination .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Modal de talla para "Agregar al carrito" */
.size-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10,35,66,.5);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-normal);
}
.size-modal-overlay.open { opacity: 1; pointer-events: auto; }
.size-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-8);
    width: 90%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform var(--t-normal);
}
.size-modal-overlay.open .size-modal { transform: translateY(0); }
.size-modal h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); color: var(--text-primary); }
.size-modal p  { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-5); }
.size-modal .modal-sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.size-modal .modal-size-btn {
    padding: 10px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--t-fast);
    font-family: var(--font);
    background: var(--white);
    color: var(--text-body);
}
.size-modal .modal-size-btn:hover   { border-color: var(--primary-light); color: var(--primary-light); }
.size-modal .modal-size-btn.chosen  { border-color: var(--primary); background: var(--primary); color: var(--white); }
.size-modal .modal-size-btn.out     { color: var(--text-light); text-decoration: line-through; cursor: not-allowed; }
.size-modal .modal-qty {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.size-modal .modal-qty label { font-size: var(--text-sm); font-weight: 500; }
.qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-control button {
    width: 36px; height: 36px;
    background: var(--gray-50);
    color: var(--text-body);
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast);
    font-family: var(--font);
}
.qty-control button:hover { background: var(--gray-200); }
.qty-control span {
    width: 44px;
    text-align: center;
    font-weight: 700;
    font-size: var(--text-sm);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    height: 36px;
    line-height: 36px;
}
.size-modal .modal-actions { display: flex; gap: var(--space-3); }
.btn-modal-add  {
    flex: 1;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background var(--t-fast);
}
.btn-modal-add:hover { background: var(--primary-mid); }
.btn-modal-cancel {
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-weight: 500;
    font-size: var(--text-sm);
    cursor: pointer;
    background: var(--white);
    color: var(--text-muted);
    transition: all var(--t-fast);
}
.btn-modal-cancel:hover { border-color: var(--danger); color: var(--danger); }

/* Cart badge en navbar */
.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    position: absolute;
    top: -5px; right: -5px;
}
.nav-cart-wrap { position: relative; display: inline-block; }

/* Toast de confirmación */
.toast-cart {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(80px);
    opacity: 0;
    transition: all var(--t-normal);
}
.toast-cart.show { transform: translateY(0); opacity: 1; }
.toast-cart i    { font-size: 16px; color: #4ade80; }

/* ================================================================
   PÁGINAS DE LA TIENDA (carrito, checkout, resultado)
   Envueltas en .tienda-page
   ================================================================ */

.tienda-page {
    min-height: 100vh;
    background: var(--bg-section);
    padding-top: calc(var(--nav-h) + var(--space-10));
    padding-bottom: var(--space-16);
}
.tienda-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 6%;
}
.tienda-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}
.tienda-subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
}

/* ── Carrito ── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
}
.cart-items-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.cart-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 80px; height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img i   { font-size: 28px; color: var(--gray-300); }
.cart-item-info    { flex: 1; min-width: 0; }
.cart-item-name    { font-weight: 700; color: var(--text-primary); font-size: var(--text-sm); }
.cart-item-talla   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cart-item-price   { font-size: var(--text-sm); color: var(--primary); font-weight: 800; margin-top: var(--space-1); }
.cart-item-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.btn-remove-item {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: color var(--t-fast);
}
.btn-remove-item:hover { color: var(--danger); }

/* Summary card */
.cart-summary-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: var(--space-6);
    position: sticky;
    top: 90px;
}
.summary-title { font-size: var(--text-md); font-weight: 700; color: var(--text-primary); margin-bottom: var(--space-5); }
.summary-row   { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-3); }
.summary-total { display: flex; justify-content: space-between; font-size: var(--text-lg); font-weight: 800; color: var(--text-primary); border-top: 2px solid var(--border); padding-top: var(--space-4); margin-top: var(--space-2); margin-bottom: var(--space-6); }

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background var(--t-fast);
    text-decoration: none;
}
.btn-checkout:hover { background: var(--primary-mid); color: var(--white); }
.btn-seguir-comprando {
    display: block;
    text-align: center;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-decoration: underline;
}
.btn-seguir-comprando:hover { color: var(--primary-light); }

/* Empty cart */
.cart-empty {
    padding: var(--space-16);
    text-align: center;
    color: var(--text-muted);
}
.cart-empty i { font-size: 56px; color: var(--gray-200); margin-bottom: var(--space-4); display: block; }
.cart-empty p { margin-bottom: var(--space-6); }

/* ── Checkout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
    align-items: start;
}
.checkout-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: var(--space-8);
}
.checkout-card h2 {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.checkout-card h2 i { color: var(--primary-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { margin-bottom: var(--space-5); }
.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-sm);
    color: var(--text-body);
    background: var(--bg-input);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
    background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-required { color: var(--danger); margin-left: 2px; }

/* Métodos de pago */
.payment-methods { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-fast);
}
.payment-option:hover  { border-color: var(--primary-light); }
.payment-option.chosen { border-color: var(--primary); background: var(--primary-xlight); }
.payment-option input[type="radio"] { display: none; }
.payment-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.payment-icon.wompi { background: #FFE0E0; color: #E53E3E; }
.payment-icon.cod   { background: #E0F2E9; color: #38A169; }
.payment-info strong { display: block; font-size: var(--text-sm); color: var(--text-primary); font-weight: 700; }
.payment-info span   { font-size: 12px; color: var(--text-muted); }

/* Resumen del pedido en checkout */
.checkout-summary-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.checkout-summary-header {
    padding: var(--space-5) var(--space-6);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: var(--text-sm);
}
.checkout-summary-items { padding: var(--space-4) var(--space-5); }
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
    gap: var(--space-3);
}
.checkout-summary-item:last-child { border-bottom: none; }
.csi-name  { color: var(--text-body); flex: 1; }
.csi-talla { color: var(--text-muted); font-size: 11px; }
.csi-price { font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.checkout-summary-total {
    padding: var(--space-5) var(--space-6);
    border-top: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--text-primary);
}

/* Botón de pagar */
.btn-pay {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: var(--text-base);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background var(--t-fast), transform var(--t-fast);
    margin-top: var(--space-5);
}
.btn-pay:hover  { background: var(--primary-mid); }
.btn-pay:active { transform: scale(.98); }
.btn-pay:disabled { background: var(--gray-300); cursor: not-allowed; }

/* ── Página de pago Wompi ── */
.wompi-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    padding: var(--space-8) 6%;
}
.wompi-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-12);
    text-align: center;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border);
}
.wompi-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #0A2342, #1D4ED8);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: var(--white);
    font-size: 28px;
}
.wompi-card h2 { font-size: var(--text-xl); font-weight: 800; color: var(--text-primary); margin-bottom: var(--space-2); }
.wompi-card p  { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-6); }
.wompi-order-info {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    text-align: left;
}
.wompi-order-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
}
.wompi-order-row:last-child { border-bottom: none; }
.wompi-order-row strong { font-weight: 700; color: var(--text-primary); }
.wompi-btn-wrap { margin-top: var(--space-2); }
.wompi-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-4);
}
.wompi-secure-note i { color: var(--success); }

/* ── Página de resultado ── */
.resultado-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-12);
    text-align: center;
    max-width: 520px;
    width: 100%;
    border: 1px solid var(--border);
    margin: 0 auto;
}
.resultado-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: 36px;
}
.resultado-icon.aprobado  { background: #DCFCE7; color: var(--success); }
.resultado-icon.fallido   { background: #FEE2E2; color: var(--danger); }
.resultado-icon.pendiente { background: #FEF3C7; color: var(--warning); }
.resultado-card h2 { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-2); }
.resultado-card p  { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-6); }
.resultado-details {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    text-align: left;
    margin-bottom: var(--space-8);
}
.resultado-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
}
.resultado-row:last-child { border-bottom: none; }
.resultado-row span:first-child { color: var(--text-muted); }
.resultado-row span:last-child  { font-weight: 600; color: var(--text-primary); }
.resultado-actions { display: flex; flex-direction: column; gap: var(--space-3); }
.btn-resultado-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    font-weight: 700;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: background var(--t-fast);
}
.btn-resultado-primary:hover { background: var(--primary-mid); color: var(--white); }
.btn-resultado-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius);
    font-weight: 500;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--t-fast);
}
.btn-resultado-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ── Tienda navbar (navbar sólido siempre) ── */
.nav-tienda { position: sticky; top: 0; background: var(--white); box-shadow: 0 1px 0 var(--border), var(--shadow-sm); z-index: 999; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .cart-layout     { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .form-row        { grid-template-columns: 1fr; }
    .products-grid   { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-4); }
    .cart-summary-card,
    .checkout-summary-card { position: static; }
    .wompi-card,
    .resultado-card { padding: var(--space-8); }
}
@media (max-width: 480px) {
    .catalog-filters { flex-direction: column; align-items: stretch; }
    .catalog-search  { min-width: 0; }
    .products-grid   { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
}
