/* SelvaMart Agri Pro Frontend Styles */

/* 1. Freshness & Origin Passport */
.selvamart-freshness-passport {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 18px;
	margin: 16px 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.freshness-passport__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.freshness-passport__header .icon {
	font-size: 24px;
}

.freshness-passport__header strong {
	display: block;
	font-size: 15px;
	color: #0f172a;
}

.freshness-passport__header .sub {
	font-size: 12px;
	color: #64748b;
}

.freshness-passport__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	font-size: 13px;
	margin-bottom: 14px;
}

@media (max-width: 480px) {
	.freshness-passport__grid {
		grid-template-columns: 1fr;
	}
}

.freshness-passport__grid .item .lbl {
	display: block;
	color: #64748b;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
}

.freshness-passport__grid .item .val {
	font-weight: 600;
	color: #1e293b;
}

.freshness-passport__meter .meter-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	margin-bottom: 6px;
}

.freshness-passport__meter .meter-bar {
	height: 8px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
}

.freshness-passport__meter .meter-fill {
	height: 100%;
	border-radius: 6px;
	transition: width 0.4s ease;
}

/* 2. Harvest Calendar */
.selvamart-harvest-calendar {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 28px;
	margin: 20px 0;
}

.harvest-calendar-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
	margin-top: 20px;
}

.harvest-month-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	transition: all 0.2s ease;
}

.harvest-month-card.is-hidden {
	display: none;
}

.harvest-month-card.is-current-month {
	background: #f0fdf4;
	border-color: #86efac;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}

.harvest-month-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
	margin-bottom: 10px;
}

.harvest-month-card__header h3 {
	margin: 0;
	font-size: 15px;
	color: #0f172a;
}

.curr-tag {
	font-size: 11px;
	font-weight: 700;
	color: #15803d;
	background: #dcfce7;
	padding: 2px 6px;
	border-radius: 8px;
}

.harvest-crop-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	color: #475569;
	line-height: 1.6;
}

.selvamart-harvest-chip {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 6px;
}

/* 3. Review Photos Gallery */
.selvamart-review-photos-gallery {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.review-photo-item {
	width: 68px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	display: block;
}

.review-photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.review-photo-item:hover img {
	transform: scale(1.08);
}

/* 4. Timeline Tracker */
.selvamart-timeline-steps {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	text-align: center;
	position: relative;
	margin-top: 14px;
}

@media (max-width: 640px) {
	.selvamart-timeline-steps {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
}

.timeline-step {
	position: relative;
	padding: 12px 6px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.timeline-step.is-done {
	background: #f0fdf4;
	border-color: #bbf7d0;
}

.timeline-step.is-current {
	background: #dcfce7;
	border-color: #22c55e;
	box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.timeline-step .step-icon {
	font-size: 20px;
	margin-bottom: 4px;
}

.timeline-step .step-label {
	font-size: 12px;
	font-weight: 700;
	color: #334155;
}
