:root {
    --bg: #0b0c10;
    --text: #f4f1eb;
    --text-soft: rgba(244, 241, 235, 0.78);
    --accent: #ff6a00;
    --accent-soft: rgba(255, 106, 0, 0.2);
    --panel: rgba(9, 12, 18, 0.8);
    --panel-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(180deg, rgba(4, 6, 10, 0.92), rgba(6, 8, 12, 0.96)),
        url("/images/backgroundimage.png") center center / cover no-repeat fixed;
    font-family: "Barlow", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

/* Shell, header, dan footer diselaraskan dengan index agar brand konsisten */
.page-shell {
    position: relative;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 28px clamp(28px, 4vw, 72px) 32px;
}

.page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.12), rgba(8, 10, 14, 0.38)),
        radial-gradient(circle at top right, rgba(255, 106, 0, 0.14), transparent 26%);
    pointer-events: none;
}

.site-header,
.main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 4px clamp(10px, 1.2vw, 18px) 20px;
    border-bottom: 5px solid var(--accent);
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    width: clamp(92px, 12vw, 124px);
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(18px, 2vw, 34px);
    padding-inline: 12px;
}

.site-nav a,
.login-link {
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.32rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.login-link:hover {
    color: #ffb067;
    transform: translateY(-1px);
    text-shadow: 0 0 14px rgba(255, 122, 0, 0.32);
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.login-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.login-icon::before,
.login-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.login-icon::before {
    top: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.login-icon::after {
    bottom: 1px;
    width: 9px;
    height: 5px;
    border-radius: 999px 999px 0 0;
    border-top: 2px solid currentColor;
}

.main-content {
    padding-top: 34px;
}

.products-headline {
    max-width: 880px;
    margin-bottom: 24px;
}

.section-kicker {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.products-headline h1 {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.8rem, 4.8vw, 5rem);
    line-height: 0.92;
}

.products-headline h1 span {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.6rem, 2.8vw, 2.85rem);
}

.section-copy {
    margin: 18px 0 0;
    max-width: 62ch;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.68;
}

/* Carousel utama memakai slide overlay agar transisi terlihat bersih */
.carousel-shell {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.carousel-stage {
    position: relative;
    min-height: 560px;
}

.product-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(26px, 3vw, 40px);
    align-items: center;
    padding: clamp(24px, 3vw, 34px);
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.7), rgba(8, 10, 14, 0.78));
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(14px) scale(0.985);
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

.product-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.product-copy {
    max-width: 430px;
}

.product-copy h2 {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.94;
}

.product-copy h3 {
    margin: 6px 0 0;
    color: #f7f1e8;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 700;
}

.product-tagline {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(0.92rem, 1.2vw, 1rem);
}

.product-description {
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.68;
}

.product-actions {
    margin-top: 24px;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff8f1f 0%, var(--accent) 100%);
    color: #fff8f0;
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(255, 106, 0, 0.26);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 24px 40px rgba(255, 106, 0, 0.32);
}

/* Gambar produk dibuat klik-able untuk membuka modal zoom */
.product-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(280px, 42vw, 500px);
    padding: clamp(12px, 1.4vw, 18px);
    border: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
    cursor: zoom-in;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-figure:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.44);
}

.product-figure img {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.nav-button {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(8, 10, 14, 0.82);
    color: var(--accent);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.nav-button:hover {
    color: #ffb067;
    border-color: rgba(255, 176, 103, 0.5);
    transform: scale(1.04);
}

.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 4px 0;
}

.carousel-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dot {
    width: 44px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.dot.is-active,
.dot:hover {
    background: var(--accent);
    transform: scaleX(1.06);
}

.carousel-hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    text-align: right;
}

.info-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
    padding: 24px 0 18px;
    border-top: 1px dashed rgba(255, 40, 40, 0.75);
    border-bottom: 1px dashed rgba(255, 40, 40, 0.75);
}

.info-card {
    padding-right: 20px;
}

.info-card h2 {
    margin: 0 0 10px;
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1;
}

.info-card p,
.info-card a {
    margin: 6px 0;
    color: rgba(244, 241, 235, 0.92);
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.5;
}

.info-card a:hover,
.site-footer a:hover {
    color: #ffba74;
}

.site-footer {
    padding: 28px 0 8px;
    text-align: center;
}

.site-footer p,
.site-footer a {
    margin: 0;
    color: rgba(244, 241, 235, 0.82);
    font-size: 1rem;
}

/* Modal gambar memakai tombol zoom agar tetap usable di desktop maupun mobile */
.image-modal[hidden] {
    display: none;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(96vw, 1320px);
    max-height: 92vh;
    margin: 4vh auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(8, 10, 14, 0.96);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
    overflow: hidden;
}

.modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-toolbar p {
    margin: 0;
    color: #fff4e5;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-actions button {
    min-width: 54px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff1dd;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.modal-actions button:hover {
    background: var(--accent-soft);
    border-color: rgba(255, 176, 103, 0.4);
}

.modal-stage {
    flex: 1;
    overflow: auto;
    padding: 18px;
    background: linear-gradient(180deg, rgba(8, 10, 14, 0.95), rgba(3, 5, 8, 0.98));
}

.modal-stage img {
    max-width: none;
    width: auto;
    height: auto;
    margin: 0 auto;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
    }

    .login-link {
        justify-self: center;
    }

    .carousel-shell {
        grid-template-columns: 1fr;
    }

    .carousel-stage {
        order: 2;
        min-height: 740px;
    }

    .nav-button {
        display: none;
    }

    .product-slide {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .product-copy {
        max-width: 100%;
    }

    .carousel-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .carousel-hint {
        text-align: left;
    }
}

@media (max-width: 720px) {
    body {
        background-attachment: scroll;
    }

    .page-shell {
        padding: 18px 16px 24px;
    }

    .site-header {
        border-bottom-width: 4px;
    }

    .site-nav {
        gap: 12px 18px;
    }

    .carousel-stage {
        min-height: 680px;
    }

    .product-slide {
        gap: 20px;
        padding: 18px;
    }

    .product-figure {
        min-height: 240px;
    }

    .info-panel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .info-card {
        padding-right: 0;
    }

    .modal-dialog {
        width: min(100vw, 100%);
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .modal-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .products-headline h1 {
        font-size: 2.35rem;
    }

    .products-headline h1 span {
        font-size: 1.5rem;
    }

    .site-nav a,
    .login-link {
        font-size: 0.95rem;
    }

    .carousel-stage {
        min-height: 720px;
    }

    .dot {
        width: 30px;
    }
}
