/* CSS Especializado para la Tienda de VVT Vision - Cyberpunk Edition */

/* 1. HERO SECTION */
.store-hero {
    position: relative;
    padding: 140px 0 60px;
    background: #000;
    text-align: center;
    overflow: hidden;
}

.store-hero .cyber-grid-bg { opacity: 0.5; }

.store-hero .container {
    position: relative;
    z-index: 2;
}

.store-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.store-hero p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}

/* 2. FILTER & SEARCH BAR */
.store-controls-wrapper {
    margin-bottom: 3rem;
}

.store-controls {
    background: rgba(5, 13, 26, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(16px);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.search-box-container {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.search-box-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-box-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: rgba(5, 13, 26, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 4px;
    color: #f1f5f9;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.search-box-container input::placeholder {
    color: #475569;
}

.search-box-container input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

.search-box-container input:focus ~ i,
.search-box-container:focus-within i {
    color: #06b6d4;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #64748b;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-tab:hover {
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
}

.filter-tab.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-box label {
    font-size: 0.8rem;
    color: #475569;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sort-box select {
    background: rgba(5, 13, 26, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.12);
    color: #f1f5f9;
    padding: 0.55rem 1rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-box select:focus {
    outline: none;
    border-color: #06b6d4;
}

/* 3. PRODUCT GRID & CARD */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 5rem;
}

.product-card {
    background: rgba(5, 13, 26, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.1);
}

.product-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 10;
    background: rgba(5, 13, 26, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.product-img-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: rgba(5, 13, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 1.5rem;
    filter: brightness(0.95);
}

.product-card:hover .product-img {
    transform: scale(1.07);
    filter: brightness(1.1);
}

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

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(6, 182, 212, 0.08);
    padding-top: 1rem;
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price-label {
    font-size: 0.7rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.product-price .price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #06b6d4;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    font-family: 'Courier New', monospace;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon.btn-details {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #64748b;
}

.btn-icon.btn-details:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
}

.btn-icon.btn-add-cart {
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #06b6d4;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.btn-icon.btn-add-cart:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: #06b6d4;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
    transform: scale(1.06);
}

/* 4. SLIDING CART DRAWER */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100%;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(6, 182, 212, 0.2);
    z-index: 10001;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

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

.cart-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.cart-header h2 i {
    color: #06b6d4;
}

.cart-close-btn {
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty Cart State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #475569;
    padding: 2rem;
}

.cart-empty-state i {
    font-size: 3.5rem;
    color: rgba(6, 182, 212, 0.3);
    margin-bottom: 1.5rem;
}

.cart-empty-state p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Cart Item Row */
.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(5, 13, 26, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    padding: 1rem;
    align-items: center;
    position: relative;
    transition: border-color 0.3s ease;
}

.cart-item:hover {
    border-color: rgba(6, 182, 212, 0.25);
}

.cart-item-img-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(5, 13, 26, 0.8);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #06b6d4;
    font-family: 'Courier New', monospace;
}

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

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #06b6d4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: #06b6d4;
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
    color: #f1f5f9;
    font-family: 'Courier New', monospace;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    align-self: center;
}

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

/* Cart Footer */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(6, 182, 212, 0.15);
    background: rgba(5, 13, 26, 0.9);
}

.cart-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-totals-row span:first-child {
    font-size: 0.8rem;
    color: #475569;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cart-totals-row .cart-total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #06b6d4;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    font-family: 'Courier New', monospace;
}

.cart-checkout-btn {
    width: 100%;
    padding: 0.95rem;
    background: transparent;
    border: 1px solid #06b6d4;
    color: #06b6d4;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.cart-checkout-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 182, 212, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.cart-checkout-btn:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.cart-checkout-btn:hover::before {
    transform: scaleX(1);
}

/* 5. FLOATING CART BUTTON */
.floating-cart-trigger {
    position: fixed;
    bottom: 32px;
    right: 110px;
    width: 58px;
    height: 58px;
    border-radius: 4px;
    background: rgba(5, 13, 26, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #06b6d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-cart-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.1);
}

.floating-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #06b6d4;
    color: #000;
    font-size: 0.7rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
    font-family: 'Courier New', monospace;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.pop-animation {
    animation: pop 0.3s ease-out;
}

/* 6. PRODUCT DETAIL MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.product-modal {
    background: rgba(5, 13, 26, 0.98);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 4px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.15), 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .product-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: #64748b;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: #06b6d4;
    color: #06b6d4;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 480px;
}

.modal-left {
    background: rgba(5, 13, 26, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-right: 1px solid rgba(6, 182, 212, 0.1);
}

.modal-left img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.modal-right {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.modal-category {
    color: #06b6d4;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.modal-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
}

.modal-features-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #06b6d4;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.modal-features li {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: start;
    gap: 0.6rem;
    font-family: 'Courier New', monospace;
}

.modal-features li i {
    color: #06b6d4;
    margin-top: 3px;
    font-size: 0.8rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding-top: 1.5rem;
    margin-top: auto;
}

.modal-price-box {
    display: flex;
    flex-direction: column;
}

.modal-price-box .price-label {
    font-size: 0.7rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

.modal-price-box .price-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #06b6d4;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    font-family: 'Courier New', monospace;
}

.btn-modal-add {
    background: transparent;
    border: 1px solid #06b6d4;
    color: #06b6d4;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
    position: relative;
    overflow: hidden;
}

.btn-modal-add::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 182, 212, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-modal-add:hover {
    color: #fff;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.btn-modal-add:hover::before {
    transform: scaleX(1);
}

/* 7. RESPONSIVE */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    .modal-left {
        border-right: none;
        border-bottom: 1px solid rgba(6, 182, 212, 0.1);
        padding: 2rem;
    }
    .modal-right {
        padding: 2rem;
    }
    .store-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-tabs {
        justify-content: center;
    }
    .floating-cart-trigger {
        right: 24px;
        bottom: 24px;
    }
}
