/**
 * Coffee Category Shortcode Styles
 * Saycafe Plugin
 */

/* Category Container */
.coffee-category-container {
	border-radius: 16px;
	padding: 2rem;
	margin: 2rem 0;
}

/* Category Header - Title and Navigation in Row */
.coffee-category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

/* Category Title */
.coffee-category-title {
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 2.25rem; /* 36px */
	line-height: 2.5rem; /* 40px */
	margin: 0;
}

/* Category Description */
.coffee-category-description {
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 1.125rem; /* 18px */
	line-height: 1.75rem; /* 28px */
	margin: 0 0 2rem 0;
}

/* Navigation Arrows */
.coffee-category-navigation {
	display: flex;
	gap: 0.5rem;
}

.coffee-nav-arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
	color: #1E130F;
}

.coffee-nav-arrow:hover:not(:disabled) {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
	transform: scale(1.05);
}

.coffee-nav-arrow:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.coffee-nav-arrow svg {
	width: 24px;
	height: 24px;
}

/* Coffee Grid - 4 columns x 3 rows */
.coffee-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

/* No Items Message */
.coffee-no-items {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #6B7280;
}

/* Coffee Card Styles (embedded from coffee-card.css) */
.coffee-card {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid;
	border-radius: 12px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coffee-card:hover {
	transform: translateY(-4px);
	box-shadow: 0px 8px 12px -2px rgba(0, 0, 0, 0.15), 0px 4px 8px -4px rgba(0, 0, 0, 0.15);
}

.coffee-card-image-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}

.coffee-card-image {
	width: 70%;
	height: 80px;
	object-fit: cover;
	border-radius: 8px;
}

.coffee-card-image-fallback {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #FEF3C6 0%, #FEE685 100%);
	border-radius: 8px;
}

.coffee-card-title {
	text-align: center;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 1.125rem; /* 18px */
	line-height: 1.75rem; /* 28px */
	color: #1E130F;
	margin: 0;
}

.coffee-card-price-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.coffee-card-price {
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 1.125rem; /* 18px */
	line-height: 1.75rem; /* 28px */
	color: #1E130F;
}

.coffee-card-price-sale {
	color: #B74B21;
}

.coffee-card-price-original {
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 0.875rem; /* 14px - smaller */
	line-height: 1.375rem; /* 22px */
	color: #9CA3AF;
	text-decoration: line-through;
	text-decoration-style: dashed;
}

.coffee-card-adjectives {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.coffee-card-adjective {
	position: relative;
	background: rgba(183, 75, 33, 0.1);
	border-radius: 3.35544e+07px;
	padding: 0.25rem 0.75rem;
	font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 0.75rem; /* 12px */
	line-height: 1rem; /* 16px */
	color: #B74B21;
	white-space: nowrap;
}

/* Responsive for Tablet/iPad (2 columns, keep PC styles) */
@media (max-width: 1024px) and (min-width: 769px) {
	.coffee-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive for Mobile (1 column, font sizes x 0.5) */
@media (max-width: 768px) {

    .coffee-card{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .coffee-card-image-wrapper{
        width: 100%;
    }
	.coffee-category-container {
		padding: 1rem;
	}

	.coffee-category-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.coffee-category-title {
		font-size: 1.4rem; /* 18px (36 * 0.5) */
		line-height: 1.25rem; /* 20px (40 * 0.5) */
	}

	.coffee-category-description {
		font-size: 0.75rem; /* 9px (18 * 0.5) */
		line-height: 0.875rem; /* 14px (28 * 0.5) */
	}

	.coffee-nav-arrow {
		width: 40px;
		height: 40px;
	}

	.coffee-nav-arrow svg {
		width: 20px;
		height: 20px;
	}
    
    .coffee-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
	.coffee-card {
		padding: 1rem;
	}

	.coffee-card-title {
		font-size: 1rem; /* 9px (18 * 0.5) */
		line-height: 1.25rem; /* 14px (28 * 0.5) */
	}

	.coffee-card-price {
		font-size: 0.5625rem; /* 9px (18 * 0.5) */
		line-height: 0.875rem; /* 14px (28 * 0.5) */
	}

	.coffee-card-price-original {
		font-size: 0.4375rem; /* 7px (14 * 0.5) */
		line-height: 0.6875rem; /* 11px (22 * 0.5) */
	}

	.coffee-card-adjective {
		text-wrap: auto;
		font-size: 0.75rem; /* 6px (12 * 0.5) */
		line-height: 1rem; /* 8px (16 * 0.5) */
		padding: 5px 15px;
	}
}
