/* ============================================================
   LUMANI eCOMMERCE — SHOP STYLES
   Inherits CSS custom properties from the parent site theme.
   Mobile-first. Generous whitespace. Subtle animations.
   ============================================================ */

:root {
    --shop-bg: var(--bg, #0e0e0e);
    --shop-text: var(--cream, #f5f0e8);
    --shop-text-light: var(--text-muted, #9a958e);
    --shop-accent: var(--accent, #74866c);
    --shop-border: var(--border, rgba(116,134,108,.15));
    --shop-success: #28a745;
    --shop-error: #dc3545;
    --shop-warning: #ffc107;
    --shop-radius: 2px;
    --shop-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shop-font: var(--sans, 'Outfit', system-ui, sans-serif);
}

/* ── Product Grid ────────────────────────────────────── */

.shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
}

@media (min-width: 480px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
    .shop-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Product Card ────────────────────────────────────── */

.product-card {
    position: relative;
    background: var(--bg-card, #1a1a1a);
    border: 1px solid var(--border, rgba(116,134,108,.15));
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition), background var(--shop-transition), border-color var(--shop-transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover, #1f1f1f);
    border-color: var(--border-light, rgba(116,134,108,.25));
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #111;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--shop-transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.badge-sale {
    background: var(--shop-error);
    color: #fff;
}

.badge-out {
    background: rgba(0,0,0,0.6);
    color: #fff;
}

.product-card-body {
    padding: 16px;
}

.product-card-name {
    font-family: var(--serif, 'Cormorant Garamond', Georgia, serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 8px;
    line-height: 1.4;
    color: var(--cream, #f5f0e8);
}

.product-card-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-light, #8fa688);
}

.product-card-price .original {
    text-decoration: line-through;
    color: var(--shop-text-light);
    font-weight: 500;
    font-size: 14px;
    margin-right: 6px;
}

.product-card-price .sale {
    color: var(--shop-error);
}

.product-card-quick-add {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    padding: 10px 24px;
    background: var(--shop-accent);
    color: #fff;
    border: none;
    border-radius: var(--shop-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--shop-transition);
    white-space: nowrap;
    font-family: var(--shop-font);
}

.product-card:hover .product-card-quick-add {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Filter Bar ──────────────────────────────────────── */

.shop-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--shop-border);
    flex-wrap: wrap;
}

.shop-filters select,
.shop-filters input {
    padding: 10px 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    font-size: 14px;
    font-family: var(--shop-font);
    background: var(--bg-card, #1a1a1a);
    color: var(--shop-text);
    transition: border-color var(--shop-transition);
}

.shop-filters select:focus,
.shop-filters input:focus {
    outline: none;
    border-color: var(--shop-accent);
}

.shop-filter-count {
    margin-left: auto;
    font-size: 14px;
    color: var(--shop-text-light);
    font-weight: 500;
}

/* ── Category Navigation ─────────────────────────────── */

.category-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.category-nav a {
    padding: 8px 20px;
    border: 1px solid var(--shop-border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--shop-text);
    transition: all var(--shop-transition);
    white-space: nowrap;
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--shop-accent);
    color: #fff;
    border-color: var(--shop-accent);
}

/* ── Pagination ──────────────────────────────────────── */

.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--shop-border);
}

.shop-pagination a,
.shop-pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    text-decoration: none;
    color: var(--shop-text);
    font-size: 14px;
    transition: all var(--shop-transition);
}

.shop-pagination a:hover {
    background: var(--shop-accent);
    color: #fff;
    border-color: var(--shop-accent);
}

.shop-pagination .active {
    background: var(--shop-accent);
    color: #fff;
    border-color: var(--shop-accent);
}

/* ── Empty / Loading States ──────────────────────────── */

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--shop-text-light);
}

.shop-empty h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: 8px;
}

/* ── Reveal Animations ───────────────────────────────── */

.shop-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.shop-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
