:root {
    --primary-color: #ff6b00;
    --primary-hover: #ff8533;
    --primary-light: #fff0e6;
    --secondary-color: #52c41a;
    --secondary-hover: #73d13d;
    --danger-color: #ff4d4f;
    --danger-hover: #ff7875;
    --warning-color: #faad14;
    --warning-hover: #ffc53d;
    --info-color: #1890ff;
    --info-hover: #40a9ff;
    
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #cccccc;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-light: #fafafa;
    --bg-dark: #1f1f1f;
    
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --border-dark: #d9d9d9;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #ffffff;
}

.btn-warning:hover {
    background-color: var(--warning-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-info {
    background-color: var(--info-color);
    color: #ffffff;
}

.btn-info:hover {
    background-color: var(--info-hover);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.btn-link {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0;
}

.btn-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn-block {
    display: flex;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.form-control-lg {
    padding: 14px 20px;
    font-size: 16px;
}

.form-select {
    width: 100%;
    padding: 10px 36px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all var(--transition-fast);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: #f6ffed;
    color: var(--secondary-color);
}

.badge-danger {
    background-color: #fff1f0;
    color: var(--danger-color);
}

.badge-warning {
    background-color: #fffbe6;
    color: var(--warning-color);
}

.badge-info {
    background-color: #e6f7ff;
    color: var(--info-color);
}

.badge-success {
    background-color: #f6ffed;
    color: var(--secondary-color);
}

.badge-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #f6ffed;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.alert-danger {
    background-color: #fff1f0;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: #fffbe6;
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: #e6f7ff;
    border-color: var(--info-color);
    color: var(--info-color);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--secondary-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-info {
    color: var(--info-color);
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pt-3 { padding-top: 24px; }
.pt-4 { padding-top: 32px; }

.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }
.pb-3 { padding-bottom: 24px; }
.pb-4 { padding-bottom: 32px; }

.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.col {
    flex: 1;
    padding: 8px;
}

.col-1 { flex: 0 0 8.333333%; padding: 8px; }
.col-2 { flex: 0 0 16.666667%; padding: 8px; }
.col-3 { flex: 0 0 25%; padding: 8px; }
.col-4 { flex: 0 0 33.333333%; padding: 8px; }
.col-5 { flex: 0 0 41.666667%; padding: 8px; }
.col-6 { flex: 0 0 50%; padding: 8px; }
.col-7 { flex: 0 0 58.333333%; padding: 8px; }
.col-8 { flex: 0 0 66.666667%; padding: 8px; }
.col-9 { flex: 0 0 75%; padding: 8px; }
.col-10 { flex: 0 0 83.333333%; padding: 8px; }
.col-11 { flex: 0 0 91.666667%; padding: 8px; }
.col-12 { flex: 0 0 100%; padding: 8px; }

@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; padding: 8px; }
    .col-sm-2 { flex: 0 0 16.666667%; padding: 8px; }
    .col-sm-3 { flex: 0 0 25%; padding: 8px; }
    .col-sm-4 { flex: 0 0 33.333333%; padding: 8px; }
    .col-sm-5 { flex: 0 0 41.666667%; padding: 8px; }
    .col-sm-6 { flex: 0 0 50%; padding: 8px; }
    .col-sm-7 { flex: 0 0 58.333333%; padding: 8px; }
    .col-sm-8 { flex: 0 0 66.666667%; padding: 8px; }
    .col-sm-9 { flex: 0 0 75%; padding: 8px; }
    .col-sm-10 { flex: 0 0 83.333333%; padding: 8px; }
    .col-sm-11 { flex: 0 0 91.666667%; padding: 8px; }
    .col-sm-12 { flex: 0 0 100%; padding: 8px; }
}

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; padding: 8px; }
    .col-md-2 { flex: 0 0 16.666667%; padding: 8px; }
    .col-md-3 { flex: 0 0 25%; padding: 8px; }
    .col-md-4 { flex: 0 0 33.333333%; padding: 8px; }
    .col-md-5 { flex: 0 0 41.666667%; padding: 8px; }
    .col-md-6 { flex: 0 0 50%; padding: 8px; }
    .col-md-7 { flex: 0 0 58.333333%; padding: 8px; }
    .col-md-8 { flex: 0 0 66.666667%; padding: 8px; }
    .col-md-9 { flex: 0 0 75%; padding: 8px; }
    .col-md-10 { flex: 0 0 83.333333%; padding: 8px; }
    .col-md-11 { flex: 0 0 91.666667%; padding: 8px; }
    .col-md-12 { flex: 0 0 100%; padding: 8px; }
}

@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; padding: 8px; }
    .col-lg-2 { flex: 0 0 16.666667%; padding: 8px; }
    .col-lg-3 { flex: 0 0 25%; padding: 8px; }
    .col-lg-4 { flex: 0 0 33.333333%; padding: 8px; }
    .col-lg-5 { flex: 0 0 41.666667%; padding: 8px; }
    .col-lg-6 { flex: 0 0 50%; padding: 8px; }
    .col-lg-7 { flex: 0 0 58.333333%; padding: 8px; }
    .col-lg-8 { flex: 0 0 66.666667%; padding: 8px; }
    .col-lg-9 { flex: 0 0 75%; padding: 8px; }
    .col-lg-10 { flex: 0 0 83.333333%; padding: 8px; }
    .col-lg-11 { flex: 0 0 91.666667%; padding: 8px; }
    .col-lg-12 { flex: 0 0 100%; padding: 8px; }
}

@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 8.333333%; padding: 8px; }
    .col-xl-2 { flex: 0 0 16.666667%; padding: 8px; }
    .col-xl-3 { flex: 0 0 25%; padding: 8px; }
    .col-xl-4 { flex: 0 0 33.333333%; padding: 8px; }
    .col-xl-5 { flex: 0 0 41.666667%; padding: 8px; }
    .col-xl-6 { flex: 0 0 50%; padding: 8px; }
    .col-xl-7 { flex: 0 0 58.333333%; padding: 8px; }
    .col-xl-8 { flex: 0 0 66.666667%; padding: 8px; }
    .col-xl-9 { flex: 0 0 75%; padding: 8px; }
    .col-xl-10 { flex: 0 0 83.333333%; padding: 8px; }
    .col-xl-11 { flex: 0 0 91.666667%; padding: 8px; }
    .col-xl-12 { flex: 0 0 100%; padding: 8px; }
}

.d-none { display: none; }

@media (min-width: 576px) {
    .d-sm-block { display: block; }
}

@media (min-width: 768px) {
    .d-md-block { display: block; }
}

@media (min-width: 992px) {
    .d-lg-block { display: block; }
}

@media (min-width: 1200px) {
    .d-xl-block { display: block; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fade {
    opacity: 0;
    transition: opacity var(--transition-base);
}

.fade.show {
    opacity: 1;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height var(--transition-base);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 500px;
    width: 90%;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn var(--transition-base);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    display: none;
    z-index: 1000;
    animation: dropdownFadeIn var(--transition-fast);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 8px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all var(--transition-fast);
    font-size: 14px;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.page-item.disabled .page-link {
    background-color: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.spinner-border {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spinnerSpin 0.6s linear infinite;
}

@keyframes spinnerSpin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 16px 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: toastSlideIn var(--transition-base);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid var(--secondary-color);
}

.toast-danger {
    border-left: 4px solid var(--danger-color);
}

.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--info-color);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: loadingSpin 0.6s linear infinite;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

.loading-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-more {
    color: var(--primary-color);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.section-more:hover {
    color: var(--primary-hover);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.product-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.product-card__content {
    padding: 16px;
}

.product-card__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 44px;
}

.product-card__seller {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card__price {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.product-card__price--original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.product-card__stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all var(--transition-base);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.category-card__info {
    flex: 1;
}

.category-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.category-card__count {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .category-card__icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8533 100%);
    padding: 80px 0;
    color: #ffffff;
}

.hero__content {
    text-align: center;
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero__description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero__actions .btn {
    min-width: 160px;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 32px;
    }
    
    .hero__description {
        font-size: 16px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .product-card__image {
        height: 160px;
    }
}

.site-header {
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-top-link {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.header-top-link:hover {
    color: var(--primary-color);
}

.header-top-link .icon {
    font-size: 14px;
}

.cart-count {
    background-color: var(--danger-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-main {
    padding: 20px 0;
}

.header-main-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-logo {
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    transition: all var(--transition-fast);
}

.logo-text:hover {
    color: var(--primary-hover);
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.search-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 20px;
    border: none;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

.search-btn .icon {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.header-action-item:hover {
    color: var(--primary-color);
}

.header-action-item .icon {
    font-size: 24px;
}

.action-text {
    font-size: 12px;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--danger-color);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-nav {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
}

.header-nav-content {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
}

.nav-link {
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: block;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.main-content {
    min-height: calc(100vh - 300px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.page-header {
    text-align: center;
    padding: 40px 0;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.category-page {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.products-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 10;
    background: var(--bg-primary);
}

.filter-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.filter-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-light);
}

.filter-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filter-card__body {
    padding: 20px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range .form-control {
    flex: 1;
}

.price-separator {
    color: var(--text-muted);
    font-weight: 500;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.products-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.products-toolbar-left {
    display: flex;
    align-items: center;
}

.products-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.products-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.products-toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sort-dropdown {
    width: 160px;
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.view-toggle-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.view-toggle-btn:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.view-toggle-btn.active {
    background-color: var(--bg-primary);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.products-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 20px;
}

.products-grid.list-view .product-card__image {
    height: 200px;
}

.products-grid.list-view .product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }
    
    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .products-toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-dropdown {
        width: 100%;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .products-grid.list-view .product-card {
        grid-template-columns: 1fr;
    }
    
    .products-grid.list-view .product-card__image {
        height: 200px;
    }
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-left,
.product-detail-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-gallery {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-gallery__main {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    padding: 16px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.gallery-thumb:hover {
    border-color: var(--primary-color);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.product-info__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.product-info__subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
}

.product-info__meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-value {
    color: var(--text-primary);
}

.product-info__price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.price-current {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-original .price-value {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-info__coupon {
    background: linear-gradient(135deg, #fff5f5 0%, #fff9e6 100%);
    border: 1px solid #ffe0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.coupon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-header .icon {
    font-size: 18px;
}

.coupon-title {
    font-size: 15px;
    font-weight: 600;
    color: #e74c3c;
}

.coupon-badges {
    display: flex;
    gap: 8px;
    margin-top: 11px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.coupon-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.coupon-badge-global {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.coupon-badge-shop {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.coupon-item {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.coupon-item-left {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.coupon-value {
    font-size: 18px;
    font-weight: 700;
}

.coupon-item-right {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.coupon-condition {
    font-size: 11px;
    color: #666;
}

.coupon-type {
    margin-top: 4px;
}

.coupon-type-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.coupon-type-tag.global {
    background: #ffe0e0;
    color: #e74c3c;
}

.coupon-type-tag.shop {
    background: #e0f7f5;
    color: #2d9c8f;
}

.coupon-stacking-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 6px;
    font-size: 12px;
    color: #856404;
}

.coupon-stacking-tip .icon {
    font-size: 14px;
    flex-shrink: 0;
}

.coupon-header.clickable {
    cursor: pointer;
    transition: background 0.2s;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 8px;
}

.coupon-header.clickable:hover {
    background: rgba(0,0,0,0.03);
}

.coupon-count {
    margin-left: auto;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 500;
}

.coupon-header .arrow {
    font-size: 18px;
    color: #999;
}

.coupon-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coupon-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.coupon-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.coupon-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.coupon-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.coupon-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.coupon-modal-close:hover {
    background: #eee;
    color: #333;
}

.coupon-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.coupon-section {
    margin-bottom: 20px;
}

.coupon-section:last-child {
    margin-bottom: 0;
}

.coupon-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.section-icon {
    font-size: 16px;
}

.coupon-section-title span:nth-child(2) {
    font-weight: 600;
    color: #333;
}

.section-tip {
    margin-left: auto;
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

.coupon-section-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coupon-item {
    display: flex;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.coupon-item:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255,107,107,0.15);
}

.coupon-item-left {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
}

.coupon-value {
    font-size: 18px;
    font-weight: 700;
}

.coupon-item-right {
    flex: 1;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.coupon-condition {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.coupon-validity {
    font-size: 11px;
    color: #999;
}

.coupon-empty {
    text-align: center;
    padding: 40px 20px;
}

.coupon-empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.coupon-empty p {
    color: #999;
    margin: 0;
}

.coupon-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}

.coupon-rules-summary {
    font-size: 12px;
    color: #666;
}

.coupon-rules-summary p {
    margin: 0 0 8px 0;
    color: #333;
}

.coupon-rules-summary ul {
    margin: 0;
    padding-left: 16px;
}

.coupon-rules-summary li {
    margin-bottom: 4px;
}

.product-info__version {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
}

.version-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.version-value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-info__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.action-group {
    display: flex;
}

.action-group .btn {
    flex: 1;
    gap: 8px;
}

.product-info__guarantee {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.guarantee-item .icon {
    color: var(--secondary-color);
    font-size: 16px;
}

.product-tabs {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-light);
}

.tab-btn {
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--bg-primary);
}

.tabs-content {
    padding: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    line-height: 1.8;
    color: var(--text-primary);
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.product-files {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.file-icon {
    font-size: 32px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.file-size {
    font-size: 13px;
    color: var(--text-secondary);
}

.product-reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rating-score {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 20px;
    color: var(--border-color);
}

.star.active {
    color: var(--warning-color);
}

.summary-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.count-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.count-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 20px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.review-date {
    font-size: 13px;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    gap: 4px;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.original-review {
    margin-bottom: 12px;
}

.append-review {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
    border-left: 3px solid #ff6b6b;
    border-radius: 0 8px 8px 0;
}

.append-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: 8px;
}

.append-badge svg {
    width: 12px;
    height: 12px;
}

.append-content {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-gallery__main {
        height: 300px;
    }
    
    .product-info__meta {
        grid-template-columns: 1fr;
    }
    
    .product-info__actions {
        grid-template-columns: 1fr;
    }
    
    .product-info__guarantee {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-info__title {
        font-size: 20px;
    }
    
    .product-info__subtitle {
        font-size: 14px;
    }
    
    .price-value {
        font-size: 24px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .tabs-nav {
        overflow-x: auto;
    }
    
    .tab-btn {
        white-space: nowrap;
    }
}

@media (max-width: 992px) {
    .header-main-content {
        gap: 20px;
    }
    
    .header-search {
        max-width: 400px;
    }
    
    .header-actions {
        gap: 16px;
    }
    
    .header-action-item .icon {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 16px 0;
    }
    
    .header-main-content {
        gap: 16px;
    }
    
    .header-logo .logo-text {
        font-size: 20px;
    }
    
    .header-search {
        flex: 1;
        max-width: none;
    }
    
    .search-input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-btn {
        padding: 10px 16px;
        font-size: 16px;
    }
    
    .header-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: var(--shadow-lg);
        display: none;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-link {
        padding: 16px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-link:hover {
        background-color: var(--bg-light);
    }
}

.site-footer {
    background-color: var(--bg-dark);
    color: #ffffff;
    margin-top: 60px;
}

.footer-main {
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link .icon {
    font-size: 18px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-contact li .icon {
    font-size: 18px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

.orders-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.orders-filter {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.filter-tab:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.order-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.order-no {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-time {
    font-size: 13px;
    color: var(--text-muted);
}

.order-status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff7e6;
    color: #fa8c16;
}

.status-paid {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-shipped {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-completed {
    background-color: #f0f0f0;
    color: #8c8c8c;
}

.status-cancelled {
    background-color: #fff1f0;
    color: #ff4d4f;
}

.order-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 0;
}

.order-items {
    padding: 20px;
    border-right: 1px solid var(--border-light);
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.item-title a:hover {
    color: var(--primary-color);
}

.item-spec {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.item-quantity {
    font-size: 13px;
    color: var(--text-muted);
}

.order-summary {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    color: var(--text-primary);
    font-weight: 500;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-detail-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.order-status-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.status-icon {
    font-size: 64px;
}

.status-info {
    flex: 1;
}

.status-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.status-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.status-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.order-detail-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item-detail {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.order-item-detail .item-image {
    width: 80px;
    height: 80px;
}

.order-item-detail .item-info {
    flex: 1;
}

.order-item-detail .item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.order-item-detail .item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.order-item-detail .item-title a:hover {
    color: var(--primary-color);
}

.order-item-detail .item-spec {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.order-item-detail .item-price {
    text-align: right;
}

.order-item-detail .item-price .price-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-item-detail .item-quantity {
    font-size: 13px;
    color: var(--text-muted);
}

.order-item-detail .item-total {
    text-align: right;
}

.order-item-detail .total-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.cost-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
}

.cost-item .cost-label {
    color: var(--text-secondary);
}

.cost-item .cost-value {
    color: var(--text-primary);
    font-weight: 500;
}

.cost-item .discount {
    color: var(--secondary-color);
}

.cost-item--total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
}

.cost-item--total .cost-label {
    font-size: 16px;
    font-weight: 600;
}

.cost-item--total .cost-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.order-remark {
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.seller-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 992px) {
    .order-body {
        grid-template-columns: 1fr;
    }
    
    .order-items {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .order-summary {
        border-top: 1px solid var(--border-light);
    }
    
    .order-item-detail {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .order-item-detail .item-price,
    .order-item-detail .item-total {
        grid-column: 2;
        text-align: left;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-tabs {
        gap: 4px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .order-info {
        flex-direction: column;
        gap: 4px;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .status-icon {
        font-size: 48px;
    }
    
    .status-title {
        font-size: 22px;
    }
    
    .status-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .status-actions .btn {
        width: 100%;
    }
    
    .order-item-detail {
        grid-template-columns: 1fr;
    }
    
    .order-item-detail .item-image {
        width: 100%;
        height: 200px;
    }
}

.user-center {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.user-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.user-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder--large {
    width: 120px;
    height: 120px;
}

.avatar-text {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.avatar-placeholder--large .avatar-text {
    font-size: 48px;
}

.user-info {
    text-align: center;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.user-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.user-level {
    display: flex;
    justify-content: center;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.user-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.nav-item .icon {
    font-size: 18px;
}

.user-content {
    min-height: 600px;
}

.user-section {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.profile-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.profile-phone {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.stat-icon {
    font-size: 32px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-group {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.detail-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.status-active {
    color: var(--secondary-color);
}

.status-inactive {
    color: var(--danger-color);
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.balance-card {
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: var(--radius-lg);
    color: #ffffff;
    margin-bottom: 32px;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.balance-icon {
    font-size: 48px;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 8px 0;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.balance-actions .btn {
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
}

.balance-actions .btn:hover {
    background-color: var(--bg-light);
}

.transactions-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.transactions-filter {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.transaction-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon .icon {
    font-size: 24px;
}

.transaction-info {
    flex: 1;
}

.transaction-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.transaction-time {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 600;
}

.amount-income {
    color: var(--secondary-color);
}

.amount-expense {
    color: var(--danger-color);
}

.points-card {
    padding: 32px;
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    border-radius: var(--radius-lg);
    color: #ffffff;
    margin-bottom: 32px;
}

.points-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.points-icon {
    font-size: 48px;
}

.points-info {
    flex: 1;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 8px 0;
}

.points-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.points-rules {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
}

.rules-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rules-list li {
    font-size: 13px;
    opacity: 0.9;
}

.points-history-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.points-filter {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 16px;
}

.points-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.points-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.points-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.points-icon .icon {
    font-size: 24px;
}

.points-info {
    flex: 1;
}

.points-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.points-time {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.points-amount {
    font-size: 18px;
    font-weight: 600;
}

.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.settings-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.settings-tab:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.settings-tab.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-pane {
    display: none;
}

.settings-pane.active {
    display: block;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

.security-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.security-icon {
    font-size: 32px;
}

.security-details {
    flex: 1;
}

.security-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.security-status {
    font-size: 13px;
    margin: 0;
}

.status-bound {
    color: var(--secondary-color);
}

.status-unbound {
    color: var(--text-muted);
}

.danger-zone {
    margin-top: 32px;
    padding: 24px;
    background-color: #fff1f0;
    border: 1px solid #ffccc7;
    border-radius: var(--radius-md);
}

.danger-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--danger-color);
    margin: 0 0 8px 0;
}

.danger-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

@media (max-width: 992px) {
    .user-center {
        grid-template-columns: 1fr;
    }
    
    .user-sidebar {
        position: static;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .balance-actions {
        flex-direction: column;
    }
    
    .balance-actions .btn {
        width: 100%;
    }
    
    .settings-tabs {
        overflow-x: auto;
    }
    
    .settings-tab {
        white-space: nowrap;
    }
    
    .avatar-upload {
        flex-direction: column;
    }
}

.search-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-bar {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

.search-info {
    text-align: center;
}

.search-result-count {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.search-result-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.view-btn .icon {
    font-size: 18px;
}

.sort-options {
    display: flex;
    gap: 12px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.products-container {
    min-height: 400px;
}

.products-grid--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.products-grid--list .product-card {
    display: grid;
    grid-template-columns: 200px 1fr 150px;
    gap: 20px;
    padding: 20px;
}

.products-grid--list .product-card__image {
    width: 200px;
    height: 200px;
}

.products-grid--list .product-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.products-grid--list .product-card__meta {
    margin-top: auto;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid--list .product-card {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .products-grid--list .product-card__image {
        width: 100%;
        height: 200px;
    }
}

.categories-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.category-card__image {
    width: 100%;
    height: 180px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon {
    font-size: 64px;
}

.category-card__content {
    padding: 20px;
    text-align: center;
}

.category-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.category-card__count {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-nav-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.category-nav-item.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

.category-name {
    flex: 1;
}

.category-count {
    font-size: 12px;
    opacity: 0.8;
}

.result-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.result-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .category-card__image {
        height: 120px;
    }
    
    .category-icon {
        font-size: 48px;
    }
    
    .category-card__content {
        padding: 16px;
    }
    
    .category-card__title {
        font-size: 15px;
    }
    
    .category-card__count {
        font-size: 12px;
    }
}
