/* Vexar Marketplace - Minimal Design */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #222; background: #f8f9fa; line-height: 1.5; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.mp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.mp-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 0; position: sticky; top: 0; z-index: 100; }
.mp-header .mp-container { display: flex; align-items: center; justify-content: space-between; }
.mp-logo { font-size: 20px; font-weight: 700; color: #111; }
.mp-logo:hover { text-decoration: none; color: #2563eb; }
.mp-nav { display: flex; gap: 20px; }
.mp-nav-link { color: #555; font-size: 14px; }
.mp-nav-link:hover { color: #2563eb; text-decoration: none; }
.mp-cart-link { position: relative; }
.mp-cart-count { background: #ef4444; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 10px; display: none; }
.mp-lang { display: flex; gap: 6px; }
.mp-lang-btn { padding: 4px 10px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 12px; color: #555; }
.mp-lang-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Main */
.mp-main { min-height: 60vh; padding: 24px 0; }

/* Footer */
.mp-footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 16px 0; text-align: center; color: #888; font-size: 13px; }

/* Buttons */
.mp-btn { display: inline-block; padding: 8px 18px; background: #2563eb; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.mp-btn:hover { background: #1d4ed8; text-decoration: none; color: #fff; }
.mp-btn-sm { padding: 6px 12px; font-size: 12px; }
.mp-btn-primary { background: #2563eb; }
.mp-btn-lg { padding: 12px 28px; font-size: 16px; width: 100%; }
.mp-btn-added { background: #16a34a !important; }

/* Filters */
.mp-filters { margin-bottom: 24px; }
.mp-filter-row { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.mp-search-input { flex: 1; min-width: 200px; padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; }
.mp-select { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; }

/* Product Grid */
.mp-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.mp-product-card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; transition: box-shadow 0.2s; display: flex; flex-direction: column; }
.mp-product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.mp-product-link { display: block; color: inherit; }
.mp-product-link:hover { text-decoration: none; }
.mp-product-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #f3f4f6; }
.mp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-label { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.mp-product-title { padding: 10px 12px 2px; font-size: 14px; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-product-price-row { padding: 4px 12px; display: flex; align-items: center; gap: 8px; }
.mp-price { font-weight: 700; font-size: 16px; color: #111; }
.mp-old-price { text-decoration: line-through; color: #999; font-size: 13px; }
.mp-product-shop { padding: 2px 12px 8px; font-size: 12px; color: #888; }
.mp-product-card .mp-btn-sm { margin: 0 12px 12px; text-align: center; }
.mp-no-products { grid-column: 1 / -1; text-align: center; padding: 40px; color: #888; }

/* Pagination */
.mp-pagination { margin-top: 24px; text-align: center; }
.mp-load-more { display: inline-block; }

/* Product Page */
.mp-product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0; }
.mp-product-gallery { }
.mp-product-main-img { aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f3f4f6; margin-bottom: 12px; }
.mp-product-main-img img { width: 100%; height: 100%; object-fit: contain; }
.mp-product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.mp-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
.mp-thumb.active, .mp-thumb:hover { border-color: #2563eb; opacity: 1; }
.mp-product-info h1 { font-size: 24px; margin-bottom: 12px; }
.mp-product-price { margin-bottom: 8px; }
.mp-product-price .mp-price { font-size: 28px; }
.mp-product-stock { font-size: 13px; margin-bottom: 12px; }
.mp-product-stock.in-stock { color: #16a34a; }
.mp-product-stock.out-of-stock { color: #ef4444; }
.mp-product-brand { margin-bottom: 8px; color: #555; font-size: 14px; }
.mp-product-seller { margin-bottom: 16px; color: #555; font-size: 14px; }
.mp-product-actions { margin-bottom: 20px; }
.mp-product-actions .mp-btn { padding: 12px 32px; font-size: 16px; }
.mp-product-description { color: #444; font-size: 14px; line-height: 1.7; }

/* Cart Page */
.mp-cart-page h1 { margin-bottom: 20px; }
.mp-cart-empty { text-align: center; padding: 40px 0; }
.mp-cart-empty p { margin-bottom: 16px; color: #888; }
.mp-cart-seller { margin-bottom: 24px; background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; overflow: hidden; }
.mp-cart-seller-name { padding: 12px 16px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
.mp-cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; }
.mp-cart-item:last-child { border-bottom: none; }
.mp-cart-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.mp-cart-item-info { flex: 1; }
.mp-cart-item-title { font-size: 14px; color: #222; display: block; }
.mp-cart-item-price { font-size: 13px; color: #888; }
.mp-cart-qty { width: 60px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; text-align: center; }
.mp-cart-item-subtotal { font-weight: 600; min-width: 80px; text-align: right; }
.mp-cart-remove { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 4px 8px; }
.mp-cart-remove:hover { color: #ef4444; }
.mp-cart-summary { margin: 20px 0; text-align: right; }
.mp-cart-total { font-size: 20px; }
.mp-cart-total b { font-size: 24px; }

/* Checkout Form */
.mp-checkout-form { background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; padding: 24px; }
.mp-checkout-form h2 { margin-bottom: 16px; font-size: 18px; }
.mp-form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.mp-form-row input, .mp-form-row textarea, .mp-form-row select { flex: 1; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; }
.mp-form-row textarea { resize: vertical; }

/* Order Page */
.mp-order-success { text-align: center; padding: 40px 0; }
.mp-order-success h1 { color: #16a34a; margin-bottom: 12px; }
.mp-order-details { text-align: left; max-width: 600px; margin: 24px auto; }
.mp-order-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.mp-order-table th, .mp-order-table td { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
.mp-order-table th { background: #f9fafb; font-weight: 600; }
.mp-order-total { text-align: right; font-size: 18px; }

/* Coming Soon */
.mp-coming-soon { text-align: center; padding: 100px 20px; }
.mp-coming-soon h1 { font-size: 36px; margin-bottom: 12px; }
.mp-coming-soon p { color: #888; font-size: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .mp-product-page { grid-template-columns: 1fr; gap: 20px; }
    .mp-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .mp-form-row { flex-direction: column; }
    .mp-header .mp-container { flex-wrap: wrap; gap: 8px; }
    .mp-cart-item { flex-wrap: wrap; }
}
