/* Shop - Dark Theme */
#products { padding: 4rem 0; }

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

.product-card {
    background: var(--bg-card, #1e293b);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border, #334155);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary, #0ea5e9);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-elevated, #334155);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-card .price { font-weight: 700; color: var(--primary, #0ea5e9); margin-bottom: 1rem; }
.product-card a { text-decoration: none; color: inherit; display: block; }

.add-to-cart-form { margin-top: 0.5rem; }

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--primary, #0ea5e9) 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(14, 165, 233, 0.5);
}

/* Product detail */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) { .product-detail-grid { grid-template-columns: 1fr; } }

.product-image img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-card, #1e293b);
}

.product-info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary, #0ea5e9);
    margin: 1rem 0;
}

.product-info .description {
    margin-bottom: 1.5rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.6;
}

.product-info .description.campaign {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    color: #fcd34d;
}

.product-info .description.campaign strong { color: #fbbf24; }

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border, #334155);
    text-align: left;
}

.cart-table img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    background: var(--bg-elevated, #334155);
    border-radius: 10px;
}

.cart-summary {
    max-width: 400px;
    margin-left: auto;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card, #1e293b);
    border-radius: 12px;
    border: 1px solid var(--border, #334155);
}

.cart-summary .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cart-summary .total {
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #334155);
}

.qty-input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    background: var(--bg-elevated, #334155);
    border: 1px solid var(--border, #334155);
    border-radius: 8px;
    color: inherit;
}

.btn-remove {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-update {
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-elevated, #334155);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-update:hover {
    background: var(--border, #475569);
}

/* Checkout */
.checkout-form { max-width: 600px; }

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .checkout-form .form-row { grid-template-columns: 1fr; }
}

/* Order result */
.order-result {
    text-align: center;
    padding: 4rem 2rem;
}

.order-result.success h2 { color: #22c55e; }
.order-result.failed h2 { color: #ef4444; }
