/* ============================================
   ESTILOS ESPECÍFICOS DE LA TIENDA
   ============================================ */

/* Shop Header */
.shop-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
}

.shop-header h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #9b59b6, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 700;
}

.shop-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Filters */
.shop-filters {
    padding: 2rem 0;
    background: #0f1419;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid rgba(155, 89, 182, 0.3);
    background: transparent;
    color: rgba(155, 89, 182, 0.9);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-color: #9b59b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

/* Products Grid */
.shop-products {
    padding: 4rem 0;
    background: #1a1a2e;
    min-height: 60vh;
}

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

/* Product Card */
.product-card {
    background: #252542;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(155, 89, 182, 0.3);
    border-color: rgba(155, 89, 182, 0.4);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2d2d4a 0%, #3a3a5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.product-image .image-placeholder {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .image-placeholder i {
    font-size: 5rem;
    color: rgba(155, 89, 182, 0.5);
    transition: all 0.3s ease;
}

.product-card:hover .image-placeholder i {
    transform: scale(1.1);
    color: rgba(155, 89, 182, 0.8);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26, 26, 46, 0.95);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.4;
}

.product-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex-grow: 1;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-top: auto;
}

/* Product Sizes */
.product-sizes {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
    flex-wrap: wrap;
}

.product-sizes span {
    min-width: 32px;
    height: 32px;
    border: 2px solid rgba(155, 89, 182, 0.3);
    background: transparent;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
}

.product-sizes span:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.6);
    color: white;
    transform: scale(1.05);
}

/* Add to Cart Button */
.add-to-cart {
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart:not([disabled]):hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-to-cart i {
    font-size: 1rem;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    color: #9b59b6;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1a2e;
    z-index: 2000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: #9b59b6;
}

.close-cart {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.close-cart:hover {
    color: #e91e63;
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #252542;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9b59b6;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.cart-item-price {
    color: #9b59b6;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: #9b59b6;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #8e44ad;
}

.remove-item {
    background: #e91e63;
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #c2185b;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.cart-total span:last-child {
    color: #9b59b6;
}

.btn-checkout {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #9b59b6, #e91e63);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-checkout:not([disabled]):hover {
    background: linear-gradient(135deg, #8e44ad, #c2185b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.4);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Loading Spinner */
@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

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

@media (max-width: 768px) {
    .shop-header h1 {
        font-size: 2.5rem;
    }

    .shop-header {
        padding: 6rem 0 3rem;
    }

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

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

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

    .shop-header h1 {
        font-size: 2rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-sizes {
        padding: 0 1.25rem 1rem;
    }
    
    .add-to-cart {
        width: calc(100% - 2.5rem);
        margin: 0 1.25rem 1.25rem;
    }
}
