/* Hero With Gallery - Product Page (1440px baseline) */

.product-hero-section {
    position: relative;
    width: 100%;
    padding-top: 9.097vw;
    background-color: #FFFFFF;
}

/* BACK LINK */
.back-link-wrap {
    margin-left: 9.792vw;
    margin-top: 0.556vw;
    margin-bottom: 5.556vw;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.556vw;
    font-family: 'Inter', sans-serif;
    font-size: 0.833vw;
    font-weight: 500;
    color: #1E1E1E;
    text-decoration: none;
    transition: color 0.2s;
}

.back-link-arrow {
    width: 14px;
    height: 9px;
    flex-shrink: 0;
    display: block;
}

.back-link:hover {
    color: #CC4443;
}

/* HERO MAIN CONTAINER */
.hero-gallery-container {
    padding: 0 1.528vw;
    position: relative;
}

/* HEADING BACKDROP */
.hero-gallery-title-box {
    position: absolute;
    top: -2.639vw;
    left: 1.528vw;
    width: 41.458vw;
    height: 9.305vw;
    background: #FFFFFF;
    border-radius: 0.556vw;
    display: flex;
    align-items: center;
    padding-left: 2.222vw;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.hero-gallery-title-box h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: calc((62 / 1440) * 100vw);
    font-weight: 300;
    color: #000;
    margin: 0;
    line-height: 1;
}

/* MAIN SWIPER */
.hero-main-swiper {
    width: 100%;
    height: 42.292vw;
    border-radius: 0.278vw;
    overflow: hidden;
}

.hero-main-swiper .swiper-slide {
    height: 100%;
}

.hero-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation arrows */
.hero-main-swiper .swiper-button-prev,
.hero-main-swiper .swiper-button-next {
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.35);
    width: 2.778vw;
    height: 2.778vw;
    border-radius: 50%;
    transition: background 0.2s;
}

.hero-main-swiper .swiper-button-prev:hover,
.hero-main-swiper .swiper-button-next:hover {
    background: rgba(204, 68, 67, 0.85);
}

.hero-main-swiper .swiper-button-prev::after,
.hero-main-swiper .swiper-button-next::after {
    font-size: 1vw;
    font-weight: 700;
}

/* THUMBNAILS SWIPER */
.hero-thumbs-swiper {
    margin-top: 1.041vw;
    height: 3.958vw;
}

.hero-thumbs-swiper .swiper-slide {
    width: 7.292vw;
    height: 3.958vw;
    border-radius: 0.278vw;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.hero-thumbs-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
    outline: 2px solid #CC4443;
    outline-offset: 1px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .back-link-wrap { margin-left: 5%; margin-top: 0; }
    .back-link { font-size: 12px; gap: 8px; }
    .hero-gallery-title-box {
        width: 80%;
        height: auto;
        padding: 20px;
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 20px;
        border-radius: 4px;
    }
    .hero-gallery-title-box h1 { font-size: 42px; }
    .hero-main-swiper { height: 50vw; }
    .hero-main-swiper .swiper-button-prev,
    .hero-main-swiper .swiper-button-next { width: 40px; height: 40px; }
    .hero-main-swiper .swiper-button-prev::after,
    .hero-main-swiper .swiper-button-next::after { font-size: 14px; }
    .hero-thumbs-swiper { height: auto; }
    .hero-thumbs-swiper .swiper-slide { width: calc(25% - 12px); height: auto; aspect-ratio: 105/57; }
}

@media (max-width: 768px) {
    .product-hero-section { padding-top: 80px; }
    .hero-gallery-title-box h1 { font-size: 32px; }
    .hero-thumbs-swiper .swiper-slide { width: calc(33.33% - 10px); }
}
