/* Products page */
.page-header {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    padding: 60px 0 40px;
}

.page-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 360px);
    gap: 32px;
    align-items: end;
}

.page-header-content {
    min-width: 0;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-title {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.page-subtitle {
    max-width: 780px;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin-bottom: 18px;
}

.page-header-summary {
    display: flex;
    justify-content: flex-end;
}

.page-header-summary-card {
    min-width: 220px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 22px;
    backdrop-filter: blur(6px);
}

.page-header-summary-card strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    margin: 8px 0;
    color: #fff;
}

.summary-label,
.summary-note {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 13px;
}

.page-header .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap;
}

.page-header .breadcrumb a {
    color: #E3000F;
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

.products-section {
    padding: 40px 0 60px;
    background: #f8f8f8;
}

.products-error-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.products-error-help {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.products-error-help a {
    color: #c2410c;
    font-weight: 600;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.products-sidebar {
    position: sticky;
    top: 24px;
}

.filter-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item + .filter-item {
    margin-top: 8px;
}

.filter-item a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #555;
    background: transparent;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.filter-item a:hover {
    background: #fff0f0;
    color: #E3000F;
    border-color: #ffcdd2;
}

.filter-item.active a {
    background: #E3000F;
    color: #fff;
    border-color: #E3000F;
}

/* 二级分类树 */
.filter-list-tree .filter-item--parent {
    margin-bottom: 2px;
}

.filter-list-tree .filter-item--parent > a {
    font-weight: 600;
    font-size: 15px;
    color: #222;
    background: transparent;
    border-color: #ddd;
}

.filter-list-tree .filter-item--parent > a:hover {
    background: #fff0f0;
    border-color: #ffcdd2;
    color: #E3000F;
}

.filter-list-tree .filter-item--parent.active > a {
    background: #E3000F;
    color: #fff;
    border-color: #E3000F;
}

.filter-sub-list {
    list-style: none;
    padding: 4px 0 4px 16px;
    margin: 0;
    display: none;
}

.filter-sub-list--open {
    display: block;
}

.filter-sub-item {
    margin-top: 4px;
}

.filter-sub-item a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.filter-sub-item a:hover {
    background: #fff0f0;
    color: #E3000F;
    border-color: #ffcdd2;
}

.filter-sub-item.active a {
    background: #E3000F;
    color: #fff;
    border-color: #E3000F;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 48px 0 14px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #E3000F;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-block .btn-block {
    width: 100%;
}

.contact-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.products-content {
    min-width: 0;
}

.category-landing-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.category-landing-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

.category-landing-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E3000F;
    margin-bottom: 10px;
}

.category-landing-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #222;
}

.category-landing-desc {
    color: #666;
    line-height: 1.8;
}

.category-landing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.landing-box {
    background: #f7f7f7;
    border-radius: 12px;
    padding: 20px;
}

.landing-box h3,
.landing-faq h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #222;
}

.landing-box ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
}

.landing-box li + li {
    margin-top: 8px;
}

.landing-faq {
    padding-top: 20px;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-item p {
    margin-top: 6px;
    color: #666;
    line-height: 1.7;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.products-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

.products-toolbar-note {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.6;
}

.products-count strong {
    color: #333;
}

.clear-filter {
    font-size: 14px;
    color: #E3000F;
}

.clear-filter:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #E3000F;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-out {
    background: #666 !important;
}

.product-info {
    padding: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 12px;
}

.product-brand {
    font-size: 12px;
    font-weight: 700;
    color: #E3000F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sku {
    font-size: 12px;
    color: #999;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-specs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-spec {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.product-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #E3000F;
}

.product-availability-note {
    font-size: 12px;
    color: #888;
}

.product-link-btn {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: color 0.2s;
}

.product-card:hover .product-link-btn {
    color: #E3000F;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
}

.no-products-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.no-products h3 {
    font-size: 20px;
    color: #333;
    margin: 16px 0 8px;
}

.no-products p {
    color: #666;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #E3000F;
    color: #E3000F;
}

.page-link.active {
    background: #E3000F;
    border-color: #E3000F;
    color: #fff;
}

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

    .products-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 28px;
    }

    .page-header-inner {
        grid-template-columns: 1fr;
    }

    .page-header-summary {
        justify-content: flex-start;
    }

    .page-title {
        font-size: 28px;
    }

    .category-landing-top,
    .category-landing-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .category-landing-card,
    .filter-block,
    .products-toolbar {
        padding: 18px;
    }

    .products-toolbar,
    .product-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 32px 0 24px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .category-landing-card,
    .filter-block,
    .products-toolbar {
        padding: 14px;
    }
    
    .category-landing-title {
        font-size: 22px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-info {
        padding: 14px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .pagination {
        gap: 6px;
        margin-top: 28px;
    }
    
    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .page-title {
        font-size: 22px;
    }
    
    .category-landing-card,
    .filter-block,
    .products-toolbar {
        padding: 12px;
    }
    
    .category-landing-title {
        font-size: 20px;
    }
    
    .product-card .product-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-card .btn-sm {
        width: 100%;
    }
}

/* ==================== Trust Badges (首页信任徽章) ==================== */
.trust-badges-section {
    padding: 32px 0;
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-badge-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.trust-badge-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.trust-badge-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 0, 15, 0.08);
    border-radius: 10px;
    color: #E3000F;
}

.trust-badge-icon svg {
    width: 22px;
    height: 22px;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.trust-badge-text strong {
    font-size: 13px;
    color: #222;
    font-weight: 600;
    line-height: 1.3;
}

.trust-badge-text span {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

@media (max-width: 767px) {
    .trust-badge-card {
        padding: 14px;
        gap: 10px;
    }
    .trust-badge-icon {
        width: 36px;
        height: 36px;
    }
    .trust-badge-icon svg {
        width: 18px;
        height: 18px;
    }
    .trust-badge-text strong {
        font-size: 12px;
    }
    .trust-badge-text span {
        font-size: 11px;
    }
}

/* ==================== FAQ Accordion (首页 FAQ) ==================== */
.faq-section {
    padding: 64px 0;
    background-color: #f8f8f8;
}

.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.faq-acc-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-acc-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-align: left;
    line-height: 1.4;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.faq-acc-header:hover {
    background: rgba(227, 0, 15, 0.03);
}

.faq-acc-header[aria-expanded="true"] {
    color: #E3000F;
}

.faq-acc-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-left: 12px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-acc-icon::before,
.faq-acc-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.faq-acc-icon::before {
    width: 2px;
    height: 14px;
    top: 4px;
    left: 10px;
}

.faq-acc-icon::after {
    width: 14px;
    height: 2px;
    top: 10px;
    left: 4px;
}

.faq-acc-header[aria-expanded="true"] .faq-acc-icon::before {
    transform: rotate(90deg);
}

.faq-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-acc-body p {
    padding: 0 22px 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

@media (max-width: 480px) {
    .faq-section {
        padding: 48px 0;
    }
    .faq-acc-header {
        font-size: 14px;
        padding: 15px 16px;
    }
    .faq-acc-body p {
        font-size: 13px;
        padding: 0 16px 16px;
    }
}

/* ==================== Process Steps (Как мы работаем) ==================== */
.process-section {
    padding: 64px 0;
    background-color: #fff;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1080px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.process-step-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(227, 0, 15, 0.12);
    line-height: 1;
    margin-bottom: -16px;
    pointer-events: none;
}

.process-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E3000F;
    border-radius: 50%;
    color: #fff;
    position: relative;
    z-index: 1;
}

.process-step-icon svg {
    width: 28px;
    height: 28px;
}

.process-step-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.process-step-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

.process-step-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 48px;
    font-size: 24px;
    color: #ddd;
    user-select: none;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 0;
        width: 100%;
        max-width: 400px;
    }
    .process-step-number {
        display: none;
    }
    .process-step-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        margin: 0;
    }
    .process-step-icon svg {
        width: 22px;
        height: 22px;
    }
    .process-step-arrow {
        padding: 0;
        transform: rotate(90deg);
        font-size: 18px;
    }
}

/* ==================== Sticky CTA Bar ==================== */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 3px solid #E3000F;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 14px 0;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.sticky-cta-bar.sticky-cta-visible {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sticky-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sticky-cta-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.sticky-cta-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

@media (max-width: 640px) {
    .sticky-cta-content {
        flex-direction: column;
        gap: 12px;
    }
    .sticky-cta-text {
        text-align: center;
    }
    .sticky-cta-text strong {
        font-size: 14px;
    }
    .sticky-cta-sub {
        font-size: 12px;
    }
    .sticky-cta-bar .btn {
        width: 100%;
    }
}
