/* ==========================================================================
   Ecom Custom My Shop UI — myshop-style.css
   No preprocessor. All frontend styles for the custom My Account dashboard.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Dashboard wrapper
   -------------------------------------------------------------------------- */
.smui-dashboard {
	margin: -20px -28px 0; /* bleed past WooCommerce's default .woocommerce padding */
	font-family: inherit;
}

/* --------------------------------------------------------------------------
   Welcome header
   -------------------------------------------------------------------------- */
.smui-welcome-header {
	background-color: #1e3f5c;
	color: #fff;
	padding: 28px 32px;
}

.smui-welcome-header__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: #fff;
	border: none;
}

.smui-welcome-header__meta {
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Quick-link cards
   -------------------------------------------------------------------------- */
.smui-quick-links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.smui-quick-card {
	display: block;
	padding: 22px 24px 24px;
	text-decoration: none;
	color: #fff;
	transition: filter 0.15s ease;
	position: relative;
}

.smui-quick-card:hover,
.smui-quick-card:focus {
	filter: brightness(1.08);
	text-decoration: none;
	color: #fff;
}

.smui-quick-card--dark  { background-color: #1e3f5c; }
.smui-quick-card--olive { background-color: #7c6e4a; }
.smui-quick-card--gold  { background-color: #c4a660; }

/* Dashed right-edge indicator on the Rewards card */
.smui-quick-card--has-more::after {
	content: '';
	position: absolute;
	top: 20%;
	right: 0;
	height: 60%;
	border-right: 2px dashed rgba(255, 255, 255, 0.45);
}

.smui-quick-card__title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
	border: none;
}

.smui-quick-card__desc {
	font-size: 0.8rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.82);
	line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Dashboard body (sections below the cards)
   -------------------------------------------------------------------------- */
.smui-dashboard-body {
	padding: 32px 32px 48px;
}

.smui-section {
	margin-bottom: 40px;
}

.smui-section__title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 16px;
	color: #1a1a1a;
	border: none;
}

.smui-section__subtitle {
	font-size: 0.85rem;
	color: #888;
	margin: -10px 0 18px;
}

/* --------------------------------------------------------------------------
   Recent orders table
   -------------------------------------------------------------------------- */
.smui-orders-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.smui-orders-table th,
.smui-orders-table td {
	padding: 11px 10px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #ebebeb;
}

.smui-orders-table thead th {
	font-size: 0.8rem;
	font-weight: 600;
	color: #2a7d9c;
	border-bottom: 2px solid #ddd;
	white-space: nowrap;
}

.smui-order-number {
	color: #2a7d9c;
	font-weight: 500;
	text-decoration: none;
}

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

/* Status colour coding */
.smui-order-status {
	font-size: 0.85rem;
	font-weight: 500;
}

.smui-order-status--completed  { color: #2e9c6b; }
.smui-order-status--processing { color: #2a7d9c; }
.smui-order-status--on-hold    { color: #d4900a; }
.smui-order-status--cancelled  { color: #e04a3a; }
.smui-order-status--refunded   { color: #8b7a50; }
.smui-order-status--failed     { color: #e04a3a; }
.smui-order-status--pending    { color: #888; }

/* --------------------------------------------------------------------------
   Wishlist grid
   -------------------------------------------------------------------------- */
.smui-wishlist-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.smui-wishlist-card {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 3px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Image wrapper — holds image + wishlist button */
.smui-wishlist-card__image-wrap {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #f5f5f5;
}

.smui-wishlist-card__image-wrap a {
	display: block;
	height: 100%;
}

.smui-wishlist-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.smui-wishlist-card:hover .smui-wishlist-card__image {
	transform: scale(1.03);
}

/* Heart button */
.smui-wishlist-btn {
	position: absolute;
	bottom: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.smui-wishlist-btn:hover {
	background: #fff;
	transform: scale(1.1);
}

.smui-wishlist-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.smui-wishlist-btn svg path {
	fill: none;
	stroke: #aaa;
	stroke-width: 1.5px;
}

.smui-wishlist-btn.is-wishlisted svg path {
	fill: #e04a3a;
	stroke: #e04a3a;
}

/* Card info block */
.smui-wishlist-card__info {
	padding: 10px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.smui-wishlist-card__brand {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #2a7d9c;
	text-transform: uppercase;
}

.smui-wishlist-card__name {
	font-size: 0.82rem;
	color: #1a1a1a;
	text-decoration: none;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.smui-wishlist-card__name:hover {
	color: #2a7d9c;
}

.smui-wishlist-card__price {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-top: 4px;
}

.smui-wishlist-card__price .woocommerce-Price-amount {
	color: inherit;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.smui-wishlist-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.smui-dashboard {
		margin: -16px -16px 0;
	}

	.smui-welcome-header {
		padding: 20px 20px;
	}

	.smui-quick-links {
		grid-template-columns: repeat(2, 1fr);
	}

	.smui-dashboard-body {
		padding: 24px 16px 32px;
	}

	.smui-wishlist-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.smui-orders-table th:nth-child(3),
	.smui-orders-table td:nth-child(3) {
		display: none; /* hide Items column on small screens */
	}
}

@media (max-width: 480px) {
	.smui-quick-links {
		grid-template-columns: 1fr 1fr;
	}

	.smui-quick-card--has-more::after {
		display: none;
	}

	.smui-wishlist-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}
