/* Premium Market Design System - Documentación Técnica Completa */

/* ===== 1. PALETA DE COLORES ===== */
:root {
    /* Variables CSS obligatorias - NO usar colores hex directos */
    --primary-green: #d9ff00;
    --accent-mustard: #E39A18;
    --accent-brown: #6B2C10;
    --accent-orange: #E97B41;
    --neutral-dark: #2B1A12;
    --neutral-gray: #6B2C10;
    --neutral-light: #FFF8F3;
    --neutral-mid: #F3E6D8;
    --white: #FFFFFF;
    
    /* Gradientes Premium Market */
    --gradient-primary: linear-gradient(135deg, #647500 0%, #caac00 100%);
    --gradient-accent: linear-gradient(135deg, #E97B41 0%, #E39A18 100%);
    --gradient-dark: linear-gradient(180deg, #6B2C10 0%, #2B1A12 100%);
    --gradient-subtle: linear-gradient(135deg, #FFF8F3 0%, #FFFFFF 50%, #F3E6D8 100%);
    
    /* Sombras minimalistas */
    --shadow-xs: 0 1px 3px rgba(75,87,6,0.05);
    --shadow-sm: 0 2px 8px rgba(227,154,24,0.08);
    --shadow-md: 0 4px 16px rgba(227,123,65,0.1);
    --shadow-lg: 0 8px 32px rgba(227,76,61,0.12);
}

/* ===== 2. TIPOGRAFÍA ===== */
/* Fuente base obligatoria */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    overflow-x: hidden;
    letter-spacing: 0.02em;
}

/* Jerarquía exacta según documentación */
h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--neutral-dark);
    line-height: 1;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-dark);
    margin-bottom: 2rem;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-gray);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    font-weight: 300;
    color: var(--neutral-gray);
    margin-bottom: 1.5rem;
}

/* ===== 3. ESTRUCTURA Y LAYOUT ===== */
/* Topbar según especificaciones */
.topbar {
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
}

.topbar .logo {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-brown);
    text-decoration: none;
}

.topbar .search-bar {
    flex: 1;
    margin: 0 2rem;
    position: relative;
}

.topbar input[type="search"] {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--neutral-mid);
    font-size: 1rem;
    background: var(--neutral-light);
    color: var(--neutral-dark);
}

.topbar .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-gray);
}

.topbar .profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar .profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-brown);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main content sin sidebar */
.main-content {
    max-width: 1400px;
    margin: 120px auto 0 auto;
    padding: 0 2rem;
    min-height: 70vh;
}

/* ===== HERO SECTIONS ===== */
/* Hero section compacto para páginas internas */
.hero-section {
    background: var(--gradient-subtle);
    border-radius: 0.5rem;
    padding: 2rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid var(--neutral-mid);
}

.hero-section h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.hero-section p {
    max-width: 500px;
    margin: 0 auto 1rem auto;
    font-size: 1rem;
    color: var(--neutral-gray);
}

/* Hero section especial para homepage */
.hero-section.homepage {
    padding: 4rem 3rem;
    margin-bottom: 3rem;
}

.hero-section.homepage h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 200;
    margin-bottom: 2rem;
}

.hero-section.homepage p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.category-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--accent-brown);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    color: var(--accent-orange);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: background 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--accent-orange);
}

/* Sections spacing */
.section {
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Grid para productos destacados */
.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Grid para ofertas */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.offer-card {
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.offer-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.offer-card p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* ===== 4. NAVEGACIÓN ===== */
/* Nav links con animación obligatoria */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-dark);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== MODERN CATEGORY BAR ===== */
.category-bar-form {
    margin: 0;
}

.modern-category-bar {
    display: flex;
    gap: 0;
    align-items: center;
    background: var(--neutral-light);
    border-radius: 0.5rem;
    padding: 0.3rem;
    border: 1px solid var(--neutral-mid);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modern-category-bar::-webkit-scrollbar {
    display: none;
}

.modern-category-bar input[type="radio"] {
    display: none;
}

.category-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--neutral-gray);
    background: transparent;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    flex-shrink: 0;
}

.category-tab:hover {
    color: var(--neutral-dark);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}

/* Active/Selected category styles */
.modern-category-bar input[type="radio"]:checked + .category-tab {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Special styling for "All" tab */
.all-tab {
    font-weight: 500;
    color: var(--accent-brown);
}

.modern-category-bar input[type="radio"]:checked + .all-tab {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 700;
}

/* Active indicator line */
.modern-category-bar input[type="radio"]:checked + .category-tab::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: #647500;
    border-radius: 1px;
}

/* ===== PRACTICAL FILTER PANEL ===== */
.practical-filter-panel {
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-mid);
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--neutral-mid);
    background: var(--gradient-subtle);
}

.filter-header h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent-brown);
    font-weight: 600;
}

.clear-all {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.clear-all:hover {
    color: var(--accent-brown);
    text-decoration: underline;
}

.practical-filter-form {
    padding: 0;
}

.filter-section {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--neutral-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Integrated Search */
.search-container {
    position: relative;
    display: flex;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--neutral-mid);
    border-right: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 0.9rem;
    background: var(--neutral-light);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: var(--white);
}

.search-btn {
    padding: 0.8rem 1rem;
    background: var(--accent-brown);
    color: var(--white);
    border: 1px solid var(--accent-brown);
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--accent-orange);
}

/* Price Range with Visual Feedback */
.price-slider-container {
    background: var(--neutral-light);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--neutral-mid);
}

.price-inputs-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.price-input-wrapper {
    position: relative;
    flex: 1;
}

.price-input-wrapper span {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-brown);
    font-weight: 600;
    font-size: 0.85rem;
}

.price-input-wrapper input {
    width: 100%;
    padding: 0.6rem 0.6rem 0.6rem 2rem;
    border: 1px solid var(--neutral-mid);
    border-radius: 0.3rem;
    font-size: 0.85rem;
    background: var(--white);
    text-align: center;
}

.price-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(227, 123, 65, 0.1);
}

.price-divider {
    color: var(--neutral-gray);
    font-weight: 600;
}

/* Visual Price Range */
.price-range-visual {
    margin-top: 0.8rem;
}

.range-track {
    height: 4px;
    background: var(--neutral-mid);
    border-radius: 2px;
    position: relative;
    margin-bottom: 0.5rem;
}

.range-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    width: 60%;
    transition: width 0.3s ease;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--neutral-gray);
}

/* Sort Options as Pills */
.sort-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.sort-options input[type="radio"] {
    display: none;
}

.sort-option {
    padding: 0.6rem 0.8rem;
    background: var(--neutral-light);
    border: 1px solid var(--neutral-mid);
    border-radius: 0.3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.sort-option:hover {
    background: var(--gradient-subtle);
    border-color: var(--accent-orange);
}

.sort-options input[type="radio"]:checked + .sort-option {
    background: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
    font-weight: 600;
}

/* ===== 5. BOTONES ===== */
/* Especificaciones exactas de botones */
.btn {
    padding: 1rem 3rem;
    border: 1px solid var(--accent-brown);
    background: transparent;
    color: var(--accent-brown);
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0.3rem;
}

.btn-primary {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
}

.btn-primary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background: var(--accent-brown);
    color: var(--white);
    border-color: var(--accent-brown);
}

/* ===== 6. CARDS Y ELEMENTOS ===== */
/* Product card según estructura definida */
.product-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--neutral-mid);
}

.product-info {
    padding: 1.5rem;
    text-align: left;
}

.product-info h4 {
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.product-stars {
    margin-bottom: 0.5rem;
}

.product-type {
    font-size: 0.95rem;
    color: var(--neutral-gray);
    margin-bottom: 0.7rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--accent-mustard);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Banner según especificaciones */
.ad-banner {
    grid-column: span 3;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 1rem;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

/* ===== 7. ANIMACIONES ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===== 8. RESPONSIVE ===== */
@media (max-width: 1200px) {
    .main-content {
        padding: 0 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    .featured-products {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .topbar {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-bar {
        order: 3;
        flex: 1 1 100%;
        margin: 0;
    }
    
    .main-content {
        margin-top: 140px;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    /* Category bar responsive */
    .modern-category-bar {
        padding: 0.2rem;
        gap: 0.2rem;
    }
    
    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 0.25rem;
    }
    
    .modern-category-bar input[type="radio"]:checked + .category-tab::after {
        display: none;
    }
    
    /* Filter panel responsive */
    .practical-filter-panel {
        position: relative !important;
        top: auto !important;
        margin-bottom: 2rem;
    }
    
    .sort-options {
        grid-template-columns: 1fr;
    }
    
    .price-inputs-row {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}

/* ===== 9. ESPACIADO Y GAPS ===== */
/* Secciones según especificaciones */
section {
    padding: 6rem 3rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Features cards según especificaciones */
.feature-card {
    padding: 4rem 3rem;
    background: var(--white);
    border: 1px solid var(--neutral-mid);
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:nth-child(2) {
    background: var(--gradient-subtle);
}

.feature-card:hover {
    background: var(--gradient-primary);
    color: var(--white);
    z-index: 10;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover h3,
.feature-card:hover p {
    color: var(--white);
}

.feature-number {
    font-size: 3rem;
    font-weight: 100;
    color: var(--accent-mustard);
    margin-bottom: 2rem;
    transition: all 0.4s ease;
}

/* ===== 10. ICONOGRAFÍA ===== */
/* SVG icons styling */
.category-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.topbar svg {
    width: 20px;
    height: 20px;
}

/* ===== 11. FORMULARIOS ===== */
/* Newsletter según especificaciones */
.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input[type="email"] {
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    border: none;
    background: var(--white);
    color: var(--neutral-dark);
    flex: 1;
}

/* ===== 12. FOOTER ===== */
footer {
    background: var(--neutral-light);
    border-top: 1px solid var(--neutral-mid);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-brown);
}

.footer-links h5 {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-brown);
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--accent-brown);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-mid);
    text-align: center;
    color: var(--accent-brown);
    font-size: 0.85rem;
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* ===== 13. ACCESIBILIDAD ===== */
/* Focus states obligatorios */
.btn:focus,
.topbar input:focus,
.sidebar a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ===== TOPBAR NAVIGATION ===== */
.topbar-logo {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-brown);
    text-decoration: none;
}

.topbar .nav-links {
    display: flex;
    gap: 2rem;
    margin-right: auto;
    margin-left: 3rem;
}

/* ===== OVERRIDE BOOTSTRAP ===== */
.navbar {
    display: none !important;
}

.container-fluid,
.container {
    max-width: 1400px !important;
    margin: 0 auto !important;
}

/* Asegurar que Bootstrap no interfiera */
.btn.btn-primary {
    background: var(--accent-brown) !important;
    border-color: var(--accent-brown) !important;
    color: var(--white) !important;
}

.btn.btn-primary:hover {
    background: var(--accent-orange) !important;
    border-color: var(--accent-orange) !important;
}

/* Reset margins y paddings de Bootstrap */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 2rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* ===== FEATURE CARDS ENHANCEMENTS ===== */
.feature-benefit {
    padding: 0.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--neutral-light);
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

/* ===== TESTIMONIAL CARDS ===== */
.testimonial-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-subtle);
    border-radius: 1rem;
    border: 1px solid var(--neutral-mid);
}

.empty-state-icon {
    margin-bottom: 2rem;
    opacity: 0.7;
}

.empty-state h3, .empty-state h4 {
    color: var(--accent-brown);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--neutral-gray);
    max-width: 400px;
    margin: 0 auto 2rem auto;
}

/* ===== FORM ENHANCEMENTS ===== */
.progress-steps {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--neutral-mid);
    color: var(--neutral-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: var(--white);
}

.step-label {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--accent-brown);
    font-weight: 600;
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--neutral-mid);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    color: var(--accent-brown);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--neutral-light);
}

.form-help-icon {
    color: var(--neutral-gray);
    margin-left: 0.5rem;
    cursor: help;
}

.form-help-icon:hover {
    color: var(--accent-orange);
}

.image-upload-area {
    position: relative;
    border: 2px dashed var(--neutral-mid);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background: var(--neutral-light);
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: var(--accent-orange);
    background: var(--white);
}

.upload-placeholder {
    color: var(--neutral-gray);
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pricing-option {
    padding: 1.5rem;
    border: 2px solid var(--neutral-light);
    border-radius: 0.5rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.pricing-option:hover {
    border-color: var(--neutral-mid);
    box-shadow: var(--shadow-sm);
}

.pricing-option .form-check-input:checked ~ .form-check-label {
    color: var(--accent-brown);
}

.pricing-input {
    margin-left: 1.5rem;
}

.pricing-suggestion {
    margin-top: 0.5rem;
}

.success-preview {
    animation: fadeInUp 0.5s ease;
}

/* ===== RENTAL CARDS FOR MY_RENTALS ===== */
.rental-card-modern {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.rental-card-modern:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.rental-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-green);
    color: var(--neutral-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.rental-status-badge.active {
    background: var(--primary-green);
    color: var(--neutral-dark);
}

.rental-status-badge.completed {
    background: var(--neutral-gray);
    color: var(--white);
}

.rental-image-container {
    height: 180px;
    position: relative;
}

.rental-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rental-info {
    padding: 1.5rem;
}

.rental-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 1rem;
}

.rental-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rental-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: var(--neutral-gray);
    font-size: 0.9rem;
}

.price-value {
    font-weight: 600;
    color: var(--accent-mustard);
    font-size: 1.1rem;
}

.rental-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.rental-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== HISTORY ITEMS ===== */
.history-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.history-item:hover {
    box-shadow: var(--shadow-md);
}

.history-image {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
}

.history-dates {
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-price {
    text-align: right;
    flex-shrink: 0;
}

.history-price .total-paid {
    font-weight: 600;
    color: var(--accent-mustard);
    font-size: 1.1rem;
}

.history-price small {
    color: var(--neutral-gray);
    display: block;
}

.history-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: var(--primary-green);
    color: var(--neutral-dark);
}

.status-badge.completed {
    background: var(--neutral-gray);
    color: var(--white);
}

/* ===== PRODUCT DETAIL OPTIMIZED ===== */
/* Remove custom product detail styles to use theme defaults */

/* ===== DASHBOARD STYLES ===== */
.stats-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stats-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stats-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.stats-icon.earning {
    background: var(--gradient-accent);
}

.stats-icon.views {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stats-icon.rentals {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.stats-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-brown);
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--neutral-gray);
    font-weight: 500;
}

.dashboard-header {
    background: var(--gradient-subtle);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--neutral-light);
}

.products-grid-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.product-card-dashboard {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-light);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card-dashboard:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.product-image-container {
    height: 180px;
    position: relative;
    overflow: hidden;
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-gray);
}

.product-status-badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
}

.status-active {
    background: var(--primary-green);
    color: var(--neutral-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-inactive {
    background: var(--neutral-gray);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-quick-actions {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card-dashboard:hover .product-quick-actions {
    opacity: 1;
}

.quick-action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brown);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.quick-action-btn:hover {
    background: var(--white);
    color: var(--accent-orange);
    transform: scale(1.1);
}

.quick-action-btn.danger:hover {
    background: #e74c3c;
    color: var(--white);
}

.product-info-dashboard {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-brown);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    color: var(--neutral-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--neutral-gray);
}

.stat-item i {
    color: var(--accent-orange);
}

.product-pricing {
    margin-bottom: 1rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-mustard);
}

.price-period {
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.price-secondary {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    margin-top: 0.3rem;
}

.performance-indicator {
    margin-bottom: 1rem;
}

.performance-bar {
    height: 6px;
    background: var(--neutral-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.performance-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.product-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.dashboard-footer {
    background: var(--gradient-subtle);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--neutral-light);
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-brown);
    line-height: 1;
}

.footer-stat-label {
    font-size: 0.9rem;
    color: var(--neutral-gray);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ===== ENHANCED EMPTY STATE ===== */
.empty-state-dashboard {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-subtle);
    border-radius: 1rem;
    border: 1px solid var(--neutral-mid);
}

.empty-state-graphic {
    margin-bottom: 2rem;
}

.empty-graphic-circle {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.empty-state-dashboard h3 {
    color: var(--accent-brown);
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state-dashboard p {
    color: var(--neutral-gray);
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.empty-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-brown);
    font-weight: 500;
}

.benefit-item i {
    color: var(--accent-orange);
    width: 20px;
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RENTAL QUICK STATS ===== */
.rental-quick-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.quick-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    border: 1px solid var(--neutral-light);
    min-width: 80px;
    backdrop-filter: blur(4px);
}

.quick-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-brown);
    line-height: 1;
}

.quick-stat-label {
    font-size: 0.8rem;
    color: var(--neutral-gray);
    font-weight: 500;
    margin-top: 0.3rem;
}