.am-catalog {
	--am-primary: #3b4ff2;
	--am-primary-dark: #2f3fd1;
	--am-green: #1d9a5f;
	--am-red: #e0344c;
	--am-border: #e5e7eb;
	--am-muted: #6b7280;
	--am-bg: #f3f5fb;
	font-family: -apple-system, BlinkMacSystemFont, "Poppin", Roboto, Helvetica, Arial, sans-serif;
	color: #111827;
	background: var(--am-bg);
	padding: 24px;
	border-radius: 16px;
	box-sizing: border-box;
}
.am-catalog *, .am-catalog *::before, .am-catalog *::after { box-sizing: border-box; }

/* Tabs */
.am-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.am-tab {
	background: #fff; border: 1px solid var(--am-border); border-radius: 999px;
	padding: 10px 18px; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer;
}
.am-tab.is-active { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }

/* Layout */
.am-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .am-layout { grid-template-columns: 1fr; } }

/* Filters */
.am-filters { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid var(--am-border); }
.am-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.am-filters-head h3 { font-size: 15px; margin: 0; display: flex; align-items: center; gap: 6px; }
.am-reset { background: none; border: none; color: var(--am-primary); font-weight: 600; cursor: pointer; font-size: 13px; }
.am-filter-group { margin-bottom: 20px; }
.am-filter-group strong { display: block; margin-bottom: 8px; font-size: 13px; }
.am-filter-row { display: flex; justify-content: space-between; align-items: center; }
.am-filter-row .am-max-price-value { font-weight: 700; font-size: 13px; }
.am-checkbox, .am-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; color: #374151; cursor: pointer; }
.am-price-range { width: 100%; accent-color: var(--am-primary); margin-top: 8px; }

/* Results head */
.am-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.am-showing { margin: 0; font-size: 14px; color: #374151; }
.am-sort { border: 1px solid var(--am-border); border-radius: 8px; padding: 8px 12px; font-size: 13px; background: #fff; }

/* Grid */
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .am-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .am-grid { grid-template-columns: 1fr; } }
.am-empty { grid-column: 1 / -1; text-align: center; color: var(--am-muted); padding: 40px 0; }

/* Card */
.am-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--am-border); display: flex; flex-direction: column; }
.am-card[hidden] { display: none; }
.am-card-media {
	position: relative; background: #eef1f8; height: 190px;
	display: flex; align-items: center; justify-content: center;
}
.am-card-photo { width: 100%; height: 100%; object-fit: cover; }
.am-icon { font-size: 56px; opacity: 0.45; }
.am-badge { position: absolute; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; color: #fff; }
.am-badge-status.is-available { left: 12px; background: var(--am-green); }
.am-badge-status.is-sold { left: 12px; background: var(--am-red); }
.am-badge-warranty { right: 12px; background: #111827; }

.am-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; z-index:1; background:#ffffff; }
.am-eyebrow { font-size: 11px; font-weight: 700; color: var(--am-primary); letter-spacing: .03em; margin: 0; }
.am-title { font-size: 17px; margin: 0 0 2px; font-weight: 700; }
.am-features { font-size: 13px; color: var(--am-muted); margin: 0 0 8px; }
.am-price { font-size: 20px; font-weight: 800; margin: 4px 0 14px; }
.am-price-original { font-size: 14px; font-weight: 500; color: #9ca3af; text-decoration: line-through; margin-left: 8px; }
.am-warranty-label {
	display: inline-flex; align-items: center; gap: 6px; width: fit-content;
	background: #eef1f8; color: var(--am-primary); font-size: 12px; font-weight: 700;
	padding: 5px 10px; border-radius: 999px; margin: 0 0 12px;
}
.am-warranty-label .dashicons { font-size: 14px; width: 14px; height: 14px; }

.am-card-actions { display: flex; gap: 10px; margin-top: auto; }
.am-btn { flex: 1; text-align: center; padding: 10px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.am-btn-outline { background: #f3f4f6; color: #111827; }
.am-btn-primary, .am-modal-buy { background:  #1d9a5f!important; color: #fff!important; }
.am-btn-primary:hover { background: #178350; }
.am-btn-disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; pointer-events: none; }
.am-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* Recent products shortcode: same card look, no tabs/sidebar */
.am-recent-catalog .am-recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .am-recent-catalog .am-recent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .am-recent-catalog .am-recent-grid { grid-template-columns: 1fr; } }

/* Details popup */
body.am-modal-open { overflow: hidden; }
.am-modal { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; }
.am-modal.is-open { display: flex; }
.am-modal-overlay { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.6); }
.am-modal-dialog {
	position: relative; background: #fff; border-radius: 16px; max-width: 640px; width: 100%;
	max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111827;
}
.am-modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 1;  border-radius: 50%;
	border: none; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); font-size: 20px; line-height: 1;
	cursor: pointer; color: #374151;
}
.am-modal-media { background: #eef1f8; height: 260px; display: flex; align-items: center; justify-content: center; border-radius: 16px 16px 0 0; overflow: hidden; }
.am-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.am-modal-media .am-icon { font-size: 72px; opacity: .45; }
.am-modal-body { padding: 24px 28px 28px; }
.am-modal-eyebrow { font-size: 12px; font-weight: 700; color: var(--am-primary, #3b4ff2); letter-spacing: .03em; margin: 0 0 4px; }
.am-modal-title { font-size: 22px; margin: 0 0 10px; font-weight: 800; }
.am-modal-badges { margin: 0 0 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.am-modal-badges .am-badge { position: static; display: inline-block; }
.am-modal-badges .is-available { background: var(--am-green, #1d9a5f); }
.am-modal-badges .is-sold { background: var(--am-red, #e0344c); }
.am-modal-badges .is-warranty { background: #111827; }
.am-modal-price { font-size: 24px; font-weight: 800; margin: 0 0 14px; }
.am-modal-price .am-price-original { font-size: 15px; font-weight: 500; color: #9ca3af; text-decoration: line-through; margin-left: 10px; }
.am-modal-description { font-size: 14px; line-height: 1.6; color: #374151; margin: 0 0 16px; }
.am-modal-description[hidden] { display: none; }
.am-modal-features { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.am-modal-features[hidden] { display: none; }
.am-modal-features li { background: #f3f4f6; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: #374151; }
.am-modal-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 20px; font-size: 13px; }
.am-modal-meta dt { color: var(--am-muted, #6b7280); font-weight: 600; }
.am-modal-meta dd { margin: 0; color: #111827; }
.am-modal-actions { display: flex; }
.am-modal-actions .am-btn { flex: none; padding: 12px 22px; font-size: 14px; }
/* End of file */
