/* ============================================
   Related Categories - All Layouts
   ============================================ */

.related-container *,
.related-block *,
.related-swiper *,
.related-card *,
.related-list *,
.related-chips * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.related-block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #ff7a16;
}

.related-block__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #ff7a16;
    color: #2b2b2b;
}

/* SWIPER */
.related-swiper {
    overflow: hidden;
    position: relative;
}

.related-card {
    background: #fff;
    border: 1px solid #ff7a16;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #2b2b2b;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 100%;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(255, 122, 22, 0.2);
    border-color: #2b2b2b;
}
.related-card__img-wrapper {
    position: relative;
    overflow: hidden;
}
.related-card__img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.related-card:hover .related-card__img {
    transform: scale(1.05);
}
.related-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 122, 22, 0.35), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.related-card:hover .related-card__overlay {
    opacity: 1;
}
.related-card__title {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b2b2b;
}

.swiper-pagination-bullet {
    background: #ccc !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: #ff7a16 !important;
}

/* LIST */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #ff7a16;
    border-radius: 12px;
    text-decoration: none;
    color: #2b2b2b;
    transition: all 0.25s ease;
    background: #fff;
    cursor: pointer;
}
.related-list-item:hover {
    background: #fff;
    border-color: #2b2b2b;
    padding-right: 26px;
    box-shadow: 0 4px 12px rgba(255, 122, 22, 0.12);
}
.related-list-item__number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff7a16;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.related-list-item:hover .related-list-item__number {
    background: #2b2b2b;
}
.related-list-item__img {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.related-list-item__content {
    flex-grow: 1;
}
.related-list-item__title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
    color: #2b2b2b;
}
.related-list-item__sub {
    font-size: 0.8rem;
    color: #ff7a16;
}
.related-list-item__arrow {
    color: #ff7a16;
    font-size: 1.2rem;
    transition: all 0.25s;
}
.related-list-item:hover .related-list-item__arrow {
    color: #2b2b2b;
    transform: translateX(-4px);
}

/* CHIPS */
.related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.related-chip {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #ff7a16;
    border-radius: 50px;
    text-decoration: none;
    color: #2b2b2b;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    cursor: pointer;
}
.related-chip:hover {
    background: #ff7a16;
    color: #fff;
    border-color: #ff7a16;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 22, 0.3);
}
.related-chip:active {
    transform: scale(0.96);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .related-card__img { height: 140px; }
    .related-block { padding: 20px 14px; }
}

@media (max-width: 500px) {
    .related-block { padding: 16px 10px; margin-bottom: 24px; }
    .related-card__img { height: 110px; }
    .related-card__title { font-size: 0.8rem; padding: 10px; }
    .related-chip { padding: 10px 18px; font-size: 0.8rem; }
    .related-list-item { padding: 10px 12px; }
    .related-list-item__img { width: 40px; height: 40px; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.related-block { animation: fadeInUp 0.6s ease forwards; }
.related-block:nth-child(2) { animation-delay: 0.1s; }
.related-block:nth-child(3) { animation-delay: 0.2s; }
.related-block:nth-child(4) { animation-delay: 0.3s; }