/* ===== TIENDA DEKI - STORE STYLES ===== */

/* Cart Sidebar */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999; opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed; top: 0; right: -420px;
    width: 400px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 1000;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
}
.cart-sidebar.active { right: 0; }

.cart-header {
    padding: 1.5rem; border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.25rem; color: #2C3E50; }

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

.cart-item {
    display: flex; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6; align-items: center;
}
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 0.75rem; }

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-weight: 600; font-size: 0.9rem; color: #1f2937; margin-bottom: 0.25rem; }
.cart-item-info .cart-item-price { color: #10B981; font-weight: 700; font-size: 0.95rem; }

.cart-item-qty {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.5rem;
}
.cart-item-qty button {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid #d1d5db; background: #f9fafb;
    cursor: pointer; font-size: 1rem; color: #374151;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.cart-item-qty button:hover { background: #10B981; color: #fff; border-color: #10B981; }
.cart-item-qty span { font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
    background: none; border: none; color: #ef4444;
    cursor: pointer; font-size: 1.1rem; padding: 0.5rem;
    transition: transform 0.2s;
}
.cart-item-remove:hover { transform: scale(1.2); }

.cart-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
.cart-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; }

.cart-footer {
    padding: 1.5rem; border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.cart-total {
    display: flex; justify-content: space-between;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1.2rem; color: #2C3E50; margin-bottom: 1rem;
}
.cart-total span:last-child { color: #10B981; }

.btn-checkout {
    display: block; width: 100%; padding: 1rem;
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff; border: none; border-radius: 9999px;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1.05rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(16,185,129,0.4);
    transition: all 0.3s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.5); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.product-card {
    background: #fff; border-radius: 1.25rem; overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.product-card .product-img {
    height: 220px; overflow: hidden; position: relative;
}
.product-card .product-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.product-card:hover .product-img img { transform: scale(1.08); }

.product-card .product-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: #2C3E50; color: #fff;
    padding: 0.25rem 0.75rem; border-radius: 9999px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card .product-body {
    padding: 1.5rem; flex: 1;
    display: flex; flex-direction: column;
}
.product-card .product-category {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: #10B981; font-weight: 700; margin-bottom: 0.5rem;
}
.product-card .product-name {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1.15rem; color: #1f2937; margin-bottom: 0.5rem;
}
.product-card .product-desc {
    color: #6b7280; font-size: 0.9rem; line-height: 1.5;
    margin-bottom: 1rem; flex: 1;
}
.product-card .product-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto;
}
.product-card .product-price {
    font-family: 'Montserrat', sans-serif; font-weight: 800;
    font-size: 1.3rem; color: #2C3E50;
}
.product-card .product-price small { font-size: 0.75rem; color: #9ca3af; font-weight: 400; }

.btn-add-cart {
    background: linear-gradient(135deg, #10B981, #059669); color: #fff;
    border: none; padding: 0.7rem 1.2rem; border-radius: 9999px;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: all 0.3s; display: flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-add-cart:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(16,185,129,0.4); }
.btn-add-cart.added { background: #2C3E50; }

/* Filters */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    justify-content: center; margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.6rem 1.5rem; border-radius: 9999px;
    border: 2px solid #e5e7eb; background: #fff;
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    font-size: 0.85rem; color: #6b7280; cursor: pointer;
    transition: all 0.3s;
}
.filter-btn:hover { border-color: #10B981; color: #10B981; }
.filter-btn.active { background: #10B981; color: #fff; border-color: #10B981; }

/* Floating Cart Button (for all pages) */
.floating-cart {
    position: fixed; bottom: 6rem; right: 1.5rem;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #2C3E50, #1a252f);
    color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(44,62,80,0.4);
    z-index: 998; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; transition: all 0.3s;
}
.floating-cart:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(44,62,80,0.5); }
.floating-cart .cart-count {
    position: absolute; top: -4px; right: -4px;
    background: #ef4444; color: #fff; font-size: 0.7rem;
    font-weight: 700; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; border: 2px solid #fff;
}
.floating-cart .cart-count:empty { display: none; }

/* Toast notification */
.toast-notification {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    background: #1f2937; color: #fff; padding: 0.8rem 1.5rem;
    border-radius: 0.75rem; font-size: 0.9rem; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 9999;
    opacity: 0; transition: all 0.4s cubic-bezier(.4,0,.2,1);
    display: flex; align-items: center; gap: 0.5rem;
}
.toast-notification.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-notification i { color: #10B981; }

/* Animations */
@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.cart-pulse { animation: cartPulse 0.4s ease; }
