/**
 * AMTi eCommerce — Public Styles
 * Designed to complement Bootstrap 5. Custom components only.
 */

/* =========================================================================
   Category header banner  [amti_category_header]
   ========================================================================= */

.amti-category-header {
	position: relative;
	overflow: hidden;
	width: 100%;
	background: #1d2327;
}

.amti-category-header__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.amti-category-header__img--placeholder {
	background: #343a40;
	height: 100%;
}

.amti-category-header__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		to bottom,
		rgba( 0, 0, 0, 0 ) 20%,
		rgba( 0, 0, 0, .55 ) 100%
	);
}

.amti-category-header__name {
	margin: 0;
	color: #fff;
	text-align: center;
	text-shadow: 0 2px 8px rgba( 0, 0, 0, .6 );
	font-size: clamp( 1.5rem, 4vw, 2.75rem );
	font-weight: 700;
	letter-spacing: .02em;
	padding: 0 1rem;
}

/* =========================================================================
   Catalog layout
   ========================================================================= */

.amti-catalog {
	padding: 1.5rem 0;
}

.amti-product-grid {
	row-gap: 1.5rem;
}

/* =========================================================================
   Category tab nav
   ========================================================================= */

.amti-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}

.amti-cat-tab {
	display: inline-block;
	padding: .375rem .875rem;
	border: 1px solid #dee2e6;
	border-radius: 2rem;
	background: #fff;
	color: #495057;
	font-size: .9rem;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
	line-height: 1.5;
}

.amti-cat-tab:hover,
.amti-cat-tab:focus {
	background: #f8f9fa;
	border-color: #adb5bd;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.amti-cat-tab:focus-visible {
	outline: 2px solid #0d6efd;
}

.amti-cat-tab--active,
.amti-cat-tab[aria-pressed="true"] {
	background: #0d6efd;
	border-color: #0d6efd;
	color: #fff;
}

/* =========================================================================
   Product card
   ========================================================================= */

.amti-product-card {
	border: 1px solid #dee2e6;
	border-radius: .5rem;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s;
}

.amti-product-card:hover {
	box-shadow: 0 4px 16px rgba( 0, 0, 0, .1 );
}

.amti-product-card__image-wrap {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f8f9fa;
}

.amti-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.amti-product-card:hover .amti-product-card__image {
	transform: scale( 1.04 );
}

.amti-product-card__body {
	padding: 1rem;
}

.amti-product-card__title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 .375rem;
}

.amti-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.amti-product-card__title a:hover {
	text-decoration: underline;
}

.amti-product-card__desc {
	font-size: .875rem;
	color: #6c757d;
	margin-bottom: .75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.amti-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	flex-wrap: wrap;
}

.amti-product-card__price {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d2327;
}

/* =========================================================================
   Affiliate badge
   ========================================================================= */

.amti-affiliate-badge {
	display: inline-block;
	position: absolute;
	top: .5rem;
	left: .5rem;
	padding: 2px 8px;
	background: rgba( 255, 193, 7, .9 );
	color: #212529;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	border-radius: 3px;
	pointer-events: none;
}

/* Position relative on card for badge absolute positioning. */
.amti-product-col {
	position: relative;
}

.amti-affiliate-badge--lg {
	position: static;
	display: inline-block;
	margin-bottom: .5rem;
	font-size: .8rem;
	padding: 3px 10px;
}

/* =========================================================================
   Affiliate buttons
   ========================================================================= */

.amti-btn--affiliate {
	white-space: nowrap;
}

/* =========================================================================
   Breadcrumb
   ========================================================================= */

.amti-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem;
	font-size: .875rem;
	color: #6c757d;
	margin-bottom: 1.25rem;
}

.amti-breadcrumb a {
	color: #0d6efd;
	text-decoration: none;
}

.amti-breadcrumb a:hover {
	text-decoration: underline;
}

.amti-breadcrumb__sep {
	color: #adb5bd;
}

/* =========================================================================
   Product detail
   ========================================================================= */

.amti-product-detail {
	padding: 1.5rem 0;
}

.amti-product-detail__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: .5rem;
}

.amti-product-detail__price {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1d2327;
	margin-bottom: .75rem;
}

.amti-product-detail__short-desc {
	font-size: .975rem;
	color: #495057;
	margin-bottom: 1rem;
}

.amti-product-detail__description {
	border-top: 1px solid #dee2e6;
	padding-top: 1.25rem;
}

.amti-affiliate-disclosure {
	font-size: .8rem;
	color: #6c757d;
	margin-top: .75rem;
}

/* =========================================================================
   Gallery
   ========================================================================= */

.amti-gallery-main__image {
	width: 100%;
	border-radius: .375rem;
	border: 1px solid #dee2e6;
}

.amti-gallery-thumb {
	display: block;
	width: 64px;
	height: 64px;
	border: 2px solid #dee2e6;
	border-radius: .25rem;
	overflow: hidden;
	cursor: pointer;
	background: none;
	padding: 0;
	transition: border-color .15s;
}

.amti-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.amti-gallery-thumb:hover,
.amti-gallery-thumb:focus {
	border-color: #0d6efd;
}

.amti-gallery-thumb:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.amti-gallery-thumb--active {
	border-color: #0d6efd;
}

/* =========================================================================
   Qty input
   ========================================================================= */

.amti-qty-input {
	text-align: center;
}

/* =========================================================================
   General notices
   ========================================================================= */

.amti-notice {
	padding: .75rem 1rem;
	border: 1px solid #dee2e6;
	border-radius: .375rem;
	background: #f8f9fa;
	font-size: .9rem;
}

/* =========================================================================
   Cart widget (sidebar summary)
   ========================================================================= */

.amti-cart-widget {
	width: 100%;
}

.amti-cart-widget--sidebar {
	max-width: 100%;
	margin-left: auto;
	margin-right: 0;
	border: 1px solid #dee2e6;
}

.amti-cart-widget--sidebar .card-header {
	background: #fff;
}


.amti-cart-widget--sidebar .amti-cart-count {
	font-size: .7rem;
	padding: .25rem .5rem;
	min-width: 20px;
	text-align: center;
}

.amti-cart-widget__items {
	max-height: 320px;
	overflow-y: auto;
}

.amti-mini-cart-item {
	display: flex;
	justify-content: space-between;
	gap: .75rem;
	padding: .5rem 0;
	border-bottom: 1px solid #e9ecef;
	font-size: .875rem;
}

.amti-mini-cart-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.amti-mini-cart-item__title {
	font-weight: 600;
	line-height: 1.35;
}

.amti-mini-cart-item__meta {
	font-size: .8rem;
	color: #6c757d;
}

.amti-mini-cart-item__actions {
	text-align: right;
	white-space: nowrap;
}

.amti-mini-cart-item__line-total {
	display: block;
	font-weight: 600;
	margin-bottom: .1rem;
}

.amti-mini-cart-remove {
	color: #842029;
}

.amti-mini-cart-remove:hover,
.amti-mini-cart-remove:focus {
	color: #58151c;
}

.amti-mini-cart-remove:focus-visible,
.amti-cart-widget__footer .btn:focus-visible {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.amti-cart-widget--empty .amti-cart-message {
	color: #6c757d;
}

/* =========================================================================
   Cart page
   ========================================================================= */

.amti-cart-page {
	padding: 1.5rem 0;
}

.amti-cart-page__layout {
	margin-top: 2rem;
}

.amti-cart-table th,
.amti-cart-table td {
	vertical-align: middle;
}

.amti-cart-item__thumb {
	border-radius: 3px;
}

.amti-cart-item-qty {
	max-width: 70px;
}

.amti-btn-remove-item {
	font-size: 1.25rem;
	line-height: 1;
	padding: 0 !important;
}

.amti-order-summary {
	position: sticky;
	top: 20px;
}

.amti-summary-row {
	font-size: .95rem;
}

.amti-summary-row--total {
	font-size: 1.1rem;
}

/* =========================================================================
   Checkout page
   ========================================================================= */

.amti-checkout-page {
	padding: 1.5rem 0;
}

.amti-checkout-form {
	margin-top: 2rem;
}

.amti-checkout-form fieldset {
	border: 1px solid #e9ecef;
	padding: 1rem;
	border-radius: 3px;
	background: #f8f9fa;
}

.amti-checkout-form fieldset legend {
	padding: 0 .5rem;
	margin-left: -0.5rem;
	font-weight: 600;
}

.amti-checkout-summary {
	background: #f8f9fa;
}

.amti-checkout-item {
	padding-bottom: 0.75rem;
}

.amti-checkout-item:not(:last-child) {
	border-bottom: 1px solid #e9ecef;
}

.amti-checkout-totals {
	font-size: 0.95rem;
}

.amti-notice--warning {
	background-color: #fff3cd;
	border-color: #ffc107;
	color: #664d03;
}

.amti-notice--error {
	background-color: #f8d7da;
	border-color: #f5c2c7;
	color: #842029;
}

/* =========================================================================
   Order success page
   ========================================================================= */

.amti-order-success-page {
	padding: 1.5rem 0;
}

.amti-order-success-page .table th {
	background-color: #f8f9fa;
	font-weight: 600;
}

.amti-order-success-page .card {
	border: 1px solid #dee2e6;
}

/* =========================================================================
