/* ============================================
   SAIN - Stylesheet utama
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

/* --- Section: Top Header --- */
.top-header {
    background: #936F56;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.top-header-label {
    color: #d4726a;
    font-weight: 600;
    margin-right: 0.5rem;
}

.top-header-text {
    color: #fff;
}

/* --- Section: Center Logo --- */
.center-logo {
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.center-logo-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: inline-block;
    vertical-align: middle;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

/* --- Section: Menu --- */
.menu {
    background: #9CD5CE;
    padding: 0;
    position: relative;
}

/* Hamburger: sembunyikan di desktop */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu.is-open .menu-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu.is-open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}
.menu.is-open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
    text-transform: uppercase;
}

.menu-list a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Menu item with dropdown */
.menu-item-has-children {
    position: relative;
}
.menu-item-has-children > a {
    padding-right: 2rem;
}
.menu-sub-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: none;
}
.menu-sub-toggle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    margin: 0 auto;
    transition: transform 0.2s;
}
.menu-item-has-children.is-sub-open .menu-sub-toggle::after {
    transform: rotate(180deg);
}
.menu-sub {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: #7ab8b0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 20;
}
.menu-sub li {
    margin: 0;
}
.menu-sub a {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}
.menu-sub a:hover {
    background: rgba(0, 0, 0, 0.2);
}
.menu-sub li:last-child a {
    border-bottom: none;
}
.menu-sub {
    display: none;
}
.menu-item-has-children:hover .menu-sub {
    display: block;
}

/* Mobile: tampilkan hamburger, menu collapse */
@media (max-width: 768px) {
    .menu {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
    }

    .menu-toggle {
        display: flex;
        order: 1;
    }

    .menu-list {
        display: none;
        flex-basis: 100%;
        order: 2;
        flex-direction: column;
        margin: 0;
        padding: 0.5rem 0;
        max-width: none;
    }

    .menu.is-open .menu-list {
        display: flex;
    }

    .menu-list a {
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .menu-list li:last-child a {
        border-bottom: none;
    }
    .menu-sub-toggle {
        display: block;
    }
    .menu-sub {
        position: static;
        min-width: none;
        box-shadow: none;
        background: #7ab8b0;
        display: none;
        padding: 0 0 0 1rem;
    }
    .menu-item-has-children.is-sub-open .menu-sub {
        display: block;
    }
    .menu-item-has-children:hover .menu-sub {
        display: none;
    }
    .menu-item-has-children.is-sub-open:hover .menu-sub {
        display: block;
    }
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    background: #1a1a2e;
}

.hero-slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 400;
    max-height: 420px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
}

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

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

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 10px 14px;
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.hero-slider-arrow:hover {
    background: #fff;
    color: #1a1a2e;
}

.hero-slider-arrow-icon {
    flex-shrink: 0;
}

.hero-slider-arrow-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-slider-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-slider-track {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }
    .hero-slider-arrow-text {
        display: none;
    }
    .hero-slider-arrow {
        padding: 8px 10px;
        gap: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
    }
    .hero-slider-prev { left: 8px; }
    .hero-slider-next { right: 8px; }
}

/* Layar sangat sempit (termasuk ~300px): gambar utuh, tidak terpotong */
@media (max-width: 480px) {
    .hero-slider-track {
        aspect-ratio: 4 / 3;
        max-height: min(75vh, 320px);
    }
    .hero-slide img {
        object-fit: contain;
        background: #1a1a2e;
    }
}

/* --- Banner 2 kolom (Kelebihan merek SAIN & Daftar harga) --- */
.banner-cols {
    width: 100%;
    background: #f5f5f5;
    padding: 0;
    margin-top: 2rem;
}

.banner-cols-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.banner-col {
    min-height: 120px;
}

.banner-col-image-wrap {
    position: relative;
    display: block;
}

.banner-col-link {
    display: block;
    line-height: 0;
}

.banner-col-link img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

/* Teks mengambang di kolom pertama (tanpa overlay gelap) */
.banner-col-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    padding-top: 1rem;
    text-align: center;
}

.banner-col-overlay-text {
    margin: 0 0 1rem;
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    max-width: 90%;
}

.banner-col-overlay-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #9CD5CE;
    color: #1a1a2e;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.2s;
}

.banner-col-overlay-btn:hover {
    background: #7bc4bc;
    transform: scale(1.05);
}

/* Kolom kedua: teks tengah kanan */
.banner-col-overlay--right {
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

@media (max-width: 768px) {
    .banner-cols-inner {
        grid-template-columns: 1fr;
    }
}

/* --- Section: Tentang Kami --- */
.tentang-kami {
    background-color: #f5f5f5;
    padding: 3rem 1.5rem;
    margin-top: 2.5rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.tentang-kami-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tentang-kami-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.tentang-kami-line {
    width: 60px;
    height: 3px;
    margin: 0 auto 1.5rem;
    background-color: #c0392b;
}

.tentang-kami-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: #555;
    line-height: 1.6;
}

/* --- Section: Product Catalog --- */
.product-catalog {
    background-color: #f5f5f5;
    padding: 3rem 1.5rem;
    margin-top: 2.5rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.product-catalog-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.product-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    margin: 0;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #c0392b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    letter-spacing: 0.02em;
}

.product-card-title {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.product-card-price {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.product-card-link:hover .product-card-title {
    color: #c0392b;
}

@media (max-width: 992px) {
    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-catalog-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* --- Section: Testimoni --- */
.testimoni {
    background-color: #f8f8f8;
    padding: 3rem 1.5rem;
    margin-top: 2.5rem;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-top: 1px solid #eee;
}

.testimoni-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimoni-header-icon {
    margin-bottom: 0.75rem;
}

.testimoni-icon-bubbles {
    color: #1a1a2e;
    opacity: 0.85;
}

.testimoni-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    text-transform: uppercase;
}

.testimoni-title-line1 {
    display: block;
}

.testimoni-title-line2 {
    display: block;
    margin-top: 0.15em;
}

.testimoni-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto 2rem;
}

.testimoni-lines .testimoni-line {
    width: 50px;
    height: 3px;
    background-color: #c0392b;
    display: block;
}

.testimoni-slider {
    text-align: center;
}

.testimoni-track {
    position: relative;
    min-height: 140px;
}

.testimoni-slide {
    display: none;
    margin: 0 auto;
    max-width: 640px;
    text-align: left;
}

.testimoni-slide.is-active {
    display: block;
}

.testimoni-tagline {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimoni-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimoni-quote-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background-color: #c0392b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimoni-quote-icon svg {
    width: 28px;
    height: 28px;
}

.testimoni-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.testimoni-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.testimoni-biz {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.testimoni-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.testimoni-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

.testimoni-dot:hover {
    background-color: #aaa;
}

.testimoni-dot.is-active {
    background-color: #c0392b;
}

@media (max-width: 576px) {
    .testimoni-title {
        font-size: 1rem;
    }
}

/* --- Main Content --- */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Product Detail Page (layout seperti attachment: kiri gambar, kanan detail + tabel) --- */
.product-detail-wrap {
    background: #f0f0f0;
    padding: 2rem 1rem;
    margin: 0 -1rem;
    min-height: 60vh;
}
.product-detail-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: start;
}
.product-detail-images {
    padding: 2rem;
    background: #fafafa;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-images img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-detail-info {
    padding: 2rem 2rem 2.5rem;
}
.product-detail-title {
    margin: 0 0 1.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.product-price-table-wrap {
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.product-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.product-price-table th,
.product-price-table td {
    border: 1px solid #e0e0e0;
    padding: 0.6rem 0.75rem;
    text-align: left;
}
.product-price-table th {
    background: #9CD5CE;
    color: #1a1a2e;
    font-weight: 600;
}
.product-price-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}
.product-detail-keterangan {
    margin: 0 0 1.5rem;
}
.product-detail-keterangan h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}
.product-detail-keterangan ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #555;
    line-height: 1.6;
}
.product-page-back {
    display: inline-block;
    margin-top: 0.5rem;
    color: #936F56;
    font-weight: 600;
    text-decoration: none;
}
.product-page-back:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-images {
        min-height: 240px;
    }
    .product-detail-info {
        padding: 1.5rem;
    }
}

/* --- Halaman Order (Cara Pemesanan & Aturan Pengiriman) --- */
.page-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.page-content-inner {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.page-title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    border-bottom: 2px solid #9CD5CE;
    padding-bottom: 0.5rem;
}
.page-subtitle {
    margin: 2rem 0 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}
.order-list {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    line-height: 1.8;
    color: #444;
}
.order-list li {
    margin-bottom: 0.5rem;
}
.order-list a {
    color: #936F56;
    font-weight: 600;
    text-decoration: none;
}
.order-list a:hover {
    text-decoration: underline;
}

/* Gambar di halaman Kelebihan merek SAIN — fit dalam container */
.page-content-inner .kelebihan-sain-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}
.page-content-inner .kelebihan-sain-img:last-of-type {
    margin-bottom: 0;
}

/* --- Tombol WA & IG fixed pojok kanan halaman --- */
.social-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.social-fixed .footer-social-btn {
    padding: 0;
    margin: 0;
    border-radius: 0;
}


/* --- Section: Footer --- */
.site-footer {
    margin-top: 3rem;
    background: #2d2d2d;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    padding: 2rem 1.5rem;
}

.footer-contact {
    max-width: 400px;
}

.footer-heading {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.footer-heading-line {
    width: 50px;
    height: 2px;
    background: #c0392b;
    margin-bottom: 1rem;
}

.footer-text {
    margin: 0 0 0.4rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: opacity 0.2s;
}

.footer-social-btn:hover {
    opacity: 0.9;
}

.footer-social-btn-img {
    display: block;
    height: auto;
    width: auto;
    vertical-align: middle;
    border-radius: 0;
}

.footer-social-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-icon-wa {
    background: #25d366;
    color: #fff;
}

.footer-social-icon-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.footer-social-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-social-label-top {
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-social-label-bottom {
    font-size: 0.8rem;
    opacity: 0.95;
}

.footer-social-wa .footer-social-label {
    padding: 0.4rem 0.9rem;
    background: #2563eb;
    border-radius: 0;
}

.footer-social-ig .footer-social-label-single {
    padding: 0.4rem 0.9rem;
    background: #bc1888;
    border-radius: 0;
    font-weight: 600;
}

.footer-bottom {
    width: 100%;
    background: #252525;
    padding: 1rem 1.5rem;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: #b0b0b0;
}

.footer-copyright-link {
    color: #e0e0e0;
    text-decoration: underline;
}

.footer-copyright-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-top {
        padding: 1.5rem 1rem;
    }
    .footer-bottom {
        padding: 0.875rem 1rem;
    }
    .footer-copyright {
        font-size: 0.8rem;
    }
    /* Tombol WA & IG tetap tampil di mobile, ukuran disesuaikan */
    .social-fixed {
        bottom: 12px;
        right: 12px;
        gap: 0.35rem;
    }
    .social-fixed .footer-social-btn-img {
        max-height: 56px;
        width: auto;
        height: auto;
    }
    .social-fixed .footer-social-icon {
        width: 44px;
        height: 44px;
    }
    .social-fixed .footer-social-icon svg {
        width: 24px;
        height: 24px;
    }
}
