/* Variables de color de RepuMovil */
:root {
    --primary-color: #FF6B35;
    --primary-color-rgb: 255, 107, 53;
    --secondary-color: #FFA500;
    --secondary-color-rgb: 255, 165, 0;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ff6900;
    --gold-color: #ffd700;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.15);
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

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

body {
    font-family: 'Poppins', sans-serif; /* Usando la fuente Poppins */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 25px 25px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative; /* Para que esté sobre el overlay */
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Main Content */
.catalog-container {
    display: flex;
    max-width: 90%; /* Cambiado a porcentaje para mejor adaptabilidad */
    width: 100%;
    margin: 15px auto 0 auto; /* Reducido margin-top */
    padding: 0 10px; /* Reducido padding */
    gap: 15px; /* Reducido gap */
}

.catalog-sidebar {
    flex: 0 0 220px; /* Reducido ancho de 250px a 220px */
    background: white;
    border-radius: 10px; /* Reducido de 12px a 10px */
    padding: 12px; /* Reducido de 15px a 12px */
    box-shadow: 0 3px 12px rgba(0,0,0,0.1); /* Reducido shadow */
    align-self: flex-start; /* Alinea la barra lateral al inicio */
    position: sticky; /* Hace que la barra lateral sea pegajosa */
    top: 10px; /* Reducido de 15px a 10px */
    max-height: calc(100vh - 20px); /* Reducido de 30px a 20px */
    overflow-y: auto; /* Permite scroll vertical cuando sea necesario */
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif; /* Nueva tipografía */
}

/* Estilos personalizados para el scroll del sidebar */
.catalog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.catalog-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.catalog-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.catalog-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Filters Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    letter-spacing: -0.02em;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.clear-all-btn:hover {
    color: #e55a2b;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.filter-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.filter-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    padding: 3px 0;
    outline: none;
    cursor: pointer;
    line-height: 1.3;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

/* Section Titles */
.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

/* Categories */
.categories-section {
    margin-bottom: 18px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 3px;
    line-height: 1.3;
}

.category-list-item:hover {
    background: #f8f9fa;
    color: #333;
}

.category-list-item.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.category-arrow {
    font-size: 0.7rem;
    color: #999;
    transition: transform 0.2s ease;
}

.category-list-item.expanded .category-arrow {
    transform: rotate(90deg);
}

/* Vehicle Section */
.vehicle-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #333;
    transition: color 0.2s ease;
}

.checkbox-item:hover {
    color: #ff6b35;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
    cursor: pointer;
}

.checkmark {
    font-weight: 500;
}

.main-content {
    flex-grow: 1;
    padding: 0; /* El padding ya está en catalog-container */
}

/* Search and Filters */
.search-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px; /* Reducido de 15px a 12px */
    padding: 20px; /* Reducido de 25px a 20px */
    margin-bottom: 15px; /* Reducido de 20px a 15px */
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.3); /* Reducido shadow */
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gear" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23gear)"/></svg>') repeat;
    transform: rotate(45deg);
    pointer-events: none;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 20px; /* Reducido de 25px a 20px */
    margin-bottom: 20px; /* Reducido de 30px a 20px */
    position: relative;
    z-index: 2;
}

.search-icon {
    width: 60px; /* Reducido de 80px a 60px */
    height: 60px; /* Reducido de 80px a 60px */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3); /* Reducido de 3px a 2px */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); /* Reducido shadow */
    flex-shrink: 0;
}

.search-icon i {
    font-size: 1.5rem; /* Reducido de 2rem a 1.5rem */
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-title-section {
    flex-grow: 1;
    color: white;
}

.search-main-title {
    font-size: 1.8rem; /* Reducido de 2.2rem a 1.8rem */
    font-weight: 800;
    margin-bottom: 6px; /* Reducido de 8px a 6px */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.search-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.search-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form {
    display: flex;
    gap: 10px; /* Reducido de 15px a 10px */
    align-items: flex-end;
    position: relative;
    z-index: 2;
    flex-wrap: wrap; /* Permitir que se envuelvan en pantallas pequeñas */
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative; /* Añadido para posicionamiento absoluto de sugerencias */
}

.form-group label {
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 10px 12px; /* Reducido padding */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; /* Reducido de 12px a 10px */
    font-size: 0.9rem; /* Reducido de 1rem a 0.9rem */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1); /* Reducido shadow */
    min-width: 140px; /* Ancho mínimo para evitar que sean muy pequeños */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 10px 20px; /* Reducido padding */
    border-radius: 20px; /* Reducido de 25px a 20px */
    cursor: pointer;
    font-size: 0.9rem; /* Reducido de 1rem a 0.9rem */
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2); /* Reducido shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* Evitar que el texto se rompa */
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Category Grid Section */
.category-grid-section {
    background: white;
    border-radius: 12px; /* Reducido de 15px a 12px */
    padding: 20px; /* Reducido de 25px a 20px */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Reducido shadow */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Reducido de 300px a 280px */
    gap: 15px; /* Reducido de 20px a 15px */
}

.category-card-large {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px; /* Reducido de 15px a 12px */
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
}

.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-card-large-img {
    width: 120px; /* Reducido de 150px a 120px */
    height: 100px; /* Reducido de 120px a 100px */
    flex-shrink: 0;
}

.category-card-large-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-large-content {
    padding: 20px;
}

.category-card-large-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.category-card-large-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

/* Supplier Profile Styles */
.supplier-profile-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.supplier-profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gear" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23gear)"/></svg>') repeat;
    transform: rotate(45deg);
    pointer-events: none;
}

.supplier-profile-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.supplier-logo-section {
    flex-shrink: 0;
}

.supplier-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.supplier-logo i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.supplier-logo-img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.supplier-logo:hover .supplier-logo-img {
    transform: scale(1.1) rotate(5deg);
}

.supplier-info-section {
    flex-grow: 1;
    color: white;
}

.supplier-name {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.supplier-tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 400;
}

.supplier-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 18px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
}

.stat-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Features Card Styles */
.supplier-features-card {
    margin-bottom: 30px;
}

.features-title {
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleY(1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-content {
    flex-grow: 1;
}

.feature-content h4 {
    color: var(--dark-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.feature-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact Card Styles */
.supplier-contact-card {
    margin-bottom: 30px;
}

.contact-title {
    color: var(--dark-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item strong {
    display: block;
    color: var(--dark-color);
    font-size: 1.05rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-item p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Responsive Design for Supplier Profile */
@media (max-width: 768px) {
    .supplier-profile-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .supplier-logo {
        width: 100px;
        height: 100px;
    }
    
    .supplier-logo i {
        font-size: 2.5rem;
    }
    
    .supplier-name {
        font-size: 2rem;
    }
    
    .supplier-stats {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Grid */
.products-section {
    background: white;
    border-radius: 12px; /* Reducido de 15px a 12px */
    padding: 15px; /* Igualado al gap del contenedor para mejor alineación */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Reducido shadow */
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px; /* Reducido de 25px a 20px */
}

.products-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.products-count {
    color: #666;
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 0;
    }
}

.product-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px; /* Ajustado */
}

.product-name {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    transition: color 0.3s ease;
}

.product-name:hover {
    color: #ff6348;
}

.product-brand {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
}

.product-price {
    color: #ff6348;
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.product-price::before {
    content: '$';
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 3px;
    opacity: 0.9;
}

/* Original Price */
.original-price {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: line-through;
    margin-left: 8px;
}

.discount-percentage {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.product-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4rem;
}

/* Product Details */
.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}

.delivery-time {
    color: #28a745;
    border-color: #c3e6cb;
    background: #d4edda;
}

.product-weight {
    color: #6c757d;
    border-color: #dee2e6;
    background: #f8f9fa;
}

.product-dimensions {
    color: #17a2b8;
    border-color: #b8daff;
    background: #d1ecf1;
}

.warranty-info {
    color: #ffc107;
    border-color: #ffeaa7;
    background: #fff3cd;
}

.product-details i {
    font-size: 0.7rem;
    opacity: 0.8;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
    min-height: 32px;
}

/* Etiquetas de envío mejoradas */
.free-shipping-tag {
    background: linear-gradient(135deg, #00c851, #007e33);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 200, 81, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.full-shipping-tag {
    background: linear-gradient(135deg, #ff6900, #ff4500);
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(255, 105, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.best-seller-tag {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #333;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.free-shipping-tag i,
.full-shipping-tag i,
.best-seller-tag i {
    font-size: 0.75rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Animaciones para las etiquetas */
.free-shipping-tag:hover,
.full-shipping-tag:hover,
.best-seller-tag:hover {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Etiquetas responsivas */
@media (max-width: 768px) {
    .free-shipping-tag,
    .full-shipping-tag,
    .best-seller-tag {
        font-size: 0.65rem;
        padding: 3px 6px;
        gap: 3px;
    }
    
    .free-shipping-tag i,
    .full-shipping-tag i,
    .best-seller-tag i {
        font-size: 0.7rem;
    }
}

.product-supplier {
    font-size: 0.8rem; /* Ajustado */
    color: #444; /* Ajustado */
    margin-bottom: 8px; /* Ajustado */
}

.product-supplier strong {
    color: var(--dark-color);
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #ff6348, #ff4757);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(255, 99, 72, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 99, 72, 0.5);
    background: linear-gradient(135deg, #ff4757, #ff3742);
}

.add-to-cart-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 3px 12px rgba(255, 99, 72, 0.4);
}

.quantity-input {
    width: 40px; /* Ajustado */
    padding: 5px; /* Ajustado */
    border: 1px solid #ccc; /* Ajustado */
    border-radius: 4px; /* Ajustado */
    text-align: center;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1600px) {
    .catalog-container {
        max-width: 92%;
    }
}

@media (max-width: 1400px) {
    .catalog-container {
        max-width: 95%;
        padding: 0 8px;
    }
    .catalog-sidebar {
        flex: 0 0 200px; /* Reducir aún más en pantallas medianas */
    }
    .search-form {
        gap: 8px;
    }
    .form-group input,
    .form-group select {
        min-width: 120px;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .header-content, .catalog-container {
        padding: 0 8px;
    }
    .catalog-container {
        max-width: 98%;
    }
    .catalog-sidebar {
        flex: 0 0 180px;
    }
}

@media (max-width: 1024px) {
    .catalog-container {
        flex-direction: column;
        gap: 20px;
    }
    .catalog-sidebar {
        width: 100%;
        position: static; /* Desactiva sticky en pantallas más pequeñas */
        margin-bottom: 20px;
    }
    .main-content {
        width: 100%;
    }
    .search-form {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ajuste para más flexibilidad */
        gap: 10px;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Ajuste para más flexibilidad */
        gap: 15px;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ajuste para más flexibilidad */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 15px; /* Reducir padding */
    }
    .hero-content h1 {
        font-size: 1.8rem; /* Reducir tamaño de fuente */
    }
    .hero-content p {
        font-size: 0.85rem; /* Reducir tamaño de fuente */
    }
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .nav-btn {
        flex-grow: 1;
        text-align: center;
        padding: 8px 10px; /* Ajustar padding */
        font-size: 0.85rem; /* Ajustar tamaño de fuente */
    }
    .catalog-sidebar {
        display: none; /* Ocultar la barra lateral en móviles */
    }
    .search-section, .products-section, .category-grid-section {
        padding: 15px;
    }
    .search-title, .products-title, .sidebar-title {
        font-size: 1.2rem; /* Reducir tamaño de fuente */
        margin-bottom: 10px; /* Reducir margen */
    }
    .search-form {
        grid-template-columns: 1fr; /* Una columna en móviles */
        gap: 10px;
    }
    .form-group input, .form-group select, .search-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: 1fr; /* Una columna para productos en móviles */
    }
    .product-card {
        padding: 15px;
    }
    .product-name {
        font-size: 1rem; /* Reducir tamaño de fuente */
    }
    .product-price {
        font-size: 1.2rem; /* Reducir tamaño de fuente */
    }
    .product-description {
        font-size: 0.8rem; /* Reducir tamaño de fuente */
    }
    .product-details {
        font-size: 0.75rem; /* Reducir tamaño de fuente */
    }
    .add-to-cart-btn {
        padding: 10px;
        font-size: 0.85rem;
    }
    .quantity-input {
        width: 45px; /* Reducir ancho */
        padding: 5px; /* Reducir padding */
    }
    .category-card-large-img {
        width: 100%; /* Ocupar todo el ancho */
        height: 120px; /* Ajustar altura */
        border-radius: 15px 15px 0 0; /* Bordes redondeados solo arriba */
    }
    .category-card-large-content {
        padding: 15px;
    }
    .category-card-large-title {
        font-size: 1rem; /* Reducir tamaño de fuente */
    }
    .category-card-large-desc {
        font-size: 0.8rem; /* Reducir tamaño de fuente */
    }
}

@media (max-width: 480px) {
    /* Ya cubierto por 768px y ajustes específicos */
}

/* Estilos para Autocompletado */
.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 5px); /* Posiciona debajo del input con un pequeño margen */
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    width: 100%; /* Ajustar al ancho del input */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.autocomplete-suggestions .suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.autocomplete-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.autocomplete-suggestions .suggestion-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
    transform: translateX(2px);
}

.autocomplete-suggestions .suggestion-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.autocomplete-suggestions .suggestion-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.autocomplete-suggestions .no-suggestions,
.autocomplete-suggestions .error-suggestions {
    padding: 12px 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-style: italic;
}

.autocomplete-suggestions .error-suggestions {
    color: var(--danger-color);
}

.autocomplete-suggestions .error-suggestions i {
    color: var(--danger-color);
}

.autocomplete-suggestions .no-suggestions i {
    color: #999;
}

/* Nuevo diseño de imagen de producto inspirado en IMAGEN 1 */
.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Etiquetas dinámicas estilo IMAGEN 1 */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
}

.badge-hot {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    animation: pulse-hot 2s infinite;
}

.badge-sale {
    background: linear-gradient(135deg, #ff6348, #ff4757);
    animation: pulse-sale 2s infinite;
}

.badge-new {
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
    animation: pulse-new 2s infinite;
}

@keyframes pulse-hot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-sale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-new {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.badge-default {
    background: linear-gradient(135deg, #6c757d, #495057);
    border: 1px solid #545b62;
}

/* Certified Badge */
.certified-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #212529;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #e0a800;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
    pointer-events: none;
}

.product-image-container img,
.category-card-large-img img {
    max-width: 100%;
    height: auto;
    display: block; /* Elimina el espacio extra debajo de la imagen */
    object-fit: cover;
    border-radius: 10px;
}

/* Banner Promocional Moderno - Tecnología CSS Grid/Flexbox */
.promo-banner-modern {
    width: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 25%, #34495e 50%, #2c3e50 75%, #1a252f 100%);
    border-radius: 15px;
    margin: 20px 0;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 2px solid #3498db;
    display: block;
    box-sizing: border-box;
}

.promo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    min-height: 210px;
}

.promo-header {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.promo-title {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
}

.promo-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.promo-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.promo-badge.green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.promo-badge.white {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    color: #2c3e50;
}

.promo-badge span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.promo-badge strong {
    font-size: 1.1rem;
    display: block;
}

.promo-badge small {
    font-size: 0.7rem;
}

.promo-subtitle {
    color: #bdc3c7;
    font-size: 1rem;
    margin: 0;
    font-weight: 300;
}

.promo-products {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.promo-product {
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    padding: 15px;
    width: 180px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.promo-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.promo-discount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.promo-icon {
    font-size: 3rem;
    color: #34495e;
    margin: 10px 0;
}

.promo-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.promo-old-price {
    text-decoration: line-through;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.promo-new-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
}

.promo-description {
    color: #2c3e50;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .promo-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .promo-title {
        font-size: 2.5rem;
    }
    
    .promo-badge {
        width: 100px;
        height: 100px;
    }
    
    .promo-products {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .promo-banner-modern {
        min-height: 200px;
        padding: 15px;
    }
    
    .promo-title {
        font-size: 2rem;
    }
    
    .promo-badge {
        width: 80px;
        height: 80px;
    }
    
    .promo-badge span {
        font-size: 0.7rem;
    }
    
    .promo-badge strong {
        font-size: 0.9rem;
    }
    
    .promo-products {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .promo-product {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .promo-banner-modern {
        min-height: 180px;
        margin: 15px 0;
    }
    
    .promo-title {
        font-size: 1.8rem;
    }
    
    .promo-badges {
        gap: 10px;
    }
    
    .promo-badge {
        width: 70px;
        height: 70px;
    }
    
    .promo-badge span {
        font-size: 0.6rem;
    }
    
    .promo-badge strong {
        font-size: 0.8rem;
    }
    
    .promo-product {
        width: 140px;
        padding: 12px;
    }
    
    .promo-icon {
        font-size: 2.5rem;
    }
    
    .promo-new-price {
        font-size: 1.1rem;
    }
}

/* Estilos del banner GLAMDAYS eliminados */

/* Todos los estilos del banner GLAMDAYS han sido completamente eliminados */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .glamdays-content {
        flex-direction: column;
        text-align: center;
    }
    
    .glamdays-header {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .glamdays-title {
        font-size: 2.5rem;
    }
    
    .badge-circle {
        width: 100px;
        height: 100px;
    }
    
    .glamdays-products {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .glamdays-banner {
        min-height: 200px;
    }
    
    .glamdays-title {
        font-size: 2rem;
    }
    
    .badge-circle {
        width: 80px;
        height: 80px;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .badge-text strong {
        font-size: 0.9rem;
    }
    
    .glamdays-products {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .product-item {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .glamdays-banner {
        min-height: 180px;
        margin: 15px 0;
    }
    
    .glamdays-slide {
        padding: 15px;
    }
    
    .glamdays-title {
        font-size: 1.8rem;
    }
    
    .glamdays-badges {
        gap: 10px;
    }
    
    .badge-circle {
        width: 70px;
        height: 70px;
    }
    
    .badge-text {
        font-size: 0.6rem;
    }
    
    .badge-text strong {
        font-size: 0.8rem;
    }
    
    .product-item {
        width: 140px;
        padding: 12px;
    }
    
    .product-icon {
        font-size: 2.5rem;
    }
    
    .new-price {
        font-size: 1.1rem;
    }
}

.banner-sidebar {
    width: 100%;
    height: 250px;
    margin: 20px 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 2px solid #2980b9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-sidebar:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    border-color: #1f618d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}



.banner-intermedio {
    width: 100%;
    height: 90px;
    margin: 30px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-intermedio:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Nuevos estilos para product-card */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.free-shipping-tag,
.best-seller-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.free-shipping-tag i,
.best-seller-tag i {
    font-size: 0.8rem;
}

.product-supplier {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.product-supplier strong {
    color: var(--dark-color);
}

/* Estilos modernos para la página de detalles del producto */
.modern-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    gap: 40px;
    background: transparent;
}

.product-image-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.modern-product-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.modern-product-image:hover {
    transform: scale(1.02);
}

.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.product-header {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.modern-product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-condition-badge {
    display: inline-block;
}

.condition-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-buy-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.buy-section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.buy-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-title::before {
    content: "💰";
    font-size: 1.2rem;
}

.sellers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-offer-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    background: #fafbfc;
}

.modern-offer-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.modern-offer-card.best-offer {
    border-color: #ff6b35;
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.best-offer-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.offer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.seller-details {
    flex: 1;
}

.seller-name {
    margin-bottom: 8px;
}

.vendor-label {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    margin-bottom: 4px;
}

.seller-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.seller-link:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

.stock-info i {
    color: #28a745;
}

.price-action-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.currency {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.modern-add-to-cart-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.modern-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b 0%, #e8851a 100%);
}

.modern-add-to-cart-btn:active {
    transform: translateY(0);
}

.no-sellers-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px dashed #dee2e6;
}

.no-sellers-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ffc107;
}

.no-sellers-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* Estilos responsivos para el producto moderno */
@media (max-width: 768px) {
    .modern-product-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .product-image-section,
    .product-header,
    .modern-buy-section {
        padding: 20px;
    }
    
    .modern-product-title {
        font-size: 1.8rem;
    }
    
    .offer-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .price-action-section {
        text-align: center;
        align-items: center;
    }
    
    .modern-add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
    
    .best-offer-badge {
        position: static;
        margin-bottom: 15px;
        align-self: flex-start;
    }
}

/* Estilos para descripción estilo MercadoLibre */
.mercadolibre-description {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e6e6e6;
}

.description-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 16px;
}

.description-content {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.description-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.product-features {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6900;
}

.product-features h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e6e6e6;
    font-size: 15px;
}

.features-list li:last-child {
    border-bottom: none;
}

.product-specs {
    margin: 32px 0;
}

.product-specs h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
}

.spec-label {
    font-weight: 500;
    color: #666;
}

.spec-value {
    color: #333;
    font-weight: 400;
}

/* Estilos para productos similares horizontales */
.similar-products-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e6e6e6;
}

.similar-products-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-btn {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 2;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: #f8f9fa;
    border-color: #ff6900;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn i {
    color: #666;
    font-size: 16px;
}

.carousel-btn:hover i {
    color: #ff6900;
}

.similar-products-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 8px 0;
    flex: 1;
}

.similar-product-card {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.similar-product-card:hover {
    border-color: #ff6900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.similar-product-image {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f9fa;
}

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

.similar-product-info {
    text-align: center;
}

.similar-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff6900;
}

/* Responsivo para productos similares */
@media (max-width: 768px) {
    .similar-products-carousel {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .similar-product-image {
        height: 150px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn i {
        font-size: 14px;
    }
    
    .mercadolibre-description {
        padding: 20px;
        margin: 20px 0;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .similar-products-carousel {
        grid-template-columns: 1fr;
    }
    
    .similar-product-image {
        height: 120px;
    }
    
    .carousel-container {
        gap: 8px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
}

.product-compatibility {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.product-compatibility h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.compatibility-list {
    list-style: none;
    padding: 0;
}

.compatibility-list li {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #444;
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 15px;
        margin: 15px;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-price {
        font-size: 1.8rem;
    }

    .buy-box,
    .product-compatibility {
        padding: 15px;
    }

    .offer-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .offer-item span {
        font-size: 0.9rem;
    }

    .offer-item .add-to-cart-btn {
        width: 100%;
    }
}

/* Estilos para paginación */
.pagination-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    display: flex;
    gap: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-item {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-item:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
}

.page-item:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 5px;
    }

    .page-item {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Estilos para product-rating */
.product-rating {
    color: #FFD700; /* Color dorado para las estrellas */
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.product-rating .fas.fa-star, .product-rating .far.fa-star {
    margin-right: 2px;
}

/* Estilos para filtros aplicados */
.applied-filters-section {
    background: white;
    border-radius: 15px;
    padding: 15px 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.applied-filters-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
}

.clear-all-filters-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: text-decoration 0.3s ease;
}

.clear-all-filters-btn:hover {
    text-decoration: underline;
}

.applied-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.applied-filter-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.applied-filter-tag strong {
    font-weight: 600;
}

.applied-filter-tag .fa-times-circle {
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.applied-filter-tag .fa-times-circle:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .applied-filters-section {
        padding: 15px;
    }

    .applied-filters-title {
        font-size: 1rem;
    }

    .clear-all-filters-btn {
        font-size: 0.8rem;
    }

    .applied-filter-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* Estilos para visualización de stock */
.product-stock {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-color: #28a745;
}

.stock-bajo {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-color: #ffc107;
}

.stock-agotado {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-color: #dc3545;
    font-weight: 700;
}

/* Estilos para categorías de producto */
.product-category {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    text-transform: capitalize;
    display: inline-block;
    margin-bottom: 4px;
}
/* Estilos para las tarjetas de pedido rediseñadas */
.order-card {
    /* Hereda de dashboard-card: background, border-radius, box-shadow, transition */
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0;
}

.order-status {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    /* Colores de fondo y texto definidos por Bootstrap bg-* y text-* */
}

.order-details p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
}

.order-details p strong {
    color: var(--dark-color);
}

.order-items {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.order-items h6 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.order-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.order-items ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.order-footer {
    margin-top: auto; /* Empuja el footer hacia abajo */
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-actions .btn {
    margin-left: 10px; /* Espacio entre botones */
}

/* Estilos para la sección de bienvenida en mis-pedidos.php */
.welcome-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto; /* Centrar y añadir margen */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 1200px; /* Limitar ancho como el header */
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.welcome-section .lead {
    font-size: 1.1rem;
    color: #666;
}

/* Estilo para el botón de agregar cuando no hay stock */
.btn-out-of-stock {
    background-color: #6c757d;
    cursor: not-allowed;
}

.btn-out-of-stock:hover {
    background-color: #5a6268;
}

/* --- Alineación de Tarjeta de Producto --- */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0;
    justify-content: space-between;
}

.product-card-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Ajustes para que los filtros quepan en una línea */
.search-form .form-group {
    flex: 1 1 auto; /* Permite que los elementos se encojan y crezcan según el espacio */
}

.search-form .search-btn {
    flex-shrink: 0; /* Evita que el botón de búsqueda se encoja */
}

/* Responsive styles for new sidebar design */
@media (max-width: 768px) {
    .filters-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .clear-all-btn {
        align-self: flex-end;
    }
    
    .filter-item {
        padding: 10px;
    }
    
    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .categories-section {
        margin-bottom: 20px;
    }
    
    .vehicle-section {
        margin-top: 20px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .filters-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .filter-item {
        padding: 8px;
    }
    
    .category-list-item {
        padding: 10px 6px;
        font-size: 0.9rem;
    }
    
    .checkbox-item {
        font-size: 0.9rem;
    }
}