/* Hooriya Mobile Specs - frontend styles (mobile-first) */

:root {
	--hms-accent: #1eb8ab;       /* matches hooriyatech.com logo teal - change this to re-theme the whole plugin */
	--hms-accent-dark: #16948a;
	--hms-dark: #111827;         /* active tab background */
	--hms-text: #1f2933;
	--hms-text-muted: #6b7280;
	--hms-border: #e5e7eb;
	--hms-surface: #f3f4f6;      /* card thumbnails, quick-glance boxes */
}

.hms-single-wrap,
.hms-archive-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hms-breadcrumbs {
	font-size: 13px;
	color: var(--hms-text-muted);
	margin-bottom: 16px;
}
.hms-breadcrumbs a {
	color: var(--hms-text-muted);
	text-decoration: none;
}
.hms-breadcrumbs a:hover {
	color: var(--hms-accent);
	text-decoration: underline;
}

/* ---------- Single spec page ---------- */
.hms-single-wrap {
	max-width: 800px;
	margin: 0 auto;
	padding: 16px;
}
.hms-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 4px;
	color: var(--hms-text);
}
.hms-price {
	font-size: 18px;
	color: var(--hms-accent);
	font-weight: 600;
	margin: 0 0 16px;
}
.hms-photo-wrap {
	background: var(--hms-surface);
	border-radius: 16px;
	text-align: center;
	padding: 28px;
	margin-bottom: 16px;
}
.hms-photo-wrap img {
	max-width: 220px;
	max-height: 280px;
}

.hms-intro {
	font-size: 15px;
	line-height: 1.6;
	color: var(--hms-text);
	margin-bottom: 20px;
}

.hms-quickglance {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}
@media (min-width: 600px) {
	.hms-quickglance {
		grid-template-columns: repeat(4, 1fr);
	}
}
.hms-quickglance .item {
	background: var(--hms-surface);
	border-radius: 10px;
	padding: 14px 8px;
	text-align: center;
	font-size: 13px;
	color: var(--hms-text);
	font-weight: 500;
	border-top: 2px solid var(--hms-accent);
}

.hms-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--hms-border);
}
.hms-tabs button {
	flex: none;
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--hms-border);
	background: #fff;
	color: var(--hms-text);
	cursor: pointer;
	white-space: nowrap;
}
.hms-tabs button.active {
	background: var(--hms-dark);
	color: #fff;
	border-color: var(--hms-dark);
}

.hms-spec-group {
	display: none;
	margin-bottom: 20px;
}
.hms-spec-group.active {
	display: block;
}
.hms-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.hms-spec-table tr {
	border-bottom: 1px solid var(--hms-surface);
}
.hms-spec-table td {
	padding: 10px 4px;
}
.hms-spec-table td:first-child {
	color: var(--hms-text-muted);
	width: 40%;
}
.hms-spec-table td:last-child {
	text-align: right;
	font-weight: 500;
	color: var(--hms-text);
}

.hms-extra-content {
	font-size: 15px;
	line-height: 1.75;
	color: var(--hms-text);
	margin-bottom: 24px;
}
.hms-extra-content h2,
.hms-extra-content h3 {
	font-size: 17px;
	margin: 20px 0 10px;
}
.hms-extra-content p {
	margin: 0 0 14px;
}
.hms-extra-content img {
	max-width: 100%;
	border-radius: 12px;
}

.hms-related {
	margin-top: 32px;
}
.hms-related h3 {
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--hms-text);
}
.hms-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 600px) {
	.hms-related-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Brand listing / archive page ---------- */
.hms-archive-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 16px;
}
.hms-archive-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
}
.hms-archive-header h1 {
	font-size: 20px;
	margin: 0;
	color: var(--hms-text);
}
.hms-archive-count {
	font-size: 13px;
	color: var(--hms-text-muted);
}
.hms-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.hms-filters select {
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid var(--hms-border);
	background: #fff;
	color: var(--hms-text);
}

.hms-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 600px) {
	.hms-card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hms-card {
	display: block;
	border: 1px solid var(--hms-border);
	border-radius: 12px;
	padding: 10px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.hms-card {
	box-shadow: 0 1px 2px rgba(17,24,39,.04);
}
.hms-card:hover {
	box-shadow: 0 4px 14px rgba(37,99,235,.12);
	border-color: var(--hms-accent);
	transform: translateY(-1px);
}
.hms-card-thumb {
	background: var(--hms-surface);
	border-radius: 8px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}
.hms-card-thumb img {
	max-height: 90px;
	max-width: 90%;
}
.hms-card-name {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 2px;
	color: var(--hms-text);
}
.hms-card-price {
	font-size: 12px;
	color: var(--hms-accent);
	font-weight: 600;
	margin: 0 0 4px;
}
.hms-card-meta {
	font-size: 11px;
	color: var(--hms-text-muted);
	margin: 0;
}

.hms-pagination {
	margin-top: 24px;
	text-align: center;
}
.hms-pagination a,
.hms-pagination span {
	color: var(--hms-text);
}
.hms-pagination .current {
	color: var(--hms-accent);
	font-weight: 600;
}
