﻿.home-camera {
    padding: 2px 0 18px;
}

.home-camera .container {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.home-camera-content {
    padding: 8px 0 0 2px;
}

.home-camera-content .title {
    margin-bottom: 10px;
}

.home-camera-content .title span {
    display: block;
    font-size: 22px;
    line-height: 1.12;
    color: var(--text-heading);
    font-weight: 600;
}

.home-camera-content .description {
    margin-bottom: 16px;
    max-width: 165px;
}

.home-camera-content .description span {
    display: block;
    font-size: 13px;
    color: var(--text-body);
    font-weight: 500;
}

.home-camera-content .btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-1);
    font-weight: 600;
}

.home-camera-content .btn i {
    font-size: 10px;
}

.home-camera-list {
    min-width: 0;
}

.home-camera .camera-swiper {
    width: 100%;
    padding: 2px 4px 4px;
    overflow: visible;
}

.home-camera .camera-swiper .swiper-wrapper {
    align-items: stretch;
}

.home-camera .camera-swiper .swiper-slide {
    height: auto;
}

.home-camera .p-camera-item {
    border-radius: 14px;
    background: var(--white);
    padding: 4px;
    display: flex;
    gap: 12px;
    box-shadow: 2px 2px 7px 1px #33333312;
    align-items: center;
}

.home-camera .p-camera-item .img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-camera .p-camera-item .img .decor {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #fff7f1 0%, #ffe9d8 100%);
    width: 118px;
    height: 118px;
}

.home-camera .p-camera-item .img img {
    position: relative;
    width: 155px;
    height: auto;
    display: block;
}

.home-camera .p-camera-item .img img[src=""] {
    opacity: 0;
}

.home-camera .p-camera-item .content {
    flex: 1;
}

.home-camera .p-camera-item .title {
    margin-bottom: 5px;
}

.home-camera .p-camera-item .title span {
    display: block;
    font-size: 18px;
    color: var(--text-heading);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.home-camera .p-camera-item .attribute {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.home-camera .p-camera-item .attribute p {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-body-3);
    font-weight: 400;
}

.home-camera .p-camera-item .attribute p i {
    font-size: 10px;
    color: var(--text-icon-2);
    margin-top: 2px;
}

.home-camera .p-camera-item .price strong {
    font-size: 19px;
    color: var(--color-1);
    font-weight: 600;
}

.home-camera .camera-swiper .swiper-button-prev,
.home-camera .camera-swiper .swiper-button-next,
.home-camera .camera-swiper .swiper-pagination {
    display: none;
}


/* Home camera responsive */
@media (max-width: 1023px) {
    .home-camera {
        padding: 4px 0 22px;
    }

    .home-camera .container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .home-camera-content {
        padding: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        column-gap: 20px;
    }

    .home-camera-content .title,
    .home-camera-content .description {
        grid-column: 1;
    }

    .home-camera-content .title {
        margin-bottom: 0;
    }

    .home-camera-content .title span {
        font-size: 26px;
    }

    .home-camera-content .description {
        max-width: 560px;
        margin-bottom: 0;
    }

    .home-camera-content .btn {
        grid-column: 2;
        grid-row: 1 / span 2;
        min-height: 42px;
        padding: 0 14px;
        border: 1px solid var(--border-card);
        border-radius: 9px;
        background: var(--white);
    }

    .home-camera .camera-swiper {
        overflow: hidden;
        padding: 4px 3px 34px;
    }

    .home-camera .p-camera-item {
        height: 100%;
        min-height: 180px;
        padding: 10px;
    }

    .home-camera .camera-swiper .swiper-pagination {
        display: block;
        bottom: 0;
    }

    .home-camera .camera-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: var(--border-card-8);
        opacity: 1;
    }

    .home-camera .camera-swiper .swiper-pagination-bullet-active {
        width: 22px;
        border-radius: 999px;
        background: var(--color-1);
    }
}

@media (max-width: 767px) {
    .home-camera {
        padding: 2px 0 20px;
    }

    .home-camera .container {
        gap: 14px;
    }

    .home-camera-content {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .home-camera-content .title span {
        font-size: 24px;
    }

    .home-camera-content .description {
        grid-column: 1;
        font-size: 13px;
    }

    .home-camera-content .btn {
        grid-column: 1;
        grid-row: auto;
        width: fit-content;
        min-height: 40px;
        margin-top: 4px;
    }

    .home-camera .p-camera-item {
        min-height: 190px;
        gap: 10px;
        border: 1px solid var(--border-light);
        box-shadow: 0 5px 16px rgba(41, 27, 14, 0.06);
    }

    .home-camera .p-camera-item .img {
        width: 44%;
        flex: 0 0 44%;
    }

    .home-camera .p-camera-item .img .decor {
        width: 105px;
        height: 105px;
    }

    .home-camera .p-camera-item .img img {
        width: min(145px, 100%);
    }

    .home-camera .p-camera-item .title span {
        font-size: 17px;
    }

    .home-camera .p-camera-item .attribute p {
        align-items: flex-start;
        font-size: 12px;
        line-height: 1.45;
    }

    .home-camera .p-camera-item .price strong {
        font-size: 18px;
    }
}

@media (max-width: 479px) {
    .home-camera .camera-swiper {
        width: calc(100% + 10px);
        margin-right: -10px;
    }

    .home-camera .p-camera-item {
        min-height: 184px;
        padding: 8px;
    }

    .home-camera .p-camera-item .img {
        width: 42%;
        flex-basis: 42%;
    }

    .home-camera .p-camera-item .img .decor {
        width: 92px;
        height: 92px;
    }

    .home-camera .p-camera-item .img img {
        width: 126px;
        max-width: 100%;
    }
}
