/* KOL Woo Random Products Widget - Music Card Style */

/* Container Styles */
.kol-random-products-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.kol-random-products-container {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.kol-random-products-list {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	gap: 1rem !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

/* Product Card - Music Card Layout */
.kol-product-card {
	display: flex !important;
	align-items: flex-start !important;
	gap: 1rem !important;
	padding: 1rem !important;
	background: var(--color-background-primary, #fff) !important;
	border: 1px solid var(--color-border-tertiary, #e5e7eb) !important;
	border-radius: var(--border-radius-lg, 8px) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	position: relative !important;
}

.kol-product-card-image-cell {
	flex-shrink: 0 !important;
}

.kol-product-card-image {
	display: block !important;
	width: 80px !important;
	height: 80px !important;
	border-radius: var(--border-radius-md, 6px) !important;
	overflow: hidden !important;
	background: var(--color-background-secondary, #f3f4f6) !important;
}

.kol-product-card-image img,
.kol-product-card-image .attachment-thumbnail {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.kol-product-card-image a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	text-decoration: none !important;
}

.kol-product-card-content-cell {
	flex: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
	min-width: 0 !important;
	width: 100% !important;
}

.kol-product-card-content {
	display: flex !important;
	flex-direction: column !important;
	gap: 0.5rem !important;
	overflow: hidden !important;
}

.kol-product-card-content .woocommerce-loop-product__title {
	font-size: 16px !important;
	font-weight: 500 !important;
	color: var(--color-text-primary, #1f2937) !important;
	line-height: 1.4 !important;
	word-wrap: break-word !important;
	margin: 0 !important;
	display: block !important;
	text-decoration: none !important;
}

.kol-product-genre {
	font-size: 14px !important;
	color: var(--color-text-secondary, #6b7280) !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.kol-product-card-footer {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	margin-top: 0.25rem !important;
	gap: 0.5rem !important;
	flex-wrap: nowrap !important;
}

.kol-product-card-footer > div:first-child {
	flex: 1 !important;
	margin-right: auto !important;
}

.woocommerce-loop-product-link {
	color: var(--color-text-primary, #1f2937) !important;
}

.woocommerce-loop-product-link .woocommerce-Price-amount {
	font-size: 16px !important;
	font-weight: 500 !important;
	color: var(--color-text-primary, #1f2937) !important;
}

.kol-product-actions-right {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0.5rem !important;
	flex: 0 0 auto !important;
}

.sale-badge {
	position: absolute !important;
	top: 1rem !important;
	right: 1rem !important;
	padding: 0.25rem 0.5rem !important;
	font-size: 11px !important;
	font-weight: bold !important;
	background: #e74c3c !important;
	color: white !important;
	border-radius: 3px !important;
}

/* Light Mode Button Styling */
html.light-mode .kol-product-actions-right .button,
html.light-mode .kol-product-actions-right .add-to-library-btn,
html.light-mode .added_to_cart.wc-forward {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 32px !important;
	padding: 0 15px !important;
	text-align: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	font-size: 14px !important;
	white-space: nowrap !important;
	background: linear-gradient(180deg, #e2e2e2 0%, #d4d4d4 100%) !important;
	border: 1px solid !important;
	border-top-color: #f0f0f0 !important;
	border-left-color: #f0f0f0 !important;
	border-right-color: #b0b0b0 !important;
	border-bottom-color: #b0b0b0 !important;
	border-radius: 6px !important;
	color: #2d2d2d !important;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
	cursor: pointer !important;
}

html.light-mode .kol-product-actions-right .button:hover,
html.light-mode .kol-product-actions-right .add-to-library-btn:hover,
html.light-mode .added_to_cart.wc-forward:hover {
	text-decoration: none !important;
	background: linear-gradient(180deg, #d4d4d4 0%, #c6c6c6 100%) !important;
}

/* Dark Mode Button Styling */
html.dark-mode .kol-product-actions-right .button,
html.dark-mode .kol-product-actions-right .add-to-library-btn,
html.dark-mode .added_to_cart.wc-forward {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 32px !important;
	padding: 0 15px !important;
	text-align: center !important;
	line-height: 1 !important;
	margin: 0 !important;
	font-size: 14px !important;
	white-space: nowrap !important;
	background: linear-gradient(180deg, #383838 0%, #343434 100%) !important;
	border: 1px solid !important;
	border-top-color: #555555 !important;
	border-left-color: #555555 !important;
	border-right-color: #282828 !important;
	border-bottom-color: #282828 !important;
	border-radius: 6px !important;
	color: white !important;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5) !important;
	cursor: pointer !important;
}

html.dark-mode .kol-product-actions-right .button:hover,
html.dark-mode .kol-product-actions-right .add-to-library-btn:hover,
html.dark-mode .added_to_cart.wc-forward:hover {
	text-decoration: none !important;
	background: linear-gradient(180deg, #3a3a3a 0%, #363636 100%) !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
	.kol-product-card {
		padding: 0.75rem !important;
		gap: 0.75rem !important;
	}
	.kol-product-card-image {
		width: 70px !important;
		height: 70px !important;
	}
	.kol-product-card-content .woocommerce-loop-product__title {
		font-size: 15px !important;
	}
	.kol-product-genre {
		font-size: 13px !important;
	}
	.woocommerce-loop-product-link .woocommerce-Price-amount {
		font-size: 15px !important;
	}
}

@media (max-width: 360px) {
	.kol-product-card {
		padding: 0.75rem !important;
		gap: 0.75rem !important;
	}
	.kol-product-card-image {
		width: 60px !important;
		height: 60px !important;
	}
	.kol-product-card-content .woocommerce-loop-product__title {
		font-size: 14px !important;
	}
	.kol-product-genre {
		font-size: 12px !important;
	}
}
