/*
Theme Name: ShopeAff Marketplace Look
Theme URI: https://example.com/shopeaff
Author: Custom Dev
Description: Tema WordPress bergaya UI Shopee/Marketplace modern yang rapi.
Version: 1.1.0
*/

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif; }
body { background-color: #f5f5f5; color: #333; font-size: 14px; }
a { text-decoration: none; color: inherit; }

/* Top Bar Kecil */
.top-bar { background: #f53d2d; color: #fff; font-size: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.top-bar-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0 15px; }

/* Sticky Header Utama */
.shopee-header { background: linear-gradient(-180deg, #f53d2d, #f63); color: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; gap: 30px; }
.logo-area { font-size: 26px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.search-bar { flex-grow: 1; position: relative; }
.search-bar form { display: flex; background: #fff; border-radius: 2px; padding: 3px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.search-bar input[type="text"] { width: 100%; padding: 8px 12px; border: none; font-size: 14px; outline: none; color: #333; }
.search-bar button { background: #fb5533; color: #fff; border: none; padding: 0 25px; border-radius: 2px; cursor: pointer; font-weight: 500; font-size: 14px; transition: background 0.2s; }
.search-bar button:hover { background: #f53d2d; }
.cart-icon { font-size: 24px; position: relative; cursor: pointer; padding: 5px; }
.cart-badge { position: absolute; top: 0; right: -5px; background: #fff; color: #ee4d2d; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; border: 2px solid #ee4d2d; }

/* Container & Layout Utama */
.main-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* Hero Banner Layout Grid */
.hero-banner { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 20px; }
.main-banner { height: 230px; background: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=800&q=80') center/cover; border-radius: 3px; }
.side-banner { display: flex; flex-direction: column; gap: 10px; }
.side-banner div { height: 110px; border-radius: 3px; background-position: center; background-size: cover; }

/* Ikon Kategori Bulat Ala Shopee */
.category-icons { background: #fff; padding: 20px 15px; border-radius: 3px; margin-bottom: 20px; box-shadow: 0 1px 1px 0 rgba(0,0,0,.05); display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; text-align: center; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.cat-icon-box { width: 45px; height: 45px; border-radius: 15px; background: #fef0ef; border: 1px solid #fbd4d0; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform 0.2s; }
.cat-item:hover .cat-icon-box { transform: translateY(-3px); }
.cat-item span { font-size: 12px; color: #555; font-weight: 500; }

/* Section Header Bar */
.section-header { background: #fff; padding: 15px 20px; border-bottom: 2px solid #ee4d2d; font-size: 16px; font-weight: 700; color: #ee4d2d; text-transform: uppercase; display: flex; align-items: center; justify-content: space-between; }

/* Product Grid Compact ala Shopee */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; margin-bottom: 30px; }
.product-card { background: #fff; border-radius: 2px; overflow: hidden; transition: all 0.2s ease; position: relative; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid transparent; box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-color: #ee4d2d; }
.product-image { width: 100%; padding-top: 100%; position: relative; background: #f9f9f9; }
.product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; top: 0; right: 0; background: #ffd839; color: #ee4d2d; font-size: 11px; font-weight: 700; padding: 3px 6px; text-transform: uppercase; }
.product-info { padding: 10px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.product-title { font-size: 13px; line-height: 1.4; height: 36px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; color: #222; }
.product-price { font-size: 16px; font-weight: 700; color: #ee4d2d; }
.product-meta { font-size: 11px; color: #777; display: flex; justify-content: space-between; margin-top: 8px; align-items: center; }

/* Footer */
.shopee-footer { background: #fff; border-top: 4px solid #ee4d2d; padding: 40px 0; margin-top: 50px; font-size: 13px; color: #666; }

/* =========================================
   LAYOUT SINGLE POST & SIDEBAR
========================================= */
.breadcrumb { font-size: 13px; color: #555; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #0055aa; }

.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 768px) { .single-layout { grid-template-columns: 1fr; } }

/* Box Konten Utama */
.single-content-box { background: #fff; padding: 25px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.single-title { font-size: 20px; font-weight: 700; color: #222; line-height: 1.4; margin-bottom: 15px; }
.single-meta-bar { background: #fafafa; padding: 10px 15px; border-left: 3px solid #ee4d2d; margin-bottom: 20px; font-size: 12px; color: #666; display: flex; gap: 15px; }

/* Styling Isi Artikel DeepSeek */
.article-body { font-size: 15px; line-height: 1.8; color: #333; }
.article-body h2, .article-body h3 { color: #222; margin: 20px 0 10px 0; font-size: 18px; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.article-body p { margin-bottom: 15px; }
.article-body ul { margin: 0 0 15px 20px; }
.article-body li { margin-bottom: 8px; }

/* =========================================
   SIDEBAR WIDGETS
========================================= */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #fff; border-radius: 2px; padding: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.widget-title { font-size: 14px; font-weight: 700; color: #222; text-transform: uppercase; border-bottom: 2px solid #ee4d2d; padding-bottom: 8px; margin-bottom: 15px; }

/* Mini Product List di Sidebar */
.mini-product { display: flex; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f5f5f5; align-items: center; }
.mini-product:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mini-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 2px; background: #eee; flex-shrink: 0; }
.mini-product-title { font-size: 12px; line-height: 1.3; font-weight: 500; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-product-price { font-size: 13px; font-weight: 700; color: #ee4d2d; margin-top: 4px; }

/* Banner Voucher Sidebar */
.voucher-box { background: linear-gradient(135deg, #f53d2d, #ff6633); color: #fff; padding: 15px; border-radius: 4px; text-align: center; }
.voucher-box h4 { font-size: 16px; margin-bottom: 5px; }
.voucher-box p { font-size: 12px; opacity: 0.9; margin-bottom: 12px; }
.voucher-btn { background: #fff; color: #ee4d2d; display: inline-block; padding: 8px 15px; font-weight: 700; font-size: 12px; border-radius: 2px; }

/* =========================================
   STATIC PAGE & 404
========================================= */
.page-box { background: #fff; padding: 30px; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.error-404-box { text-align: center; padding: 60px 20px; background: #fff; border-radius: 2px; }