
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #6B46C1 0%, #d8baff 100%);
    overflow-x: hidden;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 80px;
    width: auto;
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 100%;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #22D3EE;
    letter-spacing: -1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    background: rgba(34, 211, 238, 0.2);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke: #E0E7FF;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #EC4899;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 0.3s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 60vh;
    overflow: hidden;
    margin-top: 80px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 70, 193, 0);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.slide-content h1 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease-out;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.3s both;
}

.slide-content .cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(34, 211, 238, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(34, 211, 238, 0.4);
    animation: slideInUp 1s ease-out 0.6s both;
}

.slide-content .cta-button:hover {
    background: rgba(34, 211, 238, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #22D3EE;
    transform: scale(1.2);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 3;
}

.carousel-arrows:hover {
    background: rgba(34, 211, 238, 0.3);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Products Section */
.featured-products {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    position: relative;
}

.featured-products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #00d7ff 0%, #a700d1 100%);
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1E1B4B;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* ===============================================
   SECCIÓN DE CATEGORÍA - ACTUALIZADA 
   =============================================== */
.category-section {
    width: 100%;
    min-height: auto; /* Quitar altura fija */
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header de categoría */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.category-title {
    font-size: 2rem;
    color: #1E1B4B;
    margin-bottom: 0;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    border-radius: 2px;
}

.view-all-btn {
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.products-carousel {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

/* ===============================================
   TRACK DEL CAROUSEL - ACTUALIZADO
   =============================================== */
.products-track {
    display: flex;
    align-items: stretch; /* Hace que todas las cards tengan la misma altura */
    min-height: 520px; /* Altura mínima del contenedor */
    background-color: #f8fafc;
    padding: 1rem;
}

/* ===============================================
   CARDS DE PRODUCTOS - COMPLETAMENTE ACTUALIZADO
   =============================================== */
.featured-product-card {
    /* Dimensiones fijas */
    min-width: 300px;
    max-width: 300px;
    width: 300px;
    height: 620px;
    
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    margin-right: 2rem;
    
    /* Flexbox para control del contenido */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.6s;
}

.featured-product-card:hover::before {
    left: 100%;
}

.featured-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(107, 70, 193, 0.2);
}

.featured-product-card.exploding {
    animation: explode 0.8s ease-out;
}

@keyframes explode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
        opacity: 0.8;
        box-shadow: 0 0 50px rgba(34, 211, 238, 0.8);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===============================================
   CONTENEDOR DE IMAGEN - ACTUALIZADO
   =============================================== */
.product-image-container {
    width: 100%;
    height: 280px; /* Altura fija para la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    margin-bottom: 1rem;
    flex-shrink: 0; /* No se encoge */
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Badge de categoría */
.product-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===============================================
   CONTENIDO DEL PRODUCTO - ACTUALIZADO
   =============================================== */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Altura mínima para el contenido */
}

.featured-product-card h3 {
    font-size: 1.1rem;
    color: #1E1B4B;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    height: 2.6rem; /* Altura fija para 2 líneas */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.featured-product-card p {
    color: #64748B;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    line-height: 1.4;
    height: 3.4rem; /* Altura fija para descripción */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

/* ===============================================
   SECCIÓN DE PRECIOS - ACTUALIZADA
   =============================================== */
.product-price {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
}

/* Precios normales */
.price-normal {
    font-size: 1.4rem;
    font-weight: bold;
    color: #6B46C1;
}

/* Precios duales para libros */
.book-pricing-dual {
    text-align: center;
    width: 100%;
}

.price-container-dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.price-sale-dual {
    font-size: 1.2rem;
    font-weight: bold;
    color: #059669;
}

.price-original-dual {
    font-size: 1rem;
    color: #dc2626;
    text-decoration: line-through;
    opacity: 0.8;
}

.price-normal-dual {
    font-size: 1.3rem;
    font-weight: bold;
    color: #33502cff;
}

.savings-badge-dual {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 600;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 12px;
    display: inline-block;
    animation: pulse-savings 2s infinite;
}

@keyframes pulse-savings {
    0% { background: rgba(5, 150, 105, 0.1); }
    50% { background: rgba(5, 150, 105, 0.2); }
    100% { background: rgba(5, 150, 105, 0.1); }
}

/* Mejoras para la visualización de precios en tarjetas de producto */
.featured-product-card .book-pricing {
    margin: 0.8rem 0 1.2rem 0;
}

.product-card .book-pricing {
    margin: 0.8rem 0 1.2rem 0;
}

.featured-product-card .price-container,
.product-card .price-container {
    min-height: 2.5rem;
    align-items: center;
}

/* Indicador especial para libros usados */
.used-book-indicator {
    display: inline-block;
    background: linear-gradient(135deg, #FFA500, #FF7F50);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===============================================
   STOCK INFO - ACTUALIZADA
   =============================================== */
.stock-info {
    min-height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-low {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.stock-available {
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.stock-indicator {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ===============================================
   BOTÓN - ACTUALIZADO
   =============================================== */
.featured-product-link {
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto; /* Empuja el botón hacia abajo */
    flex-shrink: 0;
}

.featured-product-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
}

.products-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.products-nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #6B46C1;
    font-size: 1.5rem;
    padding: 15px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.products-nav-btn:hover {
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
}

.products-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.products-nav-btn:first-child {
    left: 10px;
}

.products-nav-btn:last-child {
    right: 10px;
}

/* Regular Products Section */
.products {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #6B46C1 0%, #4338CA 100%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.product-card:hover .product-image::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.2rem;
    color: #1E1B4B;
    margin-bottom: 0.5rem;
    text-align: center;
}

.product-info p {
    color: #64748B;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.product-info .product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #6B46C1;
    margin-bottom: 1rem;
    text-align: center;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #22D3EE, #6B46C1);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: #1E1B4B;
    color: white;
    text-align: center;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #22D3EE;
}

.footer-section a {
    color: #E0E7FF;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #22D3EE;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(107, 70, 193, 0.2);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 70, 193, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    color: white;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cart Items Container - Mejorado */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    border-radius: 3px;
}

/* Cart Item - Completamente rediseñado */
.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.1);
    border-color: #22D3EE;
}

.cart-item:last-child {
    margin-bottom: 0;
}

/* Cart Item Image - Mejorado */
.cart-item-image {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(107, 70, 193, 0.2);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fallback-icon {
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Cart Item Info - Mejorado */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    color: #6B46C1;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.cart-item-subtotal {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #22D3EE;
    color: white;
    border-color: #22D3EE;
}

.quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: #EC4899;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid #eee;
    background: #F8FAFC;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #1E1B4B;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6B46C1, #22D3EE);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 70, 193, 0.4);
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
    color: #64748B;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-arrows {
        display: none;
    }

    .featured-product-card {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        height: 480px;
    }

    .product-image-container {
        height: 160px;
    }
    
    .product-content {
        min-height: 260px;
    }
    
    .featured-product-card h3 {
        font-size: 1rem;
        height: 2.4rem;
    }
    
    .featured-product-card p {
        font-size: 0.8rem;
        height: 3.2rem;
    }

    .category-title {
        font-size: 1.6rem;
    }

    /* Responsive para precios de libros */
    .price-container {
        flex-direction: column;
        gap: 0.3rem;
    }

    .price-sale,
    .price-normal {
        font-size: 1rem;
    }

    .price-original {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-product-card {
        min-width: 260px;
        max-width: 260px;
        width: 260px;
        height: 460px;
    }
    
    .products-track {
        padding: 0.5rem;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}