/**
 * Captese — main stylesheet
 *
 * Mobile-first. Base rules target small screens; larger breakpoints are
 * layered with min-width media queries. Custom tokens live in :root so the
 * palette can be retuned in one place.
 */

:root {
	--captese-bg: #ffffff;
	--captese-surface: #f6f7f9;
	--captese-ink: #14181f;
	--captese-ink-soft: #5b6573;
	--captese-accent: #c73e1d;        /* brand cinnabar red — from logo source */
	--captese-accent-hover: #a2300f;
	--captese-navy: #1f2441;          /* brand secondary — from logo source */
	--captese-border: #e6e8ec;
	--captese-radius: 12px;
	--captese-shadow: 0 4px 18px rgba(20, 24, 31, 0.08);
	--captese-shadow-hover: 0 10px 28px rgba(20, 24, 31, 0.14);
	--captese-transition: 180ms ease;
}

/* -------------------------------------------------------------------------
 * Product grid cards
 * ---------------------------------------------------------------------- */
.woocommerce ul.products li.product {
	background: var(--captese-bg);
	border: 1px solid var(--captese-border);
	border-radius: var(--captese-radius);
	padding: 14px;
	transition: box-shadow var(--captese-transition), transform var(--captese-transition);
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--captese-shadow-hover);
	transform: translateY(-3px);
}

.woocommerce ul.products li.product img {
	border-radius: calc(var(--captese-radius) - 4px);
	margin-bottom: 12px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--captese-ink);
	padding-bottom: 6px;
}

.woocommerce ul.products li.product .price {
	color: var(--captese-ink);
	font-weight: 700;
}

.woocommerce ul.products li.product .price del {
	color: var(--captese-ink-soft);
	font-weight: 400;
}

/* Sale badge */
.woocommerce span.onsale {
	background: var(--captese-accent);
	color: #fff;
	border-radius: 999px;
	min-height: auto;
	min-width: auto;
	padding: 4px 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* -------------------------------------------------------------------------
 * Buttons / CTAs
 * ---------------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit {
	background: var(--captese-accent);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	padding: 0.7em 1.4em;
	transition: background var(--captese-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button.alt:hover,
.woocommerce #respond input#submit:hover {
	background: var(--captese-accent-hover);
}

/* -------------------------------------------------------------------------
 * Single product page
 * ---------------------------------------------------------------------- */
.woocommerce div.product .product_title {
	font-weight: 700;
	letter-spacing: -0.01em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--captese-ink);
	font-size: 1.6rem;
	font-weight: 700;
}

.woocommerce .woocommerce-tabs ul.tabs li {
	border-radius: var(--captese-radius) var(--captese-radius) 0 0;
}

/* Price: savings + tax note */
.captese-price-extra {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin: 2px 0 14px;
}

.captese-save {
	color: var(--captese-accent);
	font-weight: 600;
}

.captese-tax-note {
	color: var(--captese-ink-soft);
	font-size: 0.82rem;
}

/* Short description bullets */
.woocommerce div.product .woocommerce-product-details__short-description ul {
	list-style: none;
	margin: 0 0 1.2em;
	padding: 0;
}

.woocommerce div.product .woocommerce-product-details__short-description li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 8px;
	line-height: 1.5;
}

.woocommerce div.product .woocommerce-product-details__short-description li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--captese-accent);
}

/* Colour swatches (Variation Swatches for WooCommerce) */
.woocommerce .variable-items-wrapper {
	gap: 10px;
}

.woocommerce .color-variable-item .variable-item-span {
	width: 38px;
	height: 38px;
	border-radius: 50%;
}

.woocommerce .variable-items-wrapper .variable-item.selected,
.woocommerce .variable-items-wrapper .variable-item:hover {
	box-shadow: 0 0 0 2px var(--captese-accent);
	border-color: transparent;
}

/* Trust badge row */
.captese-trust {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	list-style: none;
	margin: 18px 0;
	padding: 14px 0;
	border-top: 1px solid var(--captese-border);
	border-bottom: 1px solid var(--captese-border);
}

.captese-trust li {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	font-size: 0.74rem;
	color: var(--captese-ink-soft);
	margin: 0;
}

.captese-trust svg {
	color: var(--captese-accent);
}

/* Feature strip below summary */
.captese-features {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	list-style: none;
	margin: 24px 0;
	padding: 20px 12px;
	background: var(--captese-surface);
	border-radius: var(--captese-radius);
}

.captese-features li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	font-size: 0.8rem;
	color: var(--captese-ink-soft);
	margin: 0;
}

.captese-features svg {
	color: var(--captese-accent);
}

/* Mobile sticky add-to-cart */
.captese-sticky-cart {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: var(--captese-bg);
	border-top: 1px solid var(--captese-border);
	box-shadow: 0 -4px 18px rgba(20, 24, 31, 0.1);
	transform: translateY(110%);
	transition: transform var(--captese-transition);
}

.captese-sticky-cart.is-visible {
	transform: none;
}

.captese-sticky-info {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.captese-sticky-info img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	margin: 0;
}

.captese-sticky-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.captese-sticky-title {
	font-size: 0.78rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 42vw;
}

.captese-sticky-price {
	font-weight: 700;
	color: var(--captese-accent);
}

.captese-sticky-price del {
	color: var(--captese-ink-soft);
	font-weight: 400;
}

.captese-sticky-btn {
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.captese-sticky-cart {
		display: flex;
	}
}

/* -------------------------------------------------------------------------
 * Breakpoints
 * ---------------------------------------------------------------------- */
@media (min-width: 768px) {
	.woocommerce ul.products li.product {
		padding: 18px;
	}

	.captese-features {
		grid-template-columns: repeat(4, 1fr);
	}
}
