/**
 * Tienda On Tap Core Styles
 * Clean, Vercel-like Aesthetic: High contrast, rounded-2xl, soft shadows, strict color badges
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --tot-bg: #FFFFFF;
    --tot-bg-subtle: #F8FAFC;
    --tot-border: #E2E8F0;
    --tot-border-subtle: #F1F5F9;
    --tot-primary: #2563EB;
    --tot-primary-hover: #1D4ED8;
    --tot-accent: #0EA5E9;
    --tot-text-main: #0F172A;
    --tot-text-muted: #64748B;
    --tot-text-subtle: #94A3B8;
    
    /* Strict Color Badges */
    --tot-status-green: #10B981;
    --tot-status-yellow: #F59E0B;
    --tot-status-red: #EF4444;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--tot-bg-subtle);
    color: var(--tot-text-main);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Strict Badges System */
.badge-green {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-green::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
}

.badge-yellow {
    background-color: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-yellow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #F59E0B;
}

.badge-red {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-red::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #EF4444;
}

/* Product Card Styling */
.tot-product-card {
    border-radius: 16px; /* rounded-2xl */
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tot-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

/* Discount Badge Floating */
.tot-discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Color swatch radio */
.tot-color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #FFFFFF;
    box-shadow: 0 0 0 1px #CBD5E1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tot-color-swatch.active {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #2563EB;
}

/* Size tag pill */
.tot-size-pill {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tot-size-pill.active {
    background: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}

/* Toast Notifications */
#tot-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 360px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
#tot-toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
