:root {
    --store-white: #ffffff;
    --store-bg: #ffffff;
    --store-surface: #ffffff;
    --store-border: #eef2f6;
    --store-border-strong: #e2e8f0;
    --store-text: #1e293b;
    --store-text-light: #64748b;
    --store-muted: #94a3b8;
    --store-primary: #3b82f6;
    --store-primary-dark: #2563eb;
    --store-primary-soft: #eff6ff;
    --store-danger: #ef4444;
    --store-success: #10b981;
    --store-radius: 12px;
    --store-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--store-white);
    color: var(--store-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.store-page {
    background: var(--store-white);
    min-height: 100vh;
    padding: 80px 0 60px;
}

.store-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--store-border);
}

.store-page-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--store-text);
    margin: 0 0 4px 0;
}

.store-page-desc {
    font-size: 13px;
    color: var(--store-text-light);
    margin: 0;
}

.store-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--store-white);
    border: 1px solid var(--store-border-strong);
    border-radius: var(--store-radius-sm);
    color: var(--store-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.store-cart-link:hover {
    background: #f8fafc;
    border-color: var(--store-border-strong);
    color: var(--store-primary);
}

.store-cart-link svg {
    width: 18px;
    height: 18px;
}

/* Filter Panel */
.store-filter-panel {
    background: var(--store-white);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    padding: 20px;
    position: sticky;
    top: 80px;
}

.store-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--store-border);
}

.store-filter-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--store-text);
    margin: 0;
}

.store-reset-btn {
    background: none;
    border: none;
    color: var(--store-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.store-reset-btn:hover {
    color: var(--store-primary-dark);
    text-decoration: underline;
}

.store-filter-group {
    margin-bottom: 20px;
}

.store-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--store-text);
    margin-bottom: 8px;
}

.store-filter-input,
.store-filter-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--store-border-strong);
    border-radius: var(--store-radius-sm);
    background: var(--store-white);
    color: var(--store-text);
    transition: all 0.2s ease;
}

.store-filter-input:focus,
.store-filter-select:focus {
    outline: none;
    border-color: var(--store-primary);
}

.store-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-price-range .store-filter-input {
    flex: 1;
}

.store-price-sep {
    color: var(--store-muted);
    font-size: 12px;
}

.store-filter-options {
    margin-bottom: 24px;
}

.store-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.store-checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--store-primary);
}

.store-checkbox-label {
    font-size: 12px;
    color: var(--store-text);
    font-weight: 500;
}

.store-filter-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--store-border);
}

/* Buttons */
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--store-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.store-btn-primary {
    background: var(--store-primary);
    color: white;
    flex: 1;
}

.store-btn-primary:hover {
    background: var(--store-primary-dark);
}

.store-btn-light {
    background: var(--store-white);
    border-color: var(--store-border-strong);
    color: var(--store-text);
    flex: 1;
}

.store-btn-light:hover {
    background: #f8fafc;
}

/* Toolbar */
.store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 12px 0;
}

.store-toolbar-left {
    flex: 1;
}

.store-result-count {
    font-size: 12px;
    color: var(--store-text-light);
    font-weight: 500;
    margin: 0 0 8px 0;
}

.store-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--store-primary-soft);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--store-primary-dark);
}

.store-toolbar-right {
    display: flex;
    gap: 12px;
}

.store-sort-select,
.store-perpage-select {
    padding: 6px 12px;
    font-size: 12px;
    border: 1px solid var(--store-border-strong);
    border-radius: var(--store-radius-sm);
    background: var(--store-white);
    color: var(--store-text);
    cursor: pointer;
}

.store-sort-select:focus,
.store-perpage-select:focus {
    outline: none;
    border-color: var(--store-primary);
}

/* Product Grid */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.store-product-card {
    background: var(--store-white);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.store-product-card:hover {
    border-color: var(--store-border-strong);
    background: var(--store-white);
}

.store-card-media {
    position: relative;
    display: block;
    background: #fafbfc;
    aspect-ratio: 1 / 0.8;
    overflow: hidden;
}

.store-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.2s ease;
}

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

.store-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.store-badge {
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    color: var(--store-text);
}

.store-badge-primary {
    background: var(--store-primary);
    color: white;
}

.store-badge-success {
    background: var(--store-success);
    color: white;
}

.store-card-body {
    padding: 14px;
}

.store-card-meta {
    font-size: 10px;
    font-weight: 500;
    color: var(--store-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.store-card-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--store-text);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-title:hover {
    color: var(--store-primary);
}

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

.store-price-stack {
    display: flex;
    flex-direction: column;
}

.store-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--store-text);
}

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

.store-stock-pill {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 20px;
}

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

.store-stock-pill.out-stock {
    background: #fef2f2;
    color: var(--store-danger);
}

/* Pagination */
.store-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.store-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--store-border-strong);
    background: var(--store-white);
    border-radius: var(--store-radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--store-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-page-btn:hover {
    background: #f8fafc;
    border-color: var(--store-border-strong);
}

.store-page-btn.active {
    background: var(--store-primary);
    border-color: var(--store-primary);
    color: white;
}

.store-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Empty State */
.store-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--store-white);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
}

.store-empty h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--store-text);
    margin-bottom: 8px;
}

.store-empty p {
    font-size: 13px;
    color: var(--store-text-light);
}

/* Loading State */
.store-loading {
    position: relative;
}

.store-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.store-skeleton-card {
    background: var(--store-white);
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius);
    overflow: hidden;
}

.store-skeleton-media {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    aspect-ratio: 1 / 0.8;
}

.store-skeleton-body {
    padding: 14px;
}

.store-skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Toast Notifications */
.store-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--store-white);
    border-left: 4px solid var(--store-primary);
    border-radius: var(--store-radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--store-text);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1399px) {
    .store-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) {
    .store-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .store-page {
        padding: 60px 0;
    }

    .store-filter-panel {
        position: static;
        margin-bottom: 24px;
    }

    .store-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .store-toolbar-right {
        width: 100%;
    }

    .store-sort-select,
    .store-perpage-select {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .store-container {
        padding: 0 16px;
    }

    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .store-products-grid {
        grid-template-columns: 1fr;
    }
}