/* RS Product Page. Everything is scoped to .rspp / .rspp-details so the rest of the
 * theme is untouched. Colours follow the Roastery Station brand (#101020). */
.rspp, .rspp-details {
	--rspp-ink: #101020;
	--rspp-muted: #6c6c7a;
	--rspp-faint: #9b9ba8;
	--rspp-line: #dcdce3;
	--rspp-soft: #f4f4f7;
	--rspp-radius: 8px;
	color: var(--rspp-ink);
}

/* ---------- top ---------- */
.rspp-kicker {
	display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
	font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rspp-muted);
}
.rspp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rspp-ink); opacity: .55; flex: none; }
.rspp .rspp-title { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: .01em; }

.rspp-taste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; list-style: none; margin: 0 0 18px; padding: 0; }
.rspp-taste li { display: flex; align-items: center; gap: 10px; padding: 0 18px; margin: 0; border-left: 1px solid var(--rspp-line); font-size: 14px; color: var(--rspp-muted); }
.rspp-taste li:first-child { padding-left: 0; border-left: 0; }
.rspp-bar { position: relative; display: block; width: 58px; height: 6px; border-radius: 6px; background: #e3e3e9; overflow: hidden; }
.rspp-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--rspp-ink); }

.rspp .rspp-price { margin: 0 0 20px; font-size: 22px; font-weight: 500; color: var(--rspp-ink); }
.rspp .rspp-price del { color: var(--rspp-faint); font-size: .8em; margin-right: 6px; }
.rspp .rspp-price ins { text-decoration: none; }

.rspp-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rspp-faint); }
.rspp-quick { margin: 0 0 20px; }
.rspp-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rspp .rspp-chips li { margin: 0; padding: 4px 11px; border: 1px solid var(--rspp-line); border-radius: 999px; font-size: 12px; line-height: 1.4; color: var(--rspp-ink); background: #fff; }

/* ---------- options ---------- */
.rspp form.variations_form.rspp-has-buttons table.variations {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.rspp .rspp-opts { margin: 0 0 18px; }
.rspp .rspp-opts-list { display: flex; flex-wrap: wrap; gap: 10px; }
.rspp .rspp-opt {
	min-width: 72px; margin: 0; padding: 10px 16px; border: 1px solid var(--rspp-line); border-radius: var(--rspp-radius);
	background: #fff; color: var(--rspp-ink); box-shadow: none;
	font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.rspp .rspp-opt:hover:not(:disabled) { border-color: var(--rspp-ink); }
.rspp .rspp-opt.is-on { background: var(--rspp-ink); border-color: var(--rspp-ink); color: #fff; }
.rspp .rspp-opt.is-oos { color: var(--rspp-faint); text-decoration: line-through; }
.rspp .rspp-opt.is-oos.is-on { background: var(--rspp-soft); color: var(--rspp-muted); border-color: var(--rspp-faint); }
.rspp .rspp-opt:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.rspp .rspp-opt:focus-visible { outline: 2px solid var(--rspp-ink); outline-offset: 2px; }

.rspp .woocommerce-variation-price, .rspp .reset_variations { display: none !important; }
.rspp .woocommerce-variation-availability .stock, .rspp .stock { margin: 0 0 12px; font-size: 13px; color: var(--rspp-muted); }
.rspp .stock.out-of-stock { color: #a3333d; }

/* ---------- quantity + add to cart ---------- */
.rspp form.cart { margin: 0 0 18px; }
.rspp form.cart:not(.variations_form), .rspp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.rspp .quantity.rspp-qty {
	display: inline-flex; align-items: center; margin: 0; border: 1px solid var(--rspp-line); border-radius: var(--rspp-radius); background: #fff; height: 52px;
}
.rspp .rspp-qty input.qty {
	width: 44px; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
	text-align: center; font-size: 16px; color: var(--rspp-ink); -moz-appearance: textfield;
}
.rspp .rspp-qty input.qty::-webkit-outer-spin-button, .rspp .rspp-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rspp .rspp-qty-btn {
	width: 44px; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
	color: var(--rspp-ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.rspp .rspp-qty-btn:hover { background: var(--rspp-soft); }
.rspp .single_add_to_cart_button {
	flex: 1 1 200px; height: 52px; margin: 0; padding: 0 24px; border: 0; border-radius: var(--rspp-radius);
	background: var(--rspp-ink); color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.rspp .single_add_to_cart_button, .rspp .single_add_to_cart_button:hover, .rspp .single_add_to_cart_button:focus { color: #fff !important; }
.rspp .single_add_to_cart_button:hover { background: #262640; }
.rspp .single_add_to_cart_button.disabled, .rspp .single_add_to_cart_button:disabled { background: #e6e6ec; color: var(--rspp-muted); cursor: not-allowed; opacity: 1; }

/* ---------- out of stock: "Coming soon" ---------- */
.rspp .single_add_to_cart_button.rspp-is-soon,
.rspp .single_add_to_cart_button.rspp-is-soon:hover {
	background: #ececf1 !important; color: #55556a !important; border: 1px dashed #c9c9d4; cursor: not-allowed; opacity: 1;
}
.rspp .rspp-soon-row { display: flex; margin: 0 0 18px; }
.rspp .rspp-soon-row .single_add_to_cart_button { flex: 1 1 100%; }
/* The button already says it; the "Out of stock" line under the options would repeat it. */
.rspp form.rspp-variation-soon .woocommerce-variation-availability { display: none; }
.rspp form.rspp-variation-soon .quantity { opacity: .45; pointer-events: none; }

/* ---------- promo code ---------- */
.rspp .rspp-promo { flex: 1 1 100%; }
.rspp .rspp-promo-toggle {
	margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--rspp-muted);
	font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.rspp .rspp-promo-toggle:hover { color: var(--rspp-ink); }
.rspp .rspp-promo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.rspp .rspp-promo-row[hidden] { display: none; }
.rspp .rspp-promo-row input {
	flex: 0 1 220px; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--rspp-line); border-radius: var(--rspp-radius);
	background: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
}
.rspp .rspp-promo-note { font-size: 12px; color: var(--rspp-faint); }

/* ---------- reassurance points ---------- */
.rspp-points {
	display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 4px 0 22px; padding: 6px 0;
	border: 1px solid #e6e6ec; border-radius: 12px; background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f8 100%);
}
.rspp-points.rspp-points-2 { grid-template-columns: repeat(2, 1fr); }
.rspp-points.rspp-points-1 { grid-template-columns: 1fr; }
.rspp-points li {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
	margin: 0; padding: 14px 12px 12px; text-align: center;
}
.rspp-points li + li::before {
	content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: #e2e2e8;
}
.rspp-point-icon {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
	background: #fff; border: 1px solid #e2e2e8; color: var(--rspp-ink); box-shadow: 0 1px 2px rgba(16, 16, 32, .05);
}
.rspp-point-icon svg { display: block; width: 20px; height: 20px; }
.rspp-point-text { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.rspp-points strong { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--rspp-ink); line-height: 1.35; }
.rspp-points small { font-size: 12px; color: var(--rspp-muted); line-height: 1.4; }

.rspp-more { margin: 0; }
.rspp-more a {
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rspp-ink);
	text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px;
}

/* ---------- full details (collapsible) ---------- */
.rspp-details { clear: both; max-width: 860px; margin: 48px auto 56px; display: grid; gap: 12px; }
.rspp-acc { margin: 0; border: 1px solid var(--rspp-line); border-radius: 12px; background: #fff; }
.rspp-acc summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px;
	list-style: none; cursor: pointer; font-size: 16px; letter-spacing: .06em; text-transform: uppercase;
}
.rspp-acc summary::-webkit-details-marker { display: none; }
.rspp-acc summary i { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--rspp-line); border-radius: 50%; }
.rspp-acc summary i::before, .rspp-acc summary i::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--rspp-ink); transition: transform .2s;
}
.rspp-acc summary i::after { transform: rotate(90deg); }
.rspp-acc[open] summary i { background: var(--rspp-ink); border-color: var(--rspp-ink); }
.rspp-acc[open] summary i::before { background: #fff; }
.rspp-acc[open] summary i::after { transform: rotate(0); background: #fff; }
.rspp-acc-body { padding: 0 24px 22px; border-top: 1px solid var(--rspp-soft); margin: 0 24px; padding-left: 0; padding-right: 0; padding-top: 16px; color: var(--rspp-muted); font-size: 15px; line-height: 1.75; }
.rspp-acc-body > :last-child { margin-bottom: 0; }
.rspp-acc-body strong { color: var(--rspp-ink); }

/* The theme's own tabs and meta are replaced on this page. */
.rspp-on .woocommerce-tabs { display: none; }

/* Preview only: the site's Additional CSS hides add-to-cart until the shop opens. */
.rspp-preview.woocommerce div.product .rspp form.variations_form { display: block !important; }
.rspp-preview.woocommerce div.product .rspp form.cart:not(.variations_form) { display: flex !important; }
.rspp-preview.woocommerce div.product .rspp .single_variation_wrap { display: block !important; }

@media (max-width: 600px) {
	.rspp .rspp-title { font-size: 24px; }
	.rspp-taste { gap: 10px 18px; }
	.rspp-taste li, .rspp-taste li:first-child { padding: 0; border-left: 0; }
	.rspp .single_add_to_cart_button { flex-basis: 120px; padding: 0 14px; letter-spacing: .08em; }
	.rspp-points { grid-template-columns: 1fr; padding: 4px 16px; }
	.rspp-points li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 0; text-align: left; }
	.rspp-points li + li::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; }
	.rspp-point-icon { width: 36px; height: 36px; }
	.rspp-acc summary { padding: 16px 18px; font-size: 14px; }
	.rspp-acc-body { margin: 0 18px; }
	.rspp-details { margin: 32px 0 40px; }
}
