/* Store item pages styled like the forum's "Soviet Awards" theme */
* {
	box-sizing: border-box;
}
body {
	background: #5A0F10;
	color: #000;
	margin: 0;
	font-family: Tahoma, Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.4;
}
a:link,
a:visited {
	color: #663300;
	text-decoration: none;
}
a:hover,
a:active {
	color: #663300;
	text-decoration: underline;
}
.wrapper {
	width: 85%;
	max-width: 1500px;
	margin: 0 auto;
}

/* Header: logo on dark red, ad on the right, maroon menu bar */
.site_header {
	padding: 6px 0 10px 0;
}
.site_header .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	flex-wrap: wrap;
}
.site_header .logo img {
	display: block;
	max-width: 100%;
	height: auto;
}
.site_header .header_ad {
	flex: 1 1 300px;
	max-width: 728px;
	height: 90px;
	overflow: hidden;
}
/* Narrow screens: no room beside the logo, so drop the header ad */
@media (max-width: 1100px) {
	.site_header .header_ad {
		display: none;
	}
}
.site_menu {
	background: #582E2E;
	border-top: 1px solid #7F6A3C;
	border-bottom: 1px solid #3a1e1e;
	padding: 7px 0;
}
.site_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site_menu li {
	display: inline-block;
	margin: 0 14px 0 0;
}
.site_menu a:link,
.site_menu a:visited,
.site_menu a:hover,
.site_menu a:active {
	color: #fff;
	font-weight: bold;
}
.site_menu a:hover {
	color: #FFFF00;
	text-decoration: none;
}

/* White content area with three columns */
.site_content {
	background: #fff;
	padding: 20px 10px;
}
.columns {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 320px;
	gap: 15px;
	align-items: start;
}

/* Boxes, as the forum's tables */
.tborder {
	background: #fff;
	border: 1px solid #7F6A3C;
	padding: 1px;
	margin-bottom: 15px;
}
.thead {
	background: #CFC89C;
	color: #582E2E;
	border-bottom: 1px solid #7F6A3C;
	padding: 8px;
	font-weight: bold;
}
.thead h1 {
	margin: 0;
	font-size: 16px;
}
.tcat {
	background: #582E2E;
	color: #fff;
	padding: 6px;
	font-size: 12px;
	font-weight: bold;
}
.trow1 {
	background: #F9F9F9;
	padding: 8px;
}
.trow2 {
	background: #DFDFDF;
	padding: 8px;
}
.box_list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.box_list li {
	padding: 5px 8px;
	border-bottom: 1px solid #DFDFDF;
}
.box_list li:nth-child(even) {
	background: #F9F9F9;
}
.box_list li:last-child {
	border-bottom: 0;
}
.box_list .smalltext {
	display: block;
	color: #666;
	font-size: 11px;
}

/* The item */
.item_photo {
	text-align: center;
}
.item_photo img {
	max-width: 100%;
	height: auto;
	border: 1px solid #DFDFDF;
	border-radius: 4px;
}
.item_buy {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}
.item_price {
	font-size: 22px;
	font-weight: bold;
	color: #582E2E;
}
.item_buy img {
	border: 0;
	vertical-align: middle;
}
.disclaimer {
	color: #666;
	font-size: 11px;
}
.item_description {
	overflow-wrap: anywhere;
}
.ad_slot {
	text-align: center;
	margin: 10px 0;
	overflow: hidden;
}
.ebay_logo {
	height: 22px;
	width: auto;
	vertical-align: middle;
}

/* Footer on the dark red */
.site_footer {
	color: #CFC89C;
	font-size: 11px;
	padding: 8px 0 14px 0;
}
.site_footer a:link,
.site_footer a:visited {
	color: #fff;
	font-weight: bold;
}

@media (max-width: 1100px) {
	.columns {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
	.col_threads {
		display: none;
	}
}
@media (max-width: 760px) {
	.wrapper {
		width: auto;
		margin: 0 10px;
	}
	.columns {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* Second Buy Now button, after the description (no price repeated) */
.item_buy_after {
	text-align: center;
}
.item_buy_after img {
	border: 0;
	vertical-align: middle;
}

/* Related eBay items box (filled by /site/widgets.js), as on the site pages */
.ebay_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
}
.ebay_item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #DFDFDF;
	padding: 6px;
}
.ebay_item:hover {
	border-color: #7F6A3C;
	text-decoration: none;
}
.ebay_item_image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 5px;
}
.ebay_item_image img {
	max-width: 100%;
	max-height: 110px;
}
.ebay_item_title {
	font-size: 11px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}
.ebay_item:hover .ebay_item_title {
	text-decoration: underline;
}
.ebay_item_price {
	margin-top: 4px;
	font-weight: bold;
	color: #582E2E;
}
