/*
 * Chickano — Shop page + single product page (Figma: "Shopping Basket Design",
 * "Product Page Design"). Loaded only on WooCommerce shop/product pages.
 * Uses the kit variables from Elementor; no literal brand colours or fonts.
 *
 * Widths: content max 1184px; side gutters 64px (desktop and tablet),
 * 24px (mobile).
 */

/* ---------------------------------------------------------------
 * 1. Page shells
 * ------------------------------------------------------------- */
body.post-type-archive-product,
body.single-product {
	background-color: var(--cream, #FFF8DB);
}

/* Hello Elementor caps .site-main at 1140px; these shells manage their own width. */
html body .site-main.chk-shop-page,
html body .site-main.chk-product-page {
	max-width: none;
	margin: 0;
}

.chk-shop-page,
.chk-product-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-left: max(64px, calc((100% - 1184px) / 2));
	padding-right: max(64px, calc((100% - 1184px) / 2));
}

.chk-shop-page {
	gap: 64px;
	padding-top: 64px;
	padding-bottom: 64px;
}

.chk-product-page {
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 64px;
}

.chk-shop-page > .elementor,
.chk-product-page > *,
.chk-product-page__after > .elementor {
	width: 100%;
}

.chk-product-page__after {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
}

/* `html body .site-main…` matches Hello's own .site-main padding rules in specificity. */
@media (max-width: 1024px) {
	html body .site-main.chk-shop-page,
	html body .site-main.chk-product-page {
		gap: 32px;
		padding: 24px 64px 48px;
	}
}

@media (max-width: 767px) {
	html body .site-main.chk-shop-page,
	html body .site-main.chk-product-page {
		padding: 24px 24px 48px;
	}
}

/* ---------------------------------------------------------------
 * 4. Single product — layout
 * ------------------------------------------------------------- */
.woocommerce .chk-product-page div.product {
	display: grid;
	grid-template-columns: minmax(0, 606px) minmax(0, 530px);
	justify-content: space-between;
	align-items: start;
	column-gap: 48px;
	row-gap: 32px;
	width: 100%;
	margin: 0;
}

/* WooCommerce's layout CSS uses `.woocommerce #content div.product div.images`
 * (an ID selector), so these need the ID too to win. */
.woocommerce #content.chk-product-page div.product div.images,
.woocommerce #content.chk-product-page div.product div.summary {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs,
.woocommerce .chk-product-page div.product > .onsale {
	grid-column: 1 / -1;
}

@media (max-width: 1024px) {
	.woocommerce .chk-product-page div.product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 24px;
	}
}

@media (max-width: 767px) {
	.woocommerce .chk-product-page div.product {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------
 * 5. Single product — gallery
 * ------------------------------------------------------------- */
.woocommerce .chk-product-page div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce .chk-product-page div.product div.images .flex-viewport {
	border-radius: 32px;
	overflow: hidden;
	background-color: var(--prime-orange, #F15A29);
}

/* Show the whole photo on the orange tile: non-square shots (the 4:3 pins)
 * were cropped/stretched by `cover` (designer note: "squooshed"). */
.woocommerce .chk-product-page div.product div.images img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

/* Hover zoom layer: WooCommerce paints it white, which shows around
 * transparent product shots. Match the orange tile instead. */
.woocommerce .chk-product-page div.product div.images img.zoomImg {
	background-color: var(--prime-orange, #F15A29);
}

.woocommerce .chk-product-page div.product div.images .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 24px 0 0;
	padding: 0;
}

.woocommerce .chk-product-page div.product div.images .flex-control-thumbs li {
	float: none;
	width: auto;
	margin: 0;
	list-style: none;
}

.woocommerce .chk-product-page div.product div.images .flex-control-thumbs img {
	border-radius: 32px;
	background-color: var(--prime-orange, #F15A29);
	opacity: 0.75;
	transition: opacity 0.15s;
}

.woocommerce .chk-product-page div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce .chk-product-page div.product div.images .flex-control-thumbs img:hover {
	opacity: 1;
}

.woocommerce .chk-product-page div.product div.images .woocommerce-product-gallery__trigger {
	top: 16px;
	right: 16px;
	background: var(--white, #fff);
}

@media (max-width: 1024px) {
	.woocommerce .chk-product-page div.product div.images .flex-control-thumbs {
		gap: 12px;
		margin-top: 24px;
	}

	.woocommerce .chk-product-page div.product div.images .flex-control-thumbs img,
	.woocommerce .chk-product-page div.product div.images .woocommerce-product-gallery__wrapper,
	.woocommerce .chk-product-page div.product div.images .flex-viewport {
		border-radius: 24px;
	}
}

/* ---------------------------------------------------------------
 * 6. Single product — summary
 * ------------------------------------------------------------- */
.woocommerce .chk-product-page div.product div.summary {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.woocommerce .chk-product-page div.product .product_title {
	margin: 0;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 3.5rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--text, #270000);
}

.woocommerce .chk-product-page div.product p.price,
.woocommerce .chk-product-page div.product span.price {
	margin: 0;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 3.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--prime-orange, #F15A29);
}

/* The amount inside the price (main.css makes amounts maroon sitewide). */
.woocommerce .chk-product-page div.product .summary .price .woocommerce-Price-amount {
	color: inherit;
}

@media (max-width: 1024px) {
	.woocommerce .chk-product-page div.product .product_title {
		font-size: 2.25rem;
	}

	.woocommerce .chk-product-page div.product p.price,
	.woocommerce .chk-product-page div.product span.price {
		font-size: 2rem;
	}
}

@media (max-width: 767px) {
	.woocommerce .chk-product-page div.product .product_title {
		font-size: 2rem;
	}
}

/* Variation table → stacked label + swatches. */
.woocommerce .chk-product-page div.product form.cart {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 8px 0 0;
}

.woocommerce .chk-product-page div.product form.cart .variations {
	margin: 0;
	border: 0;
}

.woocommerce .chk-product-page div.product form.cart .variations,
.woocommerce .chk-product-page div.product form.cart .variations tbody,
.woocommerce .chk-product-page div.product form.cart .variations tr,
.woocommerce .chk-product-page div.product form.cart .variations th,
.woocommerce .chk-product-page div.product form.cart .variations td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.woocommerce .chk-product-page div.product form.cart .variations tr + tr {
	margin-top: 16px;
}

.woocommerce .chk-product-page div.product form.cart .variations th.label,
.chk-qty-label {
	margin-bottom: 12px;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--text, #270000);
}

.woocommerce .chk-product-page div.product form.cart .variations th.label label::after {
	content: ":";
}

.woocommerce .chk-product-page div.product form.cart .variations th.label label {
	font-weight: 400;
}

/* No "Clear" link in the design; clicking a selected swatch deselects it. */
.woocommerce .chk-product-page div.product form.cart .reset_variations {
	display: none !important;
}

/* Swatches (assets/js/product.js) */
.chk-swatches__select {
	position: absolute !important;
	width: 1px !important;
	min-width: 0 !important;
	max-width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden;
	clip: rect(0 0 0 0);
	opacity: 0;
	pointer-events: none;
}

.chk-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.chk-swatch {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 2px solid var(--prime-orange, #F15A29);
	border-radius: 99px;
	background: var(--white, #fff);
	color: var(--prime-orange, #F15A29);
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.15s;
}

.chk-swatches--color .chk-swatch {
	background: var(--swatch, #fff);
}

.chk-swatch:hover {
	transform: scale(1.06);
}

.chk-swatch.is-selected {
	box-shadow: 0 0 0 3px var(--cream, #FFF8DB), 0 0 0 5px var(--text, #270000);
}

.chk-swatches--text .chk-swatch.is-selected {
	background: var(--prime-orange, #F15A29);
	color: var(--white, #fff);
	box-shadow: none;
}

.chk-swatch:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

/* Quantity + add to basket row */
.woocommerce .chk-product-page div.product form.cart .woocommerce-variation-add-to-cart,
.woocommerce .chk-product-page div.product form.cart:not(.variations_form) {
	display: flex;
	flex-direction: row; /* simple products: beats the column layout of form.cart above */
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.woocommerce .chk-product-page div.product form.cart .woocommerce-variation-add-to-cart::before,
.woocommerce .chk-product-page div.product form.cart:not(.variations_form)::before {
	content: "Quantity:";
	display: block;
	flex-basis: 100%;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 1.25rem;
	color: var(--text, #270000);
}

/* WooCommerce's clearfix would take a gap slot in the flex row. */
.woocommerce .chk-product-page div.product form.cart .woocommerce-variation-add-to-cart::after,
.woocommerce .chk-product-page div.product form.cart:not(.variations_form)::after {
	display: none;
}

.woocommerce .chk-product-page div.product form.cart .quantity {
	float: none;
	margin: 0;
}

.chk-qty,
.quantity:has(> .chk-qty__btn) {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 64px;
	padding: 0 16px;
	border-radius: 99px;
	background: var(--text, #270000);
}

.woocommerce .chk-product-page .chk-qty input.qty,
.woocommerce .chk-product-page .quantity:has(> .chk-qty__btn) input.qty {
	width: 50px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline-offset: 2px;
	background: transparent;
	color: var(--white, #fff);
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 2rem;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.chk-qty input.qty::-webkit-outer-spin-button,
.chk-qty input.qty::-webkit-inner-spin-button,
.quantity:has(> .chk-qty__btn) input.qty::-webkit-outer-spin-button,
.quantity:has(> .chk-qty__btn) input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.chk-qty__btn {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: center / 16px no-repeat;
	cursor: pointer;
}

.chk-qty__btn--minus { background-image: url("../img/shop/icon-minus.svg"); }
.chk-qty__btn--plus  { background-image: url("../img/shop/icon-plus.svg"); }

.woocommerce .chk-product-page div.product form.cart .single_add_to_cart_button {
	flex: 1 1 240px;
	height: 64px;
	margin: 0;
	padding: 0 24px;
	border-radius: 99px;
	background: var(--prime-orange, #F15A29);
	color: var(--white, #fff);
	font-family: var(--heading, "Lulo Clean"), sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Tablet + mobile (Figma): stepper full width, basket button full width below. */
@media (max-width: 1024px) {
	.woocommerce .chk-product-page div.product form.cart .quantity:has(> .chk-qty__btn),
	.woocommerce .chk-product-page div.product form.cart .quantity.chk-qty {
		flex: 1 1 100%;
		justify-content: space-between;
		padding: 0 32px;
	}

	.woocommerce .chk-product-page div.product form.cart .single_add_to_cart_button {
		flex-basis: 100%;
	}
}

/* Hover/press animation lives in main.css (sitewide buttons). Keep the orange on
 * hover and while no size is picked — WooCommerce asks for a size on click. */
.woocommerce .chk-product-page div.product form.cart .single_add_to_cart_button:hover,
.woocommerce .chk-product-page div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce .chk-product-page div.product form.cart .single_add_to_cart_button.disabled:hover {
	background: var(--prime-orange, #F15A29);
	color: var(--white, #fff);
	opacity: 1;
}

.woocommerce .chk-product-page div.product .woocommerce-variation-price .price {
	font-size: 1.5rem;
}

.woocommerce .chk-product-page div.product div.summary .chk-share {
	padding-top: 24px;
}


/* ---------------------------------------------------------------
 * 7. Single product — tabs (maroon card)
 * ------------------------------------------------------------- */
.woocommerce .chk-product-page div.product .woocommerce-tabs {
	padding: 64px;
	border-radius: 64px;
	background-color: var(--text, #270000);
	color: var(--white, #fff);
}

.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 32px;
	margin: 0 0 32px;
	padding: 0;
	overflow: visible;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs::before,
.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li a {
	padding: 0;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
}

.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--white, #fff);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs .panel {
	margin: 0;
	font-family: var(--inter, Inter), system-ui, sans-serif;
	font-size: 1.25rem;
	line-height: 1.4;
	color: var(--white, #fff);
}

.woocommerce .chk-product-page div.product .woocommerce-tabs .panel p,
.woocommerce .chk-product-page div.product .woocommerce-tabs .panel li,
.woocommerce .chk-product-page div.product .woocommerce-tabs .panel label {
	color: var(--white, #fff);
}

.woocommerce .chk-product-page div.product .woocommerce-tabs .panel ul {
	margin: 24px 0;
	padding-left: 1.2em;
}

.woocommerce .chk-product-page div.product .woocommerce-tabs .panel input,
.woocommerce .chk-product-page div.product .woocommerce-tabs .panel textarea {
	border-radius: 12px;
	border: 0;
	padding: 12px 16px;
	color: var(--text, #270000);
}

.woocommerce .chk-product-page div.product .woocommerce-tabs .panel .submit {
	border-radius: 99px;
	background: var(--prime-orange, #F15A29);
	color: var(--white, #fff);
	font-family: var(--heading, "Lulo Clean"), sans-serif;
	font-size: 0.75rem;
	text-transform: uppercase;
	padding: 18px 32px;
}

@media (max-width: 1024px) {
	.woocommerce .chk-product-page div.product .woocommerce-tabs {
		padding: 32px;
		border-radius: 48px;
	}

	.woocommerce .chk-product-page div.product .woocommerce-tabs ul.tabs li a {
		font-size: 1.125rem;
	}

	.woocommerce .chk-product-page div.product .woocommerce-tabs .panel {
		font-size: 1rem;
	}
}

@media (max-width: 767px) {
	.woocommerce .chk-product-page div.product .woocommerce-tabs {
		padding: 32px 24px;
	}
}

/* WooCommerce notices on the product page. */
.chk-product-page .woocommerce-notices-wrapper:empty {
	display: none;
}

.chk-product-page .woocommerce-message,
.chk-product-page .woocommerce-error,
.chk-product-page .woocommerce-info {
	margin: 0;
	border-radius: 24px;
	border-top-color: var(--prime-orange, #F15A29);
	background: var(--white, #fff);
}

/* ---------------------------------------------------------------
 * Store closed (inc/store.php): a note instead of the product page's
 * options and "Add to your basket". (Header basket: main.css.)
 * ------------------------------------------------------------- */
.chk-store-note {
	margin: 8px 0 0;
	padding: 20px 24px;
	border-radius: 24px;
	background-color: var(--yellow, #FCEE1F);
	color: var(--text, #270000);
	font-family: var(--inter, "Inter"), sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.chk-store-note a {
	color: inherit;
	text-decoration: underline;
}
