/* All About Material v1.4.13 - theme coverage, brand images and category previews. */

/* Keep soft and dark feature areas connected to the selected theme colour. */
.aam-page-hero,
.aam-article-header {
	background: linear-gradient(135deg, var(--aam-primary-soft), color-mix(in srgb, var(--aam-primary) 3%, #fff));
}

.aam-brand-cta,
.aam-blog-cta,
.aam-form-layout > aside,
.aam-about-statement {
	background: linear-gradient(135deg, color-mix(in srgb, var(--aam-primary) 42%, #091521), color-mix(in srgb, var(--aam-primary-dark) 28%, #223548));
}

.aam-cta-metric .dashicons,
.aam-form-layout > aside > .dashicons,
.aam-about-statement .dashicons,
.aam-empty > .dashicons {
	color: color-mix(in srgb, var(--aam-primary) 42%, #fff);
}

.aam-stats-grid span,
.aam-logo-light b {
	color: color-mix(in srgb, var(--aam-primary) 30%, #fff);
}

.aam-category-card:hover {
	border-color: color-mix(in srgb, var(--aam-primary) 38%, var(--aam-line));
}

.aam-field input:focus,
.aam-field select:focus,
.aam-field textarea:focus,
.aam-auth-form input:focus,
.aam-auth-form textarea:focus,
.aam-form-card input:focus,
.aam-form-card select:focus,
.aam-form-card textarea:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--aam-primary) 12%, transparent);
}

.aam-site .aam-footer .aam-btn.aam-btn-light:hover,
.aam-site .aam-footer .aam-btn.aam-btn-light:focus-visible {
	background: var(--aam-primary-soft) !important;
	border-color: var(--aam-primary-soft) !important;
}

.aam-modal-close,
.aam-back-to-top {
	background: color-mix(in srgb, var(--aam-primary) 25%, #101828) !important;
}

/* Featured brand images have no generated colour tile; uploaded images fill the frame. */
.aam-featured-brand-card,
.aam-featured-brand-card:hover,
.aam-featured-brand-image,
.aam-featured-brand-image.is-placeholder {
	background: transparent;
}

.aam-featured-brand-image.has-image {
	border-color: transparent;
}

.aam-featured-brand-image img,
.aam-brand-logo img,
.aam-brand-dashboard-logo img {
	width: 100%;
	height: 100%;
	padding: 0;
	object-fit: cover;
}

/* Use the saved brand profile image everywhere the brand account is represented. */
.aam-profile-toggle,
.aam-profile-toggle img,
.aam-profile-head img {
	border-radius: 50%;
}

.aam-avatar-image {
	overflow: hidden;
	background: transparent;
}

.aam-avatar-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aam-brand-logo-upload {
	position: relative;
	padding-left: 92px;
}

.aam-brand-dashboard-logo {
	position: absolute;
	top: 0;
	left: 0;
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border: 1px solid var(--aam-line);
	border-radius: 18px;
	background: #fff;
	color: var(--aam-primary);
	font: 700 19px "Poppins", sans-serif;
}

.aam-brand-logo-upload small {
	display: block;
	margin-top: 7px;
	color: var(--aam-muted);
	font-size: 11px;
}

/* Category cards now show live material imagery in compact editorial grids. */
.aam-category-card {
	min-height: 0;
	display: block;
	overflow: hidden;
	text-align: left;
}

.aam-category-preview-grid {
	width: 100%;
	height: 168px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 3px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--aam-primary-soft), #f1f3f5);
}

.aam-category-preview-grid img {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	transition: transform .35s ease;
}

.aam-category-card:hover .aam-category-preview-grid img {
	transform: scale(1.035);
}

.aam-category-preview-grid.aam-preview-count-0::after {
	content: "Products coming soon";
	grid-column: 1 / -1;
	grid-row: 1 / -1;
	display: grid;
	place-items: center;
	color: color-mix(in srgb, var(--aam-primary) 58%, var(--aam-muted));
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.aam-category-preview-grid.aam-preview-count-1 img {
	grid-column: 1 / -1;
	grid-row: 1 / -1;
}

.aam-category-preview-grid.aam-preview-count-2 {
	grid-template-rows: 1fr;
}

.aam-category-preview-grid.aam-preview-count-3 img:first-child {
	grid-row: 1 / -1;
}

.aam-category-card-copy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 17px 18px 18px;
}

.aam-category-card-copy > span:first-child {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.aam-category-card-copy strong {
	overflow: hidden;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aam-category-card-copy small {
	margin-top: 2px;
	color: var(--aam-muted);
}

.aam-category-arrow {
	width: 34px;
	height: 34px;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: var(--aam-primary-soft);
	color: var(--aam-primary);
	transition: transform .22s ease, background-color .22s ease, color .22s ease;
}

.aam-category-card:hover .aam-category-arrow {
	background: var(--aam-primary);
	color: #fff;
	transform: translateX(3px);
}

@media (max-width: 780px) {
	.aam-category-preview-grid {
		height: 142px;
	}
}

@media (max-width: 520px) {
	.aam-category-grid {
		grid-template-columns: 1fr;
	}

	.aam-category-preview-grid {
		height: 180px;
	}

	.aam-brand-logo-upload {
		padding-left: 0;
		padding-top: 84px;
	}
}
