:root {
    --jiris-accent: #20c4f4;
}

.home-hero {
    position: relative;
    min-height: 65vh;
    overflow: hidden;
    background:
        linear-gradient(rgba(47, 95, 148, 0.45), rgba(47, 95, 148, 0.45)),
        linear-gradient(120deg, #d7e5f4, #f5f8fc);
}

.home-hero--with-media {
    background: #14253d;
}

.home-hero__media-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__media-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 37, 61, 0.35), rgba(20, 37, 61, 0.6));
}

.home-hero__media-asset {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-hero .container {
    position: relative;
    z-index: 2;
}

.home-hero-content {
    max-width: 560px;
}

.section-title {
    color: var(--jiris-text-primary);
}

.section-line {
    width: 72px;
    height: 3px;
    background: var(--jiris-accent);
}

.product-image {
    height: 260px;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eef3f9, #dbe7f5);
}

#collectionCarousel,
#reviewsCarousel {
    padding: 0 2.5rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    border-radius: 50%;
    background-color: var(--jiris-text-primary);
    background-size: 55% 55%;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--jiris-accent);
}

.badge-soldout {
    background: #6c757d;
}

.home-media-frame,
.editorial-image,
.story-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(145deg, #eef3f9, #d7e5f4);
}

.home-media-frame {
    min-height: 340px;
}

.home-media-frame--story {
    width: min(100%, 600px);
    min-height: 260px;
}

.home-media-frame__asset {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-media-frame__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--jiris-text-muted);
    padding: 2rem;
    background: linear-gradient(145deg, rgba(238, 243, 249, 0.95), rgba(215, 229, 244, 0.92));
}

.home-media-frame__placeholder-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: rgba(41, 84, 131, 0.1);
    color: var(--jiris-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.story-block {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #eef4fb;
}

.home-media-edit-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--jiris-primary);
    box-shadow: 0 16px 34px rgba(21, 38, 65, 0.12);
    opacity: 0;
    transform: translateY(-4px);
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    z-index: 3;
}

.home-hero .home-media-edit-btn {
    z-index: 3;
}

.home-media-edit-btn:hover,
.home-media-edit-btn:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(21, 38, 65, 0.16);
    outline: none;
}

.home-hero:hover .home-media-edit-btn,
.home-media-frame:hover .home-media-edit-btn,
.story-block:hover .home-media-edit-btn {
    opacity: 1;
}

@media (hover: none) {
    .home-media-edit-btn {
        opacity: 0.92;
        transform: none;
    }
}

.story-image {
    width: min(100%, 600px);
    min-height: 260px;
}

.review-card {
    border: 1px solid #e6edf5;
    border-radius: 1rem;
    background: #fff;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--jiris-text-primary);
}

@media (max-width: 767.98px) {
    .home-hero {
        min-height: 55vh;
    }

    .product-image {
        height: 220px;
    }

    #collectionCarousel,
    #reviewsCarousel {
        padding: 0 1.8rem;
    }
}
