/* === Test Store === */
:root {
    --store-primary: #1a1a2e;
    --store-accent: #e94560;
    --store-accent-light: #fce4ec;
    --store-success: #2e7d32;
    --store-muted: #78909c;
    --store-bg: #f8f9fa;
    --store-card: #fff;
    --store-sale: #e94560;
    --store-oos: #b0bec5;
}

/* Header */
.store-header {
    background: var(--store-primary);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-header__brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.store-header__brand span {
    color: var(--store-accent);
}

.store-header__nav a {
    color: rgba(255,255,255,0.7);
    margin-left: 24px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.store-header__nav a:hover {
    color: #fff;
}

/* Breadcrumb */
.store-breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--store-muted);
}

.store-breadcrumb a {
    color: var(--store-accent);
}

/* Product Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0 48px;
}

/* Product Card */
.store-product-card {
    background: var(--store-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.15s;
    display: flex;
    flex-direction: column;
}

.store-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.store-product-card--oos {
    opacity: 0.6;
}

.store-product-card__image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f0f0f0;
}

.store-product-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-product-card__category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--store-muted);
    margin-bottom: 6px;
}

.store-product-card__name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.store-product-card__sku {
    font-size: 12px;
    color: var(--store-muted);
    margin-bottom: 12px;
}

.store-product-card__pricing {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.store-product-card__price {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.store-product-card__price--sale {
    color: var(--store-sale);
}

.store-product-card__original-price {
    font-size: 15px;
    color: var(--store-muted);
    text-decoration: line-through;
}

.store-product-card__badges {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.store-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badge--sale {
    background: var(--store-accent-light);
    color: var(--store-sale);
}

.store-badge--oos {
    background: #eceff1;
    color: var(--store-oos);
}

.store-badge--in-stock {
    background: #e8f5e9;
    color: var(--store-success);
}

/* Product Detail Page */
.store-detail {
    display: flex;
    gap: 40px;
    padding: 32px 0 48px;
}

.store-detail__image {
    width: 400px;
    height: 400px;
    flex-shrink: 0;
    background: #f0f0f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.store-detail__info {
    flex: 1;
}

.store-detail__category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--store-muted);
    margin-bottom: 8px;
}

.store-detail__name {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.2;
}

.store-detail__sku {
    font-size: 13px;
    color: var(--store-muted);
    margin-bottom: 16px;
}

.store-detail__pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.store-detail__price {
    font-size: 32px;
    font-weight: 700;
}

.store-detail__original-price {
    font-size: 20px;
    color: var(--store-muted);
    text-decoration: line-through;
}

.store-detail__description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 24px;
}

.store-detail__stock {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.store-detail__stock--in {
    color: var(--store-success);
}

.store-detail__stock--out {
    color: var(--store-sale);
}

/* Price History Table */
.store-price-history {
    margin-top: 32px;
}

.store-price-history h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
}

.store-price-history table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.store-price-history th {
    text-align: left;
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #555;
}

.store-price-history td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

/* Filter bar */
.store-filters {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    flex-wrap: wrap;
    align-items: center;
}

.store-filters select,
.store-filters input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}

.store-filters__count {
    margin-left: auto;
    font-size: 14px;
    color: var(--store-muted);
}

/* Category icon mapping */
.cat-icon--electronics::before { content: "🎧"; }
.cat-icon--home::before { content: "🏠"; }
.cat-icon--gaming::before { content: "🎮"; }
.cat-icon--kitchen::before { content: "🍳"; }
.cat-icon--outdoors::before { content: "🏕️"; }
.cat-icon--general::before { content: "📦"; }
