/* picturemaxx Calendar & Offers — front-end styles */

.pmcal-calendar-app,
.pmcal-offers-app {
	font-family: inherit;
	color: #222;
	max-width: 100%;
}

/* ---- Calendar controls ---- */

.pmcal-calendar-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.pmcal-calendar-controls button {
	background: #c9601a;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.pmcal-calendar-controls button:hover {
	background: #a84f15;
}

.pmcal-current-month-label {
	font-weight: 700;
	font-size: 18px;
	min-width: 160px;
	text-align: center;
}

.pmcal-category-filter {
	margin-left: auto;
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* ---- Calendar list ---- */

.pmcal-calendar-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.pmcal-entry-card {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	transition: box-shadow 0.15s ease;
}

.pmcal-entry-card:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pmcal-entry-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
	background: #f2f2f2;
}

.pmcal-entry-card-body {
	padding: 10px 12px;
}

.pmcal-entry-day {
	display: inline-block;
	background: #fbefe6;
	color: #c9601a;
	font-weight: 700;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 13px;
	margin-bottom: 6px;
}

.pmcal-entry-title {
	font-weight: 700;
	font-size: 15px;
	margin: 4px 0;
}

.pmcal-entry-meta {
	font-size: 12px;
	color: #777;
}

.pmcal-loading,
.pmcal-empty {
	color: #888;
	font-style: italic;
}

/* ---- Entry detail panel ---- */

.pmcal-entry-detail {
	margin-top: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 20px;
	background: #fafafa;
}

.pmcal-entry-detail h3 {
	margin-top: 0;
}

.pmcal-detail-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.pmcal-product-card {
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.pmcal-product-card img {
	width: 100%;
	height: 110px;
	object-fit: cover;
	display: block;
}

.pmcal-product-card-body {
	padding: 8px;
	font-size: 13px;
}

.pmcal-product-card-body a.pmcal-add-to-cart {
	display: inline-block;
	margin-top: 6px;
	background: #c9601a;
	color: #fff;
	text-decoration: none;
	padding: 4px 10px;
	border-radius: 3px;
	font-size: 12px;
}

/* ---- Offers feed ---- */

.pmcal-offers-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.pmcal-offer-card {
	position: relative;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
}

.pmcal-offer-card img {
	width: 100%;
	height: 150px;
	object-fit: cover;
	display: block;
	background: #f2f2f2;
}

.pmcal-offer-status-dot {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.pmcal-offer-status-dot.status-new {
	background: #e53935; /* red = new */
}

.pmcal-offer-status-dot.status-seen {
	background: #f9a825; /* amber = seen */
}

.pmcal-offer-status-dot.status-opened {
	background: #43a047; /* green = opened */
}

.pmcal-offer-card-body {
	padding: 10px 12px;
}

.pmcal-offer-date {
	font-size: 12px;
	color: #888;
}

.pmcal-offer-title {
	font-weight: 700;
	font-size: 15px;
	margin: 4px 0;
}

.pmcal-offer-supplier {
	font-size: 12px;
	color: #c9601a;
}

.pmcal-load-more {
	display: block;
	margin: 20px auto 0;
	background: #fff;
	border: 1px solid #c9601a;
	color: #c9601a;
	padding: 8px 20px;
	border-radius: 4px;
	cursor: pointer;
}

.pmcal-load-more:hover {
	background: #c9601a;
	color: #fff;
}
