*{
    margin          : 0;
    padding         : 0;
    box-sizing      : border-box;
    font-family     : Arial, sans-serif;
}

body
{
    background      : #f5f5f5;
    color           : #333;
}

/* ================= HEADER ================= */
header
{
    background      : linear-gradient(135deg,#0d6efd,#084298);
    color           : #fff;
    display         : flex;
    flex-wrap       : wrap;
    align-items     : center;
    justify-content : space-between;
    padding         : 12px 16px;
    gap             : 10px;
}

/* ================= LOGO ================= */
.logo
{
    display         : flex;
    flex-direction  : column;
    max-width       : 100%;
    overflow        : hidden;
}

.logo tulis_logo
{
    font-size       : 24px;
    font-weight     : bold;
    line-height     : 1.2;
    word-wrap       : break-word;
}

.logo tulis_tag_line
{
    font-size       : 12px;
    line-height     : 1.3;
    opacity         : 0.9;
    word-wrap       : break-word;
}

/* ================= NAV ================= */
.nav
{
    width           : 100%;
}

.nav-horizontal
{
    display         : flex;
    gap             : 10px;
    overflow-x      : auto;
    padding         : 8px 0;
    scrollbar-width : none;
    -ms-overflow-style  : none;
}

.nav-horizontal::-webkit-scrollbar
{
    display         : none;
}

.nav-horizontal a
{
    flex            : 0 0 auto;
    padding         : 6px 16px;
    background      : rgba(255,255,255,0.15);
    border-radius   : 6px;
    font-size       : 14px;
    color           : #fff;
    text-decoration : none;
    white-space     : nowrap;
}

/* ================= DESKTOP ================= */
@media(min-width:769px)
{
    header
    {
        flex-wrap       : nowrap;
    }

    .logo
    {
        max-width       : 45%;
    }

    .nav
    {
        width           : auto;
    }

    .nav-horizontal
    {
        padding         : 0;
    }
}



/* ================= SECTION APLIKASI ================= */
.section-app
{
    padding         : 25px 5px;
    background      : #ffffff;
}

.section-app h2
{
    margin-bottom   : 15px;
}

.app-list
{
    display         : flex;
    flex-wrap       : wrap;
    gap             : 12px;
}

.app-list button
{
    background      : background      : linear-gradient(135deg,#0d6efd,#084298);
    color           : #fff;
    border          : none;
    padding         : 10px 18px;
    border-radius   : 6px;
    cursor          : pointer;
}

.app-list button:hover
{
    background      : #084298;
}

/* ================= SECTION IFRAME ================= */
.section-frame
{
    padding         : 25px 5px;
    background      : #f1f5ff;
   
    
}

.section-frame iframe
{
    width           : 100%;
    height          : 1000px;
    border-radius   : 8px;
    background      : #fff;
}

/* ================= SECTION ARTIKEL ================= */
.section-artikel
{
    padding         : 40px 16px;
    background      : #ffffff;
}

.artikel-list
{
    display         : grid;
    grid-template-columns   : repeat(auto-fit,minmax(250px,1fr));
    gap             : 16px;
}

.artikel-card
{
    background      : #f9f9f9;
    padding         : 15px;
    border-radius   : 8px;
    box-shadow      : 0 2px 6px rgba(0,0,0,0.08);
}

.artikel-card h3
{
    font-size       : 16px;
    margin-bottom   : 5px;
}

.artikel-card p
{
    font-size       : 14px;
    margin          : 8px 0;
}

.artikel-card a
{
    text-decoration : none;
    font-weight     : bold;
    color           : #0d6efd;
}

/* ===== BUTTON APLIKASI ===== */
.btn-app
{
    display         : flex;
    align-items     : center;
    gap             : 10px;

    padding         : 10px 14px;
    background      : #0d6efd;
    color           : #fff;
    border          : none;
    border-radius   : 8px;
    cursor          : pointer;

    font-size       : 14px;
    white-space     : nowrap;
}

/* ===== ICON APLIKASI ===== */
.kotak_tampil_app
{
    width           : 36px;          /* BATAS LEBAR */
    height          : 36px;         /* BATAS TINGGI */
    object-fit      : contain;  /* gambar tidak gepeng */
    border-radius   : 6px;
    background      : #ffffff;
    padding         : 4px;
}

/* ===== HOVER ===== */
.btn-app:hover
{
    background      : #084298;
}

.app-list
{
    display         : grid;
    grid-template-columns   : repeat(auto-fit,minmax(100px,1fr));
    gap             : 14px;
}

.btn-app
{
    flex-direction  : column;
    justify-content : center;
    text-align      : center;
}

/* Footer */
footer 
{
    background      : linear-gradient(135deg,#0d6efd,#084298);
    color           : white;
    text-align      : center;
    padding         : 15px;
    margin-top      : 40px;
}

/* ================= MOBILE ================= */
@media(max-width:768px)
{
    header
    {
        align-items     : flex-start;
    }

    .logo
    {
        width           : 100%;
    }

    .nav-horizontal a
    {
        font-size       : 13px;
        padding         : 6px 14px;
    }
    .section-frame iframe
    {
        height          : 700px;
    }

    .kotak_tampil_app
    {
        width           : 30px;
        height          : 30px;
    }

    .btn-app
    {
        font-size       : 13px;
        padding         : 8px 12px;
    }
}

/* ================= DESKTOP ONLY ================= */
@media (min-width: 769px)
{
    /* SECTION APLIKASI */
    .section-app
    {
        padding: 15px 10px; /* lebih kecil */
    }

    .section-app h2
    {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .app-list
    {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }

    .btn-app
    {
        font-size: 13px;
        padding: 8px 10px;
    }

    .kotak_tampil_app
    {
        width: 30px;
        height: 30px;
        padding: 3px;
    }

    /* SECTION FRAME */
    .section-frame
    {
        padding: 15px 10px;
    }

    .section-frame h2
    {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .section-frame iframe
    {
        height: 600px; /* GANTI dari 200% */
    }
}

* Produk */
.produk {
    padding: 50px;
    text-align: center;
}

.produk h2 {
    margin-bottom: 30px;
}

.produk-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.catatan
{
    padding : 50px;
    text-align : left;
    
}

.card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card li
{
    margin-left : 10px;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 5px;
}

.card h3 {
    margin: 10px 0;
}

.card salah
{
    font : 12px monospace;
    color : red;
}

.card textarea
{
    width   : 100%;
    height  : 70px;
    border-color : lightgray; 
    border-radius: 5px;
    resize  : none;
}

.card button {
    background: #2f6f4e;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.card button:hover {
    background: #1f5037;
}


/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
}

.caption h2 {
    margin-bottom: 5px;
}

/* Responsive */
@media(max-width:768px){
    .slider {
        height: 250px;
    }
    .caption {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}
/* ARTIKEL */
.artikel {
    background: #fff;
    padding: 50px;
}

.artikel h2 {
    text-align: center;
    margin-bottom: 30px;
}

.artikel-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.artikel-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.artikel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.artikel-content {
    padding: 15px;
}

.artikel-content small {
    color: #777;
}

.artikel-content h3 {
    margin: 8px 0;
}

.artikel-content a {
    display: inline-block;
    margin-top: 10px;
    color: #2f6f4e;
    text-decoration: none;
    font-weight: bold;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px;
    background: #faf7f2;
}

.detail-foto {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.foto-utama {
    width: 100%;
    border-radius: 10px;
}

.thumbnail {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #ddd;
}

.detail-info h1 {
    font-size: 28px;
    color: #3a5a40;
}

.harga {
    color: #bc6c25;
    margin: 15px 0;
}

.asal, .pengrajin {
    font-style: italic;
    color: #555;
}

.deskripsi {
    margin: 15px 0;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    margin-bottom: 20px;
}

.info-list li {
    margin-bottom: 5px;
}

.btn-beli {
    background: #3a5a40;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.btn-beli:hover {
    background: #2d4730;
}

/* Keranjang */
.keranjang {
    padding: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.total {
    font-weight: bold;
}

.btn-kembali {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: #3a5a40;
}
form label{
display:block;
margin-top:10px;
font-weight:bold;
}
form input{
width:100%;
padding:8px;
margin-top:5px;
border:1px solid #ccc;
border-radius:5px;
}
form button{
margin-top:15px;
width:100%;
background:#2f6f4e;
color:white;
border:none;
padding:10px;
border-radius:5px;
cursor:pointer;
}
form button:hover{
background:#1f5037;
}
/* NOTIFIKASI KERANJANG */
.toast-notif{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2f6f4e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast-notif.show{
    opacity: 1;
    transform: translateY(0);
}
.cart-link{
    position: relative;
    display: inline-block;
}

.cart-badge{
    position: absolute;
    top: -6px;
    right: -12px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    display: none;
    min-width: 18px;
    text-align: center;
}

/* Mobile */
@media(max-width:768px){
    .cart-badge{
        top: -4px;
        right: -10px;
        font-size: 10px;
    }
}
.qty-box{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

.qty-btn{
    width:28px;
    height:28px;
    border:none;
    background:#2f6f4e;
    color:#fff;
    font-size:18px;
    border-radius:4px;
    cursor:pointer;
}

.qty-btn:hover{
    background:#1f5037;
}

/* TAB */
.tab-container{
    padding:40px;
}

.tab-header{
    display:flex;
    gap:5px;
    margin-bottom:20px;
    flex-wrap:wrap;
}

.tab-btn{
    padding:10px 18px;
    border:none;
    background:#ddd;
    cursor:pointer;
    border-radius:6px 6px 0 0;
    font-weight:bold;
}

.tab-btn.active{
    background:#2f6f4e;
    color:#fff;
}

.tab-content{
    display:none;
    background:#fff;
    padding:25px;
    border-radius:0 6px 6px 6px;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

.tab-content.active{
    display:block;
}

/* RESPONSIVE TAB + TABLE (MOBILE FIX) */
.table-responsive{
    width:100%;
    overflow-x:auto;
}

@media(max-width:768px){

    .tab-container{
        padding:15px;
    }

    .tab-content{
        padding:15px;
    }

    .keranjang{
        padding:10px;
    }

    table{
        min-width:600px; /* paksa scroll, bukan pecah layout */
    }
}

.chat-toggle{
    position:fixed;
    bottom:20px;
    left:20px;
    background:#2f6f4e;
    color:#fff;
    border:none;
    padding:12px 16px;
    border-radius:30px;
    cursor:pointer;
    z-index:9999;
}

.chat-box{
    position:fixed;
    bottom:80px;
    left:20px;
    width:300px;
    max-height:420px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
    display:none;
    flex-direction:column;
    z-index:9999;
}

.chat-header{
    background:#2f6f4e;
    color:#fff;
    padding:10px;
    border-radius:10px 10px 0 0;
    font-weight:bold;
}

.chat-messages{
    padding:10px;
    overflow-y:auto;
    flex:1;
    font-size:14px;
}

.chat-input{
    display:flex;
    border-top:1px solid #ddd;
}

.chat-input input{
    flex:1;
    border:none;
    padding:10px;
}

.chat-input button{
    border:none;
    background:#2f6f4e;
    color:#fff;
    padding:10px 15px;
    cursor:pointer;
}

.chat-msg-user{
    text-align:right;
    margin-bottom:8px;
}

.chat-msg-admin{
    text-align:left;
    margin-bottom:8px;
    color:#2f6f4e;
}
