.kma-store-wrapper { max-width: 1200px; margin: 20px auto; font-family: system-ui, sans-serif; padding: 0 8px; }

/* Header katalog rapi sejajar */
.kma-store-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.kma-store-header h2, .kma-store-header h1 { font-size: 20px !important; margin: 0; font-weight: 700; }
.kma-btn-cart { background: #111; color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; }

/* Grid 2 kolom tetap dipertahankan */
.kma-product-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}

.kma-product-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; transition: transform .2s; display: flex; flex-direction: column; justify-content: space-between; }
.kma-product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.06); }

/* TINGGI GAMBAR DIKURANGI JADI PENDEK (105px), LEBAR MENYESUAIKAN KOLOM */
.kma-thumb { position: relative; display: block; height: 105px; background: #f3f4f6; }
.kma-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kma-badge-sale { position: absolute; top: 6px; left: 6px; background: #ef4444; color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 4px; font-weight: bold; }

/* Padding isi card diringkas agar padat dan proporsional */
.kma-card-body { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.kma-card-body h3 { font-size: 13px; margin: 0 0 4px; line-height: 1.2; font-weight: 600; }
.kma-card-body h3 a { text-decoration: none; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.kma-price { font-size: 14px; font-weight: 700; color: #059669; display: block; margin-top: 2px; }
.kma-price-box del { font-size: 11px; color: #9ca3af; }
.kma-stock { font-size: 11px; color: #6b7280; margin: 2px 0 6px; }

.kma-add-to-cart { width: 100%; padding: 7px; background: #2563eb; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 12px; }
.kma-add-to-cart:disabled { background: #9ca3af; cursor: not-allowed; }

/* Cart Drawer */
.kma-drawer { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99999; justify-content: flex-end; }
.kma-drawer.open { display: flex; }
.kma-drawer-content { width: 100%; max-width: 420px; background: #fff; height: 100%; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; }
.kma-drawer-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.kma-drawer-header button { background: none; border: none; font-size: 26px; cursor: pointer; }
.kma-cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
#kma-checkout-form input, #kma-checkout-form textarea, #kma-checkout-form select { width: 100%; margin-bottom: 10px; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box; }
.kma-btn-checkout { width: 100%; padding: 12px; background: #059669; color: #fff; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 15px; }

/* Single Product & Reviews */
.kma-single-container { max-width: 1100px; margin: 30px auto; padding: 0 15px; font-family: system-ui, sans-serif; }
.kma-breadcrumb { margin-bottom: 20px; }
.kma-breadcrumb a { text-decoration: none; color: #2563eb; font-weight: 600; }
.kma-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; background: #fff; padding: 25px; border-radius: 14px; border: 1px solid #e5e7eb; }
@media (max-width: 768px) { .kma-single-grid { grid-template-columns: 1fr; } }
.kma-main-photo img { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; border: 1px solid #f3f4f6; }
.kma-thumb-strip { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.kma-thumb-item { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.kma-thumb-item:hover { border-color: #2563eb; }
.kma-sku-tag { font-size: 12px; color: #6b7280; text-transform: uppercase; }
.kma-single-title { font-size: 26px; margin: 8px 0 15px; color: #111827; }
.kma-single-price span { font-size: 28px; font-weight: 800; color: #059669; }
.kma-single-price del { font-size: 16px; color: #9ca3af; margin-right: 10px; }
.kma-meta-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; }
.badge-stock.in-stock { background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.badge-stock.out-stock { background: #fee2e2; color: #991b1b; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.badge-courier { background: #eff6ff; color: #1d4ed8; padding: 4px 10px; border-radius: 6px; font-size: 13px; }
.kma-buy-controls { display: flex; gap: 15px; margin-top: 25px; }
.kma-qty-selector { display: flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.kma-qty-selector button { width: 38px; background: #f9fafb; border: none; font-size: 18px; cursor: pointer; }
.kma-qty-selector input { width: 50px; text-align: center; border: none; font-weight: bold; }
.kma-add-to-cart-single { flex: 1; background: #2563eb; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; }
.kma-reviews-section { margin-top: 35px; background: #fff; padding: 25px; border-radius: 14px; border: 1px solid #e5e7eb; }
.kma-review-form select, .kma-review-form textarea { width: 100%; margin: 8px 0 12px; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; box-sizing: border-box; }
.kma-review-card { padding: 15px 0; border-bottom: 1px solid #f3f4f6; }
.kma-rev-head { display: flex; justify-content: space-between; margin-bottom: 6px; }