/*
Theme Name: Tukuwo RWD Mie Sadean Cart Pro
Description: Template WordPress RWD dengan Pengaturan Upload Gambar Icon Logo GoFood, GrabFood, ShopeeFood, Logo Kedai, Nomor WA, dan Cart Drawer (Versi 51.0.0).
Version: 51.0.0
Author: Kedai Mie Sadean Malang
*/
:root {
    --primary-color: #0f1f17;
    --primary-dark: #08110c;
    --brown-gold: #e5c158;
    --brown-gold-dark: #c5a03e;
    --gold-accent: #fbf2cc;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --white: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
.site-header { background-color: var(--primary-dark); color: var(--white); padding: 0.6rem 1rem; position: sticky; top: 0; z-index: 1000; border-bottom: 2.5px solid var(--brown-gold); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .header-container { flex-direction: row; justify-content: space-between; } }
.site-title a { color: var(--brown-gold); text-decoration: none; font-size: 1.6rem; font-weight: 800; }
.site-logo-img { max-height: 45px; width: auto; display: block; }
.header-actions-wrapper { display: flex; align-items: center; gap: 15px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 15px; }
.main-navigation a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.tukuwo-floating-cart-btn { background: linear-gradient(135deg, var(--brown-gold) 0%, var(--brown-gold-dark) 100%); color: var(--primary-dark); border: none; padding: 7px 14px; border-radius: 20px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cart-badge-count { background: var(--primary-dark); color: var(--brown-gold); padding: 1px 6px; border-radius: 10px; font-size: 0.75rem; }
.tukuwo-shop-banner { background: linear-gradient(135deg, rgba(15, 31, 23, 0.95) 0%, rgba(8, 17, 12, 0.98) 100%); color: var(--white); padding: 2.8rem 1rem 2rem 1rem; text-align: center; border-radius: 0 0 28px 28px; margin-bottom: 2rem; border-bottom: 3.5px solid var(--brown-gold); }
.tukuwo-shop-banner h1 { font-weight: 900; margin: 0 0 0.6rem 0; font-size: clamp(1.8rem, 4.5vw, 3.2rem); color: var(--brown-gold); }
.tukuwo-marquee-container { width: 100%; overflow: hidden; white-space: nowrap; margin-top: 8px; }
.tukuwo-marquee-text { display: inline-block; animation: smooth-marquee 24s linear infinite; font-weight: 700; color: var(--gold-accent); }
@keyframes smooth-marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.tukuwo-delivery-bar { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.delivery-btn { padding: 6px 14px; border-radius: 22px; font-weight: 700; font-size: 0.82rem; text-decoration: none; color: #fff; border: 1.5px solid var(--brown-gold); display: inline-flex; align-items: center; gap: 6px; }
.delivery-btn.gofood { background: #00aa13; } .delivery-btn.grabfood { background: #00b14f; } .delivery-btn.shopeefood { background: #ee4d2d; }
.delivery-icon-img { max-height: 20px; width: auto; vertical-align: middle; }
.mie-sadean-card-order-box { margin-top: auto; padding-top: 6px; border-top: 1px solid rgba(229, 193, 88, 0.3); display: flex; flex-direction: column; gap: 4px; }
.mie-sadean-qty-row { display: flex; align-items: center; justify-content: space-between; background: #fdfae7; padding: 2px 4px; border-radius: 4px; border: 1px solid rgba(229, 193, 88, 0.4); }
.mie-sadean-qty-label { font-size: 9px; font-weight: 800; color: var(--primary-color); }
.mie-sadean-qty-controls { display: flex; align-items: center; border: 1px solid var(--brown-gold); border-radius: 4px; overflow: hidden; background: #fff; }
.mie-sadean-qty-btn { background: var(--primary-color); color: var(--brown-gold); border: none; width: 18px; height: 18px; font-weight: 800; font-size: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mie-sadean-qty-input { width: 22px; height: 18px; text-align: center; border: none; font-weight: 800; font-size: 9px; }
.card-add-to-cart-btn { width: 100%; padding: 4px 6px; border-radius: 4px; background: linear-gradient(135deg, var(--brown-gold) 0%, var(--brown-gold-dark) 100%); color: var(--primary-dark); font-weight: 800; font-size: 9px; border: none; cursor: pointer; }
.tukuwo-cart-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; display: none; justify-content: flex-end; }
.tukuwo-cart-modal-overlay.open { display: flex; }
.tukuwo-cart-drawer { width: 100%; max-width: 420px; background: #fff; height: 100%; display: flex; flex-direction: column; box-shadow: -5px 0 30px rgba(0,0,0,0.3); }
.tukuwo-cart-header { background: var(--primary-dark); color: var(--brown-gold); padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 2.5px solid var(--brown-gold); }
.tukuwo-cart-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
.tukuwo-cart-body { padding: 1rem; flex-grow: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; background: #fdfae7; padding: 10px; border-radius: 8px; border: 1px solid rgba(229, 193, 88, 0.4); }
.cart-item-title { font-weight: 800; font-size: 0.9rem; color: var(--primary-color); margin: 0; }
.cart-item-price { font-size: 0.8rem; color: #64748b; margin: 0; }
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item-remove { background: #e53e3e; color: white; border: none; width: 22px; height: 22px; border-radius: 50%; font-weight: bold; cursor: pointer; }
.tukuwo-cart-footer { padding: 1.2rem; background: #f1f5f9; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 10px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; color: var(--primary-color); }
.cart-whatsapp-checkout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 8px; background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); color: #fff; font-weight: 800; text-decoration: none; }
.mie-sadean-title-gold { font-size: 24px; color: var(--primary-color); text-align: center; margin: 35px 0 15px 0; font-weight: 800; position: relative; }
.mie-sadean-divider { height: 3px; background: linear-gradient(to right, transparent, var(--brown-gold), transparent); margin: 35px auto 20px auto; width: 75%; border: none; }
.site-footer { background-color: var(--primary-dark); color: var(--white); text-align: center; padding: 2.5rem 1rem; margin-top: 5rem; border-top: 4px solid var(--brown-gold); }
.mie-sadean-price-overlay { position: absolute; bottom: 6px; right: 6px; background: var(--primary-dark); color: var(--brown-gold); padding: 3px 6px; border-radius: 6px; font-weight: 800; font-size: 9.5px; border: 1.5px solid var(--brown-gold); z-index: 5; }
.mie-sadean-badge-best-seller { position: absolute; top: 6px; left: 6px; background: var(--brown-gold); color: #fff; padding: 2px 5px; border-radius: 4px; font-weight: 800; font-size: 7.5px; z-index: 6; }
.tukuwo-container { max-width: 1200px; margin: 0 auto; padding: 0 0.5rem; }
.tukuwo-category-filter { display: flex; gap: 8px; margin-bottom: 2rem; overflow-x: auto; padding-bottom: 8px; }
.tukuwo-cat-btn { background: #fff; color: var(--primary-color); padding: 0.5rem 1.2rem; border-radius: 20px; text-decoration: none; font-weight: 700; border: 1.5px solid var(--brown-gold); white-space: nowrap; font-size: 0.85rem; }
.tukuwo-cat-btn:hover, .tukuwo-cat-btn.active { background: var(--brown-gold); color: #fff; }

.woocommerce ul.products, ul.products, .mie-sadean-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.woocommerce ul.products li.product, ul.products li.product, .mie-sadean-card {
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid rgba(229, 193, 88, 0.35) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: 100% !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link, .mie-sadean-thumb {
    position: relative !important;
    display: block !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #f1f5f9;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link img, .mie-sadean-thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce ul.products li.product h2, 
.woocommerce ul.products li.product h3,
.mie-sadean-card h3 {
    font-size: 9px !important;
    line-height: 1.2 !important;
    margin: 0 0 2px 0 !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.woocommerce ul.products li.product .price, .mie-sadean-footer .mie-sadean-price {
    display: none !important;
}

.woocommerce ul.products li.product .text-wrapper,
.woocommerce ul.products li.product .woocommerce-shop-product-body,
.mie-sadean-body {
    padding: 4px 5px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}
