/*--------------------------------------------------------------
 BESTSELLERS SHORTCODE STYLES
 Styles for the [bookie_bestsellers] shortcode
 Designed to integrate with the Bookie theme design system
--------------------------------------------------------------*/

/* Section Container */
.bookie-bestsellers-section {
	padding: 30px 0 40px;
}

/* Header */
.bookie-bestsellers-header {
	margin-bottom: 40px;
	text-align: center;
}

.bookie-bestsellers-title {
	position: relative;
	display: inline-block;
	margin-bottom: 10px;
	padding: 0 30px;
	color: #222222;
	font-family: "Montserrat", sans-serif;
	font-size: 30px;
	font-weight: normal;
	line-height: 1.35;
	text-transform: uppercase;
}

.bookie-bestsellers-title::before,
.bookie-bestsellers-title::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 60px;
	height: 2px;
	background: #28cdf0;
}

.bookie-bestsellers-title::before {
	right: 100%;
}

.bookie-bestsellers-title::after {
	left: 100%;
}

.bookie-bestsellers-subtitle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #a7a7a7;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-style: italic;
	letter-spacing: 1px;
}

.bookie-bestsellers-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: #ffffff;
	background: linear-gradient(135deg, #f7b733, #fc4a1a);
	font-size: 13px;
	font-style: normal;
}

/* Ranking Badge */
.bookie-rank-badge {
	display: flex;
	position: absolute;
	z-index: 10;
	top: 15px;
	left: 15px;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #ffffff;
	background: #5a5462;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bookie-rank-badge.bookie-rank-top {
	width: 36px;
	height: 36px;
	font-size: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.bookie-rank-badge.bookie-rank-gold {
	background: linear-gradient(135deg, #f7b733, #e8a020);
	box-shadow: 0 3px 12px rgba(247, 183, 51, 0.4);
}

.bookie-rank-badge.bookie-rank-silver {
	background: linear-gradient(135deg, #b0b5b9, #8c929a);
	box-shadow: 0 3px 12px rgba(176, 181, 185, 0.4);
}

.bookie-rank-badge.bookie-rank-bronze {
	background: linear-gradient(135deg, #cd7f32, #b5651d);
	box-shadow: 0 3px 12px rgba(205, 127, 50, 0.4);
}

/* Hover animation on badge */
.product-inner:hover .bookie-rank-badge {
	transform: scale(1.1);
}

/* Product hover animation within bestsellers */
.bookie-bestsellers-section .product-inner {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bookie-bestsellers-section .product-inner:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Empty message */
.bookie-bestsellers-empty {
	padding: 40px 20px;
	color: #a7a7a7;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	text-align: center;
}

/* Responsive adjustments */
@media (max-width: 991px) {
	.bookie-bestsellers-title {
		font-size: 24px;
	}

	.bookie-bestsellers-title::before,
	.bookie-bestsellers-title::after {
		width: 40px;
	}
}

@media (max-width: 768px) {
	.bookie-bestsellers-header {
		margin-bottom: 30px;
	}

	.bookie-bestsellers-title {
		font-size: 20px;
		padding: 0 20px;
	}

	.bookie-bestsellers-title::before,
	.bookie-bestsellers-title::after {
		width: 25px;
	}

	.bookie-bestsellers-subtitle {
		font-size: 11px;
	}
}

@media (max-width: 500px) {
	.bookie-bestsellers-title::before,
	.bookie-bestsellers-title::after {
		display: none;
	}

	.bookie-bestsellers-title {
		padding: 0;
	}
}
