/* TrendCave Toolkit — product page layout (body.tct-pp).
   Only re-orders and restyles what the theme already prints: nothing is moved in the page code,
   so switching the part off puts the page back exactly as it was. */

/* Order: title → rating → price · incl. taxes · FREE SHIPPING → colour → size + buttons → combos → delivery → description → wishlist → details */
.tct-pp .summary-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 12px;
}
.tct-pp .summary-inner > * {
	flex: 0 0 100%;
	order: 20;
	min-width: 0;
	max-width: 100%;
}
.tct-pp .summary-inner > .product_title { order: 1; margin-bottom: 6px; }
.tct-pp .summary-inner > .woocommerce-product-rating { order: 2; margin-bottom: 8px; }
.tct-pp .summary-inner > .price { order: 3; flex: 0 0 auto; margin: 0; }
.tct-pp .summary-inner > .tct-tax-note { order: 4; flex: 0 0 auto; }
.tct-pp .summary-inner > .tct-free-shipping { order: 5; flex: 0 0 auto; margin: 0; }
.tct-pp .summary-inner > .variations_form-linked { order: 6; margin-top: 22px; }
.tct-pp .summary-inner > form.cart { order: 7; margin-top: 4px; }
.tct-pp .summary-inner > .tct-combo-box { order: 8; }
.tct-pp .summary-inner > .tct-delivery { order: 9; margin-top: 18px; }
.tct-pp .summary-inner > .woocommerce-product-details__short-description { order: 30; margin-top: 22px; }
.tct-pp .summary-inner > .wd-wishlist-btn { order: 31; margin-top: 14px; }
.tct-pp .summary-inner > .product_meta { order: 32; }
.tct-pp .summary-inner > .wd-social-icons { order: 33; }
.tct-pp .summary-inner > .wd-compare-btn {
	display: none !important;
}

.tct-pp .tct-tax-note {
	font-size: 13px;
	color: #6b645a;
}
.tct-pp .summary-inner > .price {
	font-size: 26px;
	font-weight: 700;
}

/* Size boxes like the design: rounded rectangles, the chosen one filled */
.tct-pp .summary .variations .wd-swatch.wd-text {
	min-width: 56px;
	height: 46px;
	padding: 0 12px;
	border: 1.5px solid #d6cec1;
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
}
.tct-pp .summary .variations .wd-swatch.wd-text::before,
.tct-pp .summary .variations .wd-swatch.wd-text::after {
	display: none;
}
.tct-pp .summary .variations .wd-swatch.wd-text .wd-swatch-text {
	font-size: 14px;
	font-weight: 700;
	color: #1c1917;
}
.tct-pp .summary .variations .wd-swatch.wd-text:hover {
	border-color: #1c1917;
}
.tct-pp .summary .variations .wd-swatch.wd-text.wd-active {
	background: #1c1917;
	border-color: #1c1917;
}
.tct-pp .summary .variations .wd-swatch.wd-text.wd-active .wd-swatch-text {
	color: #fff;
}

/* Add to cart + Buy now: two equal, large buttons */
.tct-pp .summary .woocommerce-variation-add-to-cart,
.tct-pp .summary form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}
.tct-pp .summary .single_add_to_cart_button,
.tct-pp .summary .wd-buy-now-btn {
	flex: 1 1 0;
	min-width: 140px;
	min-height: 54px;
	margin: 0 !important;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.tct-pp.tct-pp-noqty .summary form.cart .quantity {
	display: none !important;
}

@media (max-width: 767px) {
	.tct-pp .summary-inner > .price {
		font-size: 22px;
	}
	.tct-pp .summary .single_add_to_cart_button,
	.tct-pp .summary .wd-buy-now-btn {
		min-width: 0;
		min-height: 50px;
	}
}

/* Quantity box (when shown): same height and rounded border as the buttons */
.tct-pp .summary form.cart .quantity {
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	height: 54px;
	margin: 0 !important;
	border: 1.5px solid #d6cec1;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.tct-pp .summary form.cart .quantity .minus,
.tct-pp .summary form.cart .quantity .plus {
	width: 38px;
	min-width: 0;
	min-height: 0;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1c1917;
	font-size: 18px;
	box-shadow: none;
}
.tct-pp .summary form.cart .quantity .minus:hover,
.tct-pp .summary form.cart .quantity .plus:hover {
	background: var(--tct-panel, #f6f2ea);
}
.tct-pp .summary form.cart .quantity input.qty {
	width: 46px;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
}
@media (max-width: 767px) {
	.tct-pp .summary form.cart .quantity {
		height: 50px;
	}
	/* Phones: quantity + Add to cart on one line, Buy now full width below */
	.tct-pp .summary .wd-buy-now-btn {
		flex: 1 0 100%;
	}
}
