/* Haqware — Account tabs styling
   Matches the navy / clean iOS-font aesthetic used across haqware.xyz
   Adjust --haqware-navy to your exact brand hex if different. */

:root {
	--haqware-navy: #0f1a2b;
	--haqware-navy-light: #1c2e4a;
	--haqware-blue-accent: #3b82f6;
	--haqware-border: #e5e7eb;
	--haqware-bg: #fafafa;
	--haqware-text-muted: #6b7280;
}

/* Overview */
.haqware-overview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.haqware-stat-card {
	background: #fff;
	border: 1px solid var(--haqware-border);
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.haqware-stat-label {
	font-size: 13px;
	color: var(--haqware-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.haqware-stat-value {
	font-size: 24px;
	font-weight: 600;
	color: var(--haqware-navy);
}

.haqware-quick-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.haqware-btn {
	display: inline-block;
	background: var(--haqware-navy);
	color: #fff;
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s ease;
}

.haqware-btn:hover {
	background: var(--haqware-navy-light);
	color: #fff;
}

/* Orders table */
.haqware-orders-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--haqware-border);
	border-radius: 10px;
	overflow: hidden;
}

.haqware-orders-table th {
	text-align: left;
	background: var(--haqware-bg);
	padding: 12px 16px;
	font-size: 13px;
	color: var(--haqware-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid var(--haqware-border);
}

.haqware-orders-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--haqware-border);
	font-size: 14px;
}

.haqware-orders-table tr:last-child td {
	border-bottom: none;
}

.haqware-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #eef2ff;
	color: var(--haqware-navy);
}

.haqware-status-completed { background: #dcfce7; color: #166534; }
.haqware-status-processing { background: #dbeafe; color: #1e40af; }
.haqware-status-on-hold { background: #fef3c7; color: #92400e; }
.haqware-status-cancelled,
.haqware-status-failed,
.haqware-status-refunded { background: #fee2e2; color: #991b1b; }

/* Addresses */
.haqware-address-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

@media (max-width: 640px) {
	.haqware-address-columns { grid-template-columns: 1fr; }
}

.haqware-address-block h4 {
	margin-bottom: 12px;
	color: var(--haqware-navy);
}

.haqware-field {
	margin-bottom: 12px;
}

.haqware-field label {
	display: block;
	font-size: 13px;
	color: var(--haqware-text-muted);
	margin-bottom: 4px;
}

.haqware-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--haqware-border);
	border-radius: 8px;
	font-size: 14px;
}

.haqware-field input:focus {
	outline: none;
	border-color: var(--haqware-blue-accent);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Wishlist */
.haqware-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 18px;
}

.haqware-wishlist-item {
	border: 1px solid var(--haqware-border);
	border-radius: 10px;
	padding: 12px;
	text-align: center;
	position: relative;
	background: #fff;
}

.haqware-wishlist-item img {
	border-radius: 6px;
	margin-bottom: 8px;
}

.haqware-wishlist-name {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: var(--haqware-navy);
	margin-bottom: 4px;
}

.haqware-wishlist-price {
	display: block;
	font-size: 13px;
	color: var(--haqware-text-muted);
}

.haqware-wishlist-remove {
	margin-top: 8px;
	background: none;
	border: 1px solid var(--haqware-border);
	border-radius: 6px;
	padding: 6px 10px;
	font-size: 12px;
	cursor: pointer;
	color: var(--haqware-text-muted);
}

.haqware-wishlist-remove:hover {
	border-color: #ef4444;
	color: #ef4444;
}

.haqware-wishlist-toggle {
	background: none;
	border: 1px solid var(--haqware-border);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 14px;
	cursor: pointer;
}

.haqware-wishlist-toggle[data-state="added"] {
	border-color: #ef4444;
	color: #ef4444;
}

.haqware-empty {
	color: var(--haqware-text-muted);
	font-size: 14px;
}
