/**
 * DBJ Pigeon Shop - for-sale pigeon cards, archive and single pigeon page.
 *
 * Palette taken from the site's Elementor kit:
 * navy #4054B2, dark navy #16163F, green #23A455, text #16181A.
 */

:root {
	--dbj-navy: #4054b2;
	--dbj-navy-dark: #16163f;
	--dbj-green: #23a455;
	--dbj-green-dark: #1c8a48;
	--dbj-text: #16181a;
	--dbj-grey: #7a7a7a;
	--dbj-border: #e4e6ee;
	--dbj-surface: #ffffff;
	--dbj-radius: 12px;
}

.dbj-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* The archive ends with the last row of cards, so the room under them is here. */
.dbj-shop {
	padding-bottom: 64px;
}

/* ---------------------------------------------------------------- Hero --- */

.dbj-shop-hero {
	padding: 56px 0 52px;
	margin-bottom: 36px;
	background: var(--dbj-navy);
	color: #fff;
}

.dbj-shop-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
}

.dbj-shop-hero__intro {
	max-width: 780px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}

.dbj-shop-hero__intro p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------- Buttons --- */

.dbj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/*
 * The variants repeat the base class (`.dbj-btn.dbj-btn--buy`). A theme that
 * colours every link - an Elementor kit does, with `.elementor-kit-123 a` -
 * outranks a single class, and on a navy button that paints the label in the
 * theme's colour, so the text disappears. The repeated class outranks it without
 * !important, and it works whether the button is a link or a span.
 */
.dbj-btn.dbj-btn--buy {
	background: var(--dbj-green);
	color: #fff;
}

.dbj-btn.dbj-btn--buy:hover {
	background: var(--dbj-green-dark);
	color: #fff;
}

.dbj-btn.dbj-btn--ghost {
	background: transparent;
	border-color: var(--dbj-navy);
	color: var(--dbj-navy);
}

.dbj-btn.dbj-btn--ghost:hover {
	background: var(--dbj-navy);
	color: #fff;
}

.dbj-btn.dbj-btn--navy {
	background: var(--dbj-navy);
	color: #fff;
}

.dbj-btn.dbj-btn--navy:hover {
	background: var(--dbj-navy-dark);
	color: #fff;
}

.dbj-btn.dbj-btn--disabled {
	background: #eef0f6;
	color: var(--dbj-grey);
	cursor: not-allowed;
}

/* ------------------------------------------------------------- Filters --- */

.dbj-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 16px;
	padding: 18px 20px;
	margin-bottom: 26px;
	background: var(--dbj-surface);
	border: 1px solid var(--dbj-border);
	border-radius: var(--dbj-radius);
}

.dbj-filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 165px;
}

.dbj-filters__label {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dbj-grey);
}

.dbj-filters select {
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--dbj-border);
	border-radius: 8px;
	color: var(--dbj-text);
	font-size: 0.95rem;
}

.dbj-filters__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.dbj-filters__link {
	font-size: 0.9rem;
	color: var(--dbj-grey);
	text-decoration: underline;
}

/* -------------------------------------------------------- Archive meta --- */

.dbj-shop__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}

.dbj-shop__meta .woocommerce-result-count {
	margin: 0;
	color: var(--dbj-grey);
}

/* -------------------------------------------------------------- The grid - */

.dbj-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dbj-shop ul.products::before,
.dbj-shop ul.products::after {
	display: none !important;
	content: none !important;
}

.dbj-shop ul.products li.product {
	width: 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
}

/* ------------------------------------------------------------ Card look -- */

.dbj-pigeon-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: var(--dbj-surface);
	border: 1px solid var(--dbj-border);
	border-radius: var(--dbj-radius);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dbj-pigeon-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(22, 22, 63, 0.12);
}

/*
 * The photo carries the card, so it fills the whole media area. Square keeps the
 * crop of the portrait shots reasonable whatever the column width is.
 */
.dbj-pigeon-card__media {
	position: relative;
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #eef0f6;
}

/*
 * WooCommerce's own grid rule, `.woocommerce ul.products li.product a img`, sets
 * `height: auto` with more weight than a single class, so the photo was sized by its
 * own proportions rather than by the square: a portrait hung from the top of the box
 * and a landscape left a grey band underneath. Filling the box and centring it is
 * what the two need, and cover is what keeps the square filled.
 */
.dbj-pigeon-card__media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	object-fit: cover;
	object-position: center;
}

.dbj-pigeon-card__sex {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	background: var(--dbj-navy);
	border-radius: 999px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dbj-pigeon-card__sold {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(22, 22, 63, 0.55);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.dbj-pigeon-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px;
}

.dbj-pigeon-card__name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.dbj-pigeon-card__name a {
	color: var(--dbj-navy);
	text-decoration: none;
}

.dbj-pigeon-card__name a:hover {
	color: var(--dbj-green);
}

.dbj-pigeon-card__ring {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	color: var(--dbj-grey);
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.dbj-pigeon-card__pin {
	width: 8px;
	height: 8px;
	background: var(--dbj-green);
	border-radius: 50%;
}

.dbj-pigeon-card__tagline {
	margin: 0;
	color: var(--dbj-text);
	font-size: 0.95rem;
	font-style: italic;
}

.dbj-pigeon-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
}

.dbj-pigeon-card__actions .dbj-btn {
	width: 100%;
}

.dbj-pigeon-card__buyrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dbj-pigeon-card__price {
	color: var(--dbj-green);
	font-size: 1.1rem;
	font-weight: 700;
}

.dbj-pigeon-card__price del {
	color: var(--dbj-grey);
	font-size: 0.88rem;
	font-weight: 400;
}

.dbj-pigeon-card__price ins {
	text-decoration: none;
}

.dbj-pigeon-card__video {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dbj-grey);
	font-size: 0.8rem;
	font-weight: 600;
}

/* --------------------------------------------------------- Single pigeon - */

/*
 * Room around the whole product. The card that used to frame the gallery and the
 * summary kept its padding but lost its border and background, so the space stays
 * without the box drawn around the pigeon.
 */
.dbj-pigeon {
	padding: 26px 34px 40px;
}

/*
 * The gallery and the summary sit straight on the page. The card that used to
 * frame them read as a box drawn around the pigeon once the photo filled its half
 * of it, so the border, the background and the padding are gone.
 */
.dbj-pigeon__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 44px;
	margin-bottom: 34px;
}

/*
 * The gallery is the plugin's own rather than WooCommerce's. That keeps the photos
 * and the video in one strip, so the video is a thumbnail beside the photo instead
 * of a block of its own further down the page - and it avoids WooCommerce sizing
 * the media box at 48% of the column, which left a wide gap before the price.
 */
.dbj-pigeon__gallery {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.dbj-pigeon__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 0 0 78px;
}

.dbj-pigeon__thumb {
	position: relative;
	display: block;
	padding: 0;
	background: #fff;
	border: 1px solid var(--dbj-border);
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	line-height: 0;
}

.dbj-pigeon__thumb img,
.dbj-pigeon__thumb video {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 7px;
	pointer-events: none;
}

/* The fallback tile for a pedigree that WordPress cannot render a page of. */
.dbj-pigeon__thumb .dbj-pigeon__doc-badge {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	background-color: #eef1f8;
	background-size: 26px 26px;
	border: 0;
	border-radius: 0;
}

.dbj-pigeon__thumb:hover,
.dbj-pigeon__thumb:focus-visible {
	border-color: var(--dbj-navy);
}

.dbj-pigeon__thumb.is-active {
	border-color: var(--dbj-navy);
	box-shadow: 0 0 0 1px var(--dbj-navy);
}

/* The play badge is what marks the video among the photos. */
.dbj-pigeon__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(22, 22, 63, 0.3);
}

.dbj-pigeon__play::before {
	content: "";
	margin-left: 3px;
	border-style: solid;
	border-width: 8px 0 8px 13px;
	border-color: transparent transparent transparent #fff;
}

/*
 * The stage holds one ratio for every item, taken from the first photo in the
 * template, so moving between a photo, a clip and the pedigree never changes its
 * size. Each slide fills that box and the media is fitted inside it, which keeps a
 * portrait clip from stretching to the width of the page.
 */
.dbj-pigeon__stage {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #f4f5f9;
	border-radius: var(--dbj-radius);
}

.dbj-pigeon__slide {
	position: absolute;
	inset: 0;
	margin: 0;
}

.dbj-pigeon__slide[hidden] {
	display: none;
}

.dbj-pigeon__slide img,
.dbj-pigeon__slide video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.dbj-pigeon__slide--video video {
	background: #000;
}

/* A page of the pedigree, with the file behind it. */
.dbj-pigeon__doc {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 16px;
	text-decoration: none;
}

.dbj-pigeon__slide--document img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100% - 52px);
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(22, 22, 63, 0.14);
}

.dbj-pigeon__doc-label {
	margin-top: 14px;
	padding: 9px 18px;
	background: var(--dbj-navy);
	border-radius: 999px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
}

.dbj-pigeon__doc-label:hover,
.dbj-pigeon__doc:focus-visible .dbj-pigeon__doc-label {
	background: var(--dbj-navy-dark);
}

.dbj-pigeon__doc-badge {
	display: block;
	width: 68px;
	height: 84px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234054b2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 34px 34px;
	border: 1px solid var(--dbj-border);
	border-radius: 6px;
}

/* The photo opens full size in a tab of its own; the gallery keeps its size. */
.dbj-pigeon__zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: rgba(255, 255, 255, 0.94);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234054b2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	border: 1px solid var(--dbj-border);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(22, 22, 63, 0.14);
	text-decoration: none;
}

.dbj-pigeon__zoom:hover,
.dbj-pigeon__zoom:focus {
	background-color: #fff;
	border-color: var(--dbj-navy);
}

.dbj-pigeon__title {
	margin: 0 0 10px;
	color: var(--dbj-navy);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.15;
}

.dbj-pigeon__ring {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 12px;
	background: #eef1fb;
	border-radius: 999px;
	color: var(--dbj-navy);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.dbj-pigeon__tagline {
	margin: 0 0 18px;
	color: var(--dbj-text);
	font-size: 1.05rem;
	font-style: italic;
}

.dbj-pigeon__price {
	margin: 0 0 20px;
	color: var(--dbj-green);
	font-size: 1.9rem;
	font-weight: 700;
}

.dbj-pigeon__price del {
	color: var(--dbj-grey);
	font-size: 1.05rem;
	font-weight: 400;
}

.dbj-pigeon__intro {
	margin-bottom: 20px;
	color: var(--dbj-text);
	line-height: 1.7;
}

/* The description reads as normal text, above the transport note. */

.dbj-pigeon__description {
	margin: 0 0 22px;
	color: var(--dbj-text);
	font-size: 0.95rem;
	line-height: 1.7;
}

.dbj-pigeon__description > :first-child {
	margin-top: 0;
}

.dbj-pigeon__description > :last-child {
	margin-bottom: 0;
}

.dbj-pigeon form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px !important;
}

/*
 * WooCommerce leaves an empty quantity field in the form. It is zero wide, but
 * the flex gap around it indented the buy button from the title and the price.
 * A pigeon is one of a kind, so there is never a quantity to choose.
 */
.dbj-pigeon form.cart .quantity {
	display: none;
}

/*
 * A clearfix pseudo-element on the form becomes an empty flex item, so the gap
 * still pushed the buy button away from the left edge - the same thing the
 * product list needs.
 */
.dbj-pigeon form.cart::before,
.dbj-pigeon form.cart::after {
	display: none !important;
	content: none !important;
}

/*
 * Matched through the cart form as well, because WooCommerce's own
 * `.woocommerce ... button.button.alt` outranks a two-class selector and would
 * leave the button in the theme's colour.
 */
.dbj-pigeon form.cart .single_add_to_cart_button.button {
	padding: 14px 26px;
	background: var(--dbj-green);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.dbj-pigeon form.cart .single_add_to_cart_button.button:hover {
	background: var(--dbj-green-dark);
	color: #fff;
}

.dbj-pigeon form.cart .single_add_to_cart_button.button.disabled,
.dbj-pigeon form.cart .single_add_to_cart_button.button[disabled] {
	background: #eef0f6;
	color: var(--dbj-grey);
}

.dbj-pigeon__specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
	margin: 0 0 22px;
	padding: 20px 0 0;
	border-top: 1px solid var(--dbj-border);
}

.dbj-pigeon__specs dt {
	margin: 0 0 3px;
	color: var(--dbj-grey);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dbj-pigeon__specs dd {
	margin: 0;
	color: var(--dbj-text);
	font-size: 0.98rem;
}

.dbj-pigeon__docs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

/* ---------------------------------------------------------- Accordions --- */

.dbj-pigeon__accordion {
	margin: 0;
	background: var(--dbj-surface);
	border: 1px solid var(--dbj-border);
	border-radius: var(--dbj-radius);
}

.dbj-pigeon__accordion-summary {
	position: relative;
	padding: 14px 42px 14px 16px;
	color: var(--dbj-navy-dark);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.dbj-pigeon__accordion-summary::-webkit-details-marker {
	display: none;
}

.dbj-pigeon__accordion-summary::after {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	margin-top: -7px;
	border-right: 2px solid var(--dbj-navy);
	border-bottom: 2px solid var(--dbj-navy);
	content: "";
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.dbj-pigeon__accordion[open] .dbj-pigeon__accordion-summary::after {
	margin-top: -2px;
	transform: rotate(-135deg);
}

.dbj-pigeon__accordion-panel {
	padding: 0 16px 16px;
	color: var(--dbj-text);
	font-size: 0.92rem;
	line-height: 1.6;
}

.dbj-pigeon__accordion-panel p {
	margin: 0;
}

.dbj-pigeon__section {
	padding: 28px;
	margin-bottom: 24px;
	background: var(--dbj-surface);
	border: 1px solid var(--dbj-border);
	border-radius: var(--dbj-radius);
}

.dbj-pigeon__section h2 {
	margin: 0 0 18px;
	color: var(--dbj-navy);
	font-size: 1.3rem;
}

.dbj-pigeon__results table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.dbj-pigeon__results th,
.dbj-pigeon__results td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid var(--dbj-border);
}

.dbj-pigeon__results thead th {
	background: #f6f7fb;
	color: var(--dbj-grey);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* -------------------------------------------------------------- Notices --- */

/*
 * WooCommerce prints its own notices for the cart, the account and the checkout.
 * They wear the shop's colours here rather than WooCommerce's, and they do it on
 * every page the shop appears on instead of only the page whose stylesheet
 * happens to be loaded - the product page and the cart show them too.
 */
main.site-main .woocommerce-error,
main.site-main .woocommerce-message,
main.site-main .woocommerce-info {
	padding: 14px 16px;
	background: var(--dbj-surface);
	border: 1px solid var(--dbj-border);
	border-radius: 10px;
	box-shadow: none;
	line-height: 1.6;
	list-style: none;
}

main.site-main .woocommerce-error {
	background: #fdf7f7;
	border-color: #eed9d9;
	color: #8f2f2f;
}

main.site-main .woocommerce-message {
	background: #f5faf6;
	border-color: #d8e9dd;
	color: #1f6b3a;
}

main.site-main .woocommerce-info {
	background: #f7f8fd;
	border-color: #e0e4f2;
	color: var(--dbj-navy);
}

/* WooCommerce prints an icon from its own icon font in front of a notice; that
   font is not loaded here, so the glyph shows up as a stray character. */
main.site-main .woocommerce-error::before,
main.site-main .woocommerce-message::before,
main.site-main .woocommerce-info::before {
	content: none;
	display: none;
}

/* A notice does not need a shouty button: a quiet outline in the same colour. */
main.site-main .woocommerce-error .button,
main.site-main .woocommerce-message .button,
main.site-main .woocommerce-info .button {
	float: right;
	margin: 0 0 0 12px;
	padding: 10px 16px;
	background: #fff;
	border: 1px solid currentColor;
	border-radius: 8px;
	color: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

main.site-main .woocommerce-error .button:hover,
main.site-main .woocommerce-error .button:focus,
main.site-main .woocommerce-message .button:hover,
main.site-main .woocommerce-message .button:focus,
main.site-main .woocommerce-info .button:hover,
main.site-main .woocommerce-info .button:focus {
	background: #fff;
	color: inherit;
	box-shadow: 0 2px 8px rgba(22, 22, 63, 0.1);
}

/*
 * "Ongedaan maken?" sits inside the sentence rather than beside it, so it takes the
 * notice's own colour instead of the theme's link colour.
 */
main.site-main .woocommerce-error a:not(.button),
main.site-main .woocommerce-message a:not(.button),
main.site-main .woocommerce-info a:not(.button) {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

@media (max-width: 640px) {
	main.site-main .woocommerce-error .button,
	main.site-main .woocommerce-message .button,
	main.site-main .woocommerce-info .button {
		float: none;
		display: inline-block;
		margin: 10px 0 0;
	}
}

/* ---------------------------------------------------------- Responsive --- */

@media (max-width: 900px) {
	.dbj-pigeon {
		padding: 22px 24px 34px;
	}

	.dbj-pigeon__top {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

@media (max-width: 600px) {
	.dbj-shop-hero {
		padding: 40px 0 36px;
	}

	.dbj-filters__actions {
		margin-left: 0;
	}

	.dbj-pigeon {
		padding: 18px 18px 30px;
	}

	.dbj-pigeon__specs {
		grid-template-columns: 1fr;
	}

	/* The thumbnails move under the stage, which is where the width is. */
	.dbj-pigeon__gallery {
		flex-direction: column-reverse;
		/* In a column the stage has to be told to take the width, or it falls
		   back to the width of its slides, which are all positioned. */
		align-items: stretch;
	}

	.dbj-pigeon__thumbs {
		flex-direction: row;
		flex: 0 0 auto;
		width: 100%;
		overflow-x: auto;
	}

	.dbj-pigeon__thumb {
		flex: 0 0 64px;
	}
}

/* -------------------------------------------------- Content width cap ---- */

/*
 * Hello Elementor caps .site-main at 600px on pages it does not render itself.
 * The for-sale archive and the single pigeon page need the full grid width, so
 * the cap is lifted for those pages only.
 */
body.woocommerce-shop:not([class*="elementor-page-"]) main.site-main,
body.post-type-archive-product:not([class*="elementor-page-"]) main.site-main,
body.single-product:not([class*="elementor-page-"]) main.site-main,
body.tax-product_cat:not([class*="elementor-page-"]) main.site-main {
	max-width: 1200px;
}

/* Safety net for browsers that support :has(). */
main.site-main:has(.dbj-shop),
main.site-main:has(.dbj-pigeon) {
	max-width: 1200px;
}

/* ------------------------------------------ Elementor single pigeon ------ */

/*
 * The single pigeon page is built with Elementor Pro's Theme Builder, so the
 * WooCommerce template in this theme is not used there. These rules bring that
 * page in line with the for-sale archive.
 */
.elementor-location-single .elementor-widget-woocommerce-product-title .product_title {
	color: var(--dbj-navy);
	font-weight: 700;
	line-height: 1.15;
}

.elementor-location-single .elementor-widget-woocommerce-product-price .price {
	color: var(--dbj-green);
	font-size: 1.8rem;
	font-weight: 700;
}

.elementor-location-single .elementor-widget-woocommerce-product-price .price del {
	color: var(--dbj-grey);
	font-size: 1.05rem;
	font-weight: 400;
}

.elementor-location-single .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button {
	padding: 14px 26px;
	background: var(--dbj-green);
	border: 0;
	border-radius: 8px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.elementor-location-single .elementor-widget-woocommerce-product-add-to-cart .single_add_to_cart_button:hover {
	background: var(--dbj-green-dark);
	color: #fff;
}

/* A pigeon is unique, so the quantity is always one. */
.elementor-location-single .elementor-widget-woocommerce-product-add-to-cart .quantity {
	display: none;
}

.elementor-location-single .woocommerce-product-gallery img {
	border-radius: 8px;
}

.elementor-location-single .elementor-widget-woocommerce-product-content {
	color: var(--dbj-text);
	line-height: 1.75;
}

/* ------------------------------------------------------- Selection drawer --- */

.dbj-drawer {
	position: fixed;
	inset: 0;
	z-index: 9998;
	visibility: hidden;
}

.dbj-drawer.is-open {
	visibility: visible;
}

.dbj-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 22, 63, 0.45);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.dbj-drawer.is-open .dbj-drawer__backdrop {
	opacity: 1;
}

.dbj-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	height: 100%;
	background: #fff;
	box-shadow: -12px 0 40px rgba(22, 22, 63, 0.18);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.dbj-drawer.is-open .dbj-drawer__panel {
	transform: translateX(0);
}

.dbj-drawer__inner {
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	padding: 24px;
	overflow-y: auto;
}

.dbj-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dbj-drawer__heading {
	margin: 0;
	color: var(--dbj-navy);
	font-size: 1.15rem;
	font-weight: 700;
}

.dbj-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: #f4f5fa;
	border: 0;
	border-radius: 50%;
	color: var(--dbj-text);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.dbj-drawer__close:hover,
.dbj-drawer__close:focus {
	background: #e8ebf6;
	color: var(--dbj-navy);
}

.dbj-drawer__empty {
	margin: 0;
	color: var(--dbj-grey);
	line-height: 1.7;
}

.dbj-drawer__list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dbj-drawer__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--dbj-border);
}

.dbj-drawer__thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	background: #eef0f6;
}

.dbj-drawer__info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.dbj-drawer__name {
	color: var(--dbj-text);
	font-size: 0.98rem;
}

.dbj-drawer__ring,
.dbj-drawer__price {
	color: var(--dbj-grey);
	font-size: 0.84rem;
}

.dbj-drawer__remove {
	align-self: flex-start;
	margin-top: 2px;
	color: var(--dbj-grey);
	font-size: 0.82rem;
	text-decoration: underline;
}

.dbj-drawer__remove:hover,
.dbj-drawer__remove:focus {
	color: #d63638;
}

.dbj-drawer__total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--dbj-border);
	color: var(--dbj-navy);
	font-size: 1.05rem;
}

.dbj-drawer__total .woocommerce-Price-amount {
	color: var(--dbj-green);
}

.dbj-drawer__cta {
	width: 100%;
}

.dbj-drawer__fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9997;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	background: var(--dbj-navy);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(22, 22, 63, 0.24);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.dbj-drawer__fab:hover,
.dbj-drawer__fab:focus {
	background: var(--dbj-navy-dark);
	color: #fff;
}

.dbj-drawer__fab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: var(--dbj-green);
	border-radius: 999px;
	font-size: 0.78rem;
}

.dbj-drawer__fab-count.is-empty {
	display: none;
}

/* The state a buy button wears while the request runs, and just after it. */
.dbj-btn.is-adding {
	opacity: 0.7;
	pointer-events: none;
}

.dbj-btn.is-added {
	box-shadow: 0 0 0 3px rgba(35, 164, 85, 0.35);
}

body.dbj-drawer-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.dbj-drawer__panel {
		width: 100%;
	}

	.dbj-drawer__inner {
		padding: 20px 16px;
	}

	.dbj-drawer__fab {
		right: 14px;
		bottom: 14px;
	}
}