/**
 * File: assets/css/pages/home.css
 * File Type: Stylesheet
 *
 * Purpose:
 * Homepage complete layout. Styles homepage section shells, product cards, hot-sale gallery, videos, event gallery, feedback and achievements.
 *
 * Connection:
 * Loaded only by index.php.
 *
 * Current Status: Active
 * Safe Editing Rule:
 * Keep selectors inside this file's documented scope. Reuse design tokens from base/variables.css and avoid page-wide overrides from component files.
 */

/* =========================================================
   Section: Homepage complete layout
   This divider marks the start of this stylesheet's owned rules.
   ========================================================= */
/* Section: Home room foundation */
.home-room {
    padding: 7px 0;
    background: var(--color-bg-soft);
}

.home-room:nth-of-type(even) {
    background: var(--color-bg-main);
}

.home-room .site-container {
    min-width: 0;
}

.home-room-title {
    margin-bottom: 8px;
    text-align: left;
}

.home-room-title h1,
.home-room-title h2 {
    margin-bottom: 4px;
    color: var(--color-text-main);
    font-size: var(--heading-hero);
    font-weight: var(--weight-bold);
    line-height: var(--line-height-heading);
}

.home-room-title p {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-normal);
}

.section-eyebrow {
    margin-bottom: 4px;
    color: var(--color-brand-secondary);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-section-strip-title {
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    border-radius: var(--radius-sm);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    text-align: center;
}

.home-section-strip-title h2 {
    margin: 0;
    padding: 4px 10px;
    color: inherit;
    font-size: var(--text-nav);
    font-weight: var(--weight-semibold);
    line-height: var(--line-height-tight);
}

/* Section: Hero slider room */
.hero-slider-box {
    min-height: 116px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(0, 0, 102, 0.08), rgba(242, 0, 86, 0.08)),
        var(--color-bg-main);
    display: grid;
    place-items: center;
    padding: 15px 12px;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.hero-slide-copy {
    display: grid;
    gap: 5px;
    justify-items: center;
}

.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

.hero-slide-copy strong {
    color: var(--color-text-main);
    font-size: var(--text-card-title);
    font-weight: var(--weight-semibold);
    line-height: var(--line-height-heading);
}

.hero-slide-copy small {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: var(--line-height-normal);
}

.hero-slide-dots {
    position: absolute;
    right: 10px;
    bottom: 9px;
    display: flex;
    gap: 4px;
}

.hero-slide-dots span {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.26);
}

.hero-slide-dots span:first-child {
    width: 14px;
    background: var(--color-brand-secondary);
}

/* Section: Common grid rules */
.product-grid,
.mini-card-row,
.round-category-row,
.achievement-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.product-grid > *,
.mini-card-row > *,
.round-category-row > *,
.achievement-row > * {
    min-width: 0;
}

.feedback-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 190px;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

/* Section: Category cards */
.mini-category-card {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 4px;
    padding: 7px 5px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    background: var(--color-bg-main);
    color: var(--color-brand-primary);
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.mini-category-card i {
    font-size: 15px;
}

.mini-category-card span,
.round-category-card span {
    color: var(--color-text-main);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    line-height: var(--line-height-tight);
}

.round-category-card {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
}

.round-category-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 102, 0.22);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, rgba(0, 0, 102, 0.10), rgba(242, 0, 86, 0.08));
    color: var(--color-brand-primary);
    box-shadow: var(--shadow-xs);
}

/* Section: Big visual product cards */
.product-display-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: var(--radius-sm);
    background: var(--color-bg-main);
    box-shadow: var(--shadow-xs);
}

.product-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    z-index: 2;
    min-width: 33px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-transform: uppercase;
}

.product-sale-label {
    position: absolute;
    top: 8px;
    right: 5px;
    z-index: 2;
    color: var(--color-brand-secondary);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.product-photo-area {
    min-height: 98px;
    display: grid;
    place-items: center;
    padding: 13px 8px 6px;
    background:
        radial-gradient(circle at center, rgba(242, 0, 86, 0.09), transparent 58%),
        linear-gradient(180deg, #FFFFFF, #F5F7FC);
}

.product-photo-mock {
    width: 58px;
    height: 76px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 8px 8px 14px 14px;
    background: #FFFFFF;
    color: var(--color-brand-primary);
    box-shadow: inset 0 8px 12px rgba(0, 0, 102, 0.04);
}

.product-photo-mock i {
    color: rgba(0, 0, 102, 0.72);
    font-size: 24px;
}

.product-photo-mock span {
    color: var(--color-brand-secondary);
    font-size: 7px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-transform: uppercase;
}

.product-card-footer {
    min-height: 50px;
    padding: 7px 8px 8px;
    background: var(--color-bg-main);
}

.product-rating {
    margin-bottom: 3px;
    color: #F5A400;
    font-size: var(--text-xs);
    line-height: 1;
    letter-spacing: -0.02em;
}

.product-rating span {
    color: #D9DEE8;
}

.product-display-card h3,
.product-info-card h3,
.hot-mini-card h3 {
    margin: 0;
    color: var(--color-text-main);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

/* Section: Compact product info cards */
.product-info-card {
    min-width: 0;
    display: grid;
    gap: 5px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: var(--radius-sm);
    background: #EEF3F5;
    padding: 7px;
    box-shadow: var(--shadow-xs);
}

.product-info-image {
    min-height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 102, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-brand-primary);
}

.product-info-image i {
    font-size: 24px;
}

.product-info-body {
    min-width: 0;
}

.product-price {
    display: grid;
    gap: 1px;
    margin: 3px 0 0;
    color: var(--color-text-main);
    font-size: var(--text-xs);
    line-height: var(--line-height-tight);
}

.product-price strong {
    color: var(--color-brand-primary);
    font-weight: var(--weight-semibold);
}

.product-price del {
    color: var(--color-text-muted);
    font-weight: var(--weight-regular);
}

/* Section: Hot selling room */
.hot-selling-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(88px, 0.8fr);
    gap: 7px;
}

.hot-feature-card .product-photo-area {
    min-height: 144px;
}

.product-photo-mock-large {
    width: 76px;
    height: 100px;
}

.hot-side-list {
    display: grid;
    gap: 7px;
}

.hot-mini-card {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: var(--radius-sm);
    background: var(--color-bg-main);
    padding: 6px;
    box-shadow: var(--shadow-xs);
}

.hot-mini-image {
    width: 45px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #F5F7FC;
    color: var(--color-brand-primary);
}

.hot-mini-content {
    min-width: 0;
}

/* Section: Feedback and achievement rooms */
.feedback-card,
.achievement-card {
    min-width: 0;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    background: var(--color-bg-main);
    box-shadow: var(--shadow-xs);
}

.feedback-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px;
}

.feedback-image,
.achievement-image {
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 102, 0.08);
    color: var(--color-brand-primary);
}

.feedback-image {
    width: 44px;
    height: 44px;
}

.feedback-card h3,
.achievement-card h3 {
    margin: 0 0 3px;
    color: var(--color-text-main);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: var(--line-height-heading);
}

.feedback-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: var(--line-height-normal);
}

.achievement-card {
    min-height: 78px;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 8px;
    text-align: center;
}

.achievement-image {
    width: 44px;
    height: 34px;
}

/* Section: Progressive width improvements */
@media (min-width: 400px) {
    .home-room {
        padding: 8px 0;
    }

    .product-grid,
    .mini-card-row,
    .round-category-row,
    .achievement-row {
        gap: 7px;
    }

    .product-photo-area {
        min-height: 108px;
    }

    .product-info-image {
        min-height: 70px;
    }
}

@media (min-width: 768px) {
    .home-room {
        padding: 13px 0;
    }

    .home-section-strip-title {
        min-height: 34px;
        margin-bottom: 12px;
    }

    .home-section-strip-title h2 {
        font-size: var(--heading-small);
    }

    .hero-slider-box {
        min-height: 190px;
        padding: 24px;
    }

    .product-grid,
    .mini-card-row,
    .round-category-row,
    .achievement-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .feedback-row {
        grid-auto-flow: initial;
        grid-auto-columns: initial;
        overflow-x: visible;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-bottom: 0;
    }

    .product-photo-area {
        min-height: 145px;
        padding-top: 18px;
    }

    .product-photo-mock {
        width: 78px;
        height: 105px;
    }

    .product-photo-mock i {
        font-size: 32px;
    }

    .product-info-card {
        min-height: 150px;
    }

    .product-info-image {
        min-height: 90px;
    }

    .hot-selling-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.85fr);
        gap: 12px;
    }

    .hot-feature-card .product-photo-area {
        min-height: 215px;
    }

    .product-photo-mock-large {
        width: 106px;
        height: 145px;
    }

    .hot-mini-card {
        min-height: 90px;
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .hot-mini-image {
        width: 70px;
        height: 72px;
    }
}

@media (min-width: 1024px) {
    .home-room {
        padding: 16px 0;
    }

    .product-grid,
    .mini-card-row,
    .round-category-row,
    .achievement-row {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .feedback-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .product-photo-area {
        min-height: 200px;
        padding-top: 22px;
    }

    .product-photo-mock {
        width: 100px;
        height: 145px;
    }

    .product-photo-mock i {
        font-size: 42px;
    }

    .product-card-footer {
        min-height: 70px;
        padding: 10px 12px 12px;
    }

    .product-display-card h3,
    .product-info-card h3,
    .hot-mini-card h3 {
        font-size: var(--text-sm);
    }

    .product-info-card {
        min-height: 170px;
        grid-template-rows: 104px auto;
    }

    .product-info-image {
        min-height: 104px;
    }

    .product-info-image i {
        font-size: 34px;
    }
}

/* Section: V23 real hero slider and category image icons */
.home-hero-slider-room {
    padding: 0;
    background: var(--color-bg-main);
}

.home-hero-slider-room .hero-slider-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.hero-image-slider {
    width: 100%;
    height: min(300px, 48vw);
    min-height: 128px;
    max-height: 300px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg-soft);
}

.hero-image-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero-image-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-image-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.hero-image-slider .hero-slide-dots {
    z-index: 3;
    right: 12px;
    bottom: 9px;
}

.hero-slide-dot {
    width: 7px;
    height: 7px;
    display: block;
    border: 0;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 4px rgba(0, 0, 102, 0.16);
    cursor: pointer;
}

.hero-slide-dot.is-active {
    width: 17px;
    background: var(--color-brand-secondary);
}

.mini-category-card-image {
    min-height: 76px;
    gap: 5px;
}

.mini-category-icon-wrap {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 102, 0.18);
    border-radius: var(--radius-pill);
    background: #FFFFFF;
    box-shadow: var(--shadow-xs);
}

.mini-category-icon-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (min-width: 400px) {
    .hero-image-slider {
        min-height: 142px;
    }

    .mini-category-icon-wrap {
        width: 46px;
        height: 46px;
    }
}

@media (min-width: 768px) {
    .hero-image-slider {
        height: min(300px, 25vw);
        min-height: 210px;
    }

    .mini-category-card-image {
        min-height: 96px;
    }

    .mini-category-icon-wrap {
        width: 62px;
        height: 62px;
    }
}

@media (min-width: 1024px) {
    .hero-image-slider {
        height: 300px;
    }

    .mini-category-card-image {
        min-height: 112px;
    }

    .mini-category-icon-wrap {
        width: 72px;
        height: 72px;
    }
}

/* Section: V24 hero visibility and category icon polish
 * Purpose: Stop hero banner content from cutting and make category icons bigger/professional.
 */
.home-hero-slider-room {
    padding-top: 0;
    padding-bottom: 8px;
}

.hero-image-slider {
    height: min(300px, 26vw);
    min-height: 150px;
    max-height: 300px;
    background: linear-gradient(90deg, #fff7f0, #ffffff 55%, #f3f7ff);
    border-bottom: 1px solid rgba(0, 0, 102, 0.08);
}

.hero-image-slide img {
    object-fit: contain;
    object-position: center center;
    background: transparent;
}

.hero-image-slider .hero-slide-dots {
    right: 16px;
    bottom: 12px;
}

.hero-slide-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 102, 0.20);
}

.hero-slide-dot.is-active {
    width: 22px;
    background: var(--color-brand-secondary);
}

.category-mini-row {
    gap: 8px;
}

.mini-category-card-image {
    min-height: 92px;
    gap: 7px;
    padding: 10px 6px;
    border-color: rgba(0, 0, 102, 0.10);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 102, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-category-card-image:hover,
.mini-category-card-image:focus-within {
    transform: translateY(-2px);
    border-color: rgba(242, 0, 86, 0.22);
    box-shadow: 0 10px 24px rgba(0, 0, 102, 0.12);
}

.mini-category-icon-wrap {
    width: 58px;
    height: 58px;
    padding: 4px;
    border: 2px solid rgba(0, 0, 102, 0.16);
    outline: 2px solid rgba(242, 0, 86, 0.10);
    outline-offset: 2px;
    background: #ffffff;
    box-shadow:
        0 4px 12px rgba(0, 0, 102, 0.10),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.mini-category-icon-wrap img {
    border-radius: var(--radius-pill);
}

.mini-category-card-image span:last-child {
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: var(--weight-semibold);
    line-height: 1.2;
}

@media (min-width: 400px) {
    .hero-image-slider {
        min-height: 164px;
    }

    .mini-category-icon-wrap {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 768px) {
    .home-hero-slider-room {
        padding-bottom: 12px;
    }

    .hero-image-slider {
        height: min(300px, 22vw);
        min-height: 230px;
    }

    .category-mini-row {
        gap: 12px;
    }

    .mini-category-card-image {
        min-height: 124px;
        padding: 13px 8px;
        gap: 9px;
    }

    .mini-category-icon-wrap {
        width: 84px;
        height: 84px;
        padding: 5px;
    }

    .mini-category-card-image span:last-child {
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .hero-image-slider {
        height: 300px;
    }

    .mini-category-card-image {
        min-height: 136px;
    }

    .mini-category-icon-wrap {
        width: 92px;
        height: 92px;
    }

    .mini-category-card-image span:last-child {
        font-size: 15px;
    }
}

/* Section: V25 full-width hero correction
 * Purpose: Desktop hero uses 1920x300 prepared banners, so the slider fills full width without side blank areas. Mobile keeps the taller source images for safer cropping.
 */
.home-hero-slider-room {
    padding-top: 10px;
    padding-bottom: 10px;
    background: #F7F9FF;
}

.hero-image-slider {
    width: 100%;
    height: clamp(150px, 42vw, 190px);
    min-height: 150px;
    max-height: 300px;
    border-radius: 0;
    background: var(--color-bg-main);
    border-top: 1px solid rgba(0, 0, 102, 0.06);
    border-bottom: 1px solid rgba(0, 0, 102, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 102, 0.07);
}

.hero-image-slide picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-image-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: var(--color-bg-main);
}

.hero-image-slider .hero-slide-dots {
    right: 16px;
    bottom: 10px;
    gap: 5px;
}

.hero-slide-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 1px 6px rgba(0, 0, 102, 0.22);
}

.hero-slide-dot.is-active {
    width: 24px;
    background: var(--color-brand-secondary);
}

.mini-category-card-image {
    min-height: 98px;
    padding: 10px 6px;
}

.mini-category-icon-wrap {
    width: 66px;
    height: 66px;
    padding: 4px;
}

@media (min-width: 768px) {
    .home-hero-slider-room {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .hero-image-slider {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }

    .mini-category-card-image {
        min-height: 140px;
        padding: 14px 8px;
    }

    .mini-category-icon-wrap {
        width: 98px;
        height: 98px;
        padding: 5px;
    }
}

@media (min-width: 1200px) {
    .mini-category-card-image {
        min-height: 148px;
    }

    .mini-category-icon-wrap {
        width: 104px;
        height: 104px;
    }
}

/* Section: V32 desktop hero crop and spacing correction
 * Purpose: Keep desktop/laptop hero banners fully visible, full width, and reduce vertical gap to almost zero.
 * Note: Mobile layout remains compact; desktop uses the prepared 1920x300 banners without cropping left/right/top/bottom.
 */
.home-hero-slider-room {
    margin: 0;
    padding-top: 1px;
    padding-bottom: 1px;
    background: var(--color-bg-main);
}

.home-hero-slider-room + .home-room {
    padding-top: 1px;
}

.hero-image-slider {
    box-shadow: none;
    border-top: 0;
    border-bottom: 0;
}

@media (min-width: 768px) {
    .home-hero-slider-room {
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .hero-image-slider {
        height: clamp(190px, 15.625vw, 300px);
        min-height: 190px;
        max-height: 300px;
        background: var(--color-bg-main);
    }

    .hero-image-slide img {
        object-fit: fill;
        object-position: center center;
    }
}

@media (min-width: 1200px) {
    .hero-image-slider {
        height: min(15.625vw, 300px);
        min-height: 205px;
        max-height: 300px;
    }
}

@media (min-width: 1920px) {
    .hero-image-slider {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
    }
}

/* Section: V33 final hero slider size correction
 * Purpose: Use current INV6 slider images correctly on mobile, desktop and other devices.
 * Desktop source images are exact 1920x400, so we keep the same 4.8:1 ratio to avoid left/right/top/bottom crop.
 */
.home-hero-slider-room {
    margin: 0;
    padding-top: 1px;
    padding-bottom: 1px;
    background: var(--color-bg-main);
}

.home-hero-slider-room .hero-slider-container {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.home-hero-slider-room + .home-room {
    padding-top: 1px;
}

.hero-image-slider {
    width: 100%;
    height: 33.333vw;
    max-height: 150px;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--color-bg-main);
}

.hero-image-slide,
.hero-image-slide picture,
.hero-image-slide img {
    width: 100%;
    height: 100%;
}

.hero-image-slide img {
    display: block;
    object-fit: fill;
    object-position: center center;
}

.hero-image-slider .hero-slide-dots {
    right: 10px;
    bottom: 8px;
    gap: 5px;
    z-index: 5;
}

.hero-slide-dot {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 102, 0.22);
    box-shadow: 0 1px 5px rgba(0, 0, 102, 0.18);
}

.hero-slide-dot.is-active {
    width: 24px;
    background: var(--color-brand-secondary);
    border-color: var(--color-brand-secondary);
}

@media (min-width: 768px) {
    .hero-image-slider {
        height: 20.833333vw;
        max-height: 400px;
    }

    .hero-image-slider .hero-slide-dots {
        right: 18px;
        bottom: 12px;
    }
}

@media (min-width: 1920px) {
    .hero-image-slider {
        height: 400px;
    }
}

/* Section: V35 image-based product room redesign
 * Purpose: Convert simple strip style product rooms into stylish image-first sections
 * using the current Health Balance product images as the working template base.
 */
.home-product-room {
    padding-top: 12px;
    padding-bottom: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 249, 255, 0.96));
}

.home-product-room:nth-of-type(even) {
    background:
        linear-gradient(180deg, rgba(247, 249, 255, 0.98), rgba(255, 255, 255, 0.95));
}

.home-product-section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(0, 0, 102, 0.04), rgba(242, 0, 86, 0.03)),
        #FFFFFF;
    box-shadow: 0 8px 22px rgba(0, 0, 102, 0.06);
}

.home-product-section-header--compact {
    margin-bottom: 10px;
}

.home-product-section-header__text {
    display: grid;
    gap: 5px;
}

.home-product-section-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.06);
    color: var(--color-brand-primary);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-product-section-header__text h2 {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(20px, 4.6vw, 32px);
    font-weight: var(--weight-bold);
    line-height: 1.15;
}

.home-product-section-header__text p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.home-product-section-header__link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 102, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home-product-section-header__link:hover,
.home-product-section-header__link:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-secondary);
    box-shadow: 0 10px 20px rgba(242, 0, 86, 0.22);
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.catalog-product-grid--compact {
    gap: 7px;
}

.catalog-product-card {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 18px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(0, 0, 102, 0.07);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.catalog-product-card:hover,
.catalog-product-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(242, 0, 86, 0.16);
    box-shadow: 0 16px 30px rgba(0, 0, 102, 0.12);
}

.catalog-product-card__media {
    position: relative;
    min-height: 116px;
    display: grid;
    place-items: center;
    padding: 24px 10px 12px;
    background:
        radial-gradient(circle at top, rgba(242, 0, 86, 0.08), transparent 40%),
        linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%);
}

.catalog-product-card__media img {
    width: 100%;
    max-width: 130px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 102, 0.16));
}

.catalog-product-card__badge,
.catalog-product-card__flag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
}

.catalog-product-card__badge {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
}

.catalog-product-card__flag {
    top: 12px;
    right: 9px;
    color: var(--color-brand-secondary);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.catalog-product-card__body {
    display: grid;
    gap: 5px;
    padding: 10px 10px 12px;
}

.catalog-product-card__rating {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #F5A400;
    font-size: 11px;
}

.catalog-product-card__body h3 {
    margin: 0;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    text-transform: uppercase;
}

.catalog-product-card__body p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.catalog-product-card__footer {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 2px;
}

.catalog-product-card__series {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.05);
    color: var(--color-brand-primary);
    font-size: 10px;
    font-weight: var(--weight-medium);
}

.catalog-product-card__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-brand-secondary);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    text-decoration: none;
}

.catalog-product-card__action:hover,
.catalog-product-card__action:focus-visible {
    color: var(--color-brand-primary);
}

.catalog-product-card--compact .catalog-product-card__media {
    min-height: 104px;
    padding-top: 18px;
}

.catalog-product-card--compact .catalog-product-card__body {
    padding: 9px 9px 10px;
}

.catalog-product-card--showroom .catalog-product-card__media {
    min-height: 126px;
}

.hot-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.catalog-product-card--featured-hot .catalog-product-card__media {
    min-height: 180px;
    padding-top: 26px;
}

.catalog-product-card--featured-hot .catalog-product-card__media img {
    max-width: 160px;
}

.hot-showcase-side-list {
    display: grid;
    gap: 8px;
}

.catalog-mini-product-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 0, 102, 0.06);
}

.catalog-mini-product-card__image {
    min-height: 72px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        radial-gradient(circle at top, rgba(242, 0, 86, 0.08), transparent 42%),
        linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%);
}

.catalog-mini-product-card__image img {
    width: 100%;
    max-width: 58px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 102, 0.15));
}

.catalog-mini-product-card__content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.catalog-mini-product-card__content h3 {
    margin: 0;
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: var(--weight-semibold);
    line-height: 1.25;
    text-transform: uppercase;
}

.catalog-mini-product-card__content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

@media (min-width: 480px) {
    .catalog-product-grid {
        gap: 10px;
    }

    .catalog-product-card__media {
        min-height: 130px;
    }

    .catalog-product-card__media img {
        max-width: 142px;
    }
}

@media (min-width: 768px) {
    .home-product-room {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .home-product-section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: end;
        gap: 18px;
        margin-bottom: 16px;
        padding: 18px 18px 16px;
    }

    .home-product-section-header__text p {
        max-width: 760px;
        font-size: var(--text-sm);
    }

    .catalog-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-product-card__media {
        min-height: 178px;
        padding-top: 30px;
    }

    .catalog-product-card__media img {
        max-width: 168px;
    }

    .catalog-product-card__body {
        padding: 12px 12px 14px;
        gap: 6px;
    }

    .catalog-product-card__body h3,
    .catalog-mini-product-card__content h3 {
        font-size: 15px;
    }

    .catalog-product-card__body p,
    .catalog-mini-product-card__content p {
        font-size: 12px;
    }

    .catalog-product-card__rating {
        font-size: 12px;
    }

    .hot-showcase-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
        gap: 12px;
    }

    .catalog-product-card--featured-hot .catalog-product-card__media {
        min-height: 250px;
    }

    .catalog-product-card--featured-hot .catalog-product-card__media img {
        max-width: 210px;
    }

    .hot-showcase-side-list {
        gap: 10px;
    }

    .catalog-mini-product-card {
        grid-template-columns: 88px minmax(0, 1fr);
        padding: 10px;
    }

    .catalog-mini-product-card__image {
        min-height: 86px;
    }

    .catalog-mini-product-card__image img {
        max-width: 70px;
    }
}

@media (min-width: 1024px) {
    .catalog-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-product-card__media {
        min-height: 215px;
    }

    .catalog-product-card__media img {
        max-width: 180px;
    }

    .catalog-product-card__body {
        padding: 13px 14px 14px;
    }

    .catalog-product-card__body h3 {
        font-size: 16px;
    }

    .catalog-product-card__body p {
        font-size: 13px;
    }

    .catalog-product-card__rating {
        font-size: 13px;
    }

    .catalog-product-card__series {
        font-size: 11px;
    }

    .catalog-product-card__action {
        font-size: 12px;
    }
}


/* Section: V36 first final Premium Products card template
 * Purpose: Keep 6 product cards in one desktop row without tall stretched cards.
 * Images are expected to be transparent/background-free; the card itself provides
 * professional background, border and hover effects.
 */
.premium-product-room {
    padding-top: 10px;
    padding-bottom: 10px;
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 0, 86, 0.04), transparent 34%),
        linear-gradient(180deg, #FBFCFF 0%, #F5F7FC 100%);
}

.premium-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(0, 0, 102, 0.06);
}

.premium-section-head__title {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.premium-section-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.07);
    color: var(--color-brand-primary);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.premium-section-head h2 {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(20px, 4.8vw, 31px);
    font-weight: var(--weight-bold);
    line-height: 1.05;
}

.premium-section-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 102, 0.14);
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 102, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.premium-section-link:hover,
.premium-section-link:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-secondary);
    box-shadow: 0 10px 20px rgba(242, 0, 86, 0.22);
}

.premium-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.premium-product-card {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(82px, 1fr) auto;
    aspect-ratio: 1 / 1.16;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: 16px;
    background:
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        linear-gradient(135deg, rgba(0, 0, 102, 0.22), rgba(242, 0, 86, 0.16)) border-box;
    box-shadow: 0 9px 22px rgba(0, 0, 102, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.premium-product-card:hover,
.premium-product-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(242, 0, 86, 0.22);
    box-shadow: 0 15px 28px rgba(0, 0, 102, 0.13);
}

.premium-product-card__media {
    position: relative;
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 23px 9px 8px;
    background:
        radial-gradient(circle at 50% 48%, rgba(242, 0, 86, 0.09), transparent 38%),
        radial-gradient(circle at 50% 68%, rgba(0, 0, 102, 0.06), transparent 42%),
        linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%);
}

.premium-product-card__media::after {
    content: "";
    position: absolute;
    inset: auto 18% 9px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 102, 0.10);
    filter: blur(6px);
}

.premium-product-card__media img {
    position: relative;
    z-index: 1;
    width: min(82%, 112px);
    max-height: 112px;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 13px rgba(0, 0, 102, 0.16));
}

.premium-product-card__badge,
.premium-product-card__tag {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    line-height: 1;
}

.premium-product-card__badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 42px);
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    font-size: 9px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.premium-product-card__tag {
    top: 10px;
    right: 7px;
    color: var(--color-brand-secondary);
    font-size: 9px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.05em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.premium-product-card__content {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 8px 9px 9px;
    background: #FFFFFF;
}

.premium-product-card__rating {
    display: flex;
    align-items: center;
    gap: 1px;
    color: #F5A400;
    font-size: 10px;
    line-height: 1;
}

.premium-product-card__info {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.premium-product-card__info h3 {
    min-width: 0;
    margin: 0;
    color: var(--color-text-main);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    text-transform: uppercase;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-product-card__info a {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: rgba(242, 0, 86, 0.08);
    color: var(--color-brand-secondary);
    font-size: 11px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.premium-product-card__info a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.premium-product-card__info a:hover,
.premium-product-card__info a:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-secondary);
    color: var(--color-text-light);
}

@media (min-width: 420px) {
    .premium-product-card {
        aspect-ratio: 1 / 1.10;
    }

    .premium-product-card__media img {
        width: min(78%, 120px);
        max-height: 120px;
    }
}

@media (min-width: 768px) {
    .premium-product-room {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .premium-section-head {
        margin-bottom: 12px;
        padding: 12px 16px;
    }

    .premium-section-kicker {
        font-size: 11px;
    }

    .premium-section-link {
        padding: 10px 16px;
        font-size: 12px;
    }

    .premium-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 11px;
    }

    .premium-product-card {
        aspect-ratio: 1 / 1.08;
        grid-template-rows: minmax(120px, 1fr) auto;
        border-radius: 18px;
    }

    .premium-product-card__media {
        padding: 27px 10px 10px;
    }

    .premium-product-card__media img {
        width: min(86%, 148px);
        max-height: 148px;
    }

    .premium-product-card__content {
        padding: 10px 11px 11px;
    }

    .premium-product-card__rating {
        font-size: 11px;
    }

    .premium-product-card__info h3 {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .premium-product-grid {
        gap: 13px;
    }

    .premium-product-card {
        aspect-ratio: 1 / 1.02;
        grid-template-rows: minmax(145px, 1fr) auto;
    }

    .premium-product-card__media img {
        width: min(82%, 168px);
        max-height: 168px;
    }

    .premium-product-card__badge,
    .premium-product-card__tag {
        font-size: 10px;
    }

    .premium-product-card__info h3 {
        font-size: 13px;
    }

    .premium-product-card__info a {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 1440px) {
    .premium-product-card {
        grid-template-rows: minmax(170px, 1fr) auto;
    }

    .premium-product-card__media img {
        max-height: 184px;
    }

    .premium-product-card__info h3 {
        font-size: 14px;
    }
}


/* Section: V37 premium mobile two-by-two scroll and image preview
 * Purpose: Mobile product cards use 2 columns x 2 rows visible, then horizontal scroll.
 * Product names stay in one line; clicking product image opens a larger preview.
 */
.premium-product-image-button {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
}

.premium-product-image-button img {
    pointer-events: none;
}

.premium-product-image-button__hint {
    position: absolute;
    right: 7px;
    bottom: 2px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.86);
    color: var(--color-text-light);
    font-size: 10px;
    opacity: 0;
    transform: scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.premium-product-card:hover .premium-product-image-button__hint,
.premium-product-card:focus-within .premium-product-image-button__hint {
    opacity: 1;
    transform: scale(1);
}

.premium-product-card__info h3 {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    -webkit-line-clamp: unset;
}

@media (max-width: 767px) {
    .premium-product-room {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .premium-section-head {
        margin-bottom: 8px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .premium-section-kicker {
        font-size: 9px;
        padding: 4px 8px;
    }

    .premium-section-head h2 {
        font-size: 20px;
    }

    .premium-section-link {
        padding: 8px 10px;
        font-size: 10px;
    }

    .premium-product-grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-columns: none;
        grid-template-rows: repeat(2, auto);
        grid-auto-columns: calc((100% - 8px) / 2);
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .premium-product-card {
        scroll-snap-align: start;
        aspect-ratio: 1 / 1.03;
        grid-template-rows: minmax(92px, 1fr) auto;
        border-radius: 14px;
    }

    .premium-product-card__media {
        padding: 22px 7px 6px;
    }

    .premium-product-card__media img {
        width: min(82%, 116px);
        max-height: 116px;
    }

    .premium-product-card__badge {
        top: 7px;
        left: 7px;
        padding: 4px 7px;
        font-size: 8px;
    }

    .premium-product-card__tag {
        top: 8px;
        right: 6px;
        font-size: 8px;
    }

    .premium-product-card__content {
        gap: 3px;
        padding: 6px 7px 7px;
    }

    .premium-product-card__rating {
        font-size: 9px;
        gap: 0;
    }

    .premium-product-card__info {
        gap: 5px;
    }

    .premium-product-card__info h3 {
        font-size: 10px;
        line-height: 1.1;
        letter-spacing: -0.01em;
    }

    .premium-product-card__info a {
        width: 25px;
        height: 25px;
        font-size: 9px;
    }

    .premium-product-image-button__hint {
        width: 20px;
        height: 20px;
        right: 4px;
        bottom: 0;
        font-size: 8px;
        opacity: 0.9;
        transform: scale(1);
    }
}

.product-preview-modal[hidden] {
    display: none;
}

.product-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.product-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 34, 0.74);
    backdrop-filter: blur(4px);
}

.product-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    max-height: 86dvh;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(242, 0, 86, 0.10), transparent 42%),
        #FFFFFF;
    box-shadow: 0 22px 70px rgba(0, 0, 34, 0.34);
    text-align: center;
}

.product-preview-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: var(--color-text-light);
    cursor: pointer;
}

.product-preview-modal__image-wrap {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(0, 0, 102, 0.08), transparent 46%),
        linear-gradient(180deg, #FFFFFF, #F5F7FC);
}

.product-preview-modal__image-wrap img {
    width: min(100%, 380px);
    max-height: 58dvh;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 102, 0.22));
}

.product-preview-modal__dialog h3 {
    margin: 0;
    color: var(--color-text-main);
    font-size: 18px;
    font-weight: var(--weight-semibold);
    line-height: 1.2;
    text-transform: uppercase;
}

body.product-preview-open {
    overflow: hidden;
}


/* Section: V49 Hot Sale featured gallery and other products
 * Purpose: Keep main product plus three feature thumbnails side-by-side on
 * every device. Other hot-sale products stay right-side on desktop and become
 * a horizontal row below on mobile.
 */
.hot-sale-gallery-room {
    padding-top: 10px;
    padding-bottom: 10px;
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 0, 86, 0.045), transparent 32%),
        linear-gradient(180deg, #FFFFFF 0%, #F6F8FE 100%);
}

.hot-sale-gallery-head {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 10px;
    padding: 11px 13px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 7px 18px rgba(0, 0, 102, 0.06);
}

.hot-sale-gallery-kicker,
.hot-sale-featured-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-brand-secondary);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.hot-sale-gallery-kicker {
    margin-bottom: 5px;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    background: rgba(242, 0, 86, 0.09);
}

.hot-sale-gallery-head h2 {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(21px, 4.7vw, 31px);
    font-weight: var(--weight-bold);
    line-height: 1.08;
}

.hot-sale-gallery-head p {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.hot-sale-gallery-head__link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 102, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hot-sale-gallery-head__link:hover,
.hot-sale-gallery-head__link:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-secondary);
    box-shadow: 0 10px 20px rgba(242, 0, 86, 0.22);
}

.hot-sale-gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.hot-sale-featured-panel,
.hot-sale-other-panel {
    min-width: 0;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(0, 0, 102, 0.07);
}

.hot-sale-featured-panel {
    padding: 9px;
}

.hot-sale-featured-panel__topline,
.hot-sale-other-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 2px 8px;
}

.hot-sale-featured-panel__topline h3,
.hot-sale-other-panel__head h3 {
    margin: 3px 0 0;
    color: var(--color-text-main);
    font-size: 16px;
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    text-transform: uppercase;
}

.hot-sale-featured-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border-radius: var(--radius-pill);
    background: var(--color-brand-secondary);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-transform: uppercase;
}

.hot-sale-featured-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(72px, 0.85fr);
    gap: 6px;
    align-items: stretch;
}

.hot-sale-featured-main {
    position: relative;
    min-width: 0;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(0, 0, 102, 0.09);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 48%, rgba(242, 0, 86, 0.08), transparent 41%),
        radial-gradient(circle at 50% 74%, rgba(0, 0, 102, 0.07), transparent 38%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F7FE 100%);
    cursor: zoom-in;
}

.hot-sale-featured-main__stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hot-sale-featured-main__stage::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 8%;
    height: 4%;
    border-radius: 50%;
    background: rgba(0, 0, 102, 0.12);
    filter: blur(8px);
}

.hot-sale-featured-main img {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 76%;
    display: block;
    object-fit: contain;
    transform-origin: var(--hot-base-origin, 50% 50%);
    transform: scale(var(--hot-base-scale, 0.9));
    filter: drop-shadow(0 14px 22px rgba(0, 0, 102, 0.18));
    transition: transform 0.18s ease;
    will-change: transform;
}

.hot-sale-featured-main__zoom-note {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 102, 0.84);
    color: #FFFFFF;
    font-size: 8px;
    font-weight: var(--weight-semibold);
    line-height: 1;
}

.hot-sale-feature-thumbnails {
    min-width: 0;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.hot-sale-feature-thumb {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 3px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: 10px;
    background: #FFFFFF;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hot-sale-feature-thumb:hover,
.hot-sale-feature-thumb:focus-visible,
.hot-sale-feature-thumb.is-active {
    transform: translateY(-1px);
    border-color: var(--color-brand-secondary);
    box-shadow: 0 6px 14px rgba(242, 0, 86, 0.12);
}

.hot-sale-feature-thumb__image {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background:
        radial-gradient(circle at center, rgba(242, 0, 86, 0.07), transparent 45%),
        linear-gradient(180deg, #FFFFFF 0%, #F4F7FE 100%);
}

.hot-sale-feature-thumb__image img {
    width: 78%;
    height: 78%;
    display: block;
    object-fit: contain;
    transform-origin: var(--thumb-origin, 50% 50%);
    transform: scale(var(--thumb-scale, 1));
    filter: drop-shadow(0 7px 11px rgba(0, 0, 102, 0.15));
}

.hot-sale-feature-thumb__text {
    min-width: 0;
    display: block;
    padding: 1px 1px 0;
}

.hot-sale-feature-thumb__text strong {
    display: block;
    overflow: hidden;
    color: var(--color-brand-primary);
    font-size: 8px;
    font-weight: var(--weight-semibold);
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-sale-featured-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 2px 1px;
}

.hot-sale-featured-rating {
    display: flex;
    align-items: center;
    gap: 1px;
    color: #F5A400;
    font-size: 10px;
}

.hot-sale-featured-meta p {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-sale-featured-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px;
    border-radius: var(--radius-pill);
    background: rgba(242, 0, 86, 0.08);
    color: var(--color-brand-secondary);
    font-size: 9px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.hot-sale-featured-action:hover,
.hot-sale-featured-action:focus-visible {
    background: var(--color-brand-secondary);
    color: #FFFFFF;
}

.hot-sale-other-panel {
    padding: 9px;
}

.hot-sale-other-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(190px, 72%);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 7px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hot-sale-other-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr) 24px;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(0, 0, 102, 0.09);
    border-radius: 11px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
    box-shadow: 0 7px 16px rgba(0, 0, 102, 0.06);
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hot-sale-other-card:hover,
.hot-sale-other-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(242, 0, 86, 0.22);
    box-shadow: 0 10px 20px rgba(0, 0, 102, 0.10);
}

.hot-sale-other-card__image {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at center, rgba(242, 0, 86, 0.07), transparent 44%),
        linear-gradient(180deg, #FFFFFF 0%, #F1F5FD 100%);
}

.hot-sale-other-card__image img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 7px 11px rgba(0, 0, 102, 0.15));
}

.hot-sale-other-card__content {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.hot-sale-other-card__content strong,
.hot-sale-other-card__content small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-sale-other-card__content strong {
    color: var(--color-text-main);
    font-size: 11px;
    font-weight: var(--weight-semibold);
    line-height: 1.15;
    text-transform: uppercase;
}

.hot-sale-other-card__content small {
    color: var(--color-text-muted);
    font-size: 9px;
    line-height: 1.2;
}

.hot-sale-other-card__arrow {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 102, 0.07);
    color: var(--color-brand-primary);
    font-size: 9px;
}

@media (min-width: 768px) {
    .hot-sale-gallery-room {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hot-sale-gallery-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 13px 16px;
    }

    .hot-sale-gallery-head p {
        font-size: 13px;
    }

    .hot-sale-gallery-layout {
        grid-template-columns: minmax(0, 72fr) minmax(260px, 28fr);
        gap: 14px;
        align-items: stretch;
    }

    .hot-sale-featured-panel,
    .hot-sale-other-panel {
        border-radius: 16px;
    }

    .hot-sale-featured-panel,
    .hot-sale-other-panel {
        padding: 11px;
    }

    .hot-sale-featured-panel__topline h3,
    .hot-sale-other-panel__head h3 {
        font-size: 18px;
    }

    .hot-sale-featured-gallery {
        grid-template-columns: minmax(0, 2.2fr) minmax(118px, 0.8fr);
        gap: 9px;
    }

    .hot-sale-featured-main {
        border-radius: 13px;
    }

    .hot-sale-feature-thumbnails {
        gap: 9px;
    }

    .hot-sale-feature-thumb {
        border-radius: 11px;
        padding: 5px;
    }

    .hot-sale-feature-thumb__text strong {
        font-size: 9px;
    }

    .hot-sale-featured-meta {
        gap: 10px;
        padding-top: 9px;
    }

    .hot-sale-featured-rating {
        font-size: 11px;
    }

    .hot-sale-featured-meta p {
        font-size: 12px;
    }

    .hot-sale-featured-action {
        padding: 8px 11px;
        font-size: 10px;
    }

    .hot-sale-other-list {
        height: calc(100% - 48px);
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 9px;
        overflow: hidden;
        padding: 0;
    }

    .hot-sale-other-card {
        grid-template-columns: minmax(92px, 42%) minmax(0, 1fr) 28px;
        min-height: 0;
        padding: 8px;
        border-radius: 12px;
    }

    .hot-sale-other-card__image {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .hot-sale-other-card__content strong {
        font-size: 12px;
    }

    .hot-sale-other-card__content small {
        font-size: 10px;
    }
}

@media (min-width: 1200px) {
    .hot-sale-gallery-layout {
        gap: 18px;
    }

    .hot-sale-featured-panel,
    .hot-sale-other-panel {
        padding: 13px;
    }

    .hot-sale-featured-gallery {
        grid-template-columns: minmax(0, 2.25fr) minmax(148px, 0.75fr);
        gap: 11px;
    }

    .hot-sale-feature-thumbnails {
        gap: 11px;
    }

    .hot-sale-feature-thumb__text strong {
        font-size: 10px;
    }

    .hot-sale-featured-meta p {
        font-size: 13px;
    }

    .hot-sale-other-card {
        grid-template-columns: minmax(112px, 43%) minmax(0, 1fr) 30px;
        gap: 10px;
        padding: 9px;
    }

    .hot-sale-other-card__content strong {
        font-size: 13px;
    }

    .hot-sale-other-card__content small {
        font-size: 11px;
    }
}

/* Section: V40 achiever step slider above footer
 * Purpose: One-by-one sliding achiever cards with click preview.
 */
.achiever-showcase-room {
    padding-top: 6px;
    padding-bottom: 8px;
}

.achiever-showcase-card {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: 14px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFF 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 102, 0.06);
}

.achiever-showcase-head {
    padding: 12px 14px 9px;
    border-bottom: 1px solid rgba(0, 0, 102, 0.07);
    background:
        radial-gradient(circle at top right, rgba(242, 0, 86, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 102, 0.02) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.achiever-showcase-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 102, 0.08);
    color: var(--color-brand-primary);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.achiever-showcase-head h2 {
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(20px, 3vw, 30px);
    font-weight: var(--weight-bold);
    line-height: 1.08;
}

.achiever-showcase-head p {
    max-width: 760px;
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.achiever-slider-shell {
    position: relative;
    padding: 12px 0;
    overflow: hidden;
}

.achiever-slider-shell::before,
.achiever-slider-shell::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 26px;
    z-index: 2;
    pointer-events: none;
}

.achiever-slider-shell::before {
    left: 0;
    background: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.achiever-slider-shell::after {
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);
}

.achiever-slider-track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: max-content;
    padding-left: 8px;
    will-change: transform;
}

.achiever-slide-card {
    flex: 0 0 clamp(150px, 11.2vw, 190px);
    padding: 4px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 0, 102, 0.07);
}

.achiever-slide-card__trigger {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.achiever-slide-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, #F7F9FF 0%, #EEF3FF 100%);
}

.achiever-slide-card__image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.achiever-slide-card__zoom-badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 102, 0.82);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.achiever-slide-card:hover .achiever-slide-card__image-wrap img,
.achiever-slide-card:focus-within .achiever-slide-card__image-wrap img {
    transform: scale(1.04);
}

.achiever-slide-card:hover .achiever-slide-card__zoom-badge,
.achiever-slide-card:focus-within .achiever-slide-card__zoom-badge {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1199px) {
    .achiever-slide-card {
        flex-basis: clamp(140px, 14vw, 178px);
    }
}

@media (max-width: 991px) {
    .achiever-slider-shell {
        padding: 10px 0;
    }

    .achiever-slider-shell::before,
    .achiever-slider-shell::after {
        width: 18px;
    }

    .achiever-slider-track {
        gap: 8px;
        padding-left: 8px;
    }

    .achiever-slide-card {
        flex-basis: clamp(130px, 21vw, 160px);
        padding: 4px;
    }
}

@media (max-width: 767px) {
    .achiever-showcase-room {
        padding-top: 5px;
        padding-bottom: 7px;
    }

    .achiever-showcase-card {
        border-radius: 12px;
    }

    .achiever-showcase-head {
        padding: 10px 12px 8px;
    }

    .achiever-showcase-head h2 {
        font-size: 18px;
    }

    .achiever-showcase-head p {
        font-size: 11px;
        line-height: 1.4;
    }

    .achiever-slider-shell::before,
    .achiever-slider-shell::after {
        width: 14px;
    }

    .achiever-slider-track {
        gap: 7px;
        padding-left: 7px;
    }

    .achiever-slide-card {
        flex-basis: calc(46vw - 10px);
        max-width: 154px;
        border-radius: 10px;
        padding: 3px;
    }

    .achiever-slide-card__image-wrap {
        border-radius: 8px;
    }

    .achiever-slide-card__zoom-badge {
        left: 6px;
        bottom: 6px;
        padding: 4px 7px;
        font-size: 9px;
        opacity: 1;
        transform: none;
    }
}

/* Section: V50 common unified section shell foundation
 * Purpose: Keep every section heading and its related content inside one outer
 * container. Inner cards remain available wherever grouping/design needs them.
 */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.site-page-wrapper,
.site-main,
.home-room,
.site-container {
    min-width: 0;
    max-width: 100%;
}

.home-section-shell {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.10);
    border-radius: 15px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(0, 0, 102, 0.07);
}

.home-section-shell__header {
    min-width: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 0;
    box-shadow: none;
}

.home-section-shell__body {
    min-width: 0;
    padding: 7px;
    background: linear-gradient(180deg, #FBFCFF 0%, #F7F9FE 100%);
}

/* Section: V50 Hot Sale unified shell, compact height and overflow repair */
.hot-sale-gallery-room {
    min-width: 0;
    max-width: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(242, 0, 86, 0.04), transparent 31%),
        linear-gradient(180deg, #FFFFFF 0%, #F7F9FE 100%);
}

.hot-sale-section-shell,
.hot-sale-section-body,
.hot-sale-gallery-layout,
.hot-sale-featured-panel,
.hot-sale-other-panel,
.hot-sale-featured-gallery,
.hot-sale-featured-main,
.hot-sale-feature-thumbnails,
.hot-sale-other-list,
.hot-sale-other-card {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.hot-sale-gallery-head {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    background:
        radial-gradient(circle at top right, rgba(242, 0, 86, 0.07), transparent 31%),
        #FFFFFF;
}

.hot-sale-gallery-head p {
    max-width: 760px;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
}

.hot-sale-gallery-head h2 {
    font-size: clamp(20px, 4.6vw, 29px);
}

.hot-sale-section-body {
    overflow: hidden;
}

.hot-sale-gallery-layout {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    overflow: hidden;
}

.hot-sale-featured-panel,
.hot-sale-other-panel {
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(0, 0, 102, 0.06);
}

.hot-sale-featured-panel {
    padding: 7px;
    overflow: hidden;
}

.hot-sale-other-panel {
    padding: 7px;
    overflow: hidden;
}

.hot-sale-featured-panel__topline,
.hot-sale-other-panel__head {
    min-width: 0;
    padding: 1px 1px 6px;
}

.hot-sale-featured-panel__topline h3,
.hot-sale-other-panel__head h3 {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-sale-featured-badge {
    padding: 5px 8px;
    font-size: 8px;
}

.hot-sale-featured-gallery {
    width: 100%;
    height: clamp(220px, 66vw, 260px);
    grid-template-columns: minmax(0, 2.25fr) minmax(68px, 0.75fr);
    gap: 5px;
    align-items: stretch;
    overflow: hidden;
}

.hot-sale-featured-main {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 9px;
    contain: layout paint;
}

.hot-sale-featured-main__stage {
    overflow: hidden;
}

.hot-sale-featured-main img {
    width: 72%;
    height: 72%;
    max-width: 100%;
    max-height: 100%;
}

.hot-sale-featured-main__zoom-note {
    left: 6px;
    bottom: 6px;
    padding: 4px 7px;
    font-size: 7px;
}

.hot-sale-feature-thumbnails {
    width: 100%;
    height: 100%;
    gap: 5px;
    overflow: hidden;
}

.hot-sale-feature-thumb {
    width: 100%;
    height: 100%;
    padding: 3px;
    border-radius: 8px;
    transform: none;
    box-shadow: none;
    overflow: hidden;
}

.hot-sale-feature-thumb:hover,
.hot-sale-feature-thumb:focus-visible {
    transform: none;
    border-color: rgba(242, 0, 86, 0.45);
    box-shadow: inset 0 0 0 1px rgba(242, 0, 86, 0.20);
}

.hot-sale-feature-thumb.is-active {
    transform: none;
    border-color: transparent;
    box-shadow:
        inset 0 0 0 2px var(--color-brand-secondary),
        0 4px 10px rgba(242, 0, 86, 0.10);
}

.hot-sale-feature-thumb__image {
    border-radius: 6px;
}

.hot-sale-feature-thumb__image img {
    max-width: 100%;
    max-height: 100%;
}

.hot-sale-feature-thumb__text strong {
    font-size: 7px;
}

.hot-sale-featured-meta {
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px 1px 0;
}

.hot-sale-featured-rating {
    font-size: 9px;
}

.hot-sale-featured-meta p {
    font-size: 9px;
}

.hot-sale-featured-action {
    padding: 6px 8px;
    font-size: 8px;
}

.hot-sale-other-list {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(0, calc((100% - 8px) / 2));
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1px 1px 5px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    touch-action: pan-x;
}

.hot-sale-other-card {
    width: 100%;
    grid-template-columns: 38% minmax(0, 1fr) 21px;
    gap: 5px;
    padding: 6px;
    border-radius: 9px;
    transform: none;
    scroll-snap-align: start;
}

.hot-sale-other-card:hover,
.hot-sale-other-card:focus-visible {
    transform: none;
    border-color: rgba(242, 0, 86, 0.28);
    box-shadow: 0 7px 16px rgba(0, 0, 102, 0.08);
}

.hot-sale-other-card__image {
    border-radius: 7px;
}

.hot-sale-other-card__content strong {
    font-size: 9px;
}

.hot-sale-other-card__content small {
    font-size: 8px;
}

.hot-sale-other-card__arrow {
    width: 21px;
    height: 21px;
    font-size: 8px;
}

@media (min-width: 768px) {
    .home-section-shell {
        border-radius: 17px;
    }

    .home-section-shell__body {
        padding: 9px;
    }

    .hot-sale-gallery-room {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hot-sale-gallery-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 11px 14px;
    }

    .hot-sale-gallery-head p {
        font-size: 12px;
    }

    .hot-sale-gallery-layout {
        grid-template-columns: minmax(0, 72fr) minmax(230px, 28fr);
        gap: 9px;
        align-items: stretch;
    }

    .hot-sale-featured-panel,
    .hot-sale-other-panel {
        padding: 8px;
        border-radius: 12px;
    }

    .hot-sale-featured-panel__topline h3,
    .hot-sale-other-panel__head h3 {
        font-size: 15px;
    }

    .hot-sale-featured-gallery {
        height: clamp(300px, 35vw, 410px);
        grid-template-columns: minmax(0, 2.28fr) minmax(102px, 0.72fr);
        gap: 7px;
    }

    .hot-sale-featured-main {
        border-radius: 10px;
    }

    .hot-sale-feature-thumbnails {
        gap: 7px;
    }

    .hot-sale-feature-thumb {
        padding: 4px;
        border-radius: 9px;
    }

    .hot-sale-feature-thumb__text strong {
        font-size: 8px;
    }

    .hot-sale-featured-meta {
        gap: 8px;
        padding-top: 7px;
    }

    .hot-sale-featured-rating {
        font-size: 10px;
    }

    .hot-sale-featured-meta p {
        font-size: 10px;
    }

    .hot-sale-featured-action {
        padding: 7px 9px;
        font-size: 9px;
    }

    .hot-sale-other-list {
        height: calc(100% - 42px);
        display: grid;
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 7px;
        overflow: hidden;
        padding: 0;
        touch-action: auto;
    }

    .hot-sale-other-card {
        min-height: 0;
        grid-template-columns: minmax(76px, 39%) minmax(0, 1fr) 23px;
        padding: 6px;
        border-radius: 9px;
    }

    .hot-sale-other-card__image {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
    }

    .hot-sale-other-card__content strong {
        font-size: 10px;
    }

    .hot-sale-other-card__content small {
        font-size: 9px;
    }
}

@media (min-width: 1200px) {
    .home-section-shell__body {
        padding: 10px;
    }

    .hot-sale-gallery-layout {
        gap: 11px;
    }

    .hot-sale-featured-panel,
    .hot-sale-other-panel {
        padding: 9px;
    }

    .hot-sale-featured-gallery {
        height: clamp(350px, 29vw, 430px);
        grid-template-columns: minmax(0, 2.3fr) minmax(128px, 0.70fr);
        gap: 8px;
    }

    .hot-sale-feature-thumbnails {
        gap: 8px;
    }

    .hot-sale-feature-thumb__text strong {
        font-size: 9px;
    }

    .hot-sale-featured-meta p {
        font-size: 11px;
    }

    .hot-sale-other-card {
        grid-template-columns: minmax(90px, 41%) minmax(0, 1fr) 25px;
        gap: 7px;
        padding: 7px;
    }

    .hot-sale-other-card__content strong {
        font-size: 11px;
    }

    .hot-sale-other-card__content small {
        font-size: 10px;
    }
}

/* Section: V51 unified homepage section system
 * Purpose: Every homepage heading and its related content share one outer shell.
 * Inner cards, galleries, tracks and shadows remain independent design elements.
 */
.home-unified-section-head {
    min-width: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px 9px;
    border-bottom: 1px solid rgba(0, 0, 102, 0.08);
    background:
        radial-gradient(circle at top right, rgba(242, 0, 86, 0.07), transparent 34%),
        linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 100%);
}

.home-unified-section-head__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.home-unified-section-kicker {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 102, 0.07);
    color: var(--color-brand-primary);
    font-size: 9px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-unified-section-head h2 {
    min-width: 0;
    margin: 0;
    color: var(--color-text-main);
    font-size: clamp(18px, 4.8vw, 29px);
    font-weight: var(--weight-bold);
    line-height: 1.08;
}

.home-unified-section-head p {
    max-width: 760px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-unified-section-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid rgba(0, 0, 102, 0.12);
    border-radius: 999px;
    background: var(--color-brand-primary);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 0, 102, 0.14);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.home-unified-section-action:hover,
.home-unified-section-action:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-secondary);
    box-shadow: 0 8px 18px rgba(242, 0, 86, 0.18);
}

.home-section-shell--categories .home-section-shell__body,
.home-section-shell--round-categories .home-section-shell__body,
.home-section-shell--feedback .home-section-shell__body,
.home-section-shell--achievements .home-section-shell__body,
.home-section-shell--achievers .home-section-shell__body,
.home-section-shell--products .home-section-shell__body {
    padding: 7px;
}

.home-section-shell__body--edge-slider {
    padding-inline: 0 !important;
}

/* Inner category boxes remain visually separate from the unified outer shell. */
.home-section-shell--categories .mini-category-card,
.home-section-shell--round-categories .round-category-card,
.home-section-shell--feedback .feedback-card,
.home-section-shell--achievements .achievement-card {
    border: 1px solid rgba(0, 0, 102, 0.08);
    background: #FFFFFF;
    box-shadow: 0 6px 15px rgba(0, 0, 102, 0.06);
}

.home-section-shell--round-categories .round-category-card {
    padding: 7px 5px;
    border-radius: 10px;
}

.home-section-shell--feedback .feedback-card {
    border-radius: 11px;
}

.home-section-shell--achievements .achievement-card {
    overflow: hidden;
    border-radius: 10px;
}

/* Remove the former floating-header appearance inside product rooms. */
.home-product-room,
.premium-product-room {
    background: transparent;
}

.home-product-room .catalog-product-grid,
.premium-product-room .premium-product-grid {
    margin: 0;
}

/* Keep all inner horizontal tracks local to their own section. */
.feedback-row,
.achiever-slider-shell,
.hot-sale-other-list {
    max-width: 100%;
    overscroll-behavior-inline: contain;
}

@media (max-width: 767px) {
    .home-room {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .home-section-shell {
        border-radius: 12px;
    }

    .home-unified-section-head {
        align-items: center;
        gap: 7px;
        padding: 8px 9px 7px;
    }

    .home-unified-section-head__copy {
        gap: 2px;
    }

    .home-unified-section-kicker {
        padding: 4px 7px;
        font-size: 8px;
    }

    .home-unified-section-head h2 {
        font-size: 18px;
    }

    .home-unified-section-head p {
        font-size: 9px;
        line-height: 1.3;
        -webkit-line-clamp: 1;
    }

    .home-unified-section-action {
        min-height: 28px;
        padding: 6px 8px;
        font-size: 8px;
    }

    .home-section-shell--categories .home-section-shell__body,
    .home-section-shell--round-categories .home-section-shell__body,
    .home-section-shell--feedback .home-section-shell__body,
    .home-section-shell--achievements .home-section-shell__body,
    .home-section-shell--achievers .home-section-shell__body,
    .home-section-shell--products .home-section-shell__body {
        padding: 6px;
    }
}

@media (min-width: 768px) {
    .home-unified-section-head {
        gap: 16px;
        padding: 12px 14px 11px;
    }

    .home-unified-section-kicker {
        padding: 5px 9px;
        font-size: 10px;
    }

    .home-unified-section-head p {
        font-size: 12px;
    }

    .home-unified-section-action {
        min-height: 36px;
        padding: 8px 13px;
        font-size: 11px;
    }

    .home-section-shell--categories .home-section-shell__body,
    .home-section-shell--round-categories .home-section-shell__body,
    .home-section-shell--feedback .home-section-shell__body,
    .home-section-shell--achievements .home-section-shell__body,
    .home-section-shell--achievers .home-section-shell__body,
    .home-section-shell--products .home-section-shell__body {
        padding: 9px;
    }
}

/* Section: V54 uniform homepage background and one-line section separation
 * Purpose: Remove alternating full-width color bands. Every homepage room now
 * sits on one neutral page background and uses a single 1px bottom separator.
 * Unified outer shells and useful inner card shadows remain independent.
 */
.site-main-content {
    background: var(--color-bg-soft);
}

.site-main-content > .home-room,
.site-main-content > .home-room:nth-of-type(even),
.site-main-content > .home-product-room,
.site-main-content > .premium-product-room,
.site-main-content > .hot-sale-gallery-room,
.site-main-content > .achiever-showcase-room,
.site-main-content > .home-hero-slider-room {
    position: relative;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 102, 0.10);
}

.site-main-content > .home-room:last-child {
    border-bottom: 0;
}

/* The section shell remains the visual family container. */
.home-section-shell,
.hot-sale-section-shell {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 102, 0.09);
    box-shadow: 0 5px 16px rgba(0, 0, 102, 0.055);
}

.home-section-shell__header,
.home-unified-section-head,
.hot-sale-gallery-head {
    background:
        radial-gradient(circle at top right, rgba(242, 0, 86, 0.045), transparent 34%),
        #FFFFFF;
}

.home-section-shell__body,
.hot-sale-section-body {
    background: #FFFFFF;
}

/* Inner cards keep their own depth only where they represent real content. */
.home-section-shell .catalog-product-card,
.home-section-shell .premium-product-card,
.home-section-shell .mini-category-card,
.home-section-shell .round-category-card,
.home-section-shell .feedback-card,
.home-section-shell .achievement-card,
.home-section-shell .achiever-slide-card,
.hot-sale-section-shell .hot-sale-featured-panel,
.hot-sale-section-shell .hot-sale-other-panel,
.hot-sale-section-shell .hot-sale-feature-thumb,
.hot-sale-section-shell .hot-sale-other-card {
    box-shadow: 0 5px 14px rgba(0, 0, 102, 0.06);
}

@media (max-width: 767px) {
    .site-main-content > .home-room {
        border-bottom-color: rgba(0, 0, 102, 0.09);
    }

    .home-section-shell,
    .hot-sale-section-shell {
        box-shadow: 0 4px 12px rgba(0, 0, 102, 0.05);
    }
}

/* Section: V55 real category icons and compact single-line mobile copy
 * Purpose: Replace generic category glyphs with approved category images and
 * keep quick homepage text from wrapping into tall mobile cards.
 */
.round-category-icon--image {
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(242, 0, 86, 0.07), transparent 64%),
        #FFFFFF;
}

.round-category-icon--image img {
    width: 84%;
    height: 84%;
    display: block;
    object-fit: contain;
    transition: transform 0.22s ease;
}

.round-category-card {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.round-category-card:hover,
.round-category-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(242, 0, 86, 0.22);
    box-shadow: 0 10px 20px rgba(0, 0, 102, 0.10);
}

.round-category-card:hover .round-category-icon--image img,
.round-category-card:focus-within .round-category-icon--image img {
    transform: scale(1.05);
}

@media (max-width: 767px) {
    /* Global compact-copy rule for homepage cards and quick section hints. */
    .catalog-product-card__body,
    .catalog-product-card__footer,
    .premium-product-card__content,
    .premium-product-card__info,
    .home-unified-section-head__copy,
    .mini-category-card,
    .round-category-card {
        min-width: 0;
    }

    .catalog-product-card__body h3,
    .catalog-product-card__body p,
    .catalog-product-card__series,
    .catalog-product-card__action,
    .premium-product-card__info h3,
    .mini-category-card > span:last-child,
    .round-category-card > span:last-child,
    .home-unified-section-head p {
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        -webkit-line-clamp: unset;
    }

    .catalog-product-card__body {
        gap: 3px;
        padding: 7px 7px 8px;
    }

    .catalog-product-card__body h3 {
        font-size: 9.5px;
        line-height: 1.1;
        letter-spacing: -0.015em;
    }

    .catalog-product-card__body p {
        font-size: 9px;
        line-height: 1.15;
    }

    .catalog-product-card__footer {
        gap: 4px;
        margin-top: 1px;
    }

    .catalog-product-card__series {
        width: 100%;
        padding: 3px 6px;
        font-size: 8.5px;
        line-height: 1.1;
    }

    .catalog-product-card__action {
        width: fit-content;
        font-size: 9px;
        line-height: 1.1;
    }

    .catalog-product-card__badge,
    .catalog-product-card__flag {
        font-size: 8px;
    }

    .round-category-icon {
        width: 54px;
        height: 54px;
    }

    .round-category-card > span:last-child,
    .mini-category-card > span:last-child {
        width: 100%;
        font-size: 9.5px;
        line-height: 1.1;
        text-align: center;
    }

    .home-unified-section-head p {
        font-size: 9px;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .catalog-product-card__body h3 {
        font-size: 9px;
    }

    .catalog-product-card__body p,
    .catalog-product-card__action {
        font-size: 8.5px;
    }

    .catalog-product-card__series {
        font-size: 8px;
    }
}

/* Section: V56 professional product tags and real achievement icons
 * Purpose: Replace oversized generic-looking labels with compact ecommerce-style
 * tags, and use dedicated Raanmat achievement artwork in the achievements grid.
 */
.catalog-product-card__badge {
    top: 8px;
    left: 8px;
    min-height: 22px;
    max-width: calc(100% - 58px);
    padding: 5px 13px 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 5px 2px 2px 5px;
    clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
    background: linear-gradient(135deg, #000066 0%, #111184 100%);
    color: #FFFFFF;
    font-size: 8.5px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 5px 12px rgba(0, 0, 102, 0.16);
}

.catalog-product-card__badge::before {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    margin-right: 5px;
    border-radius: 50%;
    background: #FF4E88;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

.catalog-product-card__flag {
    top: 0;
    right: 0;
    min-height: 22px;
    max-width: 62%;
    padding: 6px 7px 5px 12px;
    border-radius: 0 0 0 8px;
    clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(135deg, #D9004E 0%, #F20056 72%, #FF4E88 100%);
    color: #FFFFFF;
    font-size: 7.5px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    writing-mode: horizontal-tb;
    transform: none;
    box-shadow: 0 5px 12px rgba(242, 0, 86, 0.18);
}

.catalog-product-card:hover .catalog-product-card__badge,
.catalog-product-card:focus-within .catalog-product-card__badge {
    background: linear-gradient(135deg, #080875 0%, #20209A 100%);
}

.catalog-product-card:hover .catalog-product-card__flag,
.catalog-product-card:focus-within .catalog-product-card__flag {
    background: linear-gradient(135deg, #C60047 0%, #F20056 68%, #FF679A 100%);
}

.home-section-shell--achievements .achievement-row {
    align-items: stretch;
}

.home-section-shell--achievements .achievement-card {
    min-height: 94px;
    align-content: center;
    gap: 5px;
    padding: 7px 6px 8px;
    border-radius: 10px;
    background:
        radial-gradient(circle at top, rgba(242, 0, 86, 0.045), transparent 46%),
        #FFFFFF;
}

.achievement-image--real {
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background:
        radial-gradient(circle at center, rgba(0, 0, 102, 0.055), transparent 68%),
        #FAFBFF;
}

.achievement-image--real img {
    width: 88%;
    height: 88%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 102, 0.12));
    transition: transform 0.22s ease;
}

.home-section-shell--achievements .achievement-card h3 {
    width: 100%;
    margin: 0;
    color: var(--color-text-main);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-section-shell--achievements .achievement-card:hover,
.home-section-shell--achievements .achievement-card:focus-within {
    border-color: rgba(242, 0, 86, 0.18);
    box-shadow: 0 9px 18px rgba(0, 0, 102, 0.09);
}

.home-section-shell--achievements .achievement-card:hover .achievement-image--real img,
.home-section-shell--achievements .achievement-card:focus-within .achievement-image--real img {
    transform: scale(1.045);
}

@media (max-width: 767px) {
    .catalog-product-card__badge {
        top: 7px;
        left: 7px;
        min-height: 19px;
        max-width: calc(100% - 48px);
        padding: 4px 11px 4px 6px;
        font-size: 7px;
        letter-spacing: 0.03em;
        box-shadow: 0 4px 9px rgba(0, 0, 102, 0.14);
    }

    .catalog-product-card__badge::before {
        width: 3px;
        height: 3px;
        flex-basis: 3px;
        margin-right: 4px;
    }

    .catalog-product-card__flag {
        min-height: 19px;
        max-width: 58%;
        padding: 5px 5px 4px 10px;
        border-radius: 0 0 0 7px;
        font-size: 6.4px;
        letter-spacing: 0.02em;
        box-shadow: 0 4px 9px rgba(242, 0, 86, 0.15);
    }

    .home-section-shell--achievements .achievement-card {
        min-height: 90px;
        padding: 6px 5px 7px;
    }

    .achievement-image--real {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .home-section-shell--achievements .achievement-card h3 {
        font-size: 9px;
    }
}

@media (min-width: 768px) {
    .home-section-shell--achievements .achievement-card {
        min-height: 116px;
        padding: 10px 8px;
    }

    .achievement-image--real {
        width: 72px;
        height: 72px;
    }

    .home-section-shell--achievements .achievement-card h3 {
        font-size: 12px;
    }
}

/* Section: V57 dynamic Company Videos and Event Gallery
 * Purpose: Four compact cards remain visible on desktop and mobile. Extra items
 * scroll only inside the media track. Text stays single-line on mobile.
 */
.home-media-room[hidden] { display: none; }
.home-section-shell--media { overflow: hidden; }
.home-media-section-head { align-items: center; }
.home-media-scroll-controls { flex: 0 0 auto; display: flex; gap: 6px; }
.home-media-scroll-controls button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 102, 0.12);
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-brand-primary);
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 0, 102, 0.07);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.home-media-scroll-controls button:hover,
.home-media-scroll-controls button:focus-visible {
    transform: translateY(-1px);
    background: var(--color-brand-primary);
    color: #FFFFFF;
}
.home-media-track {
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 4);
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 12px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.home-media-card {
    min-width: 0;
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 102, 0.09);
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 7px 18px rgba(0, 0, 102, 0.07);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.home-media-card:hover,
.home-media-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(242, 0, 86, 0.22);
    box-shadow: 0 12px 24px rgba(0, 0, 102, 0.11);
}
.home-media-card__trigger {
    width: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.home-media-card__visual {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F9FF 0%, #EEF2FB 100%);
}
.home-media-card--landscape .home-media-card__visual { aspect-ratio: 16 / 9; }
.home-media-card--square .home-media-card__visual { aspect-ratio: 1 / 1; }
.home-media-card__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}
.home-media-card:hover .home-media-card__visual img,
.home-media-card:focus-within .home-media-card__visual img {
    transform: scale(1.04);
    filter: brightness(.82);
}
.home-video-card__play,
.home-event-card__preview {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(242, 0, 86, 0.92);
    color: #FFFFFF;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: transform .22s ease, background-color .22s ease;
}
.home-event-card__preview { background: rgba(0, 0, 102, .88); }
.home-media-card:hover .home-video-card__play,
.home-media-card:focus-within .home-video-card__play,
.home-media-card:hover .home-event-card__preview,
.home-media-card:focus-within .home-event-card__preview {
    transform: translate(-50%, -50%) scale(1.08);
}
.home-media-card__content {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 9px 10px 10px;
}
.home-media-card__content strong,
.home-media-card__content small {
    min-width: 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.home-media-card__content strong {
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: var(--weight-semibold);
    line-height: 1.2;
}
.home-media-card__content small {
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.2;
}

html.home-media-modal-open,
body.home-media-modal-open { overflow: hidden !important; }
.home-media-modal[hidden] { display: none; }
.home-media-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.home-media-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 40, .78);
    backdrop-filter: blur(5px);
}
.home-media-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 28px 80px rgba(0, 0, 30, .42);
    outline: 0;
}
.home-media-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-brand-secondary);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(242, 0, 86, .28);
}
.home-media-video-frame { aspect-ratio: 16 / 9; background: #000; }
.home-media-video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.home-media-modal__dialog--video h3 {
    margin: 0;
    padding: 11px 16px 13px;
    color: var(--color-text-main);
    font-size: 17px;
    font-weight: var(--weight-semibold);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-media-modal__dialog--event {
    width: min(980px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 12px;
}
.home-media-event-preview {
    min-height: 240px;
    max-height: calc(100dvh - 130px);
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #F1F4FA;
}
.home-media-event-preview img {
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    object-fit: contain;
}
.home-media-modal__nav {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-brand-primary);
    color: #FFFFFF;
    cursor: pointer;
}
.home-media-modal__nav--previous { margin-right: 8px; }
.home-media-modal__nav--next { margin-left: 8px; }
.home-media-event-caption {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 10px 6px 0;
}
.home-media-event-caption h3 {
    margin: 0;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-media-event-caption p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-media-event-caption span { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--color-brand-primary); font-size: 12px; font-weight: var(--weight-semibold); }

@media (max-width: 767px) {
    .home-media-section-head { flex-direction: row; align-items: center; gap: 8px; }
    .home-media-section-head .home-unified-section-head__copy { min-width: 0; }
    .home-media-scroll-controls { gap: 4px; }
    .home-media-scroll-controls button { width: 26px; height: 26px; font-size: 10px; }
    .home-media-track {
        grid-auto-columns: calc((100% - 18px) / 4);
        gap: 6px;
        padding: 7px 7px 9px;
    }
    .home-media-card { border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 102, .06); }
    .home-video-card__play,
    .home-event-card__preview { width: 24px; height: 24px; font-size: 8px; }
    .home-media-card__content { gap: 2px; padding: 5px 5px 6px; }
    .home-media-card__content strong { font-size: 8px; line-height: 1.1; }
    .home-media-card__content small { font-size: 7px; line-height: 1.1; }
    .home-media-modal__dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
    .home-media-modal__close { top: 7px; right: 7px; width: 32px; height: 32px; }
    .home-media-modal__dialog--video h3 { padding: 8px 10px 10px; font-size: 14px; }
    .home-media-modal__dialog--event { grid-template-columns: 30px minmax(0, 1fr) 30px; padding: 8px; }
    .home-media-modal__nav { width: 28px; height: 28px; font-size: 10px; }
    .home-media-modal__nav--previous { margin-right: 3px; }
    .home-media-modal__nav--next { margin-left: 3px; }
    .home-media-event-preview { min-height: 180px; max-height: calc(100dvh - 120px); border-radius: 9px; }
    .home-media-event-preview img { max-height: calc(100dvh - 140px); }
    .home-media-event-caption { gap: 2px 8px; padding: 7px 3px 0; }
    .home-media-event-caption h3 { font-size: 13px; }
    .home-media-event-caption p,
    .home-media-event-caption span { font-size: 10px; }
}


/* Section: V58 single professional product tag and visible media empty states
 * Purpose: Every product card uses only one compact tag. Company Videos and
 * Event Gallery remain visible even before Active media records are added.
 */
.catalog-product-card,
.premium-product-card {
    --product-tag-accent: #F20056;
}

.catalog-product-card:nth-child(6n + 2),
.premium-product-card:nth-child(6n + 2) { --product-tag-accent: #F3A000; }
.catalog-product-card:nth-child(6n + 3),
.premium-product-card:nth-child(6n + 3) { --product-tag-accent: #0E9B8A; }
.catalog-product-card:nth-child(6n + 4),
.premium-product-card:nth-child(6n + 4) { --product-tag-accent: #7A4FD2; }
.catalog-product-card:nth-child(6n + 5),
.premium-product-card:nth-child(6n + 5) { --product-tag-accent: #2D9B50; }
.catalog-product-card:nth-child(6n + 6),
.premium-product-card:nth-child(6n + 6) { --product-tag-accent: #2474C8; }

.catalog-product-card__flag,
.premium-product-card__tag {
    display: none !important;
}

.catalog-product-card__badge,
.premium-product-card__badge {
    top: 8px;
    left: 8px;
    min-height: 18px;
    max-width: calc(100% - 16px);
    padding: 4px 8px 4px 7px;
    border: 1px solid rgba(0, 0, 102, 0.12);
    border-left: 3px solid var(--product-tag-accent);
    border-radius: 4px 8px 8px 4px;
    clip-path: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-brand-primary);
    font-size: 8px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.035em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 10px rgba(0, 0, 102, 0.08);
}

.catalog-product-card__badge::before,
.premium-product-card__badge::before {
    content: "";
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--product-tag-accent);
    box-shadow: none;
}

.catalog-product-card:hover .catalog-product-card__badge,
.catalog-product-card:focus-within .catalog-product-card__badge,
.premium-product-card:hover .premium-product-card__badge,
.premium-product-card:focus-within .premium-product-card__badge {
    background: #FFFFFF;
    color: var(--color-brand-primary);
    box-shadow: 0 6px 14px rgba(0, 0, 102, 0.12);
}

.home-media-empty-state {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 20px;
    border: 1px dashed rgba(0, 0, 102, 0.18);
    border-radius: 12px;
    background:
        radial-gradient(circle at top, rgba(242, 0, 86, 0.06), transparent 42%),
        #FBFCFF;
    text-align: center;
}

.home-media-empty-state > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 102, 0.08);
    color: var(--color-brand-primary);
    font-size: 16px;
}

.home-media-empty-state strong {
    color: var(--color-text-main);
    font-size: 13px;
    font-weight: var(--weight-semibold);
}

.home-media-empty-state small {
    max-width: 560px;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .catalog-product-card__badge,
    .premium-product-card__badge {
        top: 6px;
        left: 6px;
        min-height: 15px;
        max-width: calc(100% - 12px);
        padding: 3px 6px 3px 5px;
        border-left-width: 2px;
        border-radius: 3px 6px 6px 3px;
        font-size: 6.6px;
        letter-spacing: 0.02em;
        box-shadow: 0 3px 7px rgba(0, 0, 102, 0.07);
    }

    .catalog-product-card__badge::before,
    .premium-product-card__badge::before {
        width: 3px;
        height: 3px;
        flex-basis: 3px;
        margin-right: 3px;
    }

    .home-media-empty-state {
        min-height: 110px;
        gap: 5px;
        padding: 14px 10px;
        border-radius: 9px;
    }

    .home-media-empty-state > span {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .home-media-empty-state strong {
        font-size: 10px;
    }

    .home-media-empty-state small {
        max-width: 290px;
        font-size: 8.5px;
        line-height: 1.25;
    }
}

/* V71 CMS: optional quick-category links retain the existing card appearance. */
a.mini-category-card {
    color: inherit;
    text-decoration: none;
}

a.mini-category-card:visited {
    color: inherit;
}
