/* Top 100 Bestsellers - public styles */

.t100-notice {
	padding: 12px 16px;
	background: #f7f7f7;
	border-left: 4px solid #ccc;
}

.t100-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 20px 0;
}

.t100-columns-1 { grid-template-columns: repeat(1, 1fr); }
.t100-columns-2 { grid-template-columns: repeat(2, 1fr); }
.t100-columns-3 { grid-template-columns: repeat(3, 1fr); }
.t100-columns-4 { grid-template-columns: repeat(4, 1fr); }
.t100-columns-5 { grid-template-columns: repeat(5, 1fr); }
.t100-columns-6 { grid-template-columns: repeat(6, 1fr); }

.t100-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e9e9ec;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.t100-card:hover {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.t100-rank {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 8px;
	border-radius: 20px;
}

.t100-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #ff5722;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 5px 9px;
	border-radius: 20px;
	line-height: 1;
}

.t100-badge-icon {
	font-size: 12px;
}

.t100-badge--top100 {
	background: #7b2ff7;
}

/* Stack a second badge below the first instead of overlapping it. */
.t100-badge + .t100-badge {
	top: 44px;
}

.t100-card-image {
	display: block;
	background: #fff;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	padding: 22px;
	box-sizing: border-box;
}

.t100-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.t100-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.t100-brand-logo img {
	max-height: 90px;
	width: auto;
	object-fit: contain;
}

.t100-brand-logo-placeholder {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	color: #888;
}

.t100-card-body {
	padding: 4px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.t100-card-category {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #9a9a9e;
}

.t100-card-category-dash {
	color: #c9c9cd;
}

.t100-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1e;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(15px * 1.4 * 2);
}

.t100-card-title a {
	color: inherit;
	text-decoration: none;
}

.t100-card-title a:hover {
	text-decoration: underline;
}

.t100-card-price {
	font-weight: 700;
	font-size: 15px;
	color: #1a1a1e;
}

.t100-card-price del {
	font-weight: 400;
	color: #9a9a9e;
	margin-right: 6px;
}

.t100-card-price ins {
	text-decoration: none;
}

.t100-card-cart {
	margin-top: 4px;
}

.t100-card-cart .button,
.t100-card-cart .add_to_cart_button {
	display: inline-block;
	width: 100%;
	text-align: center;
}

.t100-buy-now-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #17452e;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 16px;
	border: none;
	border-radius: 10px;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.2s ease;
}

.t100-buy-now-btn:hover,
.t100-buy-now-btn:focus {
	background: #0f3320;
	color: #fff;
}

.t100-buy-now-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

.t100-cart-icon {
	flex: 0 0 auto;
	color: #fff;
}

.t100-buy-now-text {
	line-height: 1;
}

.t100-brand-stats {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.t100-brand-stats li {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	border-bottom: 1px dashed #eee;
	padding-bottom: 4px;
}

.t100-stat-label {
	color: #888;
}

.t100-stat-value {
	font-weight: 600;
}

@media (max-width: 1024px) {
	.t100-columns-5,
	.t100-columns-6 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 782px) {
	.t100-grid,
	.t100-columns-1,
	.t100-columns-2,
	.t100-columns-3,
	.t100-columns-4,
	.t100-columns-5,
	.t100-columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.t100-grid,
	.t100-columns-1,
	.t100-columns-2,
	.t100-columns-3,
	.t100-columns-4,
	.t100-columns-5,
	.t100-columns-6 {
		grid-template-columns: repeat(1, 1fr);
	}
}
