/* Hereda estilos base de style.css, aquí solo específicos de tienda */

.store-section {
    position: relative;
    background-color: #050509;
    min-height: 100vh;
    padding-top: 140px; 
    padding-bottom: 5rem;
}

/* CORRECCIÓN MENÚ: Asegura que el subrayado se posicione relativo al enlace */
.nav-link {
    position: relative;
}

/* Ajustes Navbar para Tienda - Alineación */
.navbar-container {
    display: flex;
    align-items: center;
}

/* CART DROPDOWN */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 93, 229, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    margin-top: 10px;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(20, 20, 35, 0.95);
    border-left: 1px solid rgba(155, 93, 229, 0.3);
    border-top: 1px solid rgba(155, 93, 229, 0.3);
    transform: rotate(45deg);
    z-index: -1;
}

.cart-items-container {
    max-height: 350px;
    overflow-y: auto;
}

.cart-items-container::-webkit-scrollbar {
    width: 4px;
}
.cart-items-container::-webkit-scrollbar-thumb {
    background: #9b5de5;
    border-radius: 4px;
}

/* --- Estilos de Productos (Listado) --- */
.store-header {
    margin-bottom: 3rem;
    text-align: center;
}

.shop-filters {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(155, 93, 229, 0.2);
    color: white;
    border-color: #9b5de5;
    box-shadow: 0 0 10px rgba(155, 93, 229, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(155, 93, 229, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(155, 93, 229, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(155, 93, 229, 0.2);
}

.product-image-container {
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-placeholder-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.2);
}

.product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00f5d4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-title {
    font-family: 'Olive', sans-serif;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-excerpt {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 10px rgba(155, 93, 229, 0.3);
}

/* Botón Añadir al carrito (Tarjeta) */
.btn-add-cart {
    background: linear-gradient(135deg, #9b5de5, #5f2ebb);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.3);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.5);
    filter: brightness(1.1);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Botón Finalizar Compra (Dropdown) */
.btn-checkout-dropdown {
    display: block; 
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #9b5de5, #7047D2);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(155, 93, 229, 0.2);
}

.btn-checkout-dropdown:hover {
    background: linear-gradient(90deg, #8a4dd0, #5f2ebb);
    box-shadow: 0 6px 20px rgba(155, 93, 229, 0.4);
    transform: translateY(-1px);
    color: white;
}

/* --- VISTA DE DETALLE DE PRODUCTO --- */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.detail-image-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    backdrop-filter: blur(10px);
}

.detail-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.detail-content h1 {
    font-family: 'Olive', sans-serif;
    line-height: 1.1;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00f5d4;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
    margin: 1.5rem 0;
    display: block;
}

.detail-description {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.detail-meta {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.detail-btn-add {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    justify-content: center;
}

/* Responsive Detalle */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-image-wrapper {
        aspect-ratio: 4/3;
    }
}