/* ================================================
   STORE.CSS - Store, Products, Cart & Checkout
   ================================================ */

/* Product Grid & Cards */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 90%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
}

.product-card {
    width: calc(25% - 1.2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--apald-darkpurple);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    padding: 1rem;
    transition: all 0.25s ease;
    min-height: 380px;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--apald-cyan);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.product-image {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 1.25rem;
    margin: 0.4rem 0;
    color: var(--apald-honeydew);
    line-height: 1.3;
}

.product-price {
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--apald-cyan);
    margin: 0.5rem 0;
}

.product-button {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.product-button.add-to-cart {
    background: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    color: white;
}

.product-button.buy-now {
    background: linear-gradient(var(--apald-cyan), var(--apald-darkpurple));
    color: white;
}

.product-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Cart Page */
#cart-table {
    width: 90%;
    max-width: 1100px;
    margin: 2rem auto;
    background: rgba(0,0,0,0.35);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

#cart-table th {
    background: rgba(0,0,0,0.6);
    padding: 1rem;
    text-align: left;
}

#cart-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--apald-cyan);
    text-align: right;
    padding: 1.5rem;
}

/* Checkout Form */
.checkout-form {
    background: rgba(0,0,0,0.35);
    border: 1px solid var(--apald-darkpurple);
    border-radius: 12px;
    padding: 2rem;
    max-width: 650px;
    margin: 2rem auto;
}

.checkout-form label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-weight: 600;
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 0.9rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
}

/* Filters */
.store-filters {
    text-align: center;
    margin: 1.5rem auto;
    width: 90%;
    max-width: 1100px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-card {
        width: calc(50% - 1rem);
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 90%;
        min-height: auto;
    }
    
    #cart-table {
        width: 95%;
        font-size: 0.95rem;
    }
    
    .checkout-form {
        width: 95%;
        padding: 1.5rem;
    }
}