/*
 * The confectionery catalogue block (inc/catalog.php).
 *
 * Replaces the Prodexpo banner, which was a full-width heading over a 600x300
 * JPEG and carried no styling of its own. This one is a two-part composition:
 * the cover on one side, the reason to open it on the other.
 *
 * Colours are the site's own — #d1ab66 gold, #2a1c0f cocoa — matching the hero
 * and the intro block rather than introducing a third palette.
 */

.rb-catalog {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
	background: linear-gradient(180deg, #fbf7f1 0%, #f6efe4 100%);
}

/*
 * Intrinsic widths rather than a percentage split, for the same reason the
 * discounts row needed it: the cover has a fixed natural size and a percentage
 * column either upscales it or strands it against the far edge.
 */
.rb-catalog__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3.25rem);
	max-width: min(64rem, 100%);
	margin-inline: auto;
}

.rb-catalog__cover {
	flex: 0 0 auto;
	display: block;
	width: min(20rem, 100%);
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1.25rem 2.5rem rgba(42, 28, 15, 0.18);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rb-catalog__cover:hover,
.rb-catalog__cover:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 1.75rem 3rem rgba(42, 28, 15, 0.24);
}

.rb-catalog__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.rb-catalog__body {
	flex: 1 1 22rem;
	min-width: 0;
	max-width: 34rem;
	text-align: start;
}

.rb-catalog__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #a9803a;
}

.rb-catalog__title {
	margin: 0 0 clamp(0.6rem, 2vw, 1rem);
	font-size: clamp(1.3rem, 3vw, 1.85rem);
	line-height: 1.45;
	color: #2a1c0f;
}

.rb-catalog p {
	margin: 0 0 1rem;
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	line-height: 2;
	color: rgba(42, 28, 15, 0.82);
}

/*
 * list-style:none with a drawn marker, not disc: the gold rule is the same
 * device the category guide uses, and a default bullet in an RTL column sits on
 * the wrong side in half the languages GTranslate offers.
 */
.rb-catalog__facts {
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.rb-catalog__facts li {
	position: relative;
	margin-block-end: 0.65rem;
	padding-inline-start: 1.35rem;
	font-size: clamp(0.92rem, 1.15vw, 1rem);
	line-height: 1.9;
	color: rgba(42, 28, 15, 0.82);
}

.rb-catalog__facts li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 0.75em;
	width: 0.5rem;
	height: 2px;
	background: #d1ab66;
}

.rb-catalog__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
}

/*
 * Not reusing .rb-btn: every rule for it in hero.css is scoped under .rb-hero,
 * so the class alone carries no styling outside the hero.
 */
.rb-catalog__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.9rem;
	padding: 0.6rem 1.4rem;
	border-radius: 2rem;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rb-catalog__btn--primary {
	background: #d1ab66;
	color: #2a1c0f;
	border: 1px solid #d1ab66;
}

.rb-catalog__btn--primary:hover,
.rb-catalog__btn--primary:focus-visible {
	background: #bd9450;
	border-color: #bd9450;
	color: #2a1c0f;
}

.rb-catalog__btn--ghost {
	background: transparent;
	color: #7d5c25;
	border: 1px solid rgba(169, 128, 58, 0.5);
}

.rb-catalog__btn--ghost:hover,
.rb-catalog__btn--ghost:focus-visible {
	background: rgba(209, 171, 102, 0.14);
	border-color: #d1ab66;
	color: #5f4419;
}

.rb-catalog__btn:focus-visible {
	outline: 2px solid #2a1c0f;
	outline-offset: 2px;
}

/* The weight of the download, stated before it is started rather than after. */
.rb-catalog__meta {
	font-size: 0.8rem;
	font-weight: 400;
	opacity: 0.75;
}

@media (max-width: 767px) {
	.rb-catalog__inner {
		flex-direction: column;
	}

	.rb-catalog__cover {
		width: min(15rem, 70%);
	}

	.rb-catalog__body {
		flex-basis: auto;
	}
}
