/*
Theme Name: Market ICME
Theme URI: https://market.stikesicme-jbg.ac.id/
Author: Galuh
Author URI: https://banyumedia.id
Description: Tema WooCommerce ringan untuk toko jasa & material (banyutheme).
Version: 2.0.0
Text Domain: market stikesicme
*/

/* ============================================================
   1. GLOBAL FIXES & HEADER
   ============================================================ */
/* Mencegah logo menjadi raksasa di halaman Single Product & Shop (WooCommerce) */
.header-logo img, 
.site-branding img,
.custom-logo-link img,
.header-logo-wrapper img {
    max-width: 200px !important; 
    height: 44px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}
@media (max-width: 768px) {
    .header-logo-wrapper img,
    .custom-logo-link img {
        height: 36px !important;
    }
}

/* Padding Body dihapus agar tidak ada jarak putih di bawah footer */
body.single-product { padding-bottom: 0 !important; }

/* ============================================================
   2. BREADCRUMB
   ============================================================ */
.breadcrumb { margin: 16px 0 8px; font-size: 13px; color: #52424e; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-item a { color: #52424e; text-decoration: none; }
.breadcrumb-item a:hover { color: #5a005a; }
.breadcrumb-separator { color: #84727f; }
.breadcrumb-current { color: #5a005a; font-weight: 500; }
@media (max-width: 768px) { .breadcrumb { font-size: 12px; margin-top: 12px; } }

/* ============================================================
   3. TESTIMONIAL & REVIEWS
   ============================================================ */
.product-all-reviews.is-hidden { display: none; }
.product-all-reviews { margin-top: 16px; }
.testimonial-more-wrap { margin-top: 16px; text-align: center; }
.testimonial-more-btn { padding: 8px 16px; border-radius: 999px; border: 1px solid #5a005a; background: #ffffff; font-size: 14px; cursor: pointer; transition: all 0.2s ease; }
.testimonial-more-btn:hover { background: #5a005a; color: #ffffff; }
.testimonial-card-full { margin-bottom: 8px; }

/* ============================================================
   4. TABLE OF CONTENTS (TOC)
   ============================================================ */
.banyu-toc-container { background: #ffeff8; border: 1px solid #d6c0cf; padding: 20px; margin: 20px 0; border-radius: 8px; display: inline-block; min-width: 250px; max-width: 100%; }

/* ============================================================
   5. ASYMMETRIC GRID
   ============================================================ */
.asymmetric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ============================================================
   6. LINE CLAMP UTILITY
   ============================================================ */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   7. NO SCROLLBAR UTILITY
   ============================================================ */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.banyu-toc-title { font-weight: 700; margin-top: 0; margin-bottom: 12px; font-size: 16px; color: #111827; border-bottom: 2px solid #e5e7eb; padding-bottom: 8px; display: inline-block; }
.banyu-toc-container ul { list-style: none; padding-left: 0; margin: 0; }
.banyu-toc-container li { margin-bottom: 6px; line-height: 1.5; }
.banyu-toc-container li a { text-decoration: none; color: #4b5563; font-size: 14px; transition: color 0.2s; }
.banyu-toc-container li a:hover { color: #2563eb; text-decoration: underline; }
.banyu-toc-container li.toc-sub-item { padding-left: 20px; margin-top: 2px; font-size: 0.95em; border-left: 2px solid #e5e7eb; }

/* ============================================================
   5. STICKY BANNER: FLOATING CARD (SPACIOUS)
   ============================================================ */
#banyu-promo-sticky {
    position: fixed;
    z-index: 99990;
    background: #111827; /* Hitam Solid */
    color: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Shadow lebih tebal agar terlihat melayang */
    font-family: inherit;
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.banyu-promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px; 
    gap: 20px;
    position: relative;
}

/* Badge Hijau */
.promo-badge {
    background: #22c55e;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
}

/* Typography */
.promo-text h3 { margin: 0; font-size: 16px; font-weight: 700; color: #ffffff; line-height: 1.4; }
.promo-text p { margin: 6px 0 0; font-size: 13px; color: #9ca3af; line-height: 1.5; }

/* Tombol Putih */
.promo-btn {
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
    border: none;
}
.promo-btn:hover { background: #e5e7eb; color: #000; }

/* Tombol Close */
.promo-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.promo-close:hover { color: #fff; }

/* --- RESPONSIVE: MOBILE (Floating Center Bottom) --- */
@media (max-width: 768px) {
    #banyu-promo-sticky {
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%; 
        max-width: 420px;
        border-radius: 16px;
        animation: slideUp 0.5s ease-out;
    }
    
    .promo-text p { display: none; }
    .banyu-promo-content { padding: 16px 20px; gap: 15px; } 
    .promo-btn { padding: 10px 16px; font-size: 13px; }

    /* GESER TOMBOL WA DI HP */
    .whatsapp-btn, #wa-widget, .joinchat_button, .wa__btn_popup { 
        bottom: 110px !important; 
        right: 15px !important; 
        z-index: 99995 !important; 
    }
}

/* --- RESPONSIVE: DESKTOP (Floating Right with Gap) --- */
@media (min-width: 769px) {
    #banyu-promo-sticky {
        top: 50%;
        
        /* JARAK KANAN: Ini yang membuat banner bergeser ke kiri */
        right: 30px; 
        
        transform: translateY(-50%);
        width: 340px; 
        
        /* Karena melayang, semua sudut dibuat melengkung */
        border-radius: 16px; 
        
        animation: slideLeft 0.5s ease-out;
    }

    .banyu-promo-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 30px; 
    }
    
    .promo-action { width: 100%; margin-top: 20px; }
    .promo-btn { display: block; text-align: center; width: 100%; }

    /* GESER TOMBOL WA DI DESKTOP */
    .whatsapp-btn, #wa-widget, .joinchat_button, .wa__btn_popup { 
        left: 30px !important; 
        right: auto !important; 
        bottom: 30px !important; 
    }
}

/* Paksa logo header tidak membesar */
.site-logo{
  max-height: 40px;
  width: auto;
  height: auto;
  display: block;
}
@media (max-width: 768px){
  .site-logo{ max-height: 32px; }
}

/* Footer logo: lebih besar tapi tetap aman */
.footer-logo,
.footer-logo-wrapper img {
  height: 48px !important;   /* ubah 48/56/64 sesuai selera */
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px){
  .footer-logo,
  .footer-logo-wrapper img {
    height: 40px !important;
  }
}


@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 50px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes slideLeft { from { opacity: 0; transform: translate(50px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }