/* ═══════════════════════════════════════════════════════════════
   LUMINA — Shop Page Styles
   Product grid, filters, cards, floating effects
   ═══════════════════════════════════════════════════════════════ */

/* ── Shop Hero ─────────────────────────────────────────────── */
.shop-hero {
    padding: calc(var(--nav-height) + 60px) 0 40px;
    text-align: center;
    position: relative;
}

.shop-hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.shop-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 12px;
}

.shop-subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Ambient glow */
.shop-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Filters ───────────────────────────────────────────────── */
.shop-filters {
    max-width: var(--container-max);
    margin: 0 auto 40px;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
}

.filter-tab {
    padding: 10px 22px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: none;
    background: none;
}

.filter-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.filter-tab.active {
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-border);
}

.filter-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-sort label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.filter-sort select {
    appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-sort select:hover {
    border-color: var(--accent-border);
}

.filter-sort select:focus {
    border-color: var(--accent);
}

/* ── Search Bar ────────────────────────────────────────────── */
.shop-search {
    max-width: var(--container-max);
    margin: 0 auto 30px;
    padding: 0 var(--container-padding);
}

.search-input-wrapper {
    position: relative;
    max-width: 400px;
}

.search-input-wrapper svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-out);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.08);
}

/* ── Product Grid ──────────────────────────────────────────── */
.shop-grid {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 139, 250, 0.15);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
                var(--shadow-glow);
}

.product-card:hover::before {
    opacity: 1;
}

/* Card Visual */
.product-card-visual {
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.product-card-icon {
    width: 65%;
    height: 65%;
    transition: transform 0.5s var(--ease-out);
    opacity: 0.85;
}

.product-card-icon svg {
    width: 100%;
    height: 100%;
}

.product-card:hover .product-card-icon {
    transform: scale(1.08) translateY(-4px);
    opacity: 1;
}

.product-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card:hover .product-card-glow {
    opacity: 1;
}

/* Card Badge */
.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

/* Card Info */
.product-card-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.product-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.product-card:hover .product-card-name {
    color: var(--accent);
}

.product-card-desc {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card-price .original {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.product-card-rating .star {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Card Add Button */
.product-card-add {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-dim);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s var(--ease-spring);
}

.product-card:hover .product-card-add {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.product-card-add:hover {
    background: var(--accent-bright);
    color: #fff;
    border-color: var(--accent-bright);
    transform: scale(1.1);
}

.product-card-add svg {
    width: 18px;
    height: 18px;
}

/* ── Empty State ───────────────────────────────────────────── */
.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.shop-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.shop-empty-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.shop-empty-desc {
    font-size: 0.9rem;
}