/* RentAround Design System */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1A1A1A;
    line-height: 1.6;
}

a { color: #2D8A4E; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header { background: #fff; border-bottom: 1px solid #eee; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 24px; font-weight: 800; color: #1A1A1A; text-decoration: none; }
.logo:hover { text-decoration: none; }
.header-nav { display: flex; gap: 24px; align-items: center; }
.header-nav a { text-decoration: none; color: #666; font-size: 14px; font-weight: 500; }
.header-nav a:hover { color: #1A1A1A; text-decoration: none; }

/* Category nav */
.category-nav { background: #F8F7F5; border-bottom: 1px solid #eee; padding: 12px 0; }
.category-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 32px; overflow-x: auto; }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #666; font-size: 12px; white-space: nowrap; }
.category-item:hover { color: #1A1A1A; text-decoration: none; }
.category-icon { font-size: 20px; }

/* Breadcrumb */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 16px 24px; font-size: 13px; color: #666; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .active { color: #E8973E; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* Product Hero */
.product-hero { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-image-area { background: #F8F7F5; border-radius: 12px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.product-image-area img { max-width: 80%; max-height: 80%; object-fit: contain; }
.image-placeholder { text-align: center; color: #999; font-size: 14px; }
.image-placeholder .icon { font-size: 80px; opacity: 0.3; display: block; margin-bottom: 8px; }

.confidence-badge { position: absolute; top: 16px; left: 16px; background: rgba(45,138,78,0.1); color: #2D8A4E; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.confidence-badge .dot { width: 8px; height: 8px; background: #2D8A4E; border-radius: 50%; }

.product-info { padding-top: 8px; }
.product-title { font-size: 36px; font-weight: 800; color: #1A1A1A; line-height: 1.2; margin-bottom: 6px; }
.product-subtitle { font-size: 15px; color: #666; margin-bottom: 24px; }

/* Price block */
.price-block { background: #F8F7F5; border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.price-label { font-size: 12px; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.price-value { font-size: 32px; font-weight: 800; color: #1A1A1A; }
.price-value .unit { font-size: 16px; font-weight: 500; color: #666; }
.price-note { font-size: 12px; color: #999; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.price-note .supplier-count { color: #E8973E; font-weight: 700; font-size: 14px; }
.price-note .no-suppliers { color: #999; font-size: 14px; }

/* Spec list */
.spec-list { margin-bottom: 24px; }
.spec-list-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.spec-list-row:last-child { border-bottom: none; }
.spec-list-label { font-size: 14px; color: #666; }
.spec-list-value { font-size: 14px; font-weight: 600; color: #1A1A1A; }
.spec-list-value.check-value { color: #2D8A4E; }
.spec-list-value.cross-value { color: #ccc; }

/* Expand specs */
.spec-expand { margin-bottom: 24px; }
.spec-expand-btn { background: none; border: none; color: #2D8A4E; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 0; display: flex; align-items: center; gap: 6px; }
.spec-expand-btn:hover { color: #246F3E; }
.expand-arrow { transition: transform 0.2s; font-size: 12px; }
.expand-arrow.open { transform: rotate(180deg); }
.spec-details { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.spec-details.open { max-height: 2000px; }

/* Buttons */
.btn-primary { background: #2D8A4E; color: #fff; border: none; padding: 14px 32px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary:hover { background: #246F3E; color: #fff; text-decoration: none; }
.btn-secondary { background: #fff; color: #2D8A4E; border: 2px solid #2D8A4E; padding: 14px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; }
.btn-secondary:hover { background: rgba(45,138,78,0.06); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #D45B5B; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #b94a4a; }
.action-buttons { display: flex; gap: 12px; }

/* Suppliers Section */
.suppliers-section { background: #F8F7F5; padding: 48px 0 64px; }
.suppliers-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.suppliers-header { margin-bottom: 8px; }
.suppliers-title { font-size: 28px; font-weight: 800; color: #1A1A1A; }
.suppliers-subtitle { font-size: 14px; color: #666; margin-bottom: 24px; }
.suppliers-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.btn-cta-small { background: #2D8A4E; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.2s; text-decoration: none; }
.btn-cta-small:hover { background: #246F3E; text-decoration: none; color: #fff; }
.sort-dropdown { background: #fff; border: 2px solid #2D8A4E; color: #2D8A4E; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; }

/* Supplier table */
.supplier-table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.supplier-row { display: grid; grid-template-columns: 2fr 80px 120px 100px 80px 160px; align-items: center; padding: 16px 24px; border-bottom: 1px solid #f0f0f0; gap: 12px; }
.supplier-row:last-child { border-bottom: none; }
.supplier-name { font-weight: 700; color: #1A1A1A; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.demo-badge { background: #2D8A4E; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px; }
.supplier-distance, .supplier-city, .supplier-price, .supplier-stock { font-size: 14px; color: #666; }
.supplier-price { font-weight: 600; color: #1A1A1A; }
.supplier-action { text-align: right; }
.btn-supplier { background: #2D8A4E; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.btn-supplier:hover { background: #246F3E; }

/* Footer */
.footer { background: #2D2D2D; padding: 32px 24px; text-align: center; color: #999; font-size: 13px; }
.footer strong { color: #fff; }

/* --- Admin styles --- */
.admin-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.admin-title { font-size: 28px; font-weight: 800; margin-bottom: 24px; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.admin-table th { text-align: left; padding: 12px 16px; background: #F8F7F5; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #666; font-weight: 600; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { font-weight: 600; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px;
    font-family: inherit; background: #F8F7F5; color: #1A1A1A;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #2D8A4E; background: #fff;
}
.form-group textarea { min-height: 200px; font-family: monospace; font-size: 13px; resize: vertical; }

/* Alerts */
.alert { padding: 12px 20px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #D45B5B; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #2D8A4E; border: 1px solid #bbf7d0; }

/* Supplier form rows */
.supplier-form-row { display: grid; grid-template-columns: 2fr 1fr 80px 100px 80px 60px; gap: 8px; align-items: end; margin-bottom: 8px; }
.supplier-form-row input { padding: 8px 12px; font-size: 13px; }
.supplier-form-row .form-group { margin-bottom: 0; }
.supplier-form-row .form-group label { font-size: 11px; }

/* Login */
.login-container { max-width: 400px; margin: 80px auto; padding: 0 24px; }
.login-card { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.login-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 24px; text-align: center; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; color: #999; }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state p { font-size: 15px; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .product-hero { grid-template-columns: 1fr; gap: 24px; }
    .product-title { font-size: 28px; }
    .supplier-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .supplier-form-row { grid-template-columns: 1fr 1fr; }
}
