﻿/* Reset some default styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    font-family: sans-serif;
    line-height: 1.5;
    /*background-color: red;*/
    /*color: #fff;*/
}

.dx-content-background {
    background: transparent !important;
}

/* Layout container */
.container {
  width: 99%;
  max-width: 1920px;
  margin: 0 auto;
}



/* Header styling */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #fff; /* Must have background */
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional shadow */
}


@media (min-width: 1024px) {
    .site-header {
        position: fixed;
        top: 0;
        z-index: 999;
    }
}


/*.site-content {
  padding-top: 140px;
}*/

.site-header.shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/*.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}*/


    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1024px;
        margin: 0 auto;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

.logo a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #ff9900;
}




/* Responsive styles */
/*@media (max-width: 768px) {*/
    /*.nav-links {
        display: none;
        flex-direction: column;
        background-color: #333;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
    }

        .nav-links.show {
            display: flex;
        }

        .nav-links li {
            border-bottom: 1px solid #444;
        }

            .nav-links li a {
                padding: 10px;
            }

    .menu-toggle {
        display: block;
    }*/
/*}*/




/* Content styling */
/*.site-content {
  padding: 40px 0;
}*/

/*.site-content {
    padding-top: 80px; 
}*/


.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}



/* Footer styling */
.site-footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 100px;
}




.site-footer {
  background-color: #f4f4f4;
  color: #333;
  padding: 40px 0;
  font-size: 14px;
}





.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-logo {
  width: 160px;
  margin-bottom: 10px;
}

.footer-temukan-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #222;
  text-align: left;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #222;
  text-align: center;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #333;
}

.footer-col ul li a:hover {
  color: #ff9900;
}

.contact-list li {
  margin-bottom: 5px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.social-icons img {
  width: 32px;
  height: 32px;
}

.copyright {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 15px;
  margin-top: 30px;
  font-size: 13px;
  color: #777;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}




/* Top green bar */
.top-bar {
    background-color: #005580;
    color: #fff;
    font-size: 14px;
    padding: 5px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* Main header styling */
.main-header {
    background-color: #fff;
    border-bottom: 2px solid #005580;
    padding: 5px 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Logo */
.logo img {
  height: 60px;
  width:90px;
}

/* Hamburger */
.menu-toggle {
    font-size: 24px;
    color: #005580;
    background: none;
    border: none;
    cursor: pointer;
    /*display: none;*/
}

/* Search box */


.search-box {
    flex: 1;
    display: flex;
    max-width: 500px;
    width: 100%;
    min-width: 0;
    max-height: 40px;
    margin: 0 3px; /* Add some side space for breathing room */
}


    .search-box input {
        flex: 1;
        padding: 8px 10px;
        border: 1px solid #ccc;
        border-right: none;
        border-radius: 3px 0 0 3px;
        max-height: 40px;
        
    }

.search-btn {
    background-color: #005580;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    max-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.search-btn i {
  font-size: 16px;
}

/* Icons / links */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icons a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

    .header-icons a:hover {
        color: #005580;
    }

/*.icon-link i {
    margin-right: 5px;
    color: #005580;
}*/

.icon-link {
    display: flex;
    align-items: center;
    color: #005580;
}

    .icon-link i {
        margin-right: 4px;
    }




.cart-icon {
    position: relative;
    display: inline-block;
    /*color: #333;*/
    color: #005580;
    font-size: 1.8rem;
    text-decoration: none;
    margin-left: 15px;
}

    .cart-icon i {
        font-size: 1.8rem;
    }

/* Badge */
.cart-badge {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    display: inline-block;
    z-index: 1;
}


#cart-badge:empty {
    display: none !important;
}


/*.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}*/

/* Ensure no hiding on smaller screens */
@media (max-width: 768px) {
    .cart-icon {
        margin-left: 10px;
    }
}



/* Mobile styles */
@media (max-width: 768px) {
    /*.menu-toggle {
        display: none;
    }*/

    .top-bar {
        display: none;
    }

    /* Logo */
    .logo img {
        height: 36px;
        width: 36px;
    }

    /* Search box */
    .search-box {
        flex: 1;
        display: flex;
        /*max-width: 300px;*/
        width: auto;
    }

        .search-box input {
            flex: 1;
            padding: 4px 6px;
            border: 1px solid #ccc;
            border-right: none;
            border-radius: 3px 0 0 3px;
        }

    .header-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /*.header-icons {
        display: none;
    }*/


    .header-icons {
        display: flex; /* keep container visible */
        gap: 10px;
    }

        .header-icons .icon-link {
            display: none; /* hide all icons by default */
        }

        .header-icons .icon-1 {
            display: inline-block; /* show only the first icon */
        }

}






/* Default: hide on desktop */
.mobile-nav {
    display: none;
}

/* Only show and style on screens smaller than 768px (mobile) */
/*@media (max-width: 767px) {
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: white;
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid #ddd;
        font-family: Arial, sans-serif;
    }

        .mobile-nav .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #333;
            text-decoration: none;
            font-size: 12px;
            transition: color 0.3s ease;
        }

            .mobile-nav .nav-item:hover {
                color: #007BFF;
            }

            .mobile-nav .nav-item i {
                font-size: 18px;
                margin-bottom: 2px;
            }
}*/

.boxconnected-navbar-main {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: white;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

    .boxconnected-navbar-main .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #333;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }

        .boxconnected-navbar-main .nav-item:hover {
            color: #007BFF;
        }

        .boxconnected-navbar-main .nav-item i {
            font-size: 18px;
            margin-bottom: 2px;
        }


/*connectedchatfloating*/
.chat-floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.chat-button-wrapper {
    position: relative;
}

.chat-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.3s;
}

    .chat-button:hover {
        transform: scale(1.05);
    }

    .chat-button.whatsapp {
        background-color: #25D366;
    }

.chat-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.chat-label {
    display: inline-block;
}

@media (max-width: 480px) {
    .chat-button {
        padding: 12px;
        border-radius: 50%;
    }

    .chat-label {
        display: none;
    }
}


.scrollable-listview {
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1200px; /* Biar di desktop lebih enak */
}


.product-card {
    cursor: pointer; /* seluruh card tetap pointer */
}

    .product-card a,
    .product-card a i {
        cursor: default; /* icon & link jadi cursor normal */
    }

.product-list .product-card {
    border: 2px solid #005580;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

    .product-list .product-card {
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }

    /*.product-list .product-card:hover {
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }*/

.product-image-box {
    /*background: linear-gradient(to bottom, #ffffff 0%, #e0f2f7 30%, #005580 100%);*/
    /*border: 2px solid #005580;*/
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    position: relative;
}

    .product-image-box::before {
        content: '';
        position: absolute;
        inset: 8px; /* sesuai padding */
        background: white;
        border-radius: 4px;
        z-index: 0;
    }

.product-image {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 4px;
    box-shadow: none !important;
    filter: none !important;
    background-color: transparent; /* transparan, karena sudah ada lapisan putih di belakangnya */
}

/* Default desktop */
.product-image {
    height: 200px;
    object-fit: fill;
}


.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em; /* Tinggi 1 baris */
    height: 2.4em; /* Paksa tinggi 2 baris */
    min-height: 2.4em; /* Pastikan minimal 2 baris */
}



/* Mobile smaller images */
@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
}



.product-title {
    font-weight: normal;
    font-size: 15px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em; /* Tinggi 1 baris */
    height: 2.4em; /* Paksa tinggi 2 baris */
    min-height: 2.4em; /* Pastikan minimal 2 baris */
}

.product-price {
    color: #005580;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-badges {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.product-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.badge-ready {
    background: #005580;
}

.badge-best {
    background: #7c4dff;
}

.badge-empty {
    background: transparent !important;
    color: transparent !important; /* Supaya tulisannya tidak terlihat */
}



.product-wa {
    display: inline-block;
    margin-top: 8px;
    background: #25d366;
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

/*overirde untuk hilangkan border*/ 
.product-list .product-card,
.product-image-box {
    border: none !important;
}




    .product-list .product-card,
    .product-list .product-card:hover,
    .product-image-box {
        border: none !important;
        box-shadow: none !important;
        transition: background-color 0.3s ease;
    }

        .product-list .product-card:hover {
            background-color: #f0f8ff; /* Light blue background on hover */
        }


/* dxgallery jika no data promo tampilkan add button */
/*.dx-gallery-wrapper {
    overflow: visible !important;
    position: relative;
}

.dx-scrollable-container {
    overflow: visible !important;
}

.dx-scrollable-content {
    min-height: 150px; 
}

.dx-gallery .dx-empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.my-add-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}*/

/* dxgallery jika no data promo tampilkan image default pengganti */
/* Force gallery wrapper to occupy full space */
/*.dx-gallery-wrapper {
    position: relative;
}

.my-add-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

    .my-add-button img {
        width: 100%;
        height: 100%;
        object-fit: fill; 
    }
*/

.dx-gallery-wrapper {
    position: relative;
}

.my-add-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

    .my-add-button img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* Stretches fully to gallery size (no cropping) */
    }



.product-wa, .product-chatwoot {
    display: inline-block;
    margin-right: 8px;
    font-size: 20px;
    color: #25D366; /* hijau WA, bisa diganti */
}

.product-chatwoot {
    color: deepskyblue; /* Warna oranye untuk Chatwoot, bisa diganti */
}

.product-chatwoot i {
        color: deepskyblue !important;
    }

.product-download {
    color: #2196F3 !important;
}

.product-download i {
    color: #2196F3!important;
}

/* Biru untuk download */
/* Kendo Pager - Kecilkan Tulisan */
.k-pager-wrap, .k-pager {
    font-size: 12px; /* Sesuaikan ukurannya */
}


/* ✅ Default Mobile (2 kolom) */
.product-list .k-listview-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}


/* ✅ Tablet & Desktop → auto grid */
@media (min-width: 768px) {
    .product-list .k-listview-content {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}


@media (min-width: 600px) {
    .product-list .k-listview-content {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}


/* Gambar Heading + Konten di Bagian Bawah */
.section-heading {
    margin-top: 20px;
    position: relative;
    margin-bottom: 10px;
}

    .section-heading img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        max-height: 200px; /* ✅ Batasi tinggi maksimal gambar */
        object-fit: cover; /* ✅ Potong otomatis, tetap proporsional */
    }

.section-heading-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 8px;
    /*background: rgba(0, 0, 0, 0.5); /* semi transparan, biar teks-nya kebaca */*/
    color: #fff;
    border-radius: 0 0 8px 8px;
}

    .section-heading-bottom h2 {
        font-size: 10px;
        margin: 0;
    }

.section-header a {
    color: #ffffff !important; /* Warna tulisan putih */
    background: transparent; /* Biar transparan */
    border: 1px solid #ffffff; /* Garis putih (opsional) */
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 10px;
}

    .section-header a:hover {
        background: rgba(255, 255, 255, 0.2); /* Efek hover, bisa dihilangkan jika tidak mau */
    }

.lihat-semua-btn {
    color: #ffffff !important;
    background: transparent;
    border: 1px solid #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.3s ease;
    background: rgba(0, 0, 0, 0.5); /* semi transparan, biar teks-nya kebaca  */
}

    .lihat-semua-btn:hover {
        background: #ff9800;
        color: #ffffff;
    }


@media (max-width: 768px) {
    .section-heading-bottom {
        padding: 2px 4px;
    }

        .section-heading-bottom h2 {
            font-size: 8px;
        }

    .lihat-semua-btn {
        font-size: 12px;
        padding: 2px 4px;
    }




}



@media (max-width: 768px) {
    .search-box input {
        min-width: 0; /* allow shrink */
    }

    .search-box {
        flex-shrink: 1;
        min-width: 0;
    }

    .header-flex {
        flex-wrap: nowrap;
        gap: 4px;
    }
}





/*connectedDetailBarangInfo*/

.product-page {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}




.product-belanja-image {
    flex: 1 1 400px;
    text-align: center;
    padding: 20px;
}

    .product-belanja-image img {
        max-width: 100%;
        height: auto;
        border: 1px solid #ccc;
        border-radius: 8px;
    }

.product-rating {
    font-size: 1.5em;
    color: #FFD700;
    margin: 10px 0;
}

.product-caption {
    font-size: 0.9em;
    color: #007000;
    font-weight: bold;
}

.product-info {
    flex: 1 1 300px;
    padding: 20px;
}

    .product-info .specs {
        white-space: pre-line;
    }

    .product-info h2 {
        font-size: 1.5em;
        color: #333;
        margin-bottom: 10px;
    }

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
}

.discount {
    background-color: #FF0000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 0.9em;
}

.price {
    font-size: 1.8em;
    color: #008000;
    font-weight: bold;
    margin-bottom: 10px;
}

.details p {
    margin-bottom: 6px;
    font-size: 0.95em;
}

.buttons {
    margin-top: 15px;
}

.buy-button {
    background-color: #008000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

    .buy-button:hover {
        background-color: #006400;
    }

.fav-button {
    background-color: #FFA500;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

    .fav-button:hover {
        background-color: #FF8C00;
    }

.marketplace-info {
    margin-top: 15px;
    font-weight: bold;
}

.marketplace-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.marketplace-logos img {
    width: 60px;
    margin: 10px 10px 0 0;
}

.specs {
    margin-top: 15px;
    font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-page {
        flex-direction: column;

    }

    .product-info {
        text-align: center;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fav-button {
        margin: 10px 0 0 0;
    }

    .marketplace-logos {
        justify-content: center;
    }
}


.buttons-product {
    display: flex;
    gap: 10px;
    justify-content: flex-start; /* Default Desktop: Rata Kiri */
}

    .buttons-product button {
        flex: 1;
        padding: 12px 20px;
        font-size: 1em;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        border: none;
        max-width: 170px;
    }

.buy-product-button {
    background-color: #008000;
    color: #fff;
}

    .buy-product-button:hover {
        background-color: #006400;
    }

.wa-product-button {
    background-color: #25D366;
    color: #fff;
}

    .wa-product-button:hover {
        background-color: #1ebe5b;
    }

.chat-product-button {
    background-color: #007BFF;
    color: #fff;
}

    .chat-product-button:hover {
        background-color: #0069d9;
    }

.wa-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Tablet: Rata Tengah */
@media (max-width: 1024px) {
    .buttons-product {
        justify-content: center;
    }
}


/* Keep column direction but retain button width */
@media (max-width: 767px) {
    .buttons-product {
        flex-direction: column;
        align-items: center;
    }

        .buttons-product button {
            width: auto; /* Let buttons keep their desktop width */
            /*max-width: 200px;*/
            width: 100%;
            max-width: 100%;
        }
}



/* Mobile: Column Layout */
@media (max-width: 767px) {
    .product-page {
        flex-direction: column;
    }
}

/* Tablet Landscape + Desktop: Side-by-side Layout */
@media (min-width: 768px) {
    .product-page {
        flex-direction: row;
    }
}


/* Mobile (phones) - smaller fonts */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .product-info h2 {
        font-size: 1.2em;
    }

    .price {
        font-size: 1.4em;
    }

    .details p {
        font-size: 0.9em;
    }
}

/* Tablet (portrait & landscape) - slightly smaller than desktop */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .product-info h2 {
        font-size: 1.4em;
    }

    .price {
        font-size: 1.6em;
    }

    .details p {
        font-size: 0.95em;
    }
}


@media (max-width: 767px) {
    .buttons-product button {
        font-size: 0.9em;
    }

    .marketplace-info,
    .specs {
        font-size: 0.9em;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .buttons-product button {
        font-size: 1em;
    }

    .marketplace-info,
    .specs {
        font-size: 0.95em;
    }
}





@media (max-width: 767px) {
    .product-belanja-image {
        flex: none !important; /* Nonaktifkan flex agar tidak terlalu tinggi */
        padding: 10px 10px 0 10px; /* kurangi padding bawah */
        margin: 0;
    }

        .product-belanja-image img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 0 auto 10px auto; /* beri margin hanya bawah, agar ada jarak wajar */
        }

    .product-page {
        gap: 0 !important; /* hilangkan gap antar container */
    }

    .product-info {
        padding: 10px !important;
        margin: 0;
    }
}


@media (max-width: 600px) {
    .product-info h2 {
        font-size: 1.2em;
    }

    .price {
        font-size: 1.5em;
    }

    

    .buy-button,
    .fav-button {
        width: 90%;
    }

    
}



/* MOBILE FIX – HP ≤ 767px */

@media (max-width: 500px) {

    
    .product-page {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    
    .product-belanja-image {
        width: 100% !important;
        padding: 10px !important;
    }

        .product-belanja-image img {
            max-width: 100% !important;
            width: auto !important;
            height: auto !important;
            margin: 0 auto !important;
            display: block !important;
        }

    
    .product-info {
        width: 100% !important;
        padding: 15px !important;
        text-align: center !important;
    }

    .details p {
        text-align: center !important;
    }

    
    .buttons-product {
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }

        .buttons-product button {
            width: 90% !important;
            max-width: 350px !important;
        }

    
    .marketplace-logos {
        justify-content: center !important;
    }
}


/*connectedDetailBarangInfo*/



/*untuk yang website.html  detailbarang product card*/

/* Default Mobile: 2 Columns */
.product-list .k-listview-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

/* Tablet: Auto Fit */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-list .k-listview-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Desktop: 5 Columns (≥1024px) */
@media (min-width: 1024px) and (max-width: 1919px) {
    .product-list .k-listview-content {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop: 7 Columns (≥1920px) */
@media (min-width: 1400px) {
    .product-list .k-listview-content {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-image {
        height: 250px;
    }
}

@media (min-width: 1920px) {
    .product-image {
        height: 300px;
    }
}




/* Base Reset */

/*.website-about-us-header {
    display: flex;
    justify-content: flex-end;
    background: #005580 ;  
    color: white;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}*/

.language-switcher button {
    background: white;
    color: #0073e6;
    
    border: none;
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.website-about-us {
    display: flex;
    flex-direction: row;
    padding: 20px;
    gap: 20px;
}

.website-about-us-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #005580;
    color: white;
    z-index: 999;
}

    .website-about-us-header .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 10px 20px;
    }



/*.dx-scrollview-content,
.dx-content-background,
#ScrollView1websiteAboutUs {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}*/

.sidebar-website-about-us {
    width: 250px;
    background: #fff;
    padding: 20px;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
}
    .sidebar-website-about-us ul {
        list-style: none;
    }

    .sidebar-website-about-us li div {
        padding: 10px;
        cursor: pointer;
    }

        .sidebar-website-about-us li div:hover,
        .accordion-menu div:hover {
            background-color: #e6f0ff;
            color: #0073e6;
        }

    .sidebar-website-about-us div.active,
    .accordion-menu div.active {
        font-weight: bold;
        color: #0073e6;
    }

.content-website-about-us {
    flex: 1;
    background: #fff;
    padding: 20px;
    margin-left:30px;
    border-radius: 8px;
}
/* Accordion Mobile */
.accordion-wrapper {
    display: none;
    flex-direction: column;
    background: #fff;
    margin-bottom: 15px;
}

.accordion-header {
    padding: 15px;
    background: #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.accordion-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    flex-direction: column;
}

    .accordion-menu.open {
        max-height: 500px;
    }

    .accordion-menu div {
        padding: 10px 15px;
        cursor: pointer;
        border-top: 1px solid #ddd;
    }

/* Arrow Icon */
.arrow-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg); /* ▼ */
    transition: transform 0.3s ease;
}

.accordion-header.open .arrow-icon {
    transform: rotate(-135deg); /* ▲ */
}

/* Responsive */
@media (max-width: 900px) {
    .website-about-us {
        flex-direction: column;
    }

    .accordion-wrapper {
        display: flex;
    }

    .sidebar-website-about-us {
        display: none;
    }
}


@media (max-width: 900px) {
    .website-about-us {
        flex-direction: column;
        gap: 0; /* remove space between elements */
        padding: 5px; /* tighter spacing */
    }

    .accordion-wrapper {
        margin-bottom: 2px; /* reduce spacing below accordion */
    }

    .accordion-menu {
        margin-bottom: 2px; /* small space before content */
    }

    .content-website-about-us {
        padding: 10px;
        margin-top: 0;
    }
}




/*websiteLokasiToko*/


/* Unique container for lokasi page */
.containerLokasi {
    max-width: 900px;
    margin: 0 auto;
    padding: 2px;
}

/* Section */
.store-location {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 10px;
    padding: 10px;
}

/* Title */
.store-name {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

/* Address */
.store-address {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Map */

.map-wrapper {
    height: 400px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 12px;
}


.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .store-name {
        font-size: 1.5rem;
    }

    .store-address {
        font-size: 1rem;
    }

    .map-wrapper iframe {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .store-name {
        font-size: 1.3rem;
    }

    .store-address {
        font-size: 0.95rem;
    }

    .containerLokasi {
        padding: 15px;
    }

    .map-wrapper iframe {
        height: 220px;
    }
}


/*websiteLokasiToko*/



/*halaman website  popupCartWindow websiteDetailBarang */

.modern-cart-popup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100vh;
    overflow: auto;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

.modern-cart-popup {
    width: 100%;
    max-width: 450px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.cart-close-btn {
    font-size: 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-body {
    overflow-y: auto;
    padding: 1rem;
    flex: 1;
}

.cart-subtitle {
    color: #666;
    margin-top: 0.3rem;
}

.cart-price {
    color: red;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0 1rem;
}

.cart-section {
    margin-bottom: 1rem;
}

.color-options img {
    width: 40px;
    height: 60px;
    margin-right: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .quantity-control button {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }

    .quantity-control input {
        width: 60px;
        text-align: center;
    }

    .quantity-control input {
        width: 60px;
        height: 40px; /* Adjust height */
        font-size: 1.2rem; /* Bigger text */
        text-align: center;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.quantity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

    .quantity-row label {
        font-weight: 500;
        white-space: nowrap;
        margin: 0;
        font-size: 14px;
    }

/* Quantity buttons & input layout */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Input size control */
.qty-input {
    width: 60px;
    max-width: 80px;
    padding: 8px;
    font-size: 16px;
    text-align: center;
}


/*.icon-button {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}*/

   


/* Plus/minus icon buttons */
.icon-button {
    background: #ff9900;
    border: none;
    
    padding: 10px 12px; /* Increased vertical padding */
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .icon-button:hover {
        background-color: #e68500;
    }

.cart-voucher {
    font-size: 0.9rem;
    background: #f9f9f9;
    padding: 0.5rem;
    border-radius: 5px;
    color: #333;
}

.cart-buttons {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid #eee;
    z-index: 10;
}

.btn-modern-primary {
    background: orange;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
}

.btn-modern-link {
    color: #007bff;
    text-decoration: underline;
    text-align: center;
    font-size: 0.9rem;
}

.btn-modern-primary {
    position: relative;
    min-height: 44px; /* pastikan tinggi cukup */
}

.k-loader-wrapper {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .qty-btn:hover {
        background-color: #e68500;
    }

.qty-input {
    width: 50px;
    text-align: center;
    font-size: 16px;
}


/* Remove bottom padding inside the popup */
.modern-cart-popup {
    padding-bottom: 0 !important;
}

/* If needed, also remove margin from last section or button */
.cart-buttons {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.cart-section:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Tablet and phone */
@media (max-width: 768px) {
    .cart-title {
        font-size: 1.1rem;
    }

    .cart-price {
        font-size: 1.3rem;
    }

    .btn-modern-primary {
        font-size: 0.9rem;
    }

    .btn-modern-link {
        font-size: 0.85rem;
    }
}

/* Portrait: compact view */
@media (orientation: portrait) {
    .modern-cart-popup-wrapper {
        overflow-x: hidden;
        padding: 0 !important;
    }

    .modern-cart-popup {
        border-radius: 0;
        width: auto;
        max-width:none;
        max-width: 100vw;
    }

    .cart-header,
    .cart-buttons {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cart-body {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Landscape: fix double scroll in popup only */
@media (orientation: landscape) and (max-width: 1024px) {
    .modern-cart-popup-wrapper {
        overflow-x: hidden !important;
        padding: 0 !important;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .modern-cart-popup {
        width: auto !important;
        max-width: none !important;
        margin: 0 auto;

        overflow-x: hidden !important;
        border-radius: 0;
    }
    .modern-cart-popup-wrapper {
        justify-content: center;
        align-items: center;
    }
    .cart-body {
        overflow-x: hidden !important;
    }

    .k-window-content {
        overflow-x: hidden !important;
    }

    .cart-buttons {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


/* Remove top margin/padding in portrait mode */
@media {
    #popupCartWindow,
    #popupCartWindow .k-window-content,
    #popupCartWindow .modern-cart-popup-wrapper,
    #popupCartWindow .modern-cart-popup {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

        #popupCartWindow .modern-cart-popup {
            border-radius: 0 !important;
        }

    /* Remove padding from header inside popup */
    .modern-cart-popup .cart-header {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Optional: tweak font spacing too if needed */
    .modern-cart-popup .cart-title {
        margin: 0 !important;
        padding: 0.2em 0 !important;
    }
}


@media {
    #popupCartWindow .modern-cart-popup {
        padding: 4px !important; /* compact overall */
    }

    .modern-cart-popup .cart-header,
    .modern-cart-popup .cart-body,
    .modern-cart-popup .cart-section,
    .modern-cart-popup .cart-actions,
    .modern-cart-popup .cart-footer {
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    .modern-cart-popup .cart-title {
        font-size: 1rem !important;
        margin: 0 !important;
    }

    .modern-cart-popup .cart-subtitle,
    .modern-cart-popup .cart-price,
    .modern-cart-popup .cart-section label,
    .modern-cart-popup .cart-footer a {
        font-size: 0.85rem !important;
        margin: 2px 0 !important;
    }

    .modern-cart-popup .cart-price {
        font-weight: bold;
        color: red;
    }

    .modern-cart-popup .color-options {
        gap: 4px;
    }

    .modern-cart-popup .cart-actions button {
        padding: 6px 8px !important;
        font-size: 0.9rem !important;
    }
}


/* Responsive tweak: fit even small portrait */
@media (max-width: 400px) {
    .quantity-row {
        gap: 5px;
    }

    .qty-input {
        width: 50px;
        font-size: 14px;
        padding: 6px;
    }

    .icon-button {
        padding: 10px 12px; /* Increased vertical padding */
        font-size: 16px;
    }
}



/*animasi melayang ke cart*/
@keyframes flyToCart {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-150px) translateX(100px);
    }
}

.cart-fly {
    animation: flyToCart 0.8s ease-out forwards;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.cart-fly {
    position: absolute;
    z-index: 9999;
    background-color: white;
    padding: 5px;
    border: 2px solid red;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border-radius: 6px;
    color: black;
    text-align: center;
}


@keyframes bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

.bounce {
    animation: bounce 0.4s ease-in-out;
}

.cart-icon .cart-message-static {
    font-size: 10px;
    color: green;
    margin-top: 5px;
    display: block;
}


/*halaman website  popupCartWindow websiteDetailBarang */





/* Gaya khusus untuk website-checkout */
.website-checkout * {
    box-sizing: border-box;
}

/*body {
    margin: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    padding: 1rem;
}*/

.website-checkout {
    /*position: relative;*/ 
    /* container for overlay */
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .website-checkout h2 {
        font-size: 1rem;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .website-checkout .radio-group,
    .website-checkout .payment-options,
    .website-checkout .form-row {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }


    .website-checkout input[type="text"],
    .website-checkout select {
        flex: 1;
        padding: 0.6rem;
        border: 1px solid #ccc;
        border-radius: 4px;
    }


    .website-checkout textarea {
        width: 100%;
    }

    .website-checkout .checkbox {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .website-checkout .total-section {
        display: flex;
        justify-content: space-between;
        font-size: 1.1rem;
        margin: 1rem 0;
    }

    .website-checkout .total {
        color: red;
        font-weight: bold;
    }

    .website-checkout .payment-options label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .website-checkout .payment-options img {
        height: 24px;
        width: auto;
    }

    .website-checkout .captcha {
        margin-top: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .website-checkout .recipient-box {
        border: 1px solid #ccc;
        padding: 1rem;
        border-radius: 6px;
        background: #f9f9f9;
        margin-bottom: 1rem;
    }

    .website-checkout .recaptcha-placeholder {
        padding: 1rem;
        border: 1px solid #ccc;
        background: #fefefe;
        border-radius: 6px;
        margin: 1rem auto;
        text-align: center;
        max-width: 340px;
    }

    .website-checkout .recaptcha-row {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

        .website-checkout .recaptcha-row input {
            transform: scale(1.2);
        }

    .website-checkout .recaptcha-placeholder img {
        height: 40px;
    }

    .website-checkout .recaptcha-button-wrap {
        margin-top: 1rem;
        text-align: center;
    }

    .website-checkout .recaptcha-text {
        text-align: center;
        font-size: 0.95rem;
        margin: 1rem 0 0.5rem;
        color: #333;
    }

    .website-checkout .pay-button {
        display: block;
        width: 100%;
        max-width: 100%;
        background: #f60;
        border: none;
        color: white;
        font-weight: bold;
        padding: 1.2rem 0;
        font-size: 1.4rem;
        border-radius: 6px;
        cursor: pointer;
        margin-top: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        text-transform: uppercase;
    }

    .website-checkout .note {
        font-size: 0.85rem;
        margin-top: 1rem;
        color: #333;
        text-align: center;
        line-height: 1.4;
    }

        .website-checkout .note a {
            color: #007bff;
            text-decoration: none;
        }

            .website-checkout .note a:hover {
                text-decoration: underline;
            }

@media (max-width: 768px) {
    .website-checkout .form-row {
        flex-direction: column;
    }

    .website-checkout .payment-options label {
        flex-wrap: wrap;
    }
}






/*kendogrid checkout*/


#productGrid .k-grid-header {
    display: none !important;
}

.product-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 2px;
    gap: 2px;
    height: 90px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /*overflow: hidden;*/
}

.product-image-checkout {
    flex: 0 0 90px;
}

    .product-image-checkout img {
        max-height: 90px;
        width: 90px;
        object-fit: contain;
        display: block;
    }


.product-info-checkout {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 12px;
    padding: 0;
    margin: 0;
    max-width: 100%;
    height: auto !important;
    flex: 1 1 0;
    min-width: 0; /* ❗ WAJIB agar flex child bisa shrink */
}


.product-info-checkout * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}


.qty-btn-checkout {
    background-color: #ff9900;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e68500;
}
/* Core Grid Cleanup */
/*#productGrid .k-grid,
#productGrid .k-grid-content,
#productGrid .k-grid-table,
#productGrid .k-grid td,
#productGrid .k-grid tr {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1 !important;
    vertical-align: top !important;
    border-spacing: 0 !important;
    border-collapse: collapse !important;
}*/
.product-name {
    font-size: 12px;
    color: #333;
    text-transform: capitalize;
    max-width: 100%; /* biar ikut shrink sesuai parent */
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    display: block;
    text-align: left
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
}

#productGrid,
#productGrid.k-grid,
#productGrid.k-grid-content,
#productGrid.k-grid-table,
#productGrid.k-grid td,
#productGrid.k-grid tr {
    background-color: #fff !important;
}

    #productGrid td::before,
    #productGrid tr::before {
        display: none !important;
    }

    #productGrid.k-grid,
    #productGrid.k-grid-table,
    #productGrid tr,
    #productGrid td {
        border: none !important;
        border-width: 0 !important;
        border-color: transparent !important;
        border-style: none !important;
    }


    #productGrid tr {
        color: black;
        background-color: transparent !important;
        border: none !important;
        border-width: 0 !important;
        border-style: none !important;
        border-color: transparent !important;
    }


    #productGrid.k-widget {
        border-bottom: solid;
        border-width: 1px;
    }

    #productGrid .k-grid tr {
        border-bottom: 1px solid #e0e0e0;
    }

    #productGrid .product-row {
        border-bottom: 1px solid #e0e0e0;
    }



.checkout-container,
.website-checkout,
#productGrid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    
}

.website-checkout {
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 5px;
}


.product-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: auto;
    max-height: 90px;
    padding: 2px;
    gap: 2px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.product-image-checkout {
    width: 70px;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-info-checkout {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0; /* ❗ WAJIB */
    font-size: 12px;
    gap: 2px;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    /*white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;*/
    max-width: 100%;
    flex-shrink: 1;
    /*flex-grow: 0;*/
    display: block;
    line-height: 1.2;
}

.product-price {
    font-size: 12px;
    color: #666;
}

.product-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.qty-input {
    width: 30px;
    text-align: center;
}


.LanjutBelanjaWebsite {
    color: #007bff; /* Bootstrap blue */
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px; /* spacing between icon and text */
    margin-bottom: 15px;
}



.product-image-checkout {
    flex: 0 0 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

    .product-image-checkout img {
        width: 90px;
        height: 70px; /* ↓ reduce to leave space for text */
    }

.hapus-text-cart-checkout {
    font-size: 10px;
    color: #888;
    margin-top: 1px;
    cursor: pointer;
    text-align: center;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .hapus-text-cart-checkout i {
        font-size: 10px;
    }

    .hapus-text-cart-checkout:hover {
        color: #444;
        text-decoration: underline;
    }



.total-row-checkout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #f9f9f9; /* optional background */
    /*border-top: 1px solid #ddd;*/
    margin-top: 8px;
}

.total-label-checkout {
    text-align: left;
}

.total-price-checkout {
    text-align: right;
    color: #d32f2f; /* red like price style */
}


#loaderOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.checkout-wrapper {
    display: flex;
    flex-direction: column-reverse; /* reverse order on mobile */
    gap: 20px;
}

/* Right column gets smaller width on big screens */
.checkout-left, .checkout-right {
    width: 100%;
}

/* Desktop & landscape tablet */
@media (min-width: 992px) {
    .website-checkout {
        margin-top: 20px !important; /* stronger priority */
        align-self: flex-start; /* ensures it doesn't stretch flush to top */
    }
    .checkout-container {
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    .checkout-wrapper {
        flex-direction: row; /* side by side */
        align-items: flex-start;
    }

    .checkout-left {
        flex: 2;
    }

    .checkout-right {
        flex: 1;
        margin-right:20px;
    }
}





/* Default: stack (mobile & tablet portrait) */
.website-checkout .form-row.double-select {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Side by side mulai tablet landscape ke atas */
@media (min-width: 782px) {
    .website-checkout .form-row.double-select {
        flex-direction: row !important;
    }

        .website-checkout .form-row.double-select .k-widget,
        .website-checkout .form-row.double-select .k-dropdown,
        
        .website-checkout .form-row.double-select .k-input,
        .website-checkout .form-row.double-select .k-combobox,
        .website-checkout .form-row.double-select .k-multiselect {
            flex: 1 1 0 !important;
            min-width: 0 !important;
            max-width: 50% !important;
            width: auto !important;
            display: flex !important;
        }
}


/* Samakan tinggi tombol arrow dengan input */
.website-checkout .form-row.double-select .k-input-button {
    height: 44px !important; /* samakan dengan tinggi input */
    min-height: 44px !important;
    width: 44px !important; /* square button */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

    /* Sesuaikan ikon di dalam tombol */
    .website-checkout .form-row.double-select .k-input-button .k-icon {
        font-size: 16px !important;
        line-height: 1 !important;
    }


/* Samakan tinggi tombol arrow dengan input */
.website-checkout .form-row .k-input-button {
    height: 44px !important; /* samakan dengan tinggi input */
    min-height: 44px !important;
    width: 44px !important; /* square button */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box;
}

    /* Sesuaikan ikon di dalam tombol */
    .website-checkout .form-row .k-input-button .k-icon {
        font-size: 16px !important;
        line-height: 1 !important;
    }



/* ---------- REVISI: Khusus baris Nama + Telepon ---------- */
#rowNamaTelepon {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* 2 kolom sama lebar */
    gap: 1rem;
    align-items: start;
}

    /* Pastikan semua anak grid boleh mengecil/melebar (penting untuk grid/flex) */
    #rowNamaTelepon > * {
        min-width: 0; /* penting supaya child tidak memaksa kolom jadi kecil/auto */
    }

    /* Paksa wrapper Kendo dan input agar mengisi penuh kolom */
    #rowNamaTelepon .k-textbox,
    #rowNamaTelepon .k-textbox.k-input,
    #rowNamaTelepon input.k-input,
    #rowNamaTelepon input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        display: block !important;
    }

        /* Kalau Kendo menaruh input satu tingkat lagi, target juga */
        #rowNamaTelepon .k-textbox > .k-input,
        #rowNamaTelepon .k-textbox .k-input {
            width: 100% !important;
        }

    /* Pesan error tetap di kolom ke-2, rapi di bawah input telepon */
    /*#rowNamaTelepon #errorTelepon {
        grid-column: 2;
        display: block;
        margin-top: 4px;
        justify-self: start;
        width: 100%;
    }*/

    #rowNamaTelepon #errorTelepon {
        grid-column: 2;
        display: block;
        margin-top: 0px; /* jarak sangat dekat ke textbox */
        justify-self: start;
        width: 100%;
        font-size: 8pt; /* kecilkan ukuran font */
        line-height: 0.1; /* rapatkan line-height */
        color: red; /* pastikan warnanya merah */
    }


/* Mobile: stack vertikal */
@media (max-width: 768px) {
    #rowNamaTelepon {
        grid-template-columns: 1fr;
    }

        #rowNamaTelepon #errorTelepon {
            grid-column: 1;
        }
}



/* Full-page overlay style */



.empty-cart-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: flex-start;
    text-align: center;
    padding: 40px 20px 20px; 
    box-sizing: border-box;
}


    .empty-cart-overlay img {
        max-width: 150px;
        margin-bottom: 20px;
    }

    .empty-cart-overlay p {
        font-size: 18px;
        margin: 10px 0;
    }

    .empty-cart-overlay button {
        background-color: #007bff;
        color: #fff;
        padding: 12px 25px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
    }

        .empty-cart-overlay button:hover {
            background-color: #0056b3;
        }




.imageemptyCartOverlay {
    display: block;
    margin: 20px auto;
    text-align: center;
    color: orangered; 
}

    .imageemptyCartOverlay .xmark-overlay {
        color: white; 
        transform: translate(8px, -6px) scale(1.2);
        
    }










/* Brand header (atas halaman) */
.brandbarCheckoutSuccess {
    
    max-width: 1200px;    
    padding: 22px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    

}

    .brandbarCheckoutSuccess .brand-logo img {
        width: 32px;
        height: 32px;
        border-radius: 18px;
        background: var(--brand);
        opacity: .9;
    }



    .brandbarCheckoutSuccess .brand-name {
        font-size: 22px;
        color: #d35400;
        font-weight: 700;
    }

/* Layout utama */
.checkoutSuccess {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Kolom kiri */
.leftCheckoutSuccess {
    flex: 1;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px;
}

    .leftCheckoutSuccess .paybox {
        text-align: center;
        margin-bottom: 18px;
    }

        .leftCheckoutSuccess .paybox .label {
            font-size: 12px;
            color: var(--muted);
            letter-spacing: .3px
        }

        .leftCheckoutSuccess .paybox .deadline {
            margin-top: 6px;
            font-size: 14px;
            color: var(--muted)
        }

        .leftCheckoutSuccess .paybox .big {
            margin-top: 6px;
            font-size: 28px;
            font-weight: 800;
            color: var(--brand)
        }

    .leftCheckoutSuccess h2 {
        margin: 14px 0 12px;
        font-size: 18px;
        color: #444
    }

.bank-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
}

.bank {
    background: #fbfbfb;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: .2s;
}

    .bank:hover {
        background: #f0f0f0;
        border-color: #cfcfcf
    }

/* Kolom kanan (Order Summary) */
.summaryCheckoutSuccess {
    /*width: 360px;*/
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    height: auto !important;
    min-height: 0 !important;
}

    .summaryCheckoutSuccess h2 {
        margin: 0 0 14px;
        font-size: 18px;
        color: #444
    }

    .summaryCheckoutSuccess .item {
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
        margin-bottom: 12px
    }

        .summaryCheckoutSuccess .item p {
            margin: 4px 0
        }

    .summaryCheckoutSuccess .total {
        margin-top: 10px;
        font-weight: 800
    }

    .summaryCheckoutSuccess .grand {
        margin-top: 6px;
        font-size: 18px;
        font-weight: 800;
        color: #222
    }
.bank-item {
    display: block;
    padding: 12px 16px;
    margin: 6px 0;
    background: #fbfbfb;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

    .bank-item:hover {
        background: #f0f0f0;
        border-color: #cfcfcf;
    }

#checkoutSuccessPage .k-listview-bordered {
    border: none !important;
}

#reportViewer1WebsiteCheckoutSuccess {
    width: 100%;
    
    height: 100%; /* kalau parent punya tinggi */
    box-sizing: border-box;
    overflow: hidden;
}
.summaryCheckoutSuccess #reportViewer1WebsiteCheckoutSuccess {
    flex: 1;
}

#reportViewerContainer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#reportViewer1WebsiteCheckoutSuccess {
    flex: 1; /* isi penuh sisa ruang */
}

/* Default responsive tetap column di portrait/small */
@media (max-width: 788px), (orientation: portrait) {
    .checkoutSuccess {
        flex-direction: column;
    }

    .summaryCheckoutSuccess {
        width: 100%;
    }
}

/* Desktop & tablet landscape */
@media (min-width: 789px) {
    .checkoutSuccess {
        flex-direction: row;
    }

    .summaryCheckoutSuccess {
        flex: 0 0 60%; /* ambil 60% */
    }

    .leftCheckoutSuccess {
        flex: 1; /* sisanya */
    }
}

.grecaptcha-badge {
    display: none !important;
}

.dx-content-background {
    background: transparent !important;
}




/* ====== CARD MODE daftarPerusahaan ====== */
#gridContainerdaftarPerusahaan.card-mode .k-grid-header,
#gridContainerdaftarPerusahaan.card-mode .k-grid-pager {
    display: none !important;
}


#gridContainerdaftarPerusahaan {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

    #gridContainerdaftarPerusahaan .k-grid-content {
        overflow-x: auto !important;
    }

    /* force table shrink */
    #gridContainerdaftarPerusahaan table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;
    }

   

    #gridContainerdaftarPerusahaan .grid-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 6px 8px;
        margin: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    #gridContainerdaftarPerusahaan .grid-card-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 6px;
    }

  

    /* Info line layout: label right-aligned, value left-aligned */
    #gridContainerdaftarPerusahaan .grid-card-info .info-line {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    /* Label: right-aligned, width auto-adjusted later by JS */
    #gridContainerdaftarPerusahaan .grid-card-info b {
        flex: 0 0 var(--label-width, auto);
        text-align: right;
        color: #1e3a8a;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Value: left-aligned and flexible */
    #gridContainerdaftarPerusahaan .grid-card-info span {
        flex: 1;
        text-align: left;
        color: #374151;
        word-break: break-word;
    }

    /* General info block style */
    #gridContainerdaftarPerusahaan .grid-card-info {
        font-size: 0.95em;
        color: #555;
        line-height: 1.4em;
        margin-top: 4px;
    }




/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    #gridContainerdaftarPerusahaan {
        padding: 0 8px;
    }
}

@media (orientation: portrait) {
    #gridContainerdaftarPerusahaan {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

        #gridContainerdaftarPerusahaan .k-grid-content {
            overflow-x: hidden !important;
        }
}

.k-grid-content, #gridContainerdaftarPerusahaan {
    pointer-events: auto !important;
    z-index: 1;
}




    /* ====== CARD MODE daftarPromo ====== */
    #gridContainerdaftarPromo.card-mode .k-grid-header,
    #gridContainerdaftarPromo.card-mode .k-grid-pager {
        display: none !important;
    }


#gridContainerdaftarPromo {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}
    
    #gridContainerdaftarPromo .k-grid-content {
        overflow-x: auto !important;
    }

    
    /*#gridContainerdaftarPromo table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;
    }*/

    #gridContainerdaftarPromo td {
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    #gridContainerdaftarPromo .k-grid-header {
        box-sizing: border-box;
    }

    #gridContainerdaftarPromo .grid-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 6px 8px;
        margin: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    #gridContainerdaftarPromo .grid-card-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 6px;
    }



    /* Info line layout: label right-aligned, value left-aligned */
    #gridContainerdaftarPromo .grid-card-info .info-line {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    /* Label: right-aligned, width auto-adjusted later by JS */
    #gridContainerdaftarPromo .grid-card-info b {
        flex: 0 0 var(--label-width, auto);
        text-align: right;
        color: #1e3a8a;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Value: left-aligned and flexible */
    #gridContainerdaftarPromo .grid-card-info span {
        flex: 1;
        text-align: left;
        color: #374151;
        word-break: break-word;
    }

    /* General info block style */
    #gridContainerdaftarPromo .grid-card-info {
        font-size: 0.95em;
        color: #555;
        line-height: 1.4em;
        margin-top: 4px;
    }



/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    #gridContainerdaftarPromo {
        padding: 0 8px;
    }
}

@media (orientation: portrait) {
    #gridContainerdaftarPromo {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

        #gridContainerdaftarPromo .k-grid-content {
            overflow-x: hidden !important;
        }
}

.k-grid-content, #gridContainerdaftarPromo {
    pointer-events: auto !important;
    z-index: 1;
}

    


    /* ====== CARD MODE daftarSubKategori daftarSubGroup ====== */
#gridContainerdaftarSubKategori.card-mode .k-grid-header,
#gridContainerdaftarSubKategori.card-mode .k-grid-pager {
    display: none !important;
}




#gridContainerdaftarSubKategori {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

    #gridContainerdaftarSubKategori .k-grid-content {
        overflow-x: auto !important;
    }

    /* force table shrink */
    #gridContainerdaftarSubKategori table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;
    }



    #gridContainerdaftarSubKategori .grid-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 6px 8px;
        margin: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    #gridContainerdaftarSubKategori .grid-card-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 6px;
    }



    /* Info line layout: label right-aligned, value left-aligned */
    #gridContainerdaftarSubKategori .grid-card-info .info-line {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    /* Label: right-aligned, width auto-adjusted later by JS */
    #gridContainerdaftarSubKategori .grid-card-info b {
        flex: 0 0 var(--label-width, auto);
        text-align: right;
        color: #1e3a8a;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Value: left-aligned and flexible */
    #gridContainerdaftarSubKategori .grid-card-info span {
        flex: 1;
        text-align: left;
        color: #374151;
        word-break: break-word;
    }

    /* General info block style */
    #gridContainerdaftarSubKategori .grid-card-info {
        font-size: 0.95em;
        color: #555;
        line-height: 1.4em;
        margin-top: 4px;
    }



/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    #gridContainerdaftarSubKategori {
        padding: 0 8px;
    }
}

@media (orientation: portrait) {
    #gridContainerdaftarSubKategori {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

        #gridContainerdaftarSubKategori .k-grid-content {
            overflow-x: hidden !important;
        }
}

.k-grid-content, #gridContainerdaftarSubKategori {
    pointer-events: auto !important;
    z-index: 1;
}





/* ====== CARD MODE daftarSatuanProduk  ====== */
#gridContainerdaftarSatuanProduk.card-mode .k-grid-header,
#gridContainerdaftarSatuanProduk.card-mode .k-grid-pager {
    display: none !important;
}


#gridContainerdaftarSatuanProduk {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
}

    #gridContainerdaftarSatuanProduk .k-grid-content {
        overflow-x: auto !important;
    }

    /* force table shrink */
    #gridContainerdaftarSatuanProduk table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;
    }



    #gridContainerdaftarSatuanProduk .grid-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 6px 8px;
        margin: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    #gridContainerdaftarSatuanProduk .grid-card-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 6px;
    }



    /* Info line layout: label right-aligned, value left-aligned */
    #gridContainerdaftarSatuanProduk .grid-card-info .info-line {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    /* Label: right-aligned, width auto-adjusted later by JS */
    #gridContainerdaftarSatuanProduk .grid-card-info b {
        flex: 0 0 var(--label-width, auto);
        text-align: right;
        color: #1e3a8a;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Value: left-aligned and flexible */
    #gridContainerdaftarSatuanProduk .grid-card-info span {
        flex: 1;
        text-align: left;
        color: #374151;
        word-break: break-word;
    }

    /* General info block style */
    #gridContainerdaftarSatuanProduk .grid-card-info {
        font-size: 0.95em;
        color: #555;
        line-height: 1.4em;
        margin-top: 4px;
    }



/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    #gridContainerdaftarSatuanProduk {
        padding: 0 8px;
    }
}

@media (orientation: portrait) {
    #gridContainerdaftarSatuanProduk {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

        #gridContainerdaftarSatuanProduk .k-grid-content {
            overflow-x: hidden !important;
        }
}

.k-grid-content, #gridContainerdaftarSatuanProduk {
    pointer-events: auto !important;
    z-index: 1;
}





/* ====== CARD MODE daftarProduk====== */
#gridContainerdaftarProduk.card-mode .k-grid-header,
#gridContainerdaftarProduk.card-mode .k-grid-pager {
    display: none !important;
}


#gridContainerdaftarProduk {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
    
}

    #gridContainerdaftarProduk.k-grid-content {
        overflow-x: auto !important;
    }

    /* force table shrink */
    #gridContainerdaftarProduktable {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto !important;
        border-collapse: collapse;
    }



    #gridContainerdaftarProduk.grid-card {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 6px 8px;
        margin: 2px 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }

    #gridContainerdaftarProduk.grid-card-title {
        font-weight: bold;
        font-size: 1.1em;
        color: #333;
        margin-bottom: 6px;
    }



    /* Info line layout: label right-aligned, value left-aligned */
    #gridContainerdaftarProduk.grid-card-info .info-line {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        text-align: left;
    }

    /* Label: right-aligned, width auto-adjusted later by JS */
    #gridContainerdaftarProduk.grid-card-info b {
        flex: 0 0 var(--label-width, auto);
        text-align: right;
        color: #1e3a8a;
        font-weight: 600;
        white-space: nowrap;
    }

    /* Value: left-aligned and flexible */
    #gridContainerdaftarProduk.grid-card-info span {
        flex: 1;
        text-align: left;
        color: #374151;
        word-break: break-word;
    }

    /* General info block style */
    #gridContainerdaftarProduk.grid-card-info {
        font-size: 0.95em;
        color: #555;
        line-height: 1.4em;
        margin-top: 4px;
    }


/*baru untuk di card mode biar scrolling*/
.grid-card-container {
    height: calc(100vh - 180px); /* sesuaikan */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px;
}

.grid-card.loading::after {
    content: "Loading...";
    display: block;
    text-align: center;
    padding: 12px;
    color: #888;
}

.grid-card-loader {
    text-align: center;
    padding: 12px;
    color: #888;
}

#gridContainerdaftarProduk.card-mode {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* ====== MEDIA QUERIES ====== */
@media (max-width: 1024px) {
    #gridContainerdaftarProduk{
        padding: 0 8px;
    }
}

@media (orientation: portrait) {
    #gridContainerdaftarProduk{
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

        #gridContainerdaftarProduk.k-grid-content {
            overflow-x: hidden !important;
        }
}

.k-grid-content, #gridContainerdaftarProduk{
    pointer-events: auto !important;
    z-index: 1;
}




/* === Modern Elegant Toolbar (2025 look, refined) === */
.toolbar-modern {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 6px 12px; /* reduced top & bottom padding */
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.toolbar-modern label {
    font-weight: 600;
    font-size: 14px;
    color: #1e3a8a;
}

.toolbar-modern .k-textbox {
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #fff;
    width: 160px;
    height: 32px; /* slightly smaller for compact look */
    transition: all 0.2s ease;
}

.toolbar-modern .k-textbox:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.3);
}

/* Modern rounded icon buttons */
.modern-btn {
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.modern-btn.k-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
}

.modern-btn.k-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.4);
}

.clear-btn {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #1e3a8a;
    border: none;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    box-shadow: 0 0 4px rgba(148, 163, 184, 0.3);
}

/* Keep Filter & Clear in one line always */
.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Tablet adjustments (≤ 900 px) ===== */
@media (max-width: 600px) {
    

    .toolbar-modern {
        gap: 8px;
        padding: 5px 10px;
    }

    .toolbar-modern label {
        font-size: 13px;
    }

    .toolbar-modern .k-textbox {
        width: 130px !important;
        height: 30px;
    }

    .modern-btn {
        width: 32px;
        height: 32px;
    }
}




/* ===== Phone portrait (≤ 500 px) ===== */
@media (max-width: 500px) {

   

    .toolbar-modern {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 5px 8px;
        background: linear-gradient(135deg, #f0f4ff, #e2e8f0);
    }

    /* Nama PT stays on its own line */
    .toolbar-group:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    /* Alamat PT + Buttons on one line */
    .toolbar-group:nth-child(2),
    .toolbar-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
    }

        .toolbar-group:nth-child(2) label {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .toolbar-group:nth-child(2) .k-textbox {
            flex: 1;
        }

    /* Buttons follow Alamat PT */
    .toolbar-actions {
        justify-content: flex-start;
        margin-top: 0;
        flex: 0 0 auto;
    }

        .toolbar-actions .modern-btn {
            width: 34px;
            height: 34px;
        }

    .k-grid-toolbar {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}



/* Card container */
.grid-card-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card base */
.grid-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 10px 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover effect */
    .grid-card:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    }

    /* Selected effect */
    .grid-card.selected {
        border-color: #2563eb;
        background-color: #e0ecff;
        box-shadow: 0 0 0 2px #2563eb33;
    }

/* Info alignment */
.grid-card-info .info-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-card-info b {
    flex: 0 0 var(--label-width, auto);
    text-align: right;
    color: #1e3a8a;
    font-weight: 600;
    white-space: nowrap;
}

.grid-card-info span {
    flex: 1;
    text-align: left;
    color: #374151;
    word-break: break-word;
}

/* --- Ensure selected card is visually highlighted --- */
.grid-card.selected {
    border-color: #2563eb !important;
    background-color: #e0ecff !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.4) !important;
    transition: all 0.2s ease;
}

/* Optional hover for better UX */
.grid-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}

/* Optional: smoother rounded effect */
.grid-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    transition: all 0.2s ease;
}


/*✨ Smooth fade animation between card/grid

Add this CSS:*/
.card-mode .grid-card-container {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeSlideIn 0.25s ease forwards;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*💎 Optional: animated card click highlight*/
.grid-card.selected {
    animation: cardSelectPulse 0.2s ease;
}

@keyframes cardSelectPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}


/* 🧩 Responsive Grid for Card Mode (unchanged) */
.grid-card-container {
    display: grid;
    gap: 10px;
    padding: 10px;
}

@media (max-width: 500px) {
    .grid-card-container {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 501px) and (max-width: 900px) {
    .grid-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .grid-card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1201px) {
    .grid-card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.grid-card {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}


/*mstPerusahaan.html untuk actionsheet*/

.sheet-mst-perusahaan {
    max-width: 450px;
    width: 450px;
    max-height: 420px;
    /*margin-left: auto;
    margin-right: auto;*/
}

    .sheet-mst-perusahaan .k-actionsheet-container {
        border-radius: 0;
    }

    .sheet-mst-perusahaan .k-actionsheet-items,
    .sheet-mst-perusahaan .k-actionsheet-content {
        /*max-height: inherit;*/
        /*overflow: scroll;*/
        padding-bottom: 30px;
    }



/* 🏢 MAIN CONTAINER mstPerusahaan */
.containerMstPerusahaan {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containerMstPerusahaan h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formMstPerusahaan {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formMstPerusahaan .form-group,
    .company-formMstPerusahaan .form-group-3 {
        display: flex;
        flex-direction: column;
    }
        
        .company-formMstPerusahaan input, .company-formMstPerusahaan select, .company-formMstPerusahaan textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }


/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formMstPerusahaan-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formMstPerusahaan-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formMstPerusahaan-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formMstPerusahaan-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formMstPerusahaan .form-group.full,
.company-formMstPerusahaan .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formMstPerusahaan {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formMstPerusahaan {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formMstPerusahaan {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}


/* 📌 Checkbox cell align center (desktop) */
.company-formMstPerusahaan-firstrow .form-group-3:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}






/* 🏢 MAIN CONTAINER MSTPROMO */
.containerMstPromo {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containerMstPromo h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formMstPromo {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formMstPromo .form-group,
    .company-formMstPromo .form-group-3 {
        display: flex;
        flex-direction: column;
    }

    .company-formMstPromo input, .company-formMstPromo select, .company-formMstPromo textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }


/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formMstPromo-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formMstPromo-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formMstPromo-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formMstPromo-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formMstPromo .form-group.full,
.company-formMstPromo .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formMstPromo {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formMstPromo {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formMstPromo {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}


/* 📌 Checkbox cell align center (desktop) */
.company-formMstPromo-firstrow .form-group-3:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}





/* 🏢 MAIN CONTAINER MSTSUBKATEGORI */
.containerMstSubKategori {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containerMstSubKategori h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formMstSubKategori {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formMstSubKategori .form-group,
    .company-formMstSubKategori .form-group-3 {
        display: flex;
        flex-direction: column;
    }

    .company-formMstSubKategori input, .company-formMstSubKategori select, .company-formMstSubKategori textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }


/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formMstSubKategori-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formMstSubKategori-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formMstSubKategori-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formMstSubKategori-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formMstSubKategori .form-group.full,
.company-formMstSubKategori .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formMstSubKategori {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formMstSubKategori {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formMstSubKategori {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}


/* 📌 Checkbox cell align center (desktop) */
.company-formMstSubKategori-firstrow .form-group-3:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}






/* 🏢 MAIN CONTAINER mstSatuanProduk */
.containermstSatuanProduk {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containermstSatuanProduk h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formmstSatuanProduk {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formmstSatuanProduk .form-group,
    .company-formmstSatuanProduk .form-group-3 {
        display: flex;
        flex-direction: column;
    }

        /* Semua input kecuali checkbox */
        .company-formmstSatuanProduk input:not([type="checkbox"]),
        .company-formmstSatuanProduk select,
        .company-formmstSatuanProduk textarea,
        .company-formmstSatuanProduk .k-switch {
            width: 100% !important;
            box-sizing: border-box !important;
            padding: 4px !important;
        }



/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formmstSatuanProduk-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.company-formmstSatuanProduk .checkbox-group .k-switch {
    left: 0 !important;
    transform: none !important;
    margin-top: 18px !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formmstSatuanProduk-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formmstSatuanProduk-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }
    .company-formmstSatuanProduk .checkbox-group .k-switch {
        left: 0 !important;
        transform: none !important;
        margin-top: 1px !important;
    }
    
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formmstSatuanProduk-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formmstSatuanProduk .form-group.full,
.company-formmstSatuanProduk .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}


/* 📌 Checkbox cell align center (desktop) */
.company-formmstSatuanProduk-firstrow .form-group-3:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}



/* 🏢 MAIN CONTAINER mstSatuanProduk */
.containermstSatuanProduk {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containermstSatuanProduk h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formmstSatuanProduk {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formmstSatuanProduk .form-group,
    .company-formmstSatuanProduk .form-group-3 {
        display: flex;
        flex-direction: column;
    }

    /* Semua input kecuali checkbox */
    .company-formmstSatuanProduk input:not([type="checkbox"]),
    .company-formmstSatuanProduk select,
    .company-formmstSatuanProduk textarea,
    .company-formmstSatuanProduk .k-switch {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }



/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formmstSatuanProduk-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.company-formmstSatuanProduk .checkbox-group .k-switch {
    left: 0 !important;
    transform: none !important;
    margin-top: 18px !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formmstSatuanProduk-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formmstSatuanProduk-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }

    .company-formmstSatuanProduk .checkbox-group .k-switch {
        left: 0 !important;
        transform: none !important;
        margin-top: 1px !important;
    }
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formmstSatuanProduk-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formmstSatuanProduk .form-group.full,
.company-formmstSatuanProduk .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formmstSatuanProduk {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}








/*mstProduk.html untuk actionsheet*/

.sheet-mst-produk {
    max-width: 450px;
    width: 450px;
    max-height: 420px;
    /*margin-left: auto;
    margin-right: auto;*/
}

    .sheet-mst-produk .k-actionsheet-container {
        border-radius: 0;
    }

    .sheet-mst-produk .k-actionsheet-items,
    .sheet-mst-produk .k-actionsheet-content {
        /*max-height: inherit;*/
        /*overflow: scroll;*/
        padding-bottom: 30px;
    }



/* 🏢 MAIN CONTAINER mstProduk */
.containermstProduk {
    background: #fff;
    padding: 5px;
    max-width: 1920px;
    margin: 3px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    margin-bottom: 70px !important;
}

    .containermstProduk h2 {
        text-align: center;
        margin-bottom: 8px;
    }


/* 🧱 MAIN FORM GRID: Default = 1 column (mobile) */
.company-formmstProduk {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: 1fr !important;
}

    .company-formmstProduk .form-group,
    .company-formmstProduk .form-group-3 {
        display: flex;
        flex-direction: column;
    }

    .company-formmstProduk input, .company-formmstProduk select, .company-formmstProduk textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 4px !important;
    }


/* 🧩 FIRST ROW BASE (full width in grid) */
.company-formmstProduk-firstrow {
    grid-column: 1 / -1;
    display: grid !important;
    gap: 7px !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* ✅ MOBILE PORTRAIT ≤571px */
@media (max-width: 571px) {
    .company-formmstProduk-firstrow {
        grid-template-columns: 1fr 1fr !important; /* 2 kolom */
    }

        /* Nama perusahaan full */
        .company-formmstProduk-firstrow .form-group-3:first-child {
            grid-column: 1 / -1 !important;
        }
}


/* ✅ >571px (Normal mode: 3 columns = 2fr, 1fr, auto) */
@media (min-width: 572px) {
    .company-formmstProduk-firstrow {
        grid-template-columns: 2fr 1fr auto !important;
    }
}


/* 📌 FULL WIDTH ROWS (alamat & social) */
.company-formmstProduk .form-group.full,
.company-formmstProduk .form-group.social {
    grid-column: 1 / -1 !important;
}


/* 📌 GRID BREAKPOINTS (body form) */
@media (min-width: 571px) and (max-width: 799px) {
    .company-formmstProduk {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 800px) and (max-width: 1023px) {
    .company-formmstProduk {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .company-formmstProduk {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}


/* 📌 Checkbox cell align center (desktop) */
.company-formmstProduk-firstrow .form-group-3:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.company-formmstProduk #cnt_deskripsi_ {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    min-height:100px;
}







/* Keep gallery area stable before JS loads */
#websiteContentPromo {
    min-height: 250px;
    overflow: hidden;
    background-color: #f4f4f4;
}

    #websiteContentPromo img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 3/2;
    }


.k-switch {
    transform: scale(0.85); /* perkecil sedikit, agar manis */
}






.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* jumlah baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.truncate-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



.elf-persist {
    width: 100%;
    height: auto; 
    overflow-y: auto;
    overflow-x: hidden;    
}

/*#social-instagram, #social-tiktok {
    min-height: 400px; /* Sesuaikan dengan tinggi perkiraan widget */
    overflow: hidden;
    width: 100%;
}*/