/* Layout and component basics. The colours, fonts and look live in crafties.css (the theme). */

body {
	background-color: #faf9f8;
	margin-top: 80px;
}

/* Listing photo: 4:3 tile, cropped to fill (was a fixed 200px letterboxed box) */
.listing-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: .5rem;
	background-color: #fff;
}

.listing-hero-img {
	width: 100%;
	height: 450px;
	object-fit: contain;
	background-color: #fff;
}

.listing-card .price {
	font-weight: 600;
}

.watchlist-btn {
	cursor: pointer;
}

.tier-badge-maker {
	background-color: #6f42c1;
}

.tier-badge-pro {
	background-color: #d4a017;
}

/* ------------------------------------------------------------
   Small helpers that replaced inline style="" attributes
   ------------------------------------------------------------ */
.flash-toast-container { z-index: 1080; }          /* footer.cfm: above the fixed navbar */
.shop-avatar-preview {                              /* account.cfm */
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 50%;
	border: 1px solid #ddd;
}
.shop-avatar-input { max-width: 320px; }            /* account.cfm */
.admin-user-main { min-width: 220px; }              /* admin/users.cfm */
.select-auto { width: auto; }                       /* admin/users.cfm inline tier/status selects */

/* Shared helpers used across the account, order, listing and admin pages */
.icon-xl { font-size: 3rem; }                       /* big status icons on confirm / deleted pages */
.min-w-180 { min-width: 180px; }
.min-w-200 { min-width: 200px; }
.min-w-220 { min-width: 220px; }
.max-w-160 { max-width: 160px; }
.th-140 { width: 140px; }
.th-220 { width: 220px; }
.progress-thin { height: 6px; }

/* Square cropped thumbnails (cover-fit), by pixel size */
.thumb-44, .thumb-60, .thumb-70, .thumb-100 { object-fit: cover; border-radius: 6px; }
.thumb-44 { width: 44px; height: 44px; flex-shrink: 0; }
.thumb-60 { width: 60px; height: 60px; flex-shrink: 0; }
.thumb-70 { width: 70px; height: 70px; }
.thumb-100 { width: 100px; height: 100px; border-radius: 4px; }
.thumb-swap { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; }   /* listing.cfm gallery */
.storeavatar { width: 80px; height: 80px; object-fit: cover; flex-shrink: 0; margin-top: -12px; }      /* shop.cfm */
