/* ==========================================================================
   SIMUNNE Order History — My Account > Orders
   Brand: navy #0a2060 · gold #f0c040 · pink #993556
   ========================================================================== */

.soh-wrap {
	--soh-navy: #0a2060;
	--soh-gold: #f0c040;
	--soh-pink: #993556;
	--soh-border: #e5e8f0;
	--soh-bg: #f7f8fb;
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
}

/* Tabs
   ========================================================================== */
.soh-tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
}

.soh-tabs::-webkit-scrollbar {
	display: none;
}

.soh-tab {
	flex: 0 0 auto;
	border: 2px solid var(--soh-navy);
	background: #fff;
	color: var(--soh-navy);
	font-weight: 600;
	font-size: 12.5px;
	padding: 6px 14px;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.soh-tab:hover {
	transform: translateY(-1px);
}

.soh-tab.is-active {
	background: var(--soh-navy);
	color: #fff;
	border-color: var(--soh-navy);
}

/* First tab ("All") styled solid/black like the reference design */
.soh-tab[data-filter="all"] {
	background: #16181d;
	color: #fff;
	border-color: #16181d;
}

.soh-tab[data-filter="all"].is-active {
	background: #16181d;
	border-color: #16181d;
}

.soh-tab-count {
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	padding: 1px 7px;
	font-size: 11px;
}

.soh-tab.is-active .soh-tab-count,
.soh-tab[data-filter="all"] .soh-tab-count {
	background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
	.soh-tab {
		font-size: 11.5px;
		padding: 5px 11px;
	}
}

/* Order list / cards
   ========================================================================== */
.soh-order-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.soh-card {
	border: 1px solid var(--soh-border);
	border-radius: 14px;
	background: #fff;
	padding: 18px 20px;
	box-shadow: 0 1px 2px rgba(10, 32, 96, 0.04);
	transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.soh-card:hover {
	box-shadow: 0 4px 14px rgba(10, 32, 96, 0.08);
}

.soh-card.soh-hidden {
	display: none;
}

.soh-card-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.soh-date {
	color: #8a90a3;
	font-size: 13px;
}

/* Status badges */
.soh-badge {
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	text-transform: capitalize;
	white-space: nowrap;
}

.soh-badge-completed  { background: #e3f6e8; color: #1e7d34; }
.soh-badge-processing { background: #fdf1d6; color: #9a6b00; }
.soh-badge-onhold     { background: #fde8ec; color: var(--soh-pink); }
.soh-badge-pending    { background: #eef0f7; color: #545a72; }
.soh-badge-cancelled  { background: #f6e3e3; color: #a12626; }
.soh-badge-refunded   { background: #e6eefc; color: #2554a1; }
.soh-badge-failed     { background: #f6e3e3; color: #a12626; }
.soh-badge-default    { background: #eef0f7; color: #545a72; }

/* Card body */
.soh-card-body {
	display: flex;
	align-items: center;
	gap: 16px;
}

.soh-thumbs {
	display: grid;
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	gap: 3px;
	border-radius: 10px;
	overflow: hidden;
}

.soh-thumbs-1 { grid-template-columns: 1fr; }
.soh-thumbs-2 { grid-template-columns: 1fr 1fr; }
.soh-thumbs-3, .soh-thumbs-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

.soh-thumb {
	background: var(--soh-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.soh-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.soh-thumb-placeholder {
	font-size: 20px;
	opacity: 0.5;
}

.soh-card-info {
	flex: 1 1 auto;
	min-width: 0;
}

.soh-order-number {
	font-weight: 700;
	color: var(--soh-navy);
	text-decoration: none;
	font-size: 15px;
}

.soh-order-number:hover {
	text-decoration: underline;
}

.soh-products {
	margin: 4px 0 6px;
	color: #4a4f63;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.soh-total {
	margin: 0;
	font-weight: 700;
	font-size: 14px;
	color: #1c1f2e;
}

.soh-total .woocommerce-Price-amount {
	font-weight: 700;
}

.soh-view-btn {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--soh-bg);
	color: var(--soh-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

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

/* Empty states */
.soh-empty,
.soh-empty-filtered {
	text-align: center;
	padding: 40px 20px;
	color: #6b7086;
}

.soh-shop-link {
	display: inline-block;
	margin-top: 10px;
	background: var(--soh-navy);
	color: #fff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
}

/* Mobile responsive
   ========================================================================== */
@media (max-width: 600px) {
	.soh-tabs {
		gap: 8px;
	}

	.soh-tab {
		padding: 8px 14px;
		font-size: 13px;
	}

	.soh-card {
		padding: 14px;
	}

	.soh-card-body {
		gap: 10px;
	}

	.soh-thumbs {
		width: 52px;
		height: 52px;
	}

	.soh-products {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.soh-view-btn {
		width: 36px;
		height: 36px;
	}

	.soh-card-top {
		flex-wrap: wrap;
	}
}
