/* Estilos específicos para la tienda */

/* Estados activos en navegación */

/* Botón del carrito */
.cart-btn {
    position: relative;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cart-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.cart-count.hidden {
    display: none;
}

/* Carrito lateral */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100dvh;
    background: var(--secondary-color);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    transition: var(--transition);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--secondary-color);
    background: var(--secondary-color);
}

.cart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(0,0,0,0.1);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cart-empty small {
    font-size: 0.9rem;
}

/* Items del carrito */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--secondary-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.remove-item-btn {
    background: var(--error-color);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: #c82333;
}

/* Footer del carrito */
.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--secondary-color);
    background: var(--secondary-color);
}

.cart-totals {
    margin-bottom: 15px;
}

.cart-subtotal,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cart-subtotal {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-total {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding-top: 8px;
    border-top: 1px solid #dee2e6;
}

.btn-checkout {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-checkout:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Overlay del carrito */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Breadcrumbs */
.breadcrumbs {
    background: var(--primary-color);
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-primary);
    margin: 0 8px;
}

/* Cabecera de tienda */
.store-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.store-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.store-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Proceso de compra */
.purchase-process {
    max-width: auto;
    margin: 0 auto;
}

.purchase-process h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: white;
    color: var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Categorías de productos */
.product-categories {
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 20px;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
}

.category-content {
    flex: 1;
}

.category-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.category-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.category-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-tag {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-arrow {
    color: var(--text-primary);
    font-size: 20px;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* Grid de productos */
.products-section {
    padding: 40px 0;
}

.products-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-title {
    flex: 1;
}

.products-title h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.products-title p {
    color: var(--text-secondary);
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: black;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 25px;
}

/* Tarjeta de producto */
.product-card {
    background: var(--bg-hover);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--secondary-color);
}

.product-image {
    width: 100%;
    height: 300px;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
}

.product-title:hover {
    color: var(--text-secondary);
}

.product-sub {
    font-size: 0.7rem;
    font-weight: 300;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
}

.product-sub:hover {
    color: var(--text-secondary);
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.btn-buy-now-a {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px
}
        
.btn-buy-now-a:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: var(--bg-dark);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    .store-header h1 {
        font-size: 2rem;
    }

    .store-header p {
        font-size: 1rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-image {
        height: 255px; /* o menos si se ve muy alto */
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 90%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height:210px; /* o menos si se ve muy alto */
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Estados de carga para productos */
.product-loading {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.product-loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animaciones de carrito */
.cart-item-enter {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-remove {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Efectos de pulso para el botón del carrito */
.cart-btn.pulse {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
        /* Estilos específicos para página de producto individual */
        .product-detail {
            background: var( --bg-dark);
            padding: 40px 0;
        }
        
        .product-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
        }
        
        .product-image-main {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .product-image-main img {
            width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }
        
        .product-details {
            max-width: 500px;
        }
        
        .product-name {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 20px;
            color: var(--text-primary);
            line-height: 1.3;
        }
        
        .product-features {
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
        }
        
        .product-features h4 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-primary);
        }
        
        .features-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .features-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
            color: var(--text-secondary);
        }
        
        .features-list li:last-child {
            margin-bottom: 0;
        }
        
        .features-list i {
            color: var(--success-color);
            font-size: 14px;
            width: 16px;
        }
        
        .product-price-main {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 25px;
        }
        
        .product-actions {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .btn-buy-now {
            background: #25d366;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 1.1rem;
        }
        
        .btn-buy-now:hover {
            background: #128c7e;
            transform: translateY(-2px);
        }

        .btn-add-to-cart-main {
            background: var(--secondary-color);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-size: 1.1rem;
        }
        
        .btn-add-to-cart-main:hover {
            background: rgba(11, 98, 106, 0.8);
            transform: translateY(-2px);
        }
        
        .product-description {
            padding: 40px 0;
            background: var(--bg-dark);
        }
        
        .description-content {
            max-width: 1000px;
            margin: 0 auto;
        }
        
        .description-section {
            margin-bottom: 30px;
        }
        
        .description-section h3 {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 15px;
            color: var(--text-primary);
        }
        
        .description-section p {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 15px;
        }
        
        .description-section ul {
            color: var(--text-secondary);
            line-height: 1.7;
            padding-left: 20px;
        }
        
        .requirements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }
        
        .requirement-item {
            background: var(--bg-card);
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            padding: 20px;
            border-radius: 10px;
            border-left: 4px solid var(--primary-color);
        }
        
        .requirement-item h4 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--text-primary);
        }
        
        .requirement-item p {
            margin: 0;
            font-size: 0.95rem;
            color: var(--text-secondary);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .product-layout {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .product-name {
                font-size: 1.6rem;
            }
            
            .product-price-main {
                font-size: 2rem;
            }
            
            .requirements-grid {
                grid-template-columns: 1fr;
            }
        }



 