/* wp-content/plugins/ceca-widgets/widgets/products-grid/products-grid.css */
/* Products Grid (Figma 2654:2020, Shop Landing): "Shop" 40/50 heading, 4-up
   cards — image 307×204 (grey slot when none), two-line 18/24 title, price
   line with bold values. Row gap 70 per the design's vertical rhythm. */

.ceca-pg .ceca-pg__heading {
	margin: 0 0 40px;
	font-size: 40px;
	line-height: 50px;
	font-weight: 700;
	color: #000;
}

.ceca-pg__grid {
	--ceca-pg-cols: 4;

	display: grid;
	grid-template-columns: repeat(var(--ceca-pg-cols), minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 70px;
}

/* Double specificity + explicit states so theme/kit link globals cannot
   repaint the cards. */
.ceca-pg a.ceca-pg__card,
.ceca-pg a.ceca-pg__card:hover,
.ceca-pg a.ceca-pg__card:focus {
	display: flex;
	flex-direction: column;
	color: #000;
	text-decoration: none;
}

.ceca-pg__media {
	display: block;
	background: transparent;
	border: 0;
	overflow: hidden;
}

/* Cover contained whole (portrait publication covers are never cropped).
   No hover zoom or outline on the shop (user, 2026-09-30 — moved to the
   news listings); the title underline is the hover cue. */
.ceca-pg__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ceca-pg .ceca-pg__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	margin-top: 10px;
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
}

/* Full-name tooltip (user, 2026-09-30): appears after resting on a card
   for 3s — the delay sits on the hover state only, so it hides at once
   when the pointer leaves. Plum box with a notch pointing at the title. */
.ceca-pg__name {
	position: relative;
	display: block;
}

.ceca-pg .ceca-pg__tip {
	position: absolute;
	z-index: 5;
	left: -8px;
	right: -8px;
	bottom: calc(100% + 2px);
	padding: 12px 16px;
	border-radius: 8px;
	background: var(--ceca-plum, #411024);
	color: #fff;
	font-size: 15px;
	line-height: 21px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(65, 16, 36, 0.28);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	pointer-events: none;
}

.ceca-pg .ceca-pg__tip::after {
	content: '';
	position: absolute;
	left: 24px;
	top: 100%;
	border: 7px solid transparent;
	border-top-color: var(--ceca-plum, #411024);
}

.ceca-pg a.ceca-pg__card:hover .ceca-pg__tip {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease 3s, transform 0.2s ease 3s, visibility 0s linear 3s;
}

.ceca-pg a.ceca-pg__card:hover .ceca-pg__title,
.ceca-pg a.ceca-pg__card:focus .ceca-pg__title {
	text-decoration: underline;
}

/* Guests: the mini-feed's stacked pairs — Members / value, Non-members /
   value. Members: the bare price, no labels. */
.ceca-pg .ceca-pg__price {
	display: flex;
	flex-direction: column;
	margin-top: 8px;
	font-size: 18px;
	line-height: 22px;
	color: #1a1a1a;
}

.ceca-pg .ceca-pg__price strong {
	font-size: 18px;
}

.ceca-pg .ceca-pg__price-label {
	margin-top: 8px;
}

.ceca-pg .ceca-pg__price .woocommerce-Price-amount {
	color: inherit;
	font-weight: 700;
}

.ceca-pg__empty {
	padding: 24px;
	background: #f7f7f7;
	border: 1px dashed #c4c4c4;
	border-radius: 8px;
	font-size: 14px;
	color: #666;
}
