/* =====================================================================
   Simple Products – front-end styles (ProDrinks design)
   Fonts are inherited from the theme so headings match the rest of the
   site. Change colours from the theme, e.g.:
   .sp-main, .sp-grid { --sp-gold: #c5a96a; }
   If the theme header is not transparent, reduce the top spacing:
   .sp-main { --sp-hero-top: 48px; }
   Breakpoints: 1025+ laptop/desktop · 768–1024 tablet (2 columns)
   · 561–767 large phone / small tablet · ≤560 phone · ≤380 small phone
   ===================================================================== */

.sp-main,
.sp-grid {
	--sp-gold: #b4a269;
	--sp-gold-light: #cbbb87;
	--sp-font-heading: "Catamaran", "Montserrat", sans-serif;
	--sp-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--sp-gold-ink: #1a1508;
	--sp-dark: #111111;
	--sp-dark-2: #1b1b1b;
	--sp-dark-line: rgba(255, 255, 255, .12);
	--sp-on-dark: #ffffff;
	--sp-on-dark-muted: rgba(255, 255, 255, .68);
	--sp-cream: #faf5ec;
	--sp-ink: #1a1a1a;
	--sp-muted: #6f6a62;
	--sp-line: #e9e1d2;
	--sp-card: #ffffff;
	--sp-image-bg: #f4eee3;
	--sp-radius: 14px;
	--sp-hero-top: 128px;
}

.sp-main {
	display: block;
	position: relative;
	width: 100%;
	max-width: 100vw;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-x: clip; /* clips without breaking the sticky details column */
	font-family: var(--sp-font-body);
	-webkit-text-size-adjust: 100%;
}
/* Never let anything on the product page be wider than the screen. */
.sp-main .sp-container { width: 100%; max-width: min(1200px, 100%); }
.sp-main .sp-hero, .sp-main .sp-band { width: 100%; max-width: 100%; }
.sp-product, .sp-product__top, .sp-product__gallery, .sp-product__summary,
.sp-gallery__main, .sp-gallery__thumbs, .sp-features, .sp-product__actions { max-width: 100%; }
.sp-breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
.sp-grid { font-family: var(--sp-font-body); }
.sp-main *, .sp-grid * { box-sizing: border-box; }
.sp-main h1, .sp-main h2, .sp-main h3, .sp-main h4,
.sp-grid h3, .sp-button, .sp-card__buy, .sp-cat-nav__item, .sp-product__price, .sp-card__price {
	font-family: var(--sp-font-heading);
}

/* Guard against theme/Elementor global styles (Hello Elementor styles every
   <button> pink with padding, and images/headings get theme margins). */
.sp-main img, .sp-grid img { max-width: 100%; border: 0; box-shadow: none; border-radius: 0; }
.sp-main h1, .sp-main h2, .sp-main h3 { letter-spacing: normal; text-transform: none; }
.sp-main button.sp-gallery__thumb,
.sp-main button.sp-gallery__thumb:hover,
.sp-main button.sp-gallery__thumb:focus {
	margin: 0;
	padding: 0;
	min-height: 0;
	width: auto;
	background: var(--sp-image-bg);
	color: inherit;
	font: inherit;
	text-transform: none;
	line-height: 0;
}
.sp-main button.sp-gallery__thumb:focus-visible { outline: 2px solid var(--sp-gold); outline-offset: 2px; }
.sp-product__title, .sp-card__title, .sp-section-title { overflow-wrap: anywhere; hyphens: auto; }
.sp-product__top > *, .sp-grid > * { min-width: 0; }

.sp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sp-main .sp-container--narrow { max-width: min(860px, 100%); }

/* ---------------------------------------------------------------------
   Shared bits: kicker, section titles, buttons, chip, breadcrumb
   ------------------------------------------------------------------ */

.sp-kicker,
.sp-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	font-size: 13px;
	font-style: italic;
	letter-spacing: .04em;
	color: var(--sp-gold);
}
.sp-kicker { justify-content: center; }
.sp-kicker::before,
.sp-kicker::after,
.sp-eyebrow::before {
	content: "";
	width: 44px;
	height: 1px;
	background: currentColor;
	opacity: .6;
}
.sp-eyebrow a { color: inherit; text-decoration: none; }
.sp-eyebrow a:hover { color: var(--sp-gold-light); }

.sp-section-head { text-align: center; margin-bottom: 44px; }
.sp-section-title {
	margin: 0;
	font-size: clamp(26px, 3.4vw, 38px);
	font-weight: 600;
	line-height: 1.2;
	color: var(--sp-ink);
}
.sp-section-title em { font-style: italic; font-weight: 500; color: var(--sp-gold); }
.sp-section-title--xl { font-size: clamp(34px, 5vw, 56px); color: var(--sp-on-dark); }

.sp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
@media (hover: hover) {
	.sp-button:hover { transform: translateY(-1px); }
}
.sp-button--gold { background: var(--sp-gold); color: var(--sp-gold-ink) !important; }
.sp-button--gold:hover { background: var(--sp-gold-light); }
.sp-button--outline { border-color: rgba(255, 255, 255, .55); color: var(--sp-on-dark) !important; background: transparent; }
.sp-button--outline:hover { border-color: var(--sp-gold); color: var(--sp-gold) !important; }
.sp-icon { flex: none; }

.sp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--sp-dark-line);
	border-radius: 999px;
	font-size: 14px;
	color: var(--sp-on-dark);
}
.sp-chip .sp-icon { width: 16px; height: 16px; color: var(--sp-gold); }

.sp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 36px;
	font-size: 13px;
	color: var(--sp-on-dark-muted);
}
.sp-breadcrumb a { color: inherit; text-decoration: none; }
.sp-breadcrumb a:hover { color: var(--sp-gold); }
.sp-breadcrumb [aria-current] { color: var(--sp-on-dark); }

/* ---------------------------------------------------------------------
   Bands
   ------------------------------------------------------------------ */

.sp-hero {
	position: relative;
	padding: var(--sp-hero-top) 0 88px;
	background:
		radial-gradient(900px 480px at 85% 0%, rgba(184, 155, 94, .16), transparent 60%),
		radial-gradient(700px 420px at 0% 100%, rgba(184, 155, 94, .08), transparent 60%),
		var(--sp-dark);
	color: var(--sp-on-dark);
}
.sp-hero--archive { padding-bottom: 56px; }
.sp-section-head--hero { margin-bottom: 32px; }

.sp-band { padding: 88px 0; }
.sp-band--cream { background: var(--sp-cream); color: var(--sp-ink); }
.sp-band--dark { background: var(--sp-dark); color: var(--sp-on-dark); }
.sp-band--dark .sp-section-title { color: var(--sp-on-dark); }

/* ---------------------------------------------------------------------
   Single product – hero
   ------------------------------------------------------------------ */

.sp-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 64px;
	align-items: start;
}

.sp-gallery__main {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--sp-dark-line);
	border-radius: var(--sp-radius);
	overflow: hidden;
	background: var(--sp-image-bg);
}
.sp-gallery__main img,
.sp-product__image { display: block; width: 100%; height: 100%; object-fit: contain; }
.sp-product__placeholder { display: block; width: 100%; height: 100%; min-height: 100%; background: var(--sp-image-bg); }

.sp-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.sp-main .sp-gallery__thumb {
	display: block;
	padding: 0;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--sp-dark-line);
	border-radius: 10px;
	overflow: hidden;
	background: var(--sp-image-bg);
	cursor: pointer;
	opacity: .55;
	transition: opacity .2s ease, border-color .2s ease;
}
.sp-gallery__thumb:hover { opacity: .9; }
.sp-main .sp-gallery__thumb.is-active { opacity: 1; border-color: var(--sp-gold); box-shadow: 0 0 0 1px var(--sp-gold); }
.sp-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

.sp-product__summary { padding-top: 8px; }
/* Desktop: the photo stays in view while the details scroll past */
@media (min-width: 1025px) {
	.sp-product__gallery { position: sticky; top: 110px; }
}
.sp-product__title {
	margin: 0 0 22px;
	font-size: clamp(32px, 4.2vw, 50px);
	font-weight: 600;
	line-height: 1.12;
	color: var(--sp-on-dark);
}

.sp-product__pricing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	padding-bottom: 24px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--sp-dark-line);
}
.sp-product__price { margin: 0; font-size: 32px; font-weight: 600; line-height: 1; color: var(--sp-gold); }

.sp-product__short-description {
	margin-bottom: 30px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--sp-on-dark-muted);
}
.sp-product__short-description p { margin: 0 0 10px; }
.sp-product__short-description p:last-child { margin-bottom: 0; }

.sp-product__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-product__actions .sp-button--gold { flex: 1 1 220px; }
.sp-product__note { margin: 14px 0 0; font-size: 13px; font-style: italic; color: var(--sp-on-dark-muted); }

.sp-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 32px 0 0;
	padding: 20px;
	list-style: none;
	border: 1px solid var(--sp-dark-line);
	border-radius: var(--sp-radius);
	background: rgba(255, 255, 255, .03);
}
.sp-features__item { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; letter-spacing: .02em; color: var(--sp-on-dark); }
.sp-features__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(184, 155, 94, .14);
	color: var(--sp-gold);
}

.sp-product__meta { margin: 24px 0 0; font-size: 14px; color: var(--sp-on-dark-muted); }
.sp-product__meta-label { margin-right: 4px; }
.sp-product__meta a { color: var(--sp-gold); text-decoration: none; }
.sp-product__meta a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------
   Single product – description band
   ------------------------------------------------------------------ */

.sp-product__content {
	padding: 48px 56px;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	background: var(--sp-card);
	font-size: 16px;
	line-height: 1.8;
	color: #3b3833;
}
.sp-product__content > *:first-child { margin-top: 0; }
.sp-product__content > *:last-child { margin-bottom: 0; }
.sp-product__content h2,
.sp-product__content h3,
.sp-product__content h4 { color: var(--sp-ink); line-height: 1.3; margin: 1.6em 0 .6em; }
.sp-product__content a { color: var(--sp-gold); }
.sp-product__content img { max-width: 100%; height: auto; border-radius: 10px; }
.sp-product__content ul { padding-left: 0; list-style: none; }
.sp-product__content ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.sp-product__content ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .75em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sp-gold);
}
.sp-product__content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.sp-product__content iframe, .sp-product__content video, .sp-product__content embed { max-width: 100%; }
.sp-product__content pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.sp-product__content th,
.sp-product__content td { padding: 12px 14px; border-bottom: 1px solid var(--sp-line); text-align: left; }

/* ---------------------------------------------------------------------
   Single product – CTA band
   ------------------------------------------------------------------ */

.sp-cta {
	background:
		linear-gradient(90deg, rgba(17, 17, 17, .96), rgba(17, 17, 17, .82)),
		radial-gradient(600px 300px at 100% 50%, rgba(184, 155, 94, .35), transparent 70%),
		var(--sp-dark);
	border-top: 1px solid rgba(184, 155, 94, .25);
	border-bottom: 1px solid rgba(184, 155, 94, .25);
}
.sp-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.sp-cta__text { max-width: 640px; }
.sp-cta .sp-kicker { justify-content: flex-start; }
.sp-cta .sp-kicker::after { display: none; }
.sp-cta__text p:last-child { margin: 16px 0 0; color: var(--sp-on-dark-muted); line-height: 1.7; }

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

.sp-archive__description { max-width: 680px; margin: 16px auto 0; color: var(--sp-on-dark-muted); line-height: 1.7; }
.sp-archive__description p:last-child { margin-bottom: 0; }

.sp-cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-cat-nav__item {
	padding: 10px 20px;
	border: 1px solid var(--sp-dark-line);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sp-on-dark) !important;
	text-decoration: none !important;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.sp-cat-nav__item:hover { border-color: var(--sp-gold); color: var(--sp-gold) !important; }
.sp-cat-nav__item.is-active { background: var(--sp-gold); border-color: var(--sp-gold); color: var(--sp-gold-ink) !important; }

.sp-empty { text-align: center; color: var(--sp-muted); }

.sp-pagination { margin-top: 48px; }
.sp-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sp-pagination .page-numbers {
	min-width: 42px;
	padding: 10px 14px;
	border: 1px solid var(--sp-line);
	border-radius: 4px;
	text-align: center;
	color: var(--sp-ink);
	text-decoration: none;
}
.sp-pagination .page-numbers:hover { border-color: var(--sp-gold); }
.sp-pagination .current { background: var(--sp-gold); border-color: var(--sp-gold); color: var(--sp-gold-ink); }

/* ---------------------------------------------------------------------
   Product grid + cards (archive, related, [sp_products] shortcode)
   ------------------------------------------------------------------ */

.sp-grid {
	display: grid;
	grid-template-columns: repeat(var(--sp-columns, 3), minmax(0, 1fr));
	gap: 28px;
}
.sp-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--sp-line);
	border-radius: var(--sp-radius);
	overflow: hidden;
	background: var(--sp-card);
	transition: box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) {
	.sp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(26, 21, 8, .1); }
}

.sp-card__media { position: relative; display: block; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--sp-image-bg); }
.sp-card__image { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
@media (hover: hover) {
	.sp-card:hover .sp-card__image { transform: scale(1.04); }
}
.sp-card__size {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(17, 17, 17, .82);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #fff;
}

.sp-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.sp-card__category { margin: 0 0 8px; font-size: 12px; font-style: italic; color: var(--sp-gold); }
.sp-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.sp-card__title a { color: var(--sp-ink); text-decoration: none; }
.sp-card__title a:hover { color: var(--sp-gold); }
.sp-card__excerpt { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--sp-muted); }

.sp-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--sp-line);
}
.sp-card__price { margin: 0; font-size: 20px; font-weight: 600; color: var(--sp-ink); }
.sp-card__more {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sp-gold);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.sp-card__buy {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 4px;
	background: var(--sp-gold);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sp-gold-ink) !important;
	text-decoration: none !important;
	transition: background .2s ease;
}
.sp-card__buy:hover { background: var(--sp-gold-light); }
.sp-card__buy .sp-icon { width: 16px; height: 16px; }

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

/* Tablet landscape & small laptops */
@media (max-width: 1024px) {
	.sp-main { --sp-hero-top: 116px; }
	.sp-product__top { gap: 40px; }
	.sp-band { padding: 72px 0; }
	.sp-cta__inner { gap: 32px; }
}

/* Tablet portrait: keep image and details side by side */
@media (min-width: 768px) and (max-width: 1024px) {
	.sp-product__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.sp-product__title { font-size: clamp(28px, 3.6vw, 38px); }
	.sp-product__price { font-size: 28px; }
	.sp-features { grid-template-columns: 1fr; padding: 16px; }
	.sp-product__actions .sp-button { flex: 1 1 100%; }
	.sp-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

/* CTA band stacks below 900 */
@media (max-width: 900px) {
	.sp-cta__inner { flex-direction: column; align-items: flex-start; }
	.sp-product__content { padding: 36px 32px; }
	.sp-grid { grid-template-columns: repeat(min(var(--sp-columns, 3), 2), minmax(0, 1fr)); gap: 20px; }
}

/* Phones & small tablets: single column */
@media (max-width: 767px) {
	.sp-main { --sp-hero-top: 104px; }
	.sp-product__top { grid-template-columns: 1fr; gap: 32px; }
	.sp-product__gallery { width: 100%; max-width: 560px; margin: 0 auto; }
	.sp-hero { padding-bottom: 64px; }
	.sp-band { padding: 60px 0; }
	.sp-section-head { margin-bottom: 32px; }
	.sp-breadcrumb { margin-bottom: 24px; }
	.sp-grid { grid-template-columns: repeat(min(var(--sp-columns, 3), 2), minmax(0, 1fr)); gap: 20px; }
}

/* Phones */
@media (max-width: 560px) {
	.sp-container { padding: 0 16px; }
	.sp-hero { padding-bottom: 52px; }
	.sp-band { padding: 52px 0; }
	.sp-grid { gap: 14px; }
	.sp-card__body { padding: 14px 14px 14px; }
	.sp-card__title { font-size: 16px; }
	.sp-card__excerpt { display: none; }
	.sp-card__buy { flex: 1 1 100%; justify-content: center; }
	.sp-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
	.sp-product__title { font-size: clamp(26px, 8vw, 34px); margin-bottom: 18px; }
	.sp-product__price { font-size: 28px; }
	.sp-product__pricing { padding-bottom: 20px; margin-bottom: 20px; }
	.sp-product__short-description { font-size: 15px; margin-bottom: 24px; }
	.sp-product__actions .sp-button { flex: 1 1 100%; }
	.sp-features { grid-template-columns: 1fr; gap: 10px; padding: 16px; margin-top: 24px; }
	.sp-product__content { padding: 24px 20px; font-size: 15px; }
	.sp-cta .sp-button { width: 100%; }
	.sp-kicker::before, .sp-kicker::after, .sp-eyebrow::before { width: 24px; }
}

/* Very narrow: one card per row */
@media (max-width: 479px) {
	.sp-grid { grid-template-columns: 1fr; gap: 20px; }
	.sp-card__body { padding: 18px 18px 16px; }
	.sp-card__title { font-size: 18px; }
	.sp-card__excerpt { display: block; }
	.sp-card__buy { flex: 0 0 auto; }
}

/* Small phones (iPhone SE, older Androids) */
@media (max-width: 380px) {
	.sp-main { --sp-hero-top: 96px; }
	.sp-container { padding: 0 14px; }
	.sp-breadcrumb { font-size: 12px; gap: 6px; }
	.sp-product__title { font-size: 25px; }
	.sp-product__price { font-size: 25px; }
	.sp-button { padding: 14px 16px; letter-spacing: .06em; }
	.sp-section-title { font-size: 23px; }
	.sp-section-title--xl { font-size: 30px; }
	.sp-features__icon { width: 34px; height: 34px; }
	.sp-card__buy { flex: 1 1 100%; justify-content: center; }
}

/* Related products: 3 fit one row on desktop; on 2-column layouts show 2 so rows stay even */
@media (min-width: 480px) and (max-width: 1023px) {
	.sp-related .sp-grid > :nth-child(n+3) { display: none; }
}
