/* LoRELEI - Products Page Styles */

/* Page Layout */
.products-page {
    padding-top: 80px;
    min-height: 100vh;
}

/* Hero */
.products-hero {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-secondary) 100%);
}

.products-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.products-hero .hero-tagline {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg) var(--space-3xl);
}

/* Product Card */
.product-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.product-card:hover {
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Product Image */
.product-image {
    position: relative;
    height: 220px;
    background: var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-dim);
}

.product-image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

.product-image-placeholder span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Badge */
.product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--color-accent);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product Body */
.product-body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.product-tagline {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.product-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

/* Specs Table */
.product-specs {
    margin-bottom: var(--space-xl);
    flex: 1;
}

.product-specs dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
}

.product-specs dt {
    color: var(--color-text-dim);
    font-weight: 500;
    white-space: nowrap;
}

.product-specs dd {
    color: var(--color-text-muted);
    text-align: right;
}

/* Price + Button */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.product-price .currency {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    vertical-align: super;
    margin-right: 2px;
}

.buy-now-btn {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 0.95rem;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.buy-now-btn:hover {
    background: var(--color-accent-hover);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.buy-now-btn.disabled {
    background: var(--color-bg-tertiary);
    color: var(--color-text-dim);
    cursor: default;
    pointer-events: none;
    box-shadow: none;
    transform: none;
}

/* Info Section */
.products-info {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-3xl) var(--space-lg);
}

.products-info .container {
    max-width: 900px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.info-item h3 {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.info-item p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .products-hero h1 {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md) var(--space-2xl);
    }

    .product-image {
        height: 180px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .buy-now-btn {
        text-align: center;
    }
}
