:root {
    --store-color-primary: #17212b;
    --store-color-primary-hover: #0d141b;
    --store-color-secondary: #52606d;
    --store-color-accent: #2563eb;
    --store-color-accent-hover: #1d4ed8;
    --store-color-background: #ffffff;
    --store-color-surface: #ffffff;
    --store-color-surface-muted: #f5f7fa;
    --store-color-border: #dfe5ec;
    --store-color-text: #17212b;
    --store-color-text-muted: #66717e;
    --store-color-success: #15803d;
    --store-color-warning: #b45309;
    --store-color-danger: #b42318;
    --store-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --store-font-size: 0.9375rem;
    --store-line-height: 1.5;
    --store-radius-sm: 6px;
    --store-radius-md: 10px;
    --store-radius-lg: 16px;
    --store-shadow-sm: 0 1px 3px rgba(23, 33, 43, 0.08);
    --store-shadow-md: 0 8px 24px rgba(23, 33, 43, 0.1);
    --store-container-width: 1280px;
    --store-space-1: 4px;
    --store-space-2: 8px;
    --store-space-3: 12px;
    --store-space-4: 16px;
    --store-space-5: 24px;
    --store-space-6: 32px;
    --store-space-7: 48px;
    --store-space-8: 64px;
}

.store-theme {
    min-width: 320px;
    background: var(--store-color-background);
    color: var(--store-color-text);
    font-family: var(--store-font-family);
    font-size: var(--store-font-size);
    line-height: var(--store-line-height);
}

.store-theme a { color: var(--store-color-primary); }
.store-theme a:hover { color: var(--store-color-primary-hover); }

.store-container {
    width: min(calc(100% - 32px), var(--store-container-width));
    margin-inline: auto;
}

.store-shell { min-height: 100vh; background: var(--store-color-background); }
.store-main { padding-block: var(--store-space-5) var(--store-space-8); }
.store-content {
    background: var(--store-color-surface-muted);
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-md);
    padding: var(--store-space-5);
}

.store-section { margin-block: var(--store-space-7); }
.store-section:first-child { margin-top: 0; }
.store-section:last-child { margin-bottom: 0; }
.store-section-header {
    align-items: baseline;
    display: flex;
    gap: var(--store-space-4);
    justify-content: space-between;
    margin-bottom: var(--store-space-4);
}
.store-section-title {
    color: var(--store-color-text);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.store-section-link {
    color: var(--store-color-accent);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.store-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--store-radius-sm);
    cursor: pointer;
    display: inline-flex;
    gap: var(--store-space-2);
    justify-content: center;
    min-height: 42px;
    padding: 0 var(--store-space-4);
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.store-button:focus-visible,
.store-theme :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}
.store-button--primary { background: var(--store-color-accent); color: #fff; }
.store-button--primary:hover { background: var(--store-color-accent-hover); color: #fff; }
.store-button--secondary { background: var(--store-color-surface); border-color: var(--store-color-border); color: var(--store-color-text); }
.store-button--secondary:hover { background: var(--store-color-surface-muted); }
.store-button--ghost { background: transparent; color: var(--store-color-primary); }
.store-button--danger { background: var(--store-color-danger); color: #fff; }
.store-button--icon { min-width: 42px; padding-inline: var(--store-space-2); }
.store-button[disabled], .store-button--loading { cursor: wait; opacity: 0.65; }

.store-form-field { margin-bottom: var(--store-space-4); }
.store-form-label { color: var(--store-color-text); display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: var(--store-space-2); }
.store-form-help, .store-form-error { display: block; font-size: 0.8125rem; margin-top: var(--store-space-1); }
.store-form-help { color: var(--store-color-text-muted); }
.store-form-error { color: var(--store-color-danger); }

.store-alert {
    border: 1px solid var(--store-color-border);
    border-radius: var(--store-radius-sm);
    margin-bottom: var(--store-space-4);
    padding: var(--store-space-3) var(--store-space-4);
}
.store-alert--success { background: #ecfdf3; border-color: #bbf7d0; color: var(--store-color-success); }
.store-alert--warning { background: #fffbeb; border-color: #fde68a; color: var(--store-color-warning); }
.store-alert--danger { background: #fef2f2; border-color: #fecaca; color: var(--store-color-danger); }
.store-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.store-empty-state {
    align-items: center;
    background: var(--store-color-surface);
    border: 1px dashed var(--store-color-border);
    border-radius: var(--store-radius-md);
    color: var(--store-color-text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--store-space-3);
    justify-content: center;
    min-height: 180px;
    padding: var(--store-space-6);
    text-align: center;
}
.store-empty-state__title { color: var(--store-color-text); font-size: 1rem; font-weight: 700; margin: 0; }
.store-empty-state__text { margin: 0; max-width: 46ch; }

.store-badge { align-items: center; border-radius: 999px; display: inline-flex; font-size: 0.75rem; font-weight: 700; line-height: 1; min-height: 24px; padding: 0 var(--store-space-2); }
.store-badge--neutral { background: var(--store-color-surface-muted); color: var(--store-color-text-muted); }
.store-badge--success { background: #dcfce7; color: var(--store-color-success); }
.store-badge--warning { background: #fef3c7; color: var(--store-color-warning); }
.store-badge--danger { background: #fee2e2; color: var(--store-color-danger); }
.store-price { color: var(--store-color-text); font-size: 1.125rem; font-weight: 700; }
.store-price__old { color: var(--store-color-text-muted); font-size: 0.8125rem; text-decoration: line-through; }
.store-price__current { color: var(--store-color-accent); }

.store-product-grid { display: grid; gap: var(--store-space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-product-grid > * { min-width: 0; }
@media (min-width: 768px) { .store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .store-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .store-container { width: min(calc(100% - 24px), var(--store-container-width)); }
    .store-content { padding: var(--store-space-4); }
    .store-section-header { align-items: flex-start; flex-direction: column; gap: var(--store-space-2); }
}
@media (prefers-reduced-motion: reduce) {
    .store-theme *, .store-theme *::before, .store-theme *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
