/* zapateria.energessolution.com/assets/css/style.css - Zapatería Design System */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0f172a;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --card-hover-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar-brand-custom {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.shoe-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.shoe-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.shoe-card-img-container {
    position: relative;
    padding-top: 75%;
    background-color: #f1f5f9;
    overflow: hidden;
}

.shoe-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shoe-card:hover .shoe-card-img {
    transform: scale(1.08);
}

.tag-badge {
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    margin: 2px;
}

.tag-filter-box {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.tag-checkbox-pill {
    display: none;
}

.tag-label-pill {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #cbd5e1;
    border-radius: 50rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin: 3px;
}

.tag-checkbox-pill:checked + .tag-label-pill {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.img-zoom-container {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    cursor: crosshair;
    background: #f1f5f9;
}

.img-zoom-lens {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    box-shadow: 0 0 15px rgba(0,0,0,0.25);
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 100;
}

.product-gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.pos-container {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

/* Etiquetas térmicas de caja de calzado (50x30mm / mostrador) */
.shoe-box-label {
    border: 2px solid #0f172a;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.75rem;
    position: relative;
}

.shoe-box-size-giant {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: #0f172a;
    border: 2px solid #0f172a;
    border-radius: 0.375rem;
    padding: 0.25rem 0.6rem;
    min-width: 64px;
    text-align: center;
}

@media print {
    header, footer, nav, .d-print-none, .btn, .modal {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
    body * {
        visibility: hidden;
    }
    #printable-receipt, #printable-receipt *,
    #printable-voucher, #printable-voucher *,
    #printable-oc, #printable-oc *,
    .printable-area, .printable-area * {
        visibility: visible;
    }
    #printable-receipt,
    #printable-voucher,
    #printable-oc,
    .printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none !important;
    }
}

/* Componente Selector de Talla */
.talla-header-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #475569;
    text-transform: uppercase;
}

.btn-guia-tallas {
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #1e293b !important;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.btn-guia-tallas:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.tallas-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.talla-item {
    position: relative;
}

.talla-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.talla-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 50px;
    padding: 0 16px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.talla-number {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e293b;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.talla-dot {
    color: #dc2626;
    font-size: 1.25rem;
    line-height: 0;
    position: absolute;
    top: -7px;
    right: -10px;
    font-weight: 900;
}

.talla-box:hover:not(.disabled) {
    border-color: #64748b;
}

.talla-input:checked + .talla-box {
    border: 2px solid #000000;
    background-color: #ffffff;
}

.talla-input:checked + .talla-box .talla-number {
    font-weight: 700;
    color: #000000;
}

.talla-box.disabled {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.65;
}

.talla-box.disabled .talla-number {
    color: #cbd5e1;
    text-decoration: line-through;
}

.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}
