/* ==========================================================================
   KK Offers — Premium Editorial Styles
   Mirrors the recipe template system for General & Wine Offers
   ========================================================================== */

:root {
	--kk-green: #89a343;
	--kk-green-light: #f4f7ec;
	--kk-green-dark: #6b8232;
	--kk-text: #2d2d2d;
	--kk-text-light: #6b6b6b;
	--kk-text-muted: #999;
	--kk-bg: #fafaf8;
	--kk-white: #ffffff;
	--kk-border: #e8e8e4;
	--kk-radius: 12px;
	--kk-radius-sm: 8px;
	--kk-radius-full: 100px;
	--kk-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	--kk-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.10);
	--kk-transition: 0.25s ease;
	--kk-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--kk-offer-accent: #c0392b;
	--kk-offer-accent-light: #fdf2f2;
	--kk-wine-accent: #722f37;
	--kk-wine-accent-light: #f9f0f1;
}

/* ==========================================================================
   Shared Layout
   ========================================================================== */

.kk-offer-archive,
.kk-offer-single {
	font-family: var(--kk-font);
	color: var(--kk-text);
	background: var(--kk-bg);
}

.kk-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.kk-offer-archive .kk-section,
.kk-offer-single .kk-section {
	padding: 28px 0 40px;
}

.kk-section--flush {
	padding: 0;
}

/* ==========================================================================
   Breadcrumbs (reuses recipe breadcrumb classes — .kk-breadcrumbs)
   ========================================================================== */

.kk-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	font-size: 13px;
	color: var(--kk-text-muted);
}

.kk-breadcrumbs__list li {
	display: inline-flex;
	align-items: center;
}

.kk-breadcrumbs__list li:not(:last-child)::after {
	content: '\203A';
	display: inline-block;
	margin: 0 8px;
	font-size: 16px;
	line-height: 1;
	color: var(--kk-text-muted);
	opacity: 0.5;
}

.kk-breadcrumbs__list a {
	color: var(--kk-text-light);
	text-decoration: none;
	transition: color var(--kk-transition);
}

.kk-breadcrumbs__list a:hover {
	color: var(--kk-green);
}

.kk-breadcrumbs__list li[aria-current="page"] {
	color: var(--kk-text);
	font-weight: 500;
	max-width: 300px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kk-offer-single .kk-breadcrumbs {
	background: var(--kk-white);
	border-bottom: 1px solid var(--kk-border);
	padding: 14px 0;
}

.kk-offer-archive .kk-breadcrumbs {
	background: transparent;
	border-bottom: none;
	padding: 0 0 10px;
}

/* Archive header — uses shared .kk-archive-head from kk-recipes.css */

/* Wine archive accent: swap green underline for wine colour on active tabs */
.kk-offer-archive.kk-offer-archive--wine .kk-archive-tab--active {
	border-bottom-color: var(--kk-wine-accent);
}

.kk-offer-archive.kk-offer-archive--wine .kk-archive-filter__btn:hover,
.kk-offer-archive.kk-offer-archive--wine .kk-archive-filter.open .kk-archive-filter__btn {
	border-color: var(--kk-wine-accent);
	background: var(--kk-wine-accent-light);
	color: var(--kk-wine-accent);
}

/* ==========================================================================
   Single Offer Hero
   ========================================================================== */

.kk-ohero {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--kk-bg);
}

.kk-ohero--placeholder {
	min-height: 200px;
	background: linear-gradient(135deg, var(--kk-bg), #e8e8e4);
}

.kk-ohero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kk-ohero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.kk-ohero__content {
	position: relative;
	z-index: 2;
	padding: 40px;
	max-width: 700px;
}

.kk-ohero__tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.kk-ohero__tag {
	display: inline-block;
	padding: 4px 14px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--kk-radius-full);
}

.kk-ohero__tag--badge {
	background: var(--kk-offer-accent);
	color: #fff;
}

.kk-ohero__tag--category {
	background: rgba(255,255,255,0.2);
	color: #fff;
	backdrop-filter: blur(4px);
}

.kk-ohero__title {
	font-family: var(--kk-font);
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	color: #fff;
	margin: 0 0 8px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.kk-ohero__brand {
	font-size: 16px;
	color: rgba(255,255,255,0.8);
	margin: 0;
}

.kk-ohero__sold-out-banner {
	display: inline-block;
	margin-top: 16px;
	padding: 8px 24px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	background: rgba(0,0,0,0.6);
	border-radius: var(--kk-radius-sm);
}

.kk-ohero--sold-out .kk-ohero__img {
	filter: grayscale(40%);
}

@media (max-width: 768px) {
	.kk-ohero {
		min-height: 240px;
	}
	.kk-ohero__content {
		padding: 24px;
	}
}

/* ==========================================================================
   Product Layout (Gallery + Details)
   ========================================================================== */

.kk-section--product {
	padding: 32px 0 48px;
	background: var(--kk-white);
}

.kk-product-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: start;
}

@media (max-width: 900px) {
	.kk-product-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* ==========================================================================
   Product Gallery
   ========================================================================== */

.kk-pgallery {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--kk-thumbs-gap, 8px);
}

/* Vertical layouts: thumbs beside main image */
.kk-pgallery--vertical_left {
	flex-direction: row-reverse;
}

.kk-pgallery--vertical_right {
	flex-direction: row;
}

.kk-pgallery--vertical_left .kk-pgallery__thumbs,
.kk-pgallery--vertical_right .kk-pgallery__thumbs {
	flex-direction: column;
	width: 80px;
	flex-shrink: 0;
}

.kk-pgallery--vertical_left .kk-pgallery__thumbs-track,
.kk-pgallery--vertical_right .kk-pgallery__thumbs-track {
	flex-direction: column;
}

/* Horizontal top: thumbs above main image */
.kk-pgallery--horizontal_top {
	flex-direction: column-reverse;
}

/* Main image container */
.kk-pgallery__main {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	background: var(--kk-bg);
	border-radius: var(--kk-radius);
	overflow: hidden;
	border: 1px solid var(--kk-border);
}

.kk-pgallery__main--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--kk-text-muted);
	opacity: 0.3;
}

.kk-pgallery__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 24px;
	cursor: crosshair;
	transition: transform 0.3s ease;
}

.kk-pgallery__img.kk-zoomed {
	transform: scale(2);
	cursor: zoom-out;
}

/* Navigation arrows */
.kk-pgallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 300;
	color: var(--kk-text);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--kk-border);
	border-radius: 50%;
	cursor: pointer;
	transition: all var(--kk-transition);
	backdrop-filter: blur(4px);
}

.kk-pgallery__nav:hover {
	background: var(--kk-white);
	border-color: var(--kk-green);
	color: var(--kk-green);
	box-shadow: var(--kk-shadow);
}

.kk-pgallery__nav--prev { left: 12px; }
.kk-pgallery__nav--next { right: 12px; }

/* Badge & Sold Out overlay */
.kk-pgallery__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 5px 14px;
	font-family: var(--kk-font);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--kk-offer-accent);
	border-radius: var(--kk-radius-full);
}

.kk-pgallery__sold-out {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	z-index: 4;
	padding: 10px 32px;
	font-family: var(--kk-font);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	background: rgba(0, 0, 0, 0.75);
	border-radius: var(--kk-radius-sm);
}

/* Thumbnails */
.kk-pgallery__thumbs {
	display: flex;
	overflow: hidden;
}

.kk-pgallery__thumbs-track {
	display: flex;
	gap: var(--kk-thumbs-gap, 8px);
}

.kk-pgallery__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	padding: 0;
	border: 2px solid var(--kk-border);
	border-radius: var(--kk-thumbs-radius, 6px);
	overflow: hidden;
	cursor: pointer;
	background: var(--kk-bg);
	transition: border-color var(--kk-transition), box-shadow var(--kk-transition);
}

.kk-pgallery__thumb:hover {
	border-color: var(--kk-green);
}

.kk-pgallery__thumb--active {
	border-color: var(--kk-green);
	box-shadow: 0 0 0 1px var(--kk-green);
}

.kk-pgallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Vertical thumbnail sizing */
.kk-pgallery--vertical_left .kk-pgallery__thumb,
.kk-pgallery--vertical_right .kk-pgallery__thumb {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}

/* ==========================================================================
   Product Details (right column)
   ========================================================================== */

.kk-pdetails {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kk-pdetails__cats {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.kk-pdetails__cat {
	display: inline-block;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--kk-green-dark);
	background: var(--kk-green-light);
	border-radius: var(--kk-radius-full);
}

.kk-pdetails__title {
	font-family: var(--kk-font);
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	color: var(--kk-text);
	margin: 0;
	letter-spacing: -0.02em;
}

.kk-pdetails__brand {
	font-family: var(--kk-font);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--kk-green);
	margin: 0;
}

.kk-pdetails__size {
	font-size: 14px;
	color: var(--kk-text-muted);
}

.kk-pdetails__sold-out-badge {
	display: inline-block;
	padding: 6px 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #fff;
	background: var(--kk-offer-accent);
	border-radius: var(--kk-radius-full);
	align-self: flex-start;
}

/* Inline variation pills */
.kk-pdetails__variations-inline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 4px;
}

.kk-pdetails__var-pill {
	display: inline-block;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 500;
	color: var(--kk-text);
	background: var(--kk-bg);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius-full);
}

/* Pricing Block */
.kk-pdetails__pricing-block {
	padding: 20px 0;
	border-top: 2px solid var(--kk-green);
	margin-top: 4px;
}

.kk-pdetails__offer-text {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: var(--kk-text);
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}

.kk-pdetails__price {
	display: block;
	font-size: 38px;
	font-weight: 800;
	color: var(--kk-text);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.kk-pdetails__rrp-line {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
}

.kk-pdetails__rrp {
	font-size: 14px;
	font-weight: 400;
	color: var(--kk-text-muted);
	text-decoration: line-through;
}

.kk-pdetails__savings {
	font-size: 13px;
	font-weight: 600;
	color: var(--kk-green);
	background: var(--kk-green-light);
	padding: 3px 10px;
	border-radius: var(--kk-radius-full);
}

/* Info Grid (replaces separate info bar) */
.kk-pdetails__info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--kk-border);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius-sm);
	overflow: hidden;
	margin-top: 4px;
}

.kk-pdetails__info-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	background: var(--kk-white);
}

.kk-pdetails__info-label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--kk-text-muted);
}

.kk-pdetails__info-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--kk-text);
}

.kk-pdetails__desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--kk-text-light);
	margin: 0;
}

/* Meta table */
.kk-pdetails__meta {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.kk-pdetails__meta tr {
	border-bottom: 1px solid var(--kk-border);
}

.kk-pdetails__meta tr:last-child {
	border-bottom: none;
}

.kk-pdetails__meta th {
	text-align: left;
	padding: 10px 16px 10px 0;
	font-weight: 500;
	color: var(--kk-text-muted);
	width: 120px;
	white-space: nowrap;
}

.kk-pdetails__meta td {
	padding: 10px 0;
	font-weight: 500;
	color: var(--kk-text);
}

/* Share button */
.kk-pdetails__actions {
	padding-top: 16px;
	border-top: 1px solid var(--kk-border);
}

.kk-pdetails__share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-family: var(--kk-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--kk-text-light);
	background: var(--kk-white);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius-sm);
	cursor: pointer;
	transition: all var(--kk-transition);
}

.kk-pdetails__share-btn:hover {
	color: var(--kk-green);
	border-color: var(--kk-green);
	background: var(--kk-green-light);
}

.kk-pdetails__actions .kk-actions__share {
	position: relative;
}

/* Lightbox overlay */
.kk-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.kk-lightbox--open {
	opacity: 1;
	visibility: visible;
}

.kk-lightbox__img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--kk-radius-sm);
}

.kk-lightbox__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.kk-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.kk-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s;
}

.kk-lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.kk-lightbox__nav--prev { left: 24px; }
.kk-lightbox__nav--next { right: 24px; }

/* ==========================================================================
   Share Popup (same as recipes)
   ========================================================================== */

.kk-offer-single .kk-share-popup {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 100;
	min-width: 280px;
	background: var(--kk-white);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	box-shadow: var(--kk-shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: all 0.2s ease;
}

.kk-offer-single .kk-share-popup--open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.kk-offer-single .kk-share-popup__header {
	padding: 14px 16px 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--kk-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid var(--kk-border);
}

.kk-offer-single .kk-share-popup__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	padding: 12px;
}

.kk-offer-single .kk-share-popup__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px;
	border-radius: var(--kk-radius-sm);
	text-decoration: none;
	color: var(--kk-text);
	background: none;
	border: none;
	cursor: pointer;
	transition: background var(--kk-transition);
	font-family: var(--kk-font);
}

.kk-offer-single .kk-share-popup__item:hover {
	background: var(--kk-green-light);
}

.kk-offer-single .kk-share-popup__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.kk-offer-single .kk-share-popup__icon--native { background: #eee; }
.kk-offer-single .kk-share-popup__icon--wa { background: #25D366; color: #fff; }
.kk-offer-single .kk-share-popup__icon--fb { background: #1877F2; color: #fff; }
.kk-offer-single .kk-share-popup__icon--tw { background: #000; color: #fff; }
.kk-offer-single .kk-share-popup__icon--pin { background: #E60023; color: #fff; }
.kk-offer-single .kk-share-popup__icon--tg { background: #0088cc; color: #fff; }
.kk-offer-single .kk-share-popup__icon--email { background: var(--kk-green-light); color: var(--kk-green); }
.kk-offer-single .kk-share-popup__icon--copy { background: #f0f0f0; color: var(--kk-text); }

.kk-offer-single .kk-share-popup__label {
	font-size: 11px;
	font-weight: 500;
	color: var(--kk-text-light);
}

/* ==========================================================================
   Info Bar (price, brand, size, kashrus, validity)
   ========================================================================== */

.kk-obar {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	background: var(--kk-white);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius);
	overflow: hidden;
}

.kk-obar--inline {
	display: flex;
	flex-wrap: wrap;
}

.kk-obar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	flex: 1 1 auto;
	min-width: 140px;
}

.kk-obar__item--offer .kk-obar__value,
.kk-obar__item--price .kk-obar__value {
	font-size: 18px;
	font-weight: 700;
	color: var(--kk-offer-accent);
}

.kk-obar__divider {
	width: 1px;
	align-self: stretch;
	background: var(--kk-border);
}

.kk-obar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--kk-green-light);
	color: var(--kk-green);
	flex-shrink: 0;
}

.kk-obar__icon svg {
	width: 18px;
	height: 18px;
}

.kk-obar__label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--kk-text-muted);
	display: block;
	margin-bottom: 2px;
}

.kk-obar__value {
	font-size: 14px;
	font-weight: 600;
	color: var(--kk-text);
	display: block;
}

.kk-obar__rrp {
	font-size: 13px;
	color: var(--kk-text-muted);
	text-decoration: line-through;
	margin-left: 6px;
}

.kk-obar__save {
	font-size: 12px;
	font-weight: 600;
	font-style: normal;
	color: var(--kk-green);
	margin-left: 6px;
}

@media (max-width: 768px) {
	.kk-obar__item {
		padding: 10px 14px;
		min-width: 120px;
	}
	.kk-obar__divider {
		display: none;
	}
	.kk-obar {
		border-radius: var(--kk-radius-sm);
	}
}

/* ==========================================================================
   Offer Details
   ========================================================================== */

.kk-odetails {
	max-width: 800px;
}

.kk-odetails__heading {
	font-family: var(--kk-font);
	font-size: 20px;
	font-weight: 600;
	color: var(--kk-text);
	margin: 0 0 16px;
}

.kk-odetails__description {
	margin-bottom: 32px;
}

.kk-odetails__description p {
	font-size: 15px;
	line-height: 1.7;
	color: var(--kk-text-light);
	margin: 0;
}

.kk-odetails__content {
	margin-bottom: 32px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--kk-text-light);
}

/* Variations Table */
.kk-odetails__variations {
	margin-bottom: 32px;
}

.kk-odetails__var-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.kk-odetails__var-table thead th {
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--kk-text-muted);
	padding: 8px 12px;
	border-bottom: 2px solid var(--kk-border);
}

.kk-odetails__var-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--kk-border);
	color: var(--kk-text);
}

.kk-odetails__var-table tbody tr:last-child td {
	border-bottom: none;
}

.kk-odetails__var-table tbody tr:hover {
	background: var(--kk-bg);
}

.kk-odetails__var-table td.kk-odetails__var-code {
	font-size: 12px;
	color: var(--kk-text-muted);
	font-family: monospace;
}

/* Notes */
.kk-odetails__notes {
	margin-bottom: 32px;
	padding: 20px 24px;
	background: var(--kk-offer-accent-light);
	border-radius: var(--kk-radius-sm);
	border-left: 4px solid var(--kk-offer-accent);
}

.kk-odetails__notes p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--kk-text-light);
	margin: 0;
}

/* ==========================================================================
   Archive Topbar
   ========================================================================== */

/* Topbar/tabs/filters — uses shared .kk-archive-* classes from kk-recipes.css */

@media (max-width: 768px) {
	.kk-oarchive-filterbar__inner {
		flex-wrap: wrap;
	}
	.kk-ofilter-groups {
		flex-wrap: wrap;
	}
	.kk-ofilter-search {
		flex: 1;
		min-width: 160px;
	}
}

/* ==========================================================================
   Offer Card
   ========================================================================== */

.kk-ocard {
	display: flex;
	flex-direction: column;
	background: var(--kk-white);
	border-radius: var(--kk-radius);
	overflow: hidden;
	border: 1px solid var(--kk-border);
	transition: all var(--kk-transition);
}

.kk-ocard:hover {
	box-shadow: var(--kk-shadow-hover);
	border-color: var(--kk-green);
	transform: translateY(-2px);
}

.kk-ocard--sold-out {
	opacity: 0.7;
}

.kk-ocard--sold-out:hover {
	opacity: 0.85;
}

.kk-ocard__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	flex: 1;
}

.kk-ocard__img-wrap {
	position: relative;
	height: 200px;
	overflow: hidden;
	background: var(--kk-white);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kk-ocard__img-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	padding: 16px;
	transition: transform var(--kk-transition);
}

.kk-ocard:hover .kk-ocard__img-wrap img {
	transform: scale(1.04);
}

.kk-ocard__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--kk-text-muted);
	opacity: 0.3;
}

.kk-ocard__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	font-family: var(--kk-font);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #fff;
	background: var(--kk-offer-accent);
	border-radius: var(--kk-radius-full);
}

.kk-ocard__sold-out {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	padding: 8px 24px;
	font-family: var(--kk-font);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	border-radius: var(--kk-radius-sm);
	z-index: 2;
}

.kk-ocard__body {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
}

.kk-ocard__title {
	font-family: var(--kk-font);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--kk-text);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kk-ocard:hover .kk-ocard__title {
	color: var(--kk-green);
}

.kk-ocard__brand {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--kk-green);
	margin-bottom: 2px;
}

.kk-ocard__size {
	font-size: 13px;
	color: var(--kk-text-muted);
}

.kk-ocard__variants {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: var(--kk-green-dark);
	background: var(--kk-green-light);
	padding: 2px 8px;
	border-radius: var(--kk-radius-full);
	align-self: flex-start;
	margin-top: 2px;
}

/* Card footer: pricing only — always at bottom */
.kk-ocard__footer {
	margin-top: auto;
}

.kk-ocard__body .kk-ocard__tags {
	margin-top: auto;
	padding-top: 6px;
}

.kk-ocard__pricing {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 12px 16px;
	border-top: 2px solid var(--kk-green);
	background: var(--kk-green-light);
	min-height: 52px;
}

.kk-ocard__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--kk-text);
	letter-spacing: -0.02em;
}

.kk-ocard__offer-text {
	font-size: 18px;
	font-weight: 800;
	color: var(--kk-text);
	letter-spacing: -0.02em;
}

.kk-ocard__rrp {
	font-size: 12px;
	color: var(--kk-text-muted);
	text-decoration: line-through;
}

.kk-ocard__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.kk-ocard__tag {
	display: inline-block;
	padding: 2px 10px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--kk-text-muted);
	background: var(--kk-white);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius-full);
}

.kk-ocard__tag--kashrus {
	color: var(--kk-wine-accent);
	border-color: var(--kk-wine-accent-light);
	background: var(--kk-wine-accent-light);
}

/* ==========================================================================
   Featured Offer Slider
   ========================================================================== */

.kk-ofeatured-slider {
	position: relative;
	border-radius: var(--kk-radius);
	overflow: hidden;
	margin-bottom: 28px;
	border: 1px solid var(--kk-border);
	background: var(--kk-white);
}

.kk-ofeatured-slider__track {
	position: relative;
}

.kk-ofeatured-slide {
	display: none;
}

.kk-ofeatured-slide.is-active {
	display: block;
}

.kk-ofeatured-slide__link {
	display: grid;
	grid-template-columns: 1fr 1fr;
	text-decoration: none;
	color: inherit;
	height: 320px;
}

.kk-ofeatured-slide__img-wrap {
	position: relative;
	overflow: hidden;
	background: var(--kk-white);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.kk-ofeatured-slide__img-wrap img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	padding: 24px;
	transition: transform 0.4s ease;
}

.kk-ofeatured-slide:hover .kk-ofeatured-slide__img-wrap img {
	transform: scale(1.03);
}

.kk-ofeatured-slide__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 60%, rgba(0, 0, 0, 0.03) 100%);
}

.kk-ocard__badge--featured {
	font-size: 12px;
	padding: 6px 16px;
}

.kk-ofeatured-slide__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px 36px;
	background: var(--kk-white);
}

.kk-ofeatured-slide__cat {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--kk-green);
	margin-bottom: 8px;
}

.kk-ofeatured-slide__title {
	font-family: var(--kk-font);
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--kk-text);
	margin: 0 0 8px;
	letter-spacing: -0.02em;
}

.kk-ofeatured-slide__size {
	font-size: 14px;
	color: var(--kk-text-muted);
	margin-bottom: 12px;
}

.kk-ofeatured-slide__pricing {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 20px;
}

.kk-ofeatured-slide__price {
	font-size: 36px;
	font-weight: 800;
	color: var(--kk-offer-accent);
	letter-spacing: -0.02em;
}

.kk-ofeatured-slide__offer-text {
	font-size: 26px;
	font-weight: 800;
	color: var(--kk-offer-accent);
}

.kk-ofeatured-slide__rrp {
	font-size: 16px;
	color: var(--kk-text-muted);
	text-decoration: line-through;
}

.kk-ofeatured-slide__cta {
	display: inline-block;
	font-family: var(--kk-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--kk-green);
	transition: color var(--kk-transition);
}

.kk-ofeatured-slide:hover .kk-ofeatured-slide__cta {
	color: var(--kk-green-dark);
}

/* Slider Arrows */
.kk-ofeatured-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 300;
	color: var(--kk-text);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--kk-border);
	border-radius: 50%;
	cursor: pointer;
	transition: all var(--kk-transition);
	backdrop-filter: blur(4px);
}

.kk-ofeatured-slider__arrow:hover {
	background: var(--kk-white);
	border-color: var(--kk-green);
	color: var(--kk-green);
	box-shadow: var(--kk-shadow);
}

.kk-ofeatured-slider__arrow--prev { left: 12px; }
.kk-ofeatured-slider__arrow--next { right: 12px; }

/* Slider Dots */
.kk-ofeatured-slider__dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 6px;
}

.kk-ofeatured-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid var(--kk-text-muted);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.kk-ofeatured-slider__dot.is-active,
.kk-ofeatured-slider__dot:hover {
	background: var(--kk-green);
	border-color: var(--kk-green);
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.kk-ofeatured-slide__link {
		grid-template-columns: 1fr;
		height: auto;
	}
	.kk-ofeatured-slide__img-wrap {
		height: 220px;
	}
	.kk-ofeatured-slide__body {
		padding: 20px 24px;
	}
	.kk-ofeatured-slider__arrow {
		display: none;
	}
	.kk-ofeatured-slide__price {
		font-size: 28px;
	}
	.kk-pdetails__info-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Offer Grid
   ========================================================================== */

.kk-ogrid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(var(--kk-cols, 3), 1fr);
	align-items: stretch;
}

@media (max-width: 900px) {
	.kk-ogrid {
		grid-template-columns: repeat(var(--kk-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 600px) {
	.kk-ogrid {
		grid-template-columns: repeat(var(--kk-cols-mobile, 1), 1fr);
	}
}

/* Empty state */
.kk-ogrid-empty {
	text-align: center;
	padding: 80px 24px;
	color: var(--kk-text-muted);
	font-size: 15px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.kk-opagination {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--kk-border);
}

.kk-opagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--kk-font);
}

.kk-opagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 500;
	color: var(--kk-text-light);
	background: var(--kk-white);
	border: 1px solid var(--kk-border);
	border-radius: var(--kk-radius-sm);
	text-decoration: none;
	transition: all var(--kk-transition);
}

.kk-opagination .page-numbers:hover {
	color: var(--kk-green);
	border-color: var(--kk-green);
}

.kk-opagination .page-numbers.current {
	background: var(--kk-green);
	color: #fff;
	border-color: var(--kk-green);
	font-weight: 600;
}

.kk-opagination .prev,
.kk-opagination .next {
	gap: 6px;
	font-weight: 500;
}

/* ==========================================================================
   Related Offers
   ========================================================================== */

.kk-orelated {
	background: var(--kk-bg);
	border-top: 1px solid var(--kk-border);
	padding: 48px 0 56px;
}

.kk-orelated__heading {
	font-family: var(--kk-font);
	font-size: 22px;
	font-weight: 700;
	color: var(--kk-text);
	margin: 0 0 24px;
	text-align: center;
	letter-spacing: -0.01em;
}

/* ==========================================================================
   Archive Header — Offer-specific tweaks
   ========================================================================== */

/* Offer archive: count badge uses accent colour when filtering */
.kk-offer-archive .kk-archive-head__count {
	border-color: var(--kk-border);
}
