/* Adriatic Product Access — storefront.
 * Brand: navy #242c3f, pale tile #f2f1ef, red #c0392b; headings Oswald, body Avenir/Roboto.
 * The red Out of Stock ribbon owns the TOP-LEFT of a card, so promotion badges
 * sit TOP-RIGHT as pills and never overlap it. */

/* ---------- Badges ---------- */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap { position: relative; }

.adr-pa-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 5px;
	pointer-events: none;
	max-width: calc( 100% - 70px ); /* keep clear of the OOS ribbon */
}
.adr-pa-badge {
	display: inline-block;
	background: var( --adr-pa-bg, #c0392b );
	color: var( --adr-pa-fg, #fff );
	font-family: "Oswald", "Roboto Condensed", "Arial Narrow", sans-serif;
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .08em;
	line-height: 1.25;
	text-transform: uppercase;
	padding: 5px 11px 4px;
	border-radius: 999px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, .16 );
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.adr-pa-badge--trade {
	background: #fff;
	color: #242c3f;
	border: 1px solid #242c3f;
	box-shadow: none;
}
.adr-pa-badges--single {
	position: static;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	max-width: none;
	margin: 0 0 10px;
}
.adr-pa-badges--single .adr-pa-badge { font-size: .72rem; }

@media ( max-width: 600px ) {
	.adr-pa-badges { top: 6px; right: 6px; gap: 3px; max-width: calc( 100% - 56px ); }
	.adr-pa-badge { font-size: .58rem; padding: 4px 8px 3px; }
}

/* ---------- Trade-only gate ---------- */
.adr-pa-gate-wrap { padding: 56px 16px 72px; background: #f2f1ef; }
.adr-pa-gate {
	max-width: 620px;
	margin: 0 auto;
	padding: 40px 36px;
	background: #fff;
	border-top: 4px solid #242c3f;
	text-align: center;
	color: #242c3f;
	box-shadow: 0 2px 14px rgba( 36, 44, 63, .07 );
}
.adr-pa-gate--inline { margin: 24px auto; }
.adr-pa-gate__eyebrow {
	display: inline-block;
	font-family: "Oswald", sans-serif;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #c0392b;
	margin-bottom: 8px;
}
.adr-pa-gate__title {
	font-family: "Oswald", "Roboto Condensed", sans-serif !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: .03em;
	font-size: clamp( 1.5rem, 3vw, 2rem ) !important;
	color: #242c3f !important;
	margin: 0 0 14px !important;
}
.adr-pa-gate__body,
.adr-pa-gate__note { font-family: "Avenir", "Roboto", sans-serif; font-size: 1rem; line-height: 1.6; margin: 0 0 12px; color: #3c4356; }
.adr-pa-gate__note { font-size: .9rem; color: #6b7080; }
.adr-pa-gate__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.adr-pa-btn {
	display: inline-block;
	padding: 12px 22px;
	font-family: "Oswald", sans-serif;
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid #242c3f;
	border-radius: 0;
	transition: background .15s ease, color .15s ease;
}
.adr-pa-btn--primary { background: #242c3f; color: #fff !important; }
.adr-pa-btn--primary:hover { background: #343e57; }
.adr-pa-btn--ghost { background: #fff; color: #242c3f !important; }
.adr-pa-btn--ghost:hover { background: #f2f1ef; }
.adr-pa-btn--link { border-color: transparent; color: #242c3f !important; text-decoration: underline !important; }
@media ( max-width: 600px ) {
	.adr-pa-gate { padding: 28px 18px; }
	.adr-pa-btn { width: 100%; text-align: center; }
}

/* ---------- Promo listings ---------- */
.adr-pa-promo-section { margin: 0 0 32px; }
.adr-pa-empty { text-align: center; color: #6b7080; padding: 32px 0; }
.adr-pa-note { padding: 8px 12px; background: #fcf9e8; border-left: 3px solid #dba617; }

/* ---------- Category strip (reuses the home Best Sellers .adr-hcarousel look;
 *            these fallbacks keep it usable without adriatic-site-tweaks) ---------- */
.adr-pa-strip {
	/* It prints inside the archive widget's flex toolbar row: take a full row. */
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 28px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e6e4e3;
}
.adr-pa-strip .adr-pa-strip__track > .woocommerce { display: block !important; }
.adr-pa-strip ul.products li.product {
	display: flex !important;
	flex-direction: column !important;
}
.adr-pa-strip ul.products li.product .astra-shop-thumbnail-wrap,
.adr-pa-strip ul.products li.product .astra-shop-summary-wrap { width: 100% !important; max-width: 100% !important; }
.adr-pa-strip__title.adr-section-title { text-align: left; margin: 0 0 14px !important; font-size: clamp( 1.2rem, 2vw, 1.6rem ) !important; }
.adr-pa-strip .adr-pa-strip__track { position: relative; }
.adr-pa-strip ul.products {
	display: flex !important;
	flex-wrap: nowrap !important;
	grid-template-columns: none !important;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	gap: 20px;
	margin: 0 !important;
	padding: 0 0 6px !important;
	scrollbar-width: none;
}
.adr-pa-strip ul.products::-webkit-scrollbar { display: none; }
.adr-pa-strip ul.products li.product {
	flex: 0 0 auto !important;
	width: 220px !important;
	max-width: 72vw;
	margin: 0 !important;
	scroll-snap-align: start;
}
.adr-pa-strip ul.products::before,
.adr-pa-strip ul.products::after { display: none !important; }
@media ( max-width: 600px ) {
	.adr-pa-strip ul.products { gap: 12px; }
	.adr-pa-strip ul.products li.product { width: calc( ( 100% - 12px ) / 2 ) !important; max-width: none; }
}
