/**
 * Wine Grid Block - Frontend Styles
 * REHub-inspired professional design
 */

/* ============================================
   Variables & Base Styles
============================================ */
.wcpro-grid-wrapper {
	--wine-primary: #d13a3a;
	--wine-secondary: #b12929;
	--wine-gold: #f0ad4e;
	--text-dark: #333333;
	--text-medium: #666666;
	--text-light: #999999;
	--border-color: #e5e5e5;
	--bg-light: #f9f9f9;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
	--spacing-xs: 8px;
	--spacing-sm: 12px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

	/* Allow custom properties from block attributes */
	--wcpro-primary: var(--wine-primary);
	--wcpro-bg: #ffffff;
	--wcpro-text: var(--text-dark);
	--wcpro-card-padding: 20px;
	--wcpro-card-gap: 24px;
	--wcpro-border-radius: 8px;

	margin-bottom: var(--spacing-xl);
}

/* ============================================
   Grid Layout
============================================ */
.wcpro-wine-grid {
	display: grid;
	gap: var(--wcpro-card-gap);
	margin-bottom: var(--spacing-lg);
}

/* Column Variations */
.wcpro-wine-grid.wcpro-grid-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.wcpro-wine-grid.wcpro-grid-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.wcpro-wine-grid.wcpro-grid-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.wcpro-wine-grid.wcpro-grid-cols-6 {
	grid-template-columns: repeat(6, 1fr);
}

/* Masonry Layout */
.wcpro-grid-type-masonry .wcpro-wine-grid {
	display: grid;
	grid-auto-flow: dense;
}

/* ============================================
   Wine Card Base
============================================ */
.wcpro-wine-card {
	background: var(--wcpro-bg);
	border: 1px solid var(--border-color);
	border-radius: var(--wcpro-border-radius);
	overflow: hidden;
	transition: var(--transition);
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

.wcpro-wine-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--wcpro-primary);
}

/* Disable hover effect when specified */
.wcpro-wine-card.no-hover:hover {
	transform: none;
	box-shadow: var(--shadow-sm);
}

/* ============================================
   Badge
============================================ */
.wcpro-card-badge {
	position: absolute;
	top: var(--spacing-sm);
	right: var(--spacing-sm);
	z-index: 10;
	background: var(--wcpro-primary);
	color: #ffffff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: var(--shadow-md);
	animation: badgePulse 2s ease-in-out infinite;
}

.wcpro-card-badge.badge-editors_choice {
	background: linear-gradient(135deg, var(--wine-primary), var(--wine-secondary));
}

.wcpro-card-badge.badge-best_seller {
	background: linear-gradient(135deg, #27ae60, #229954);
}

.wcpro-card-badge.badge-best_value {
	background: linear-gradient(135deg, var(--wine-gold), #e67e22);
}

.wcpro-card-badge.badge-best_price {
	background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes badgePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

/* ============================================
   Card Image
============================================ */
.wcpro-card-image {
	position: relative;
	overflow: hidden;
	background: var(--bg-light);
	flex-shrink: 0;
}

.wcpro-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.wcpro-wine-card:hover .wcpro-card-image img {
	transform: scale(1.08);
}

/* Image Ratios */
.wcpro-card-image.ratio-1-1 {
	aspect-ratio: 1 / 1;
}

.wcpro-card-image.ratio-3-4 {
	aspect-ratio: 3 / 4;
}

.wcpro-card-image.ratio-4-3 {
	aspect-ratio: 4 / 3;
}

.wcpro-card-image.ratio-16-9 {
	aspect-ratio: 16 / 9;
}

/* ============================================
   Card Content
============================================ */
.wcpro-card-content {
	padding: var(--wcpro-card-padding);
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
	flex-grow: 1;
}

/* Producer */
.wcpro-card-producer {
	color: var(--text-medium);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
}

/* Title */
.wcpro-card-title {
	margin: 0;
	color: var(--wcpro-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	transition: var(--transition);
}

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

.wcpro-card-title a:hover {
	color: var(--wcpro-primary);
}

/* Meta Row (Vintage, Region) */
.wcpro-card-meta {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--text-medium);
}

.wcpro-card-vintage,
.wcpro-card-region {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.wcpro-card-meta-separator {
	color: var(--border-color);
}

/* Rating */
.wcpro-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
}

.wcpro-rating-stars {
	display: flex;
	gap: 2px;
	color: var(--wine-gold);
	font-size: 16px;
}

.wcpro-rating-score {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
}

/* Price */
.wcpro-card-price {
	font-size: 24px;
	font-weight: 700;
	color: var(--wcpro-primary);
	margin: var(--spacing-xs) 0;
}

.wcpro-price-range {
	font-size: 20px;
}

.wcpro-price-single {
	font-size: 24px;
}

/* Excerpt */
.wcpro-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-medium);
	margin: var(--spacing-xs) 0;
}

/* ============================================
   Custom Metadata Fields (Year, ABV, Temperature, Flavor, etc.)
============================================ */
.wcpro-card-year,
.wcpro-card-abv,
.wcpro-card-temperature,
.wcpro-card-flavor,
.wcpro-card-body-structure,
.wcpro-card-region,
.wcpro-card-tasting-notes {
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-medium);
	margin: 4px 0;
}

.wcpro-card-year strong,
.wcpro-card-abv strong,
.wcpro-card-temperature strong,
.wcpro-card-flavor strong,
.wcpro-card-body-structure strong,
.wcpro-card-region strong,
.wcpro-card-tasting-notes strong {
	color: var(--text-dark);
	font-weight: 600;
}

/* ============================================
   Card Footer / Button
============================================ */
.wcpro-card-footer {
	padding: 0 var(--wcpro-card-padding) var(--wcpro-card-padding);
	margin-top: auto;
}

.wcpro-card-button {
	display: inline-block;
	width: 100%;
	padding: 12px 24px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	transition: var(--transition);
	cursor: pointer;
	border: 2px solid transparent;
}

/* Button Styles */
.wcpro-card-button.style-solid {
	background: linear-gradient(135deg, var(--wcpro-primary), var(--wine-secondary));
	color: #ffffff;
	border-color: var(--wcpro-primary);
}

.wcpro-card-button.style-solid:hover {
	background: var(--wine-secondary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.wcpro-card-button.style-outline {
	background: transparent;
	color: var(--wcpro-primary);
	border-color: var(--wcpro-primary);
}

.wcpro-card-button.style-outline:hover {
	background: var(--wcpro-primary);
	color: #ffffff;
}

.wcpro-card-button.style-minimal {
	background: transparent;
	color: var(--wcpro-primary);
	border: none;
	padding: 8px 16px;
}

.wcpro-card-button.style-minimal:hover {
	background: rgba(209, 58, 58, 0.1);
}

/* ============================================
   Card Style Variations
============================================ */

/* Compact Style */
.wcpro-wine-card.style-compact .wcpro-card-content {
	padding: var(--spacing-md);
	gap: var(--spacing-xs);
}

.wcpro-wine-card.style-compact .wcpro-card-title {
	font-size: 16px;
}

.wcpro-wine-card.style-compact .wcpro-card-price {
	font-size: 20px;
}

/* Minimal Style */
.wcpro-wine-card.style-minimal {
	border: none;
	box-shadow: none;
}

.wcpro-wine-card.style-minimal:hover {
	box-shadow: var(--shadow-sm);
}

.wcpro-wine-card.style-minimal .wcpro-card-content {
	padding: var(--spacing-md);
}

/* Featured Style */
.wcpro-wine-card.style-featured {
	border: 2px solid var(--wcpro-primary);
	box-shadow: var(--shadow-md);
}

.wcpro-wine-card.style-featured .wcpro-card-title {
	font-size: 20px;
	color: var(--wcpro-primary);
}

.wcpro-wine-card.style-featured .wcpro-card-price {
	font-size: 28px;
}

/* ============================================
   Empty State
============================================ */
.wcpro-grid-empty {
	text-align: center;
	padding: var(--spacing-xl) var(--spacing-lg);
	background: var(--bg-light);
	border-radius: var(--wcpro-border-radius);
	margin: var(--spacing-lg) 0;
}

.wcpro-empty-icon {
	font-size: 64px;
	margin-bottom: var(--spacing-md);
	opacity: 0.5;
}

.wcpro-empty-message {
	font-size: 16px;
	color: var(--text-medium);
	margin: 0;
}

/* ============================================
   Pagination
============================================ */
.wcpro-pagination {
	margin-top: var(--spacing-xl);
	display: flex;
	justify-content: center;
}

.wcpro-pagination ul {
	display: flex;
	gap: var(--spacing-xs);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wcpro-pagination li {
	margin: 0;
}

.wcpro-pagination a,
.wcpro-pagination span {
	display: inline-block;
	padding: 10px 16px;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
}

.wcpro-pagination a:hover {
	background: var(--wcpro-primary);
	color: #ffffff;
	border-color: var(--wcpro-primary);
}

.wcpro-pagination .current {
	background: var(--wcpro-primary);
	color: #ffffff;
	border-color: var(--wcpro-primary);
}

/* ============================================
   Responsive Design
============================================ */

/* Tablet */
@media (max-width: 1024px) {
	.wcpro-wine-grid.wcpro-grid-cols-6 {
		grid-template-columns: repeat(4, 1fr);
	}

	.wcpro-wine-grid.wcpro-grid-cols-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.wcpro-wine-grid.wcpro-grid-cols-6,
	.wcpro-wine-grid.wcpro-grid-cols-4,
	.wcpro-wine-grid.wcpro-grid-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.wcpro-card-title {
		font-size: 16px;
	}

	.wcpro-card-price {
		font-size: 20px;
	}

	.wcpro-pagination a,
	.wcpro-pagination span {
		padding: 8px 12px;
		font-size: 14px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.wcpro-wine-grid {
		grid-template-columns: 1fr !important;
	}

	.wcpro-card-badge {
		font-size: 10px;
		padding: 4px 8px;
	}

	.wcpro-card-content {
		padding: var(--spacing-md);
	}

	.wcpro-card-title {
		font-size: 16px;
	}

	.wcpro-card-price {
		font-size: 20px;
	}

	.wcpro-card-button {
		padding: 10px 20px;
		font-size: 13px;
	}
}

/* ============================================
   Print Styles
============================================ */
@media print {
	.wcpro-wine-card {
		break-inside: avoid;
		box-shadow: none !important;
		border: 1px solid #ccc;
	}

	.wcpro-card-badge,
	.wcpro-card-button,
	.wcpro-pagination {
		display: none;
	}
}

/* ============================================
   Accessibility
============================================ */
.wcpro-wine-card:focus-within {
	outline: 2px solid var(--wcpro-primary);
	outline-offset: 2px;
}

.wcpro-card-button:focus {
	outline: 2px solid var(--wcpro-primary);
	outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
	.wcpro-wine-card,
	.wcpro-card-image img,
	.wcpro-card-button,
	.wcpro-card-badge {
		transition: none !important;
		animation: none !important;
	}

	.wcpro-wine-card:hover {
		transform: none;
	}
}

/* ============================================
   TEMPLATE: Ranking List (Horizontal Cards)
============================================ */
.wcpro-template-ranking-list .ranking-list-custom {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.wcpro-template-ranking-list .ranking-custom-grid {
	display: grid;
	grid-template-columns: 60px 180px 1fr auto;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: var(--wcpro-border-radius);
	align-items: center;
	transition: var(--transition);
}

.wcpro-template-ranking-list .ranking-custom-grid:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--wine-primary);
}

.wcpro-template-ranking-list .ranking-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, var(--wine-primary), var(--wine-secondary));
	color: #fff;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 700;
}

.wcpro-template-ranking-list .listbuild_image {
	position: relative;
	width: 160px;
	height: 200px;
	overflow: hidden;
	border-radius: var(--wcpro-border-radius);
}

.wcpro-template-ranking-list .listbuild_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wcpro-template-ranking-list .wcpro-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 12px;
	background: var(--wine-gold);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 3px;
	z-index: 2;
}

.wcpro-template-ranking-list .top_rating_title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 8px;
}

.wcpro-template-ranking-list .top_rating_title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: var(--transition);
}

.wcpro-template-ranking-list .top_rating_title a:hover {
	color: var(--wine-primary);
}

.wcpro-template-ranking-list .wine-region-meta {
	font-size: 14px;
	color: var(--text-medium);
	margin-bottom: 12px;
}

.wcpro-template-ranking-list .star-rating-custom {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wcpro-template-ranking-list .stars-container-custom {
	position: relative;
	display: inline-block;
	height: 20px;
}

.wcpro-template-ranking-list .stars-custom {
	display: flex;
	gap: 2px;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
}

.wcpro-template-ranking-list .star-custom {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.wcpro-template-ranking-list .score-custom {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-dark);
}

.wcpro-template-ranking-list .priced_block {
	text-align: right;
}

.wcpro-template-ranking-list .wine-price-range {
	font-size: 24px;
	font-weight: 700;
	color: var(--wine-primary);
	margin-bottom: 12px;
}

.wcpro-template-ranking-list .cta-btn {
	display: inline-block;
	padding: 12px 30px;
	background: var(--wine-primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--wcpro-border-radius);
	font-weight: 600;
	transition: var(--transition);
	white-space: nowrap;
}

.wcpro-template-ranking-list .cta-btn:hover {
	background: var(--wine-secondary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Responsive for Ranking List */
@media (max-width: 768px) {
	.wcpro-template-ranking-list .ranking-custom-grid {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 16px; /* Reduced from 20px */
		gap: 16px;
	}

	.wcpro-template-ranking-list .ranking-number,
	.wcpro-template-ranking-list .listbuild_image {
		margin: 0 auto;
	}

	.wcpro-template-ranking-list .listbuild_image {
		width: 140px; /* Reduced from 160px */
		height: 175px; /* Reduced from 200px */
	}

	.wcpro-template-ranking-list .priced_block {
		text-align: center;
	}

	.wcpro-template-ranking-list .top_rating_title {
		font-size: 18px; /* Reduced from 20px */
	}

	.wcpro-template-ranking-list .wine-region-meta {
		font-size: 13px; /* Reduced from 14px */
	}

	.wcpro-template-ranking-list .wine-price-range {
		font-size: 20px; /* Reduced from 24px */
	}

	.wcpro-template-ranking-list .cta-btn {
		padding: 10px 24px; /* Reduced from 12px 30px */
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.wcpro-template-ranking-list .ranking-list-custom {
		gap: 16px; /* Reduced from 24px */
	}

	.wcpro-template-ranking-list .ranking-custom-grid {
		padding: 14px; /* Reduced from 16px */
		gap: 14px;
	}

	.wcpro-template-ranking-list .ranking-number {
		width: 40px; /* Reduced from 50px */
		height: 40px;
		font-size: 20px; /* Reduced from 24px */
	}

	.wcpro-template-ranking-list .listbuild_image {
		width: 120px; /* Reduced from 140px */
		height: 150px; /* Reduced from 175px */
	}

	.wcpro-template-ranking-list .top_rating_title {
		font-size: 16px; /* Reduced from 18px */
		margin-bottom: 6px;
	}

	.wcpro-template-ranking-list .wine-region-meta {
		font-size: 12px; /* Reduced from 13px */
		margin-bottom: 10px;
	}

	.wcpro-template-ranking-list .star-custom {
		width: 16px; /* Reduced from 18px */
		height: 16px;
	}

	.wcpro-template-ranking-list .score-custom {
		font-size: 13px; /* Reduced from 14px */
	}

	.wcpro-template-ranking-list .wine-price-range {
		font-size: 18px; /* Reduced from 20px */
		margin-bottom: 10px;
	}

	.wcpro-template-ranking-list .cta-btn {
		padding: 9px 20px; /* Reduced from 10px 24px */
		font-size: 13px;
	}
}

/* ============================================
   TEMPLATE: Ordered List (Simple Numbered)
============================================ */
.wcpro-template-ordered-list .wine-ordered-list {
	counter-reset: wine-counter;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wcpro-template-ordered-list .wine-list-item {
	counter-increment: wine-counter;
	position: relative;
	padding: 20px 20px 20px 70px;
	margin-bottom: 16px;
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: var(--wcpro-border-radius);
	transition: var(--transition);
}

.wcpro-template-ordered-list .wine-list-item::before {
	content: counter(wine-counter);
	position: absolute;
	left: 20px;
	top: 20px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wine-primary);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 16px;
}

.wcpro-template-ordered-list .wine-list-item:hover {
	border-color: var(--wine-primary);
	box-shadow: var(--shadow-sm);
}

.wcpro-template-ordered-list .wine-list-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

.wcpro-template-ordered-list .wine-list-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: var(--transition);
}

.wcpro-template-ordered-list .wine-list-title a:hover {
	color: var(--wine-primary);
}

.wcpro-template-ordered-list .wine-vintage {
	color: var(--text-medium);
	font-weight: 400;
}

.wcpro-template-ordered-list .wine-list-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	font-size: 14px;
	color: var(--text-medium);
}

.wcpro-template-ordered-list .wine-rating-inline {
	display: flex;
	align-items: center;
	gap: 5px;
}

.wcpro-template-ordered-list .rating-stars {
	color: var(--wine-gold);
}

.wcpro-template-ordered-list .wine-price-inline {
	font-size: 18px;
	font-weight: 700;
	color: var(--wine-primary);
}

.wcpro-template-ordered-list .wine-list-excerpt {
	color: var(--text-medium);
	line-height: 1.6;
	margin: 12px 0;
}

.wcpro-template-ordered-list .wine-list-button {
	display: inline-block;
	padding: 10px 24px;
	background: var(--wine-primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--wcpro-border-radius);
	font-weight: 600;
	transition: var(--transition);
}

.wcpro-template-ordered-list .wine-list-button:hover {
	background: var(--wine-secondary);
}

/* ============================================
   TEMPLATE: Table 2-Column
============================================ */
.wcpro-template-table-2col .wine-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--wcpro-border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.wcpro-template-table-2col .wine-table thead {
	background: linear-gradient(135deg, var(--wine-primary), var(--wine-secondary));
	color: #fff;
}

.wcpro-template-table-2col .wine-table th {
	padding: 16px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcpro-template-table-2col .wine-table tbody tr {
	border-bottom: 1px solid var(--border-color);
	transition: var(--transition);
}

.wcpro-template-table-2col .wine-table tbody tr:hover {
	background: var(--bg-light);
}

.wcpro-template-table-2col .wine-table td {
	padding: 20px 16px;
	vertical-align: top;
}

.wcpro-template-table-2col .wine-product-cell {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wcpro-template-table-2col .wine-table-img {
	width: 80px;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
}

.wcpro-template-table-2col .wine-table-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px 0;
}

.wcpro-template-table-2col .wine-table-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: var(--transition);
}

.wcpro-template-table-2col .wine-table-title a:hover {
	color: var(--wine-primary);
}

.wcpro-template-table-2col .wine-producer {
	font-size: 14px;
	color: var(--text-medium);
	margin-bottom: 6px;
}

.wcpro-template-table-2col .wine-region-tag {
	display: flex;
	gap: 8px;
	font-size: 12px;
	color: var(--text-light);
}

.wcpro-template-table-2col .wine-rating-small {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--wine-gold);
	font-size: 14px;
	margin-top: 8px;
}

.wcpro-template-table-2col .wine-excerpt {
	color: var(--text-medium);
	line-height: 1.6;
	margin-bottom: 16px;
}

.wcpro-template-table-2col .wine-table-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wcpro-template-table-2col .wine-table-price {
	font-size: 20px;
	font-weight: 700;
	color: var(--wine-primary);
}

.wcpro-template-table-2col .wine-table-btn {
	padding: 10px 24px;
	background: var(--wine-primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--wcpro-border-radius);
	font-weight: 600;
	transition: var(--transition);
}

.wcpro-template-table-2col .wine-table-btn:hover {
	background: var(--wine-secondary);
}

/* ============================================
   TEMPLATE: Table 3-Column
============================================ */
.wcpro-template-table-3col .wine-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: var(--wcpro-border-radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.wcpro-template-table-3col .wine-table thead {
	background: linear-gradient(135deg, var(--wine-primary), var(--wine-secondary));
	color: #fff;
}

.wcpro-template-table-3col .wine-table th {
	padding: 16px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wcpro-template-table-3col .wine-table th.col-product {
	width: 35%;
}

.wcpro-template-table-3col .wine-table th.col-description {
	width: 40%;
}

.wcpro-template-table-3col .wine-table th.col-price {
	width: 25%;
	text-align: right;
}

.wcpro-template-table-3col .wine-table tbody tr {
	border-bottom: 1px solid var(--border-color);
	transition: var(--transition);
}

.wcpro-template-table-3col .wine-table tbody tr:hover {
	background: var(--bg-light);
}

.wcpro-template-table-3col .wine-table td {
	padding: 20px 16px;
	vertical-align: top;
}

.wcpro-template-table-3col .wine-table td.col-price {
	text-align: right;
}

.wcpro-template-table-3col .wine-product-cell {
	display: flex;
	align-items: center;
	gap: 16px;
}

.wcpro-template-table-3col .wine-table-img {
	width: 70px;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
}

.wcpro-template-table-3col .wine-table-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px 0;
}

.wcpro-template-table-3col .wine-table-title a {
	color: var(--text-dark);
	text-decoration: none;
	transition: var(--transition);
}

.wcpro-template-table-3col .wine-table-title a:hover {
	color: var(--wine-primary);
}

.wcpro-template-table-3col .wine-producer-small {
	font-size: 13px;
	color: var(--text-medium);
}

.wcpro-template-table-3col .wine-meta-compact {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: var(--text-medium);
	margin-bottom: 10px;
}

.wcpro-template-table-3col .wine-rating-compact {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.wcpro-template-table-3col .wine-rating-compact .stars {
	color: var(--wine-gold);
}

.wcpro-template-table-3col .wine-rating-compact .score {
	font-size: 13px;
	font-weight: 600;
}

.wcpro-template-table-3col .wine-excerpt-compact {
	color: var(--text-medium);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.wcpro-template-table-3col .wine-price-cell {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.wcpro-template-table-3col .wine-price-display {
	font-size: 20px;
	font-weight: 700;
	color: var(--wine-primary);
}

.wcpro-template-table-3col .wine-table-btn-primary {
	padding: 10px 24px;
	background: var(--wine-primary);
	color: #fff;
	text-decoration: none;
	border-radius: var(--wcpro-border-radius);
	font-weight: 600;
	transition: var(--transition);
	white-space: nowrap;
}

.wcpro-template-table-3col .wine-table-btn-primary:hover {
	background: var(--wine-secondary);
}

/* Responsive Tables */
@media (max-width: 768px) {
	.wcpro-template-table-2col .wine-table,
	.wcpro-template-table-3col .wine-table {
		display: block;
	}

	.wcpro-template-table-2col .wine-table thead,
	.wcpro-template-table-3col .wine-table thead {
		display: none;
	}

	.wcpro-template-table-2col .wine-table tbody,
	.wcpro-template-table-2col .wine-table tr,
	.wcpro-template-table-2col .wine-table td,
	.wcpro-template-table-3col .wine-table tbody,
	.wcpro-template-table-3col .wine-table tr,
	.wcpro-template-table-3col .wine-table td {
		display: block;
		width: 100%;
	}

	.wcpro-template-table-2col .wine-table tr,
	.wcpro-template-table-3col .wine-table tr {
		margin-bottom: 20px;
		border: 1px solid var(--border-color);
		border-radius: var(--wcpro-border-radius);
	}

	.wcpro-template-table-3col .wine-price-cell {
		align-items: flex-start;
	}

	.wcpro-template-table-2col .wine-table td,
	.wcpro-template-table-3col .wine-table td {
		padding: 16px; /* Reduced from 20px */
	}

	.wcpro-template-table-2col .wine-table-img,
	.wcpro-template-table-3col .wine-table-img {
		width: 60px; /* Reduced from 70px/80px */
		height: 75px; /* Reduced from 90px/100px */
	}
}

@media (max-width: 480px) {
	/* Tables - Mobile Optimized */
	.wcpro-template-table-2col .wine-table tr,
	.wcpro-template-table-3col .wine-table tr {
		margin-bottom: 16px; /* Reduced from 20px */
	}

	.wcpro-template-table-2col .wine-table td,
	.wcpro-template-table-3col .wine-table td {
		padding: 14px; /* Reduced from 16px */
	}

	.wcpro-template-table-2col .wine-table-img,
	.wcpro-template-table-3col .wine-table-img {
		width: 50px; /* Reduced from 60px */
		height: 65px; /* Reduced from 75px */
	}

	.wcpro-template-table-2col .wine-table-title,
	.wcpro-template-table-3col .wine-table-title {
		font-size: 15px; /* Reduced from 16px */
		margin-bottom: 5px;
	}

	.wcpro-template-table-2col .wine-producer,
	.wcpro-template-table-3col .wine-producer-small {
		font-size: 12px; /* Reduced from 13px/14px */
	}

	.wcpro-template-table-2col .wine-region-tag,
	.wcpro-template-table-3col .wine-meta-compact {
		font-size: 11px; /* Reduced from 12px/13px */
	}

	.wcpro-template-table-2col .wine-rating-small,
	.wcpro-template-table-3col .wine-rating-compact {
		font-size: 12px; /* Reduced from 13px/14px */
	}

	.wcpro-template-table-2col .wine-excerpt,
	.wcpro-template-table-3col .wine-excerpt-compact {
		font-size: 13px; /* Reduced from 14px */
	}

	.wcpro-template-table-2col .wine-table-price,
	.wcpro-template-table-3col .wine-price-display {
		font-size: 17px; /* Reduced from 20px */
	}

	.wcpro-template-table-2col .wine-table-btn,
	.wcpro-template-table-3col .wine-table-btn-primary {
		padding: 9px 20px; /* Reduced from 10px 24px */
		font-size: 13px;
	}
}

/* Ordered List Template - Mobile Responsive */
@media (max-width: 768px) {
	.wcpro-template-ordered-list .wine-list-item {
		padding: 16px 16px 16px 60px; /* Reduced padding */
		margin-bottom: 14px;
	}

	.wcpro-template-ordered-list .wine-list-item::before {
		width: 32px; /* Reduced from 36px */
		height: 32px;
		font-size: 15px; /* Reduced from 16px */
		left: 16px;
		top: 16px;
	}

	.wcpro-template-ordered-list .wine-list-title {
		font-size: 18px; /* Reduced from 20px */
	}
}

@media (max-width: 480px) {
	.wcpro-template-ordered-list .wine-list-item {
		padding: 14px 14px 14px 54px; /* Reduced padding */
		margin-bottom: 12px;
	}

	.wcpro-template-ordered-list .wine-list-item::before {
		width: 28px; /* Reduced from 32px */
		height: 28px;
		font-size: 14px; /* Reduced from 15px */
		left: 14px;
		top: 14px;
	}

	.wcpro-template-ordered-list .wine-list-title {
		font-size: 16px; /* Reduced from 18px */
		margin-bottom: 6px;
	}

	.wcpro-template-ordered-list .wine-vintage {
		font-size: 13px;
	}

	.wcpro-template-ordered-list .wine-list-meta {
		font-size: 12px; /* Reduced from 14px */
		gap: 12px;
	}

	.wcpro-template-ordered-list .wine-price-inline {
		font-size: 16px; /* Reduced from 18px */
	}

	.wcpro-template-ordered-list .wine-list-excerpt {
		font-size: 13px;
		margin: 10px 0;
	}

	.wcpro-template-ordered-list .wine-list-button {
		padding: 9px 20px; /* Reduced from 10px 24px */
		font-size: 13px;
	}
}

/* ==========================================================================
   Extra Small Devices (≤360px) - Ultra Compact for Wine Grid Templates
   ========================================================================== */
@media (max-width: 360px) {
	/* Ranking List - Ultra Compact */
	.wcpro-template-ranking-list .ranking-list-custom {
		gap: 14px;
	}

	.wcpro-template-ranking-list .ranking-custom-grid {
		padding: 12px;
		gap: 12px;
	}

	.wcpro-template-ranking-list .ranking-number {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.wcpro-template-ranking-list .listbuild_image {
		width: 100px;
		height: 125px;
	}

	.wcpro-template-ranking-list .top_rating_title {
		font-size: 15px;
	}

	.wcpro-template-ranking-list .wine-region-meta {
		font-size: 11px;
	}

	.wcpro-template-ranking-list .star-custom {
		width: 14px;
		height: 14px;
	}

	.wcpro-template-ranking-list .score-custom {
		font-size: 12px;
	}

	.wcpro-template-ranking-list .wine-price-range {
		font-size: 17px;
	}

	.wcpro-template-ranking-list .cta-btn {
		padding: 8px 18px;
		font-size: 12px;
	}

	/* Tables - Ultra Compact */
	.wcpro-template-table-2col .wine-table tr,
	.wcpro-template-table-3col .wine-table tr {
		margin-bottom: 14px;
	}

	.wcpro-template-table-2col .wine-table td,
	.wcpro-template-table-3col .wine-table td {
		padding: 12px;
	}

	.wcpro-template-table-2col .wine-table-img,
	.wcpro-template-table-3col .wine-table-img {
		width: 45px;
		height: 60px;
	}

	.wcpro-template-table-2col .wine-table-title,
	.wcpro-template-table-3col .wine-table-title {
		font-size: 14px;
	}

	.wcpro-template-table-2col .wine-producer,
	.wcpro-template-table-3col .wine-producer-small {
		font-size: 11px;
	}

	.wcpro-template-table-2col .wine-region-tag,
	.wcpro-template-table-3col .wine-meta-compact {
		font-size: 10px;
	}

	.wcpro-template-table-2col .wine-rating-small,
	.wcpro-template-table-3col .wine-rating-compact {
		font-size: 11px;
	}

	.wcpro-template-table-2col .wine-excerpt,
	.wcpro-template-table-3col .wine-excerpt-compact {
		font-size: 12px;
	}

	.wcpro-template-table-2col .wine-table-price,
	.wcpro-template-table-3col .wine-price-display {
		font-size: 16px;
	}

	.wcpro-template-table-2col .wine-table-btn,
	.wcpro-template-table-3col .wine-table-btn-primary {
		padding: 8px 18px;
		font-size: 12px;
	}

	/* Ordered List - Ultra Compact */
	.wcpro-template-ordered-list .wine-list-item {
		padding: 12px 12px 12px 48px;
		margin-bottom: 10px;
	}

	.wcpro-template-ordered-list .wine-list-item::before {
		width: 26px;
		height: 26px;
		font-size: 13px;
		left: 12px;
		top: 12px;
	}

	.wcpro-template-ordered-list .wine-list-title {
		font-size: 15px;
	}

	.wcpro-template-ordered-list .wine-vintage {
		font-size: 12px;
	}

	.wcpro-template-ordered-list .wine-list-meta {
		font-size: 11px;
		gap: 10px;
	}

	.wcpro-template-ordered-list .wine-price-inline {
		font-size: 15px;
	}

	.wcpro-template-ordered-list .wine-list-excerpt {
		font-size: 12px;
	}

	.wcpro-template-ordered-list .wine-list-button {
		padding: 8px 18px;
		font-size: 12px;
	}
}

/* ============================================
   TEMPLATE: Product Cards (E-commerce)
   REDESIGNED to match live site screenshot
   Clean design with CONTAIN images, BLACK buttons, ORANGE stars
============================================ */
.wcpro-template-product-cards .wine-product-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 260px));
	gap: 18px;
	justify-content: center;
}

.wcpro-template-product-cards .wine-product-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 320px auto;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wcpro-template-product-cards .wine-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
	border-color: #ccc; /* Gray, NOT red */
}

.wcpro-template-product-cards .product-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 14px;
	background: #ff9800; /* Orange */
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 4px;
	z-index: 2;
	letter-spacing: 0.5px;
}

.wcpro-template-product-cards .product-card-image {
	position: relative;
	width: 100%;
	height: 320px;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.wcpro-template-product-cards .product-card-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: all 0.3s ease;
	display: block;
}

.wcpro-template-product-cards .wine-product-card:hover .product-card-image img {
	transform: scale(1.05);
}

.wcpro-template-product-cards .product-card-content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	grid-row: 2;
	align-items: flex-start;
}

.wcpro-template-product-cards .product-card-producer {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.wcpro-template-product-cards .product-card-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #333;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	display: block;
	width: 100%;
}

.wcpro-template-product-cards .product-card-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s ease;
}

.wcpro-template-product-cards .product-card-title a:hover {
	color: #000; /* Black, NOT red */
}

.wcpro-template-product-cards .product-card-meta {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: #999;
	margin: 0;
	flex-wrap: wrap;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.wcpro-template-product-cards .product-card-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 5px 0;
	flex-wrap: wrap;
}

.wcpro-template-product-cards .rating-stars-display {
	display: flex;
	gap: 2px;
	align-items: center;
}

.wcpro-template-product-cards .star-filled,
.wcpro-template-product-cards .star-half {
	color: #f39c12;
	font-size: 12px;
	line-height: 1;
	vertical-align: baseline;
}

.wcpro-template-product-cards .star-empty {
	color: #ddd;
	font-size: 12px;
	line-height: 1;
	vertical-align: baseline;
}

.wcpro-template-product-cards .star-partial-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	vertical-align: baseline;
	height: 12px;
}

.wcpro-template-product-cards .star-partial-wrapper .star-empty {
	position: relative;
	z-index: 1;
}

.wcpro-template-product-cards .star-partial-wrapper .star-filled {
	z-index: 2;
}

.wcpro-template-product-cards .rating-score-display {
	font-size: 12px;
	color: #333;
	font-weight: 600;
}

.wcpro-template-product-cards .product-card-description {
	font-size: 13px;
	line-height: 1.5;
	color: #666;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.wcpro-template-product-cards .product-card-price {
	font-size: 14px;
	font-weight: 400;
	color: #000;
	margin: 4px 0 8px 0;
}

.wcpro-template-product-cards .product-card-price .price-amount {
	font-weight: 700;
	font-size: 16px;
}

/* Product Card Metadata Fields */
.wcpro-template-product-cards .product-card-year,
.wcpro-template-product-cards .product-card-abv,
.wcpro-template-product-cards .product-card-temperature,
.wcpro-template-product-cards .product-card-flavor,
.wcpro-template-product-cards .product-card-body-structure,
.wcpro-template-product-cards .product-card-tasting-notes {
	font-size: 13px;
	line-height: 1.5;
	color: #666;
	margin: 4px 0;
}

.wcpro-template-product-cards .product-card-year strong,
.wcpro-template-product-cards .product-card-abv strong,
.wcpro-template-product-cards .product-card-temperature strong,
.wcpro-template-product-cards .product-card-flavor strong,
.wcpro-template-product-cards .product-card-body-structure strong,
.wcpro-template-product-cards .product-card-tasting-notes strong {
	color: #333;
	font-weight: 600;
}

.wcpro-template-product-cards .product-card-button {
	display: block;
	width: 100%;
	padding: 9px 16px;
	background: #000;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.2s ease;
	margin-top: auto;
	font-size: 13px;
}

.wcpro-template-product-cards .product-card-button:hover {
	background: #333; /* Dark gray, NOT red */
	transform: translateY(-1px);
}

/* Responsive Product Cards */
@media (max-width: 1024px) {
	.wcpro-template-product-cards .wine-product-cards-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.wcpro-template-product-cards .wine-product-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.wcpro-template-product-cards .wine-product-card {
		grid-template-rows: 280px auto;
	}

	.wcpro-template-product-cards .product-card-image {
		height: 280px;
		padding: 12px;
	}

	.wcpro-template-product-cards .product-card-content {
		padding: 14px;
		gap: 7px;
	}
}

@media (max-width: 600px) {
	.wcpro-template-product-cards .wine-product-cards-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		max-width: 400px;
		margin: 0 auto;
	}

	.wcpro-template-product-cards .wine-product-card {
		grid-template-rows: 320px auto;
	}

	.wcpro-template-product-cards .product-card-image {
		height: 320px;
		padding: 15px;
	}

	.wcpro-template-product-cards .product-card-content {
		padding: 16px;
		gap: 8px;
	}

	.wcpro-template-product-cards .product-card-producer {
		font-size: 12px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.wcpro-template-product-cards .product-card-title {
		font-size: 17px;
		line-height: 1.4;
		/* NO min-height - let titles expand */
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.wcpro-template-product-cards .product-card-meta {
		font-size: 13px;
		flex-wrap: wrap;
	}

	.wcpro-template-product-cards .rating-stars-display .star-filled,
	.wcpro-template-product-cards .rating-stars-display .star-half,
	.wcpro-template-product-cards .rating-stars-display .star-empty {
		font-size: 14px;
	}

	.wcpro-template-product-cards .rating-score-display {
		font-size: 13px;
	}

	.wcpro-template-product-cards .product-card-description {
		font-size: 13px;
		line-height: 1.6;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.wcpro-template-product-cards .product-card-price {
		font-size: 15px;
		margin: 8px 0 10px 0;
	}

	.wcpro-template-product-cards .product-card-price .price-amount {
		font-size: 18px;
	}

	.wcpro-template-product-cards .product-card-button {
		padding: 11px 18px; /* Better touch target */
		font-size: 14px;
		white-space: normal; /* Allow button text to wrap if needed */
	}

	.wcpro-template-product-cards .product-card-badge {
		top: 12px;
		left: 12px;
		padding: 6px 12px;
		font-size: 10px;
	}
}

/* Small Mobile Devices */
@media (max-width: 480px) {
	.wcpro-template-product-cards .wine-product-cards-grid {
		gap: 14px;
		max-width: 360px;
	}

	.wcpro-template-product-cards .wine-product-card {
		grid-template-rows: 300px auto;
	}

	.wcpro-template-product-cards .product-card-image {
		height: 300px;
		padding: 12px;
	}

	.wcpro-template-product-cards .product-card-content {
		padding: 14px;
		gap: 7px;
	}

	.wcpro-template-product-cards .product-card-producer {
		font-size: 12px;
	}

	.wcpro-template-product-cards .product-card-title {
		font-size: 16px;
		line-height: 1.4;
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.wcpro-template-product-cards .product-card-meta {
		font-size: 12px;
	}

	.wcpro-template-product-cards .product-card-description {
		font-size: 13px;
		line-height: 1.6;
	}

	.wcpro-template-product-cards .product-card-price {
		font-size: 15px;
		margin: 6px 0 9px 0;
	}

	.wcpro-template-product-cards .product-card-price .price-amount {
		font-size: 17px;
	}

	.wcpro-template-product-cards .product-card-button {
		padding: 10px 16px;
		font-size: 14px;
	}

	.wcpro-template-product-cards .product-card-badge {
		top: 10px;
		left: 10px;
		padding: 5px 10px;
		font-size: 9px;
	}
}

/* Extra Small Devices - Ultra Compact Product Cards */
@media (max-width: 360px) {
	.wcpro-template-product-cards .wine-product-cards-grid {
		gap: 12px;
		max-width: 320px;
	}

	.wcpro-template-product-cards .wine-product-card {
		grid-template-rows: 260px auto;
	}

	.wcpro-template-product-cards .product-card-image {
		height: 260px;
		padding: 10px;
	}

	.wcpro-template-product-cards .product-card-content {
		padding: 12px;
		gap: 6px;
	}

	.wcpro-template-product-cards .product-card-producer {
		font-size: 11px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.wcpro-template-product-cards .product-card-title {
		font-size: 15px;
		line-height: 1.4;
		/* NO min-height - let titles expand */
		word-wrap: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.wcpro-template-product-cards .product-card-meta {
		font-size: 11px;
		flex-wrap: wrap;
	}

	.wcpro-template-product-cards .rating-stars-display .star-filled,
	.wcpro-template-product-cards .rating-stars-display .star-half,
	.wcpro-template-product-cards .rating-stars-display .star-empty {
		font-size: 13px;
	}

	.wcpro-template-product-cards .rating-score-display {
		font-size: 12px;
	}

	.wcpro-template-product-cards .product-card-description {
		font-size: 12px;
		line-height: 1.6;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.wcpro-template-product-cards .product-card-price {
		font-size: 14px;
		margin: 5px 0 8px 0;
	}

	.wcpro-template-product-cards .product-card-price .price-amount {
		font-size: 16px;
	}

	.wcpro-template-product-cards .product-card-button {
		padding: 9px 14px;
		font-size: 13px;
		white-space: normal;
	}

	.wcpro-template-product-cards .product-card-badge {
		top: 8px;
		left: 8px;
		padding: 4px 10px;
		font-size: 9px;
	}
}

/* ==========================================================================
   Ordered List Template - Wine Metadata Styles
   ========================================================================== */

/* Metadata container */
.wcpro-ol-metadata {
	margin: 0;
}

/* Individual metadata items */
.wcpro-ol-meta-item {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin: 2px 0;
}

.wcpro-ol-meta-item strong {
	font-weight: 600;
	color: #000;
	margin-right: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.wcpro-ol-meta-item {
		font-size: 13px;
		margin: 2px 0;
	}
}

/* ==========================================================================
   TEMPLATE: Comparison Table
   Modern design with shadows, rounded corners, and styled header
   ========================================================================== */

.wcpro-comparison-table-wrapper {
	width: 100%;
	overflow-x: auto;
	margin: 30px 0;
	-webkit-overflow-scrolling: touch;
}

.wcpro-comparison-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	border: 1px solid #e5e5e5;
}

/* Table Header */
.wcpro-comparison-table thead {
	background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.wcpro-comparison-table th {
	padding: 18px 24px;
	font-weight: 600;
	text-align: left;
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: none;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.wcpro-comparison-table th:last-child {
	border-right: none;
}

/* Table Body */
.wcpro-comparison-table tbody tr {
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.wcpro-comparison-table tbody tr:hover {
	background-color: #fafbfc;
}

.wcpro-comparison-table tbody tr:last-child {
	border-bottom: none;
}

/* Table Cells */
.wcpro-comparison-table td {
	padding: 20px 24px;
	vertical-align: top;
	color: #444;
	border: none;
	border-right: 1px solid #f0f0f0;
	border-bottom: 1px solid #f0f0f0;
}

.wcpro-comparison-table td:last-child {
	border-right: none;
}

.wcpro-comparison-table tbody tr:last-child td {
	border-bottom: none;
}

/* First Column - Category/Label */
.wcpro-ct-col-0 {
	width: auto;
	background-color: #fafbfc;
}

/* Text formatting in cells - user controls via rich text toolbar */
.wcpro-ct-text-cell strong,
.wcpro-ct-text-cell b {
	font-weight: 700;
	color: #1a1a1a;
}

.wcpro-ct-text-cell em,
.wcpro-ct-text-cell i {
	font-style: italic;
}

/* Wine Cell Styling */
.wcpro-ct-wine-cell {
	display: block;
}

.wcpro-ct-wine-link {
	color: #c75000;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.5;
	display: inline-block;
	transition: color 0.2s ease;
}

.wcpro-ct-wine-link:hover {
	color: #a04000;
	text-decoration: underline;
}

.wcpro-ct-wine-name {
	font-weight: 500;
	color: #333;
}

.wcpro-ct-wine-desc {
	margin: 10px 0 0 0;
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.wcpro-ct-wine-not-found {
	color: #999;
	font-style: italic;
	font-size: 14px;
}

/* Text Cell Styling */
.wcpro-ct-text-cell {
	line-height: 1.7;
	color: #444;
}

.wcpro-ct-text-cell a {
	color: #c75000;
	text-decoration: none;
	font-weight: 500;
}

.wcpro-ct-text-cell a:hover {
	text-decoration: underline;
}

/* Empty State */
.wcpro-comparison-table-empty {
	padding: 40px;
	text-align: center;
	background: #f8f9fa;
	border: 1px dashed #ddd;
	color: #666;
}

/* ==========================================================================
   Comparison Table - Responsive Styles
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
	.wcpro-comparison-table {
		font-size: 15px;
		border-radius: 10px;
	}

	.wcpro-comparison-table th,
	.wcpro-comparison-table td {
		padding: 16px 18px;
	}

	.wcpro-comparison-table th {
		font-size: 14px;
		padding: 16px 18px;
	}

	.wcpro-ct-col-0 strong {
		font-size: 15px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.wcpro-comparison-table-wrapper {
		margin: 20px 0;
	}

	.wcpro-comparison-table {
		font-size: 14px;
		border-radius: 8px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	}

	.wcpro-comparison-table th,
	.wcpro-comparison-table td {
		padding: 14px 16px;
	}

	.wcpro-comparison-table th {
		font-size: 13px;
		padding: 14px 16px;
		letter-spacing: 0.3px;
	}

	.wcpro-ct-col-0 strong {
		font-size: 14px;
	}

	.wcpro-ct-wine-link {
		font-size: 14px;
	}

	.wcpro-ct-wine-desc {
		font-size: 13px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.wcpro-comparison-table-wrapper {
		margin: 16px 0;
	}

	.wcpro-comparison-table {
		font-size: 13px;
		border-radius: 6px;
	}

	.wcpro-comparison-table th,
	.wcpro-comparison-table td {
		padding: 12px 14px;
	}

	.wcpro-comparison-table th {
		font-size: 12px;
		padding: 12px 14px;
		text-transform: none;
		letter-spacing: 0;
	}

	.wcpro-ct-col-0 strong {
		font-size: 13px;
	}

	.wcpro-ct-wine-link {
		font-size: 13px;
	}

	.wcpro-ct-wine-desc {
		font-size: 12px;
	}
}

/* Extra Small Mobile */
@media (max-width: 360px) {
	.wcpro-comparison-table th,
	.wcpro-comparison-table td {
		padding: 10px 12px;
	}

	.wcpro-comparison-table {
		font-size: 12px;
	}

	.wcpro-comparison-table th {
		font-size: 12px;
	}

	.wcpro-ct-col-0 strong {
		font-size: 12px;
	}
}
