.section-journey {
max-width: 1224px;
margin: 100px auto 50px;
background: var(--bg-weak);
} .page-main {
max-width: 1224px;
margin: 0 auto;
} .detail-hero {
padding: 52px 60px 40px;
max-width: 808px;
}
.detail-hero h1 {
margin-bottom: 24px;
}
.detail-hero p {
margin-bottom: 4px;
} .products-section {
padding: 16px 60px 60px;
display: flex;
flex-direction: column;
gap: 20px;
} .product-card {
display: grid;
grid-template-columns: 472px 1fr;
gap: 48px;
border-radius: 24px;
padding: 24px;
background: var(--bg-white);
align-items: start;
} .gallery-panel {
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
gap: 24px;
padding: 24px;
background: var(--primary-soft);
border-radius: 16px;
}
.main-image {
content-visibility: auto; will-change: opacity, transform;
} .main-img-wrap {
width: 100%;
}
.main-img-wrap img {
width: 100%;
height: auto;
object-fit: contain;
}
.main-img-wrap img.fade-out {
opacity: 0;
transform: scale(0.97);
} .thumbnails {
position: relative;
width: 100%;
display: flex;
align-items: center;
gap: 8px;
}
.thumbs-track {
display: flex;
gap: 12px;
width: 100%;
overflow: hidden; scroll-behavior: smooth; scrollbar-width: none;
}
.thumbs-track::-webkit-scrollbar { display: none; } .thumb {
flex: 0 0 100px;
height: 100px;
border-radius: 12px;
overflow: hidden;
border: 2px solid transparent;
cursor: pointer;
background: var(--primary-dark);
display: flex;
align-items: center;
justify-content: center; transition: border-color 0.2s ease, transform 0.15s ease;
padding: 6px;
}
.thumb img {
width: 100%;
height: 100%;
object-fit: contain; will-change: transform;
}
.thumb:hover { transform: scale(1.06); } .thumb-nav {
flex: 0 0 auto;
width: 32px;
height: 32px;
border-radius: 50%;
border: none;
background: var(--bg-white);
box-shadow: 0 2px 8px rgba(0,0,0,.12);
font-size: 20px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.15s ease, opacity 0.15s ease;
opacity: 0.7;
}
.thumb-nav:hover { opacity: 1; background: #fff; }
.thumb-nav.hidden { opacity: 0; pointer-events: none; }
.card-fine .thumb.active {
border-color: #e05a00;
}
.card-lacta .thumb.active {
border-color: #2a9d8f;
}
.card-clair .thumb.active {
border-color: #4a8fc4;
} .info-panel {
padding: 16px 0 0 0;
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.info-panel h2 {
font-family: 'SukhumvitSet', sans-serif;
font-size: 20px;
font-weight: 700;
line-height: 32px;
color: var(--text-light);
margin-bottom: 24px;
}
.info-panel .sub {
font-size: 13.5px;
color: #555;
margin-bottom: 14px;
line-height: 1.6;
}
.features > p {
padding-bottom: 8px;
}
.features ul {
margin-left: 18px;
}
.features ul li {
padding: 4px 0;
} @media (max-width: 991px) {
.product-card {
grid-template-columns: 1fr;
}
.gallery-panel {
width: 100%;
}
.info-panel {
padding-top: 0;
} .thumbnails {
display: none;
} .main-img-wrap {
position: relative;
width: 100%; overflow: hidden;
border-radius: 12px;
touch-action: pan-y;
} .slide-track {
display: flex;
width: 100%;
transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
will-change: transform;
} .slide-item {
flex: 0 0 100%;
width: 100%;
aspect-ratio: 1 / 1;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
}
.slide-item img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
user-select: none;
-webkit-user-drag: none;
} .slider-dots {
display: flex;
justify-content: center;
gap: 7px;
margin-top: 14px;
}
.slider-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.18);
border: none;
padding: 0;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
flex-shrink: 0;
}
.slider-dot.active {
background: rgba(0, 0, 0, 0.55);
transform: scale(1.3);
}
}
@media (max-width: 768px) {
.detail-hero {
padding: 64px 32px 40px;
}
.products-section {
padding: 32px;
}
}