/* 
   RetailOS 2026 - Legacy Styles (Refactored)
   Fecha Migración: 22 Enero 2026
   Estado: GRID LAYOUT (Flexbox Removed)
*/

:root {
    --background: #ffffff;
    --foreground: #171717;
    --muted: #737373;
    --muted-foreground: #a3a3a3;
    --popover: #ffffff;
    --popover-foreground: #171717;
    --card: #ffffff;
    --card-foreground: #171717;
    --border: #e5e5e5;
    --input: #e5e5e5;
    --primary: #171717;
    --primary-foreground: #ffffff;
    --secondary: #f5f5f5;
    --secondary-foreground: #171717;
    --accent: #f5f5f5;
    --accent-foreground: #171717;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --ring: #171717;
    --radius: 0.5rem;
    --font-sans: "Inter", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    /* SOLUCIÓN STICKY FOOTER CON FLEXBOX */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--muted-foreground);
}

/* Maintain compatibility with legacy classes if needed, but rely on Bootstrap */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Ensure Main takes available space */
main {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

/* --- PREMIUM PRODUCT CARD COMPONENT (2026) --- */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Hover Overlay Logic */
.group-hover-opacity {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.product-card:hover .group-hover-opacity {
    opacity: 1;
    pointer-events: auto;
}

/* Button Animation */
.transform-up-hover {
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-card:hover .transform-up-hover {
    transform: translateY(0);
}

/* Image Zoom */
.group-hover-scale {
    transition: transform 0.5s ease;
}

.product-card:hover .group-hover-scale {
    transform: scale(1.08);
}

/* Text Truncation */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}