/*
 * The Total Office Shop – single product page.
 * Loaded only on product pages while the new design is on (or previewed).
 * Shared header/footer/tokens come from tto-home.css.
 *
 * One strong element: the large warm-grey gallery, with the product photos
 * blended into it. Everything else stays quiet and uses the site's existing
 * fields, pills and type.
 */

.tto-product-page {
	--pd-ink: #222;
	--pd-muted: #555;
	--pd-soft: #8a8a8a;
	--pd-card: #f3f2f0;
	--pd-field: #e4e5e8;
	--pd-pill: #f2f2f2;
	--pd-line: #e6e6e6;
	--pd-black: #000;
	--pd-green: #1f8a4c;
	--pd-amber: #b77f00;
	--pd-red: #c0392b;
	--pd-radius: 14px;
	--pd-gutter: clamp(20px, 4.9vw, 70px);
}

/* ---------- Page frame ---------- */

.tto-product-page .tto-page--product {
	box-sizing: border-box;
	max-width: calc(1250px + 2 * var(--pd-gutter));
	margin: 0 auto;
	padding: 20px var(--pd-gutter) clamp(72px, 9vw, 120px);
	font-family: "TTO Montserrat", Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pd-ink);
}

/* Keep WoodMart's fonts off our text (spans left alone for the Dirham sign). */
.tto-product-page .tto-pd,
.tto-product-page .tto-pd :is(h1, h2, h3, p, a, li, dt, dd, label, th, td, select, input, button, summary, del, ins, strong) {
	font-family: "TTO Montserrat", Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif !important;
	letter-spacing: normal;
}

.tto-product-page .tto-pd a:focus-visible,
.tto-product-page .tto-pd button:focus-visible,
.tto-product-page .tto-pd summary:focus-visible,
.tto-product-page .tto-pd select:focus-visible,
.tto-product-page .tto-pd input:focus-visible,
.tto-product-page .tto-pd [tabindex]:focus-visible {
	outline: 2px solid var(--pd-black);
	outline-offset: 3px;
}

/* ---------- Breadcrumb ---------- */

.tto-product-page .tto-pd-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	margin: 0 0 clamp(20px, 3vw, 32px);
	font-size: 14px;
	color: var(--pd-soft);
}

.tto-product-page .tto-pd-crumbs a {
	color: var(--pd-muted);
	text-decoration: none;
}

.tto-product-page .tto-pd-crumbs a:hover {
	color: var(--pd-black);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tto-product-page .tto-pd-crumbs__sep {
	color: #c4c4c4;
}

/* ---------- Top: gallery + info ---------- */

.tto-product-page .tto-pd__top {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

/* Gallery */
.tto-product-page .tto-pd-gallery {
	min-width: 0;
}

.tto-product-page .tto-pd-gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: var(--pd-card);
}

.tto-product-page .tto-pd-gallery__track {
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.tto-product-page .tto-pd-gallery__track::-webkit-scrollbar {
	display: none;
}

.tto-product-page .tto-pd-gallery__slide {
	flex: 0 0 100%;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
}

.tto-product-page .tto-pd-gallery__zoom {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.tto-product-page .tto-pd-gallery__slide img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	margin: 0;
	padding: 7%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.tto-product-page .tto-pd-gallery__arrow {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--pd-black);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.tto-product-page .tto-pd-gallery__arrow--prev {
	left: 16px;
}

.tto-product-page .tto-pd-gallery__arrow--next {
	right: 16px;
}

.tto-product-page .tto-pd-gallery__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.tto-product-page .tto-pd-gallery__count {
	position: absolute;
	right: 16px;
	bottom: 14px;
	margin: 0;
	padding: 2px 10px;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.tto-product-page .tto-pd-gallery__thumb {
	flex: 0 0 auto;
	width: 76px;
	height: 76px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--pd-card);
	cursor: pointer;
}

.tto-product-page .tto-pd-gallery__thumb.is-active {
	border-color: var(--pd-black);
}

.tto-product-page .tto-pd-gallery__thumb img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	padding: 6px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Info column */
.tto-product-page .tto-pd__info {
	position: sticky;
	top: 24px;
	min-width: 0;
}

.tto-product-page .tto-pd h1.tto-pd__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: clamp(26px, 2.6vw, 36px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd__by {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd__by a {
	color: var(--pd-muted);
	text-decoration: underline;
	text-decoration-color: #c4c4c4;
	text-underline-offset: 3px;
}

.tto-product-page .tto-pd__by a:hover {
	color: var(--pd-black);
	text-decoration-color: currentColor;
}

/* Price */
.tto-product-page .tto-pd__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 8px;
}

.tto-product-page .tto-pd p.tto-pd__price,
.tto-product-page .tto-pd .woocommerce-variation-price .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd .price ins {
	order: 1;
	text-decoration: none;
	color: var(--pd-ink);
	font-weight: 600;
}

.tto-product-page .tto-pd .price del {
	order: 2;
	font-size: 17px;
	font-weight: 400;
	color: var(--pd-soft);
	opacity: 1;
}

.tto-product-page .tto-pd .price .amount {
	color: inherit;
}

.tto-product-page .tto-pd__saving {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 9999px;
	background: var(--pd-black);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	color: #fff;
}

/* Stock */
.tto-product-page .tto-pd p.tto-pd__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd__stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pd-green);
}

.tto-product-page .tto-pd__stock--backorder::before {
	background: var(--pd-amber);
}

.tto-product-page .tto-pd__stock--out::before {
	background: var(--pd-red);
}

.tto-product-page .tto-pd__lead {
	max-width: 34em;
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd__lead p {
	margin: 0 0 10px;
}

/* ---------- Add to Cart form (WooCommerce's, restyled) ---------- */

.tto-product-page .tto-pd-buy {
	padding: 22px 0 0;
	border-top: 1px solid var(--pd-line);
	scroll-margin-top: 24px;
}

.tto-product-page .tto-pd-buy form.cart {
	margin: 0;
	padding: 0;
	border: 0;
}

.tto-product-page .tto-pd-buy table.variations {
	width: 100%;
	margin: 0 0 6px;
	border: 0;
	border-collapse: collapse;
}

.tto-product-page .tto-pd-buy table.variations tr {
	display: block;
	margin: 0 0 16px;
}

.tto-product-page .tto-pd-buy table.variations :is(th, td) {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
	background: none;
}

.tto-product-page .tto-pd-buy table.variations th label,
.tto-product-page .tto-pd-buy table.variations td.label label {
	display: block;
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd-buy select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 44px 0 16px;
	border: 0;
	border-radius: var(--pd-radius);
	background-color: var(--pd-field);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23222' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
	box-shadow: none;
	font-size: 16px;
	color: var(--pd-ink);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.tto-product-page .tto-pd-buy .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--pd-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* WoodMart colour/size swatches, if a product uses them. */
.tto-product-page .tto-pd-buy .wd-swatches-product {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tto-product-page .tto-pd-buy .wd-swatch {
	border-radius: 9999px;
}

.tto-product-page .tto-pd-buy .wd-swatch.wd-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--pd-black);
}

/* Chosen option: its price and stock text. */
.tto-product-page .tto-pd-buy .single_variation {
	margin: 0 0 16px;
}

.tto-product-page .tto-pd-buy .woocommerce-variation-description p {
	margin: 0 0 8px;
	font-size: 15px;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd-buy .woocommerce-variation-price .price {
	font-size: 24px;
}

.tto-product-page .tto-pd-buy p.stock {
	margin: 8px 0 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd-buy p.stock.out-of-stock {
	color: var(--pd-red);
}

/* Quantity + button row */
.tto-product-page .tto-pd-buy form.cart:not(.variations_form),
.tto-product-page .tto-pd-buy .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

.tto-product-page .tto-pd-buy .quantity {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 52px;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 9999px;
	background: var(--pd-field);
}

.tto-product-page .tto-pd-buy .quantity input.qty {
	width: 48px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	color: var(--pd-ink);
	-moz-appearance: textfield;
}

.tto-product-page .tto-pd-buy .quantity input.qty::-webkit-inner-spin-button,
.tto-product-page .tto-pd-buy .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.tto-product-page .tto-pd-buy .quantity :is(input[type="button"], button) {
	width: 40px;
	height: 40px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	font-size: 18px;
	color: var(--pd-ink);
	cursor: pointer;
}

.tto-product-page .tto-pd-buy .quantity :is(input[type="button"], button):hover {
	background: #fff;
}

/* Hidden quantity (sold individually) */
.tto-product-page .tto-pd-buy .quantity.hidden,
.tto-product-page .tto-pd-buy .quantity:has(input[type="hidden"]) {
	display: none;
}

/* Site button style: black pill → white on hover. */
.tto-product-page .tto-pd :is(.single_add_to_cart_button, .tto-pd-btn) {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 200px;
	min-height: 52px;
	margin: 0;
	padding: 0 28px;
	border: 1px solid var(--pd-black) !important;
	border-radius: 9999px;
	background: var(--pd-black) !important;
	background-image: none !important;
	box-shadow: none !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #fff !important;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tto-product-page .tto-pd :is(.single_add_to_cart_button, .tto-pd-btn):is(:hover, :focus-visible) {
	background: #fff !important;
	color: var(--pd-black) !important;
}

/* WooCommerce greys the button until all options are chosen. */
.tto-product-page .tto-pd .single_add_to_cart_button.disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.tto-product-page .tto-pd .single_add_to_cart_button.disabled:hover {
	background: var(--pd-black) !important;
	color: #fff !important;
}

/* Out of stock product: WooCommerce's message */
.tto-product-page .tto-pd-buy > p.stock,
.tto-product-page .tto-pd-buy .woocommerce-variation-availability {
	margin: 0 0 12px;
}

/* ---------- Ask + service notes ---------- */

.tto-product-page .tto-pd p.tto-pd__ask {
	margin: 18px 0 0;
	font-size: 15px;
}

.tto-product-page .tto-pd__ask a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pd-ink);
	text-decoration: underline;
	text-decoration-color: #c4c4c4;
	text-underline-offset: 4px;
}

.tto-product-page .tto-pd__ask a:hover {
	text-decoration-color: currentColor;
}

.tto-product-page .tto-pd-notes {
	display: grid;
	gap: 12px;
	margin: 28px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--pd-line);
	list-style: none;
}

.tto-product-page .tto-pd-notes li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--pd-muted);
	list-style: none;
}

.tto-product-page .tto-pd-notes li::before {
	content: none;
}

.tto-product-page .tto-pd-notes a {
	color: var(--pd-ink);
	text-underline-offset: 3px;
}

.tto-product-page .tto-pd-icon {
	flex: 0 0 auto;
	color: var(--pd-ink);
}

/* ---------- Description / Specifications / Delivery ---------- */

.tto-product-page .tto-pd-details {
	max-width: 860px;
	margin: clamp(56px, 7vw, 96px) 0 0;
	border-top: 1px solid var(--pd-line);
}

.tto-product-page .tto-pd-details__item {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--pd-line);
}

.tto-product-page .tto-pd-details__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	list-style: none;
	cursor: pointer;
}

.tto-product-page .tto-pd-details__item > summary::-webkit-details-marker {
	display: none;
}

.tto-product-page .tto-pd-details__item > summary::marker {
	content: "";
}

.tto-product-page .tto-pd-details__item > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23222' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}

.tto-product-page .tto-pd-details__item[open] > summary::after {
	transform: rotate(45deg);
}

.tto-product-page .tto-pd-details__item > summary h2 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: none;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd-details__body {
	padding: 0 0 28px;
}

.tto-product-page .tto-pd-prose {
	max-width: 42em;
	font-size: 16px;
	line-height: 1.7;
	color: var(--pd-muted);
}

.tto-product-page .tto-pd-prose :is(p, ul, ol) {
	margin: 0 0 14px;
}

.tto-product-page .tto-pd-prose li {
	margin: 0 0 6px;
}

.tto-product-page .tto-pd-prose a {
	color: var(--pd-ink);
	text-underline-offset: 3px;
}

.tto-product-page .tto-pd-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--pd-radius);
}

/* Specifications list */
.tto-product-page .tto-pd-specs {
	margin: 0;
	padding: 0;
}

.tto-product-page .tto-pd-specs > div {
	display: grid;
	grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--pd-line);
}

.tto-product-page .tto-pd-specs > div:first-child {
	padding-top: 0;
}

.tto-product-page .tto-pd-specs > div:last-child {
	border-bottom: 0;
}

.tto-product-page .tto-pd-specs dt {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd-specs dd {
	margin: 0;
	font-size: 15px;
	color: var(--pd-muted);
}

/* ---------- You may also like ---------- */

.tto-product-page .tto-pd-related {
	margin: clamp(64px, 8vw, 110px) 0 0;
}

.tto-product-page .tto-pd h2.tto-pd-related__title {
	margin: 0 0 24px;
	padding: 0;
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd-related__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tto-product-page .tto-pd-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tto-product-page .tto-pd-card::before {
	content: none;
}

.tto-product-page .tto-pd-card__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--pd-ink);
	text-decoration: none;
}

.tto-product-page .tto-pd-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	margin-bottom: 8px;
	overflow: hidden;
	border-radius: var(--pd-radius);
	background: var(--pd-card);
}

.tto-product-page .tto-pd-card__media img {
	box-sizing: border-box;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	padding: 8%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.3s ease;
}

.tto-product-page .tto-pd-card__link:hover .tto-pd-card__media img {
	transform: scale(1.03);
}

.tto-product-page .tto-pd-card__name {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
}

.tto-product-page .tto-pd-card__link:hover .tto-pd-card__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tto-product-page .tto-pd-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	font-size: 15px;
	font-weight: 600;
}

.tto-product-page .tto-pd-card__price del {
	font-size: 13px;
	font-weight: 400;
}

/* ---------- WooCommerce notices (e.g. "added to your cart") ---------- */

.tto-product-page .tto-pd :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 24px;
	padding: 14px 16px 14px 22px;
	border: 0;
	border-radius: var(--pd-radius);
	background: var(--pd-card);
	list-style: none;
	font-size: 15px;
	color: var(--pd-ink);
}

.tto-product-page .tto-pd .woocommerce-error {
	background: #fdeeee;
	color: #8a1c1c;
}

.tto-product-page .tto-pd :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
	content: none;
	display: none;
}

.tto-product-page .tto-pd :is(.woocommerce-message, .woocommerce-info) .button {
	order: 2;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 20px;
	border: 1px solid var(--pd-black) !important;
	border-radius: 9999px;
	background: var(--pd-black) !important;
	font-size: 13px;
	font-weight: 500;
	text-transform: uppercase;
	color: #fff !important;
}

/* ---------- Lightbox ---------- */

.tto-product-page .tto-pd-lightbox {
	box-sizing: border-box;
	width: min(92vw, 1100px);
	max-width: none;
	height: min(90vh, 1100px);
	max-height: none;
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 20px;
	background: var(--pd-card);
}

.tto-product-page .tto-pd-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

.tto-product-page .tto-pd-lightbox__img {
	box-sizing: border-box;
	display: block;
	width: 100%;
	height: 100%;
	padding: 4%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.tto-product-page .tto-pd-lightbox__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--pd-black);
	cursor: pointer;
}

/* ---------- Phone bar (price + button) ---------- */

.tto-product-page .tto-pd-sticky {
	display: none;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 899px) {
	.tto-product-page .tto-pd__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.tto-product-page .tto-pd__info {
		position: static;
	}

	.tto-product-page .tto-pd-gallery__stage {
		border-radius: 16px;
	}

	.tto-product-page .tto-pd-gallery__arrow {
		display: none;
	}

	.tto-product-page .tto-pd-gallery__thumbs {
		display: none;
	}

	.tto-product-page .tto-pd-related__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tto-product-page .tto-pd-sticky:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 400;
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 10px var(--pd-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--pd-line);
		background: #fff;
	}

	.tto-product-page .tto-pd-sticky__info {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
	}

	.tto-product-page .tto-pd-sticky__name {
		overflow: hidden;
		font-size: 13px;
		color: var(--pd-muted);
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.tto-product-page .tto-pd-sticky__price {
		font-size: 16px;
		font-weight: 600;
	}

	.tto-product-page .tto-pd-sticky__price del {
		display: none;
	}

	.tto-product-page .tto-pd-sticky__price ins {
		text-decoration: none;
	}

	.tto-product-page .tto-pd .tto-pd-sticky .tto-pd-btn {
		flex: 0 0 auto;
		min-height: 46px;
		padding: 0 22px;
		font-size: 14px;
	}
}

@media (max-width: 599px) {
	.tto-product-page .tto-pd p.tto-pd__price {
		font-size: 24px;
	}

	.tto-product-page .tto-pd-specs > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.tto-product-page .tto-pd-lightbox {
		width: 100vw;
		height: 100vh;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tto-product-page .tto-pd-gallery__track {
		scroll-behavior: auto;
	}

	.tto-product-page .tto-pd-gallery__arrow,
	.tto-product-page .tto-pd-details__item > summary::after,
	.tto-product-page .tto-pd-card__media img,
	.tto-product-page .tto-pd :is(.single_add_to_cart_button, .tto-pd-btn) {
		transition: none;
	}

	.tto-product-page .tto-pd-card__link:hover .tto-pd-card__media img {
		transform: none;
	}
}

/* ===========================================================================
 * Batch 3 (30 Nov 2026): "Added to cart" message without reloading the page.
 * ======================================================================== */

.tto-toast {
	box-sizing: border-box;
	position: fixed;
	top: calc(var(--tto-header-h, 0px) + var(--wp-admin--admin-bar--height, 0px) + 16px);
	left: 50%;
	z-index: 1001;
	display: flex;
	align-items: center;
	gap: 16px;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 12px 12px 12px 20px;
	border-radius: 16px;
	background: #111;
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	font-family: "TTO Montserrat", Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	opacity: 0;
	transform: translate(-50%, -12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}

.tto-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.tto-toast.is-error {
	background: #7a1d16;
}

.tto-toast__text {
	min-width: 0;
}

.tto-toast__text span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tto-toast a.tto-toast__btn {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 9999px;
	background: #fff;
	color: #000;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.tto-toast a.tto-toast__btn:hover {
	background: #e9e9e9;
}

.tto-toast button.tto-toast__close {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
}

.tto-toast button.tto-toast__close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.tto-toast :is(a, button):focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.tto-product-page .single_add_to_cart_button.is-loading {
	opacity: 0.7;
	cursor: progress;
}

@media (max-width: 599px) {
	.tto-toast {
		left: 16px;
		right: 16px;
		width: auto;
		transform: translateY(-12px);
	}

	.tto-toast.is-visible {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tto-toast {
		transition: none;
	}
}

/* ===========================================================================
 * "You may also like": Add to cart button under each product (30 Nov 2026).
 * Buttons line up along the bottom of every card.
 * ======================================================================== */

.tto-product-page .tto-pd-card {
	display: flex;
	flex-direction: column;
}

.tto-product-page .tto-pd-card__link {
	flex: 1 1 auto;
}

.tto-product-page a.tto-pd-card__add {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 14px 0 0;
	padding: 0 18px;
	border: 1.5px solid #000;
	border-radius: 9999px;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.tto-product-page a.tto-pd-card__add:hover,
.tto-product-page a.tto-pd-card__add.added {
	background: #000;
	color: #fff;
}

.tto-product-page a.tto-pd-card__add.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* No theme spinners/icons on the button. */
.tto-product-page a.tto-pd-card__add::before,
.tto-product-page a.tto-pd-card__add::after {
	content: none !important;
}

/* WooCommerce adds its own "View cart" link after adding; the message at the
   top of the page has a View cart button instead. */
.tto-product-page .tto-pd-card .added_to_cart {
	display: none !important;
}

.tto-product-page .tto-pd-card__soldout {
	display: block;
	margin: 14px 0 0;
	min-height: 44px;
	line-height: 44px;
	font-size: 14px;
	color: #8a8a8a;
	text-align: center;
}
