/* Botiga Page Styles */

.shop-container {
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Shop Hero */
.shop-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.shop-hero h1 {
    font-family: var(--fuente-titulos);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin: 1rem 0;
    letter-spacing: -0.02em;
    color: var(--negro);
}

.shop-hero p {
    font-size: 1.2rem;
    color: var(--negro);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.shop-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 100px;
    border: 1px solid var(--borde);
    background: var(--blanco-trans);
    backdrop-filter: blur(10px);
    color: var(--negro);
    font-family: var(--fuente-titulos);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
    border-color: var(--color-principal);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-principal);
    border-color: var(--color-principal);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(27, 16, 185, 0.2);
}

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

/* Product Card */
.product-card {
    background: var(--blanco-trans);
    backdrop-filter: blur(10px);
    border: 1px solid var(--borde);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-principal-light);
    box-shadow: 0 20px 40px var(--sombra);
}

.product-card.hidden {
    display: none;
}

.product-image {
    width: 100%;
    height: 280px;
    position: relative;
    border-bottom: 1px solid var(--borde);
}

.product-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-principal);
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-family: var(--fuente-titulos);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--negro);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--negro);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-principal);
}

.btn-add-cart {
    background: var(--negro);
    color: var(--blanco);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: var(--fuente-titulos);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: var(--color-principal);
    transform: scale(1.05);
}

/* Cart Panel Expansion */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100vw;
    height: 100vh;
    background: var(--blanco);
    border-left: 1px solid var(--borde);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel[hidden] {
    display: flex !important;
    transform: translateX(100%);
    pointer-events: none;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header-panel {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--borde);
}

.cart-header-panel h2 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--negro);
}

.close-cart {
    background: var(--fons-gris);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.close-cart:hover {
    background: var(--borde);
    transform: rotate(90deg);
}

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

.empty-cart {
    text-align: center;
    margin-top: 4rem;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--borde);
}

.cart-item-info h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-principal);
}

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

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--borde);
    background: var(--blanco);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    border-color: var(--negro);
    background: var(--fons-gris);
}

.qty-value {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    opacity: 0.3;
    transition: opacity 0.3s;
    font-size: 1.2rem;
}

.remove-item:hover {
    opacity: 1;
}

.cart-footer-panel {
    padding: 2rem;
    background: var(--fons-gris);
    border-top: 1px solid var(--borde);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-family: var(--fuente-titulos);
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-checkout {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-principal);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-family: var(--fuente-titulos);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(27, 16, 185, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(27, 16, 185, 0.4);
}

/* Dark Mode Overrides */
[data-theme="dark"] .cart-panel {
    background: #1a1a1a;
}

[data-theme="dark"] .qty-btn {
    background: #333;
    border-color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-container {
        padding-top: 100px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
    }
}