.warranty-page {
    width: 100%;
    padding: 48px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.warranty-hero {
    text-align: center;
}

.warranty-hero h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.category-selector {
    width: 85%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 20px;
}

.category-list {
    display: flex;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 4px;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-card {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: var(--font-weight-bold);
    flex: 0 0 calc((100% - 60px) / 4);
    scroll-snap-align: start;
}

.category-card .category-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.category-card .category-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.category-card.active .category-image {
    border-color: var(--brand-primary);
}

.arrow-btn {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.warranty-policy {
    width: 85%;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: var(--box-shadow-normal);
}

.warranty-policy h3 {
    text-align: center;
    margin-bottom: 15px;
}

.policy-body {
    display: grid;
    gap: 14px;
    margin: 0;
}

.policy-body[hidden],
.policy-group {
    display: none;
}

.policy-group.active {
    display: grid;
}

.policy-body p {
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .category-selector,
    .warranty-policy {
        width: 92%;
    }

    .category-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .warranty-page {
        padding-top: 32px;
    }

    .warranty-hero h2 {
        font-size: 1.4rem;
    }

    .category-selector {
        grid-template-columns: 30px 1fr 30px;
    }

    .category-card .category-image {
        width: 100px;
        height: 100px;
    }

    .category-card {
        flex: 0 0 100%;
    }
    
}
