/**
 * HALINK C8 — Account + Wishlist pages
 */

/* ---------- Account ---------- */
.hl-account {
	padding: 2.5rem 0 4rem;
	background: var(--hl-bg, #f1f5f9);
}

.hl-account__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
}

.hl-account-nav {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 14px rgba(18, 31, 56, 0.06);
}

.hl-account-nav__head {
	padding: 1.25rem 1.25rem 1rem;
	background: #0f172a;
	color: #fff;
}

.hl-account-nav__eyebrow {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.hl-account-nav__name {
	display: block;
	font-family: var(--hl-font-display, Lora, Georgia, serif);
	font-size: 1.2rem;
	font-weight: 700;
}

.hl-account-nav__list {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
}

.hl-account-nav__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem;
	color: #0f172a;
	text-decoration: none;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hl-account-nav__icon {
	width: 1.25rem;
	text-align: center;
	color: var(--hl-primary);
}

.hl-account-nav__item.is-active .hl-account-nav__link,
.hl-account-nav__link:hover {
	background: rgba(154, 86, 58, 0.08);
	border-left-color: var(--hl-primary);
	color: var(--hl-primary);
}

.hl-account__panel {
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 2px 14px rgba(18, 31, 56, 0.06);
	min-height: 280px;
}

.hl-account-dashboard__title {
	margin: 0 0 0.35rem;
	font-family: var(--hl-font-display, Lora, Georgia, serif);
	font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
	font-weight: 700;
	color: #0f172a;
}

.hl-account-dashboard__logout {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #666;
}

.hl-account-dashboard__logout a {
	color: var(--hl-primary);
	font-weight: 600;
	text-decoration: none;
}

.hl-account-dashboard__desc {
	margin: 0 0 1.5rem;
	line-height: 1.65;
	color: #444;
}

.hl-account-dashboard__desc a {
	color: #0f172a;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hl-account-dashboard__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.85rem;
}

.hl-account-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	padding: 1.15rem 0.75rem;
	background: #f1f5f9;
	border-radius: 14px;
	text-decoration: none;
	color: #0f172a;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hl-account-card:hover {
	background: #0f172a;
	color: #fff;
	transform: translateY(-2px);
}

.hl-account-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: var(--hl-primary);
	font-size: 1.1rem;
}

.hl-account-card:hover .hl-account-card__icon {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.hl-account-card__label {
	font-weight: 600;
	font-size: 0.9rem;
}

/* Guest login / register */
.hl-account-auth {
	display: grid;
	gap: 1.5rem;
	max-width: 480px;
	margin: 0 auto;
}

.hl-account-auth--split {
	max-width: 960px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hl-account-auth__col {
	background: #fff;
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 2px 14px rgba(18, 31, 56, 0.06);
}

.hl-account-auth__title {
	margin: 0 0 0.4rem;
	font-family: var(--hl-font-display, Lora, Georgia, serif);
	font-size: 1.5rem;
	font-weight: 700;
	color: #0f172a;
}

.hl-account-auth__intro,
.hl-account-auth__note {
	margin: 0 0 1.25rem;
	color: #666;
	font-size: 0.95rem;
	line-height: 1.55;
}

.hl-account-form .form-row {
	margin-bottom: 1rem;
}

.hl-account-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

.hl-account-form .input-text,
.hl-account-form input[type="text"],
.hl-account-form input[type="email"],
.hl-account-form input[type="password"],
.hl-account__panel .woocommerce-Input,
.hl-account__panel input.input-text,
.hl-account__panel select,
.hl-account__panel textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #ddd8d0;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	color: #0f172a;
}

.hl-account-form .input-text:focus,
.hl-account__panel .woocommerce-Input:focus,
.hl-account__panel input.input-text:focus {
	outline: none;
	border-color: var(--hl-primary);
	box-shadow: 0 0 0 3px rgba(154, 86, 58, 0.15);
}

.hl-account-form__row-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.hl-account-form .button,
.hl-account__panel .button,
.hl-account .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.4rem !important;
	border: 0 !important;
	border-radius: 20px 5px !important;
	background: #0f172a !important;
	color: #fff !important;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.hl-account-form .button:hover,
.hl-account__panel .button:hover,
.hl-account .woocommerce-button:hover {
	background: var(--hl-primary) !important;
}

.hl-account .lost_password a {
	color: var(--hl-primary);
	text-decoration: none;
	font-weight: 500;
}

/* Account tables */
.hl-account__panel table.woocommerce-orders-table,
.hl-account__panel .woocommerce-MyAccount-orders {
	width: 100%;
	border-collapse: collapse;
}

.hl-account__panel table th,
.hl-account__panel table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid #eee;
	text-align: left;
	font-size: 0.925rem;
}

.hl-account__panel table th {
	font-family: var(--hl-font-display, Lora, Georgia, serif);
	color: #0f172a;
}

/* ---------- Wishlist ---------- */
.hl-wishlist-page {
	padding: 2rem 0 4rem;
	background: var(--hl-bg, #f1f5f9);
}

.hl-wishlist-page__header {
	text-align: center;
	margin-bottom: 2rem;
}

.hl-wishlist-page__title {
	margin: 0 0 0.4rem;
	font-family: var(--hl-font-display, Lora, Georgia, serif);
	font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
	font-weight: 700;
	color: #0f172a;
}

.hl-wishlist-page__desc {
	margin: 0;
	color: #666;
}

.hl-wishlist-page__grid {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hl-wishlist-item {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	height: 100%;
}

.hl-wishlist-item__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(18, 31, 56, 0.15);
	border-radius: 20px 5px;
	background: #fff;
	color: #0f172a;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hl-wishlist-item__remove:hover {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
}

.hl-wishlist-page__loading,
.hl-wishlist-page__empty {
	text-align: center;
	padding: 3rem 1rem;
	background: #fff;
	border-radius: 16px;
	color: #666;
}

.hl-wishlist-page__empty a {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0.7rem 1.4rem;
	border-radius: 20px 5px;
	background: #0f172a;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.hl-wishlist-page__empty a:hover {
	background: var(--hl-primary);
}

@media (max-width: 991px) {
	.hl-account__layout {
		grid-template-columns: 1fr;
	}

	.hl-account-nav__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hl-account-dashboard__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hl-account-auth--split {
		grid-template-columns: 1fr;
	}

	.hl-wishlist-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.hl-account-nav__list {
		grid-template-columns: 1fr;
	}

	.hl-account__panel {
		padding: 1.15rem;
	}

	.hl-wishlist-page__grid {
		grid-template-columns: 1fr;
	}
}
