:root {
	--cts-ink: #22211f;
	--cts-muted: #6d6a63;
	--cts-sand: #ece9e3;
	--cts-stone: #d6d0c7;
	--cts-caramel: #a36d42;
	--cts-paper: #f8f7f4;
}

/* Prices stay stored in WooCommerce but never appear to visitors in quote mode. */
.woocommerce .price,
.woocommerce .woocommerce-Price-amount,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-variation-price {
	display: none !important;
}

.cts-add-quote,
.cts-submit-quote,
.cts-card-view,
.cts-view-product {
	font: inherit;
	box-shadow: none !important;
	text-decoration: none;
}

/* Sepete Ekle: white at rest, slow yellow sweep from left to right on hover. */
.cts-add-quote,
.cts-sweep-button {
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	overflow: hidden;
	border: 1px solid #22211f !important;
	border-radius: 9px !important;
	background: #fff !important;
	color: #171614 !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .045em;
	text-transform: none;
	cursor: pointer;
	transition: color .38s ease, border-color .38s ease, transform .2s ease;
}

.cts-add-quote::before,
.cts-sweep-button::before {
	position: absolute;
	inset: -1px;
	z-index: 0;
	background: #e8b21f;
	content: '';
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .62s cubic-bezier(.77, 0, .18, 1);
}

.cts-add-quote .cts-button-label,
.cts-sweep-button .cts-button-label {
	position: relative;
	z-index: 1;
}

.cts-add-quote:hover,
.cts-add-quote:focus-visible,
.cts-sweep-button:hover,
.cts-sweep-button:focus-visible {
	border-color: #e8b21f !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.cts-add-quote:hover::before,
.cts-add-quote:focus-visible::before,
.cts-sweep-button:hover::before,
.cts-sweep-button:focus-visible::before {
	transform: scaleX(1);
}

.cts-loop-button,
.cts-card-button {
	min-width: 168px;
}

.cts-view-product,
.cts-card-view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 1px solid var(--cts-ink) !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--cts-ink) !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: .04em;
}

.cts-single-quote-note {
	margin: 18px 0 10px;
	color: var(--cts-muted);
	font-size: 14px;
}

/* Hidden data source. JS transfers its product data onto the theme's existing Buy It Now button. */
.cts-single-source { display: none !important; }

/* The theme's wide Buy It Now button becomes the single-product Sepete Ekle button. */
.cts-single-cart-button {
	width: 100% !important;
	max-width: none !important;
	min-height: 50px !important;
	margin: 0 !important;
	border: 1px solid #22211f !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #171614 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
}
.cts-single-cart-button:hover,
.cts-single-cart-button:focus-visible { color: #fff !important; }

/* Header cart: icon only, mounted immediately to the left of the hamburger/menu icon. */
.cts-header-quote-source { display: none !important; }
.cts-header-quote {
	position: relative;
	z-index: 20;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin: 0 12px 0 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #171614 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	vertical-align: middle;
}
.cts-header-quote:hover,
.cts-header-quote:focus-visible { color: #e8b21f !important; }
.cts-header-quote .cts-cart-svg { display: inline-flex; align-items: center; justify-content: center; }
.cts-header-quote .cts-cart-svg svg { display: block; width: 23px; height: 23px; }
.cts-header-quote .cts-quote-count {
	position: absolute;
	top: 0;
	right: -2px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #e8b21f;
	box-sizing: border-box;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 13px;
	text-align: center;
}
.cts-header-quote-shortcode { margin-right: 0; }

/* v1.2: legacy floating Teklif Listem button is intentionally disabled. */
.cts-floating-quote { display: none !important; }
.cts-quote-count { display: none; min-width: 20px; padding: 3px 6px; border-radius: 999px; background: #e8b21f; color: #fff; font-size: 11px; text-align: center; }
.cts-quote-count.is-visible { display: inline-block; }

.cts-toast {
	position: fixed;
	right: 24px;
	bottom: 90px;
	z-index: 10000;
	max-width: min(360px, calc(100vw - 48px));
	padding: 14px 18px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(0,0,0,.18);
	color: var(--cts-ink);
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}
.cts-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Product showcases used on collection and series pages. */
.cts-showcase { max-width: 1440px; margin: 0 auto; padding: 0 28px 72px; color: var(--cts-ink); }
.cts-showcase-hero { position: relative; display: flex; align-items: flex-end; min-height: 360px; margin: 0 -28px 52px; overflow: hidden; background: linear-gradient(130deg, #b7ada1 0%, #8f8275 48%, #4f4840 100%); background-position: center; background-size: cover; }
.cts-showcase-hero.has-cover::before { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.62), rgba(20,18,15,.12)); content: ''; }
.cts-hero-overlay { position: relative; max-width: 760px; padding: 54px clamp(28px, 7vw, 110px); color: #fff; }
.cts-hero-overlay span,
.cts-showcase-top span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cts-hero-overlay h1 { max-width: 620px; margin: 12px 0 10px; color: inherit; font-size: clamp(38px, 5.2vw, 78px); font-weight: 400; letter-spacing: -.055em; line-height: .98; }
.cts-hero-description { max-width: 520px; font-size: 16px; line-height: 1.6; }
.cts-hero-description p { margin: 0; }
.cts-showcase-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cts-showcase-top h2 { margin: 8px 0 0; color: var(--cts-ink); font-size: clamp(30px, 3vw, 48px); font-weight: 400; letter-spacing: -.04em; }
.cts-showcase-top p { margin: 0 0 7px; color: var(--cts-muted); font-size: 14px; }
.cts-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cts-product-card { overflow: hidden; background: var(--cts-paper); }
.cts-product-image { display: block; aspect-ratio: 1 / 1.02; overflow: hidden; background: #e9e5de; }
.cts-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cts-product-card:hover .cts-product-image img { transform: scale(1.035); }
.cts-product-copy { padding: 18px; }
.cts-product-copy small { display: block; min-height: 16px; overflow: hidden; color: var(--cts-muted); font-size: 10px; font-weight: 700; letter-spacing: .075em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.cts-product-copy h3 { min-height: 52px; margin: 8px 0 16px; color: var(--cts-ink); font-size: 19px; font-weight: 400; line-height: 1.25; }
.cts-product-copy h3 a { color: inherit; text-decoration: none; }
.cts-card-button,
.cts-card-view { width: 100%; }
.cts-no-products { padding: 42px; background: var(--cts-paper); color: var(--cts-muted); text-align: center; }

/* Place these shortcodes in a full-width Elementor or Gutenberg section. */
.cts-mega-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 44px 26px; border-top: 1px solid var(--cts-sand); border-bottom: 1px solid var(--cts-sand); }
.cts-mega-menu section { display: grid; align-content: start; gap: 10px; }
.cts-mega-menu h3 { margin: 0 0 8px; font-size: 19px; font-weight: 500; }
.cts-mega-menu a { color: var(--cts-ink); font-size: 14px; line-height: 1.35; text-decoration: none; }
.cts-mega-menu section > a { color: var(--cts-muted); }
.cts-mega-menu a:hover { color: var(--cts-caramel); }
.cts-series-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 1280px; margin: 0 auto; background: var(--cts-stone); }
.cts-series-menu a { min-height: 124px; padding: 25px; background: #f9f8f5; color: var(--cts-ink); font-size: 24px; font-weight: 400; text-decoration: none; transition: background .2s ease, color .2s ease; }
.cts-series-menu a span { display: block; margin-bottom: 10px; color: var(--cts-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cts-series-menu a:hover { background: var(--cts-ink); color: #fff; }
.cts-series-menu a:hover span { color: #ddd3c9; }

/* Quote list page. */
.cts-quote-page { max-width: 1320px; margin: 0 auto; padding: 74px 28px 100px; color: var(--cts-ink); }
.cts-page-heading { margin: 0 0 46px; text-align: center; }
.cts-page-heading p { margin: 0 0 12px; color: var(--cts-caramel); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.cts-page-heading h1 { margin: 0; color: var(--cts-ink); font-size: clamp(40px, 5vw, 74px); font-weight: 400; letter-spacing: -.055em; line-height: .95; }
.cts-page-heading span { display: block; margin-top: 14px; color: var(--cts-muted); font-size: 15px; }
.cts-quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 7vw, 100px); align-items: start; }
.cts-list-head { display: grid; grid-template-columns: 1fr 100px; padding: 0 0 14px 26px; border-bottom: 1px solid var(--cts-stone); color: var(--cts-muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.cts-list-head span:last-child { text-align: center; }
.cts-quote-items { min-height: 150px; }
.cts-quote-items.is-loading { opacity: .58; }
.cts-loading,
.cts-empty-list { padding: 38px 0; color: var(--cts-muted); font-size: 15px; text-align: center; }
.cts-quote-item { display: grid; grid-template-columns: 26px 92px minmax(0, 1fr) 100px; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--cts-sand); }
.cts-remove-quote { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--cts-ink); font-size: 25px; font-weight: 300; line-height: 1; cursor: pointer; }
.cts-quote-image { display: block; width: 92px; height: 92px; overflow: hidden; background: var(--cts-paper); }
.cts-quote-image img { width: 100%; height: 100%; object-fit: cover; }
.cts-quote-detail { display: grid; gap: 5px; }
.cts-quote-detail small { color: var(--cts-muted); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.cts-quote-product-name { color: var(--cts-ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.cts-variation-label { color: var(--cts-muted); font-size: 12px; }
.cts-item-quantity { display: flex; justify-content: center; }
.cts-quantity { display: inline-grid; grid-template-columns: 32px 34px 32px; align-items: center; min-height: 38px; border: 1px solid var(--cts-stone); }
.cts-quantity button { height: 36px; padding: 0; border: 0; background: transparent; color: var(--cts-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.cts-quantity span { font-size: 14px; text-align: center; }
.cts-list-note { margin-top: 26px; padding: 17px 18px; border-left: 3px solid var(--cts-caramel); background: var(--cts-paper); color: var(--cts-muted); font-size: 14px; line-height: 1.5; }
.cts-quote-form { display: grid; gap: 12px; padding: 26px; background: #f4f2ee; }
.cts-form-heading { margin-bottom: 8px; font-size: 20px; font-weight: 500; }
.cts-quote-form label { display: grid; gap: 6px; color: var(--cts-ink); font-size: 12px; font-weight: 600; }
.cts-quote-form input,
.cts-quote-form select,
.cts-quote-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #cfc9c0; border-radius: 0; background: #fff; box-sizing: border-box; color: var(--cts-ink); font: inherit; font-size: 14px; }
.cts-quote-form textarea { min-height: 96px; resize: vertical; }
.cts-quote-form input:focus,
.cts-quote-form select:focus,
.cts-quote-form textarea:focus { outline: 2px solid rgba(163,109,66,.36); outline-offset: 1px; }
.cts-submit-quote { min-height: 51px; margin-top: 4px; border: 1px solid var(--cts-ink); background: var(--cts-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cts-submit-quote:hover,
.cts-submit-quote:focus-visible { background: var(--cts-caramel); border-color: var(--cts-caramel); }
.cts-submit-quote:disabled { cursor: wait; opacity: .65; }
.cts-form-message { min-height: 18px; margin: 0; font-size: 13px; line-height: 1.4; }
.cts-form-message.is-error { color: #a32c2c; }
.cts-form-message.is-success { color: #417049; }
.cts-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 900px) {
	.cts-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cts-mega-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cts-series-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cts-quote-layout { grid-template-columns: 1fr; }
	.cts-quote-form { max-width: none; }
}

@media (max-width: 560px) {
	.cts-floating-quote { right: 12px; bottom: 12px; min-height: 48px; padding: 0 13px; }
	.cts-toast { right: 12px; bottom: 72px; max-width: calc(100vw - 24px); }
	.cts-showcase { padding: 0 16px 48px; }
	.cts-showcase-hero { min-height: 270px; margin: 0 -16px 34px; }
	.cts-showcase-top { display: block; }
	.cts-showcase-top p { margin-top: 11px; }
	.cts-product-grid { gap: 10px; }
	.cts-product-copy { padding: 13px; }
	.cts-product-copy h3 { min-height: 46px; font-size: 16px; }
	.cts-add-quote { min-height: 43px; padding: 0 14px; font-size: 11px !important; }
	.cts-header-quote { margin-right: 8px; }
	.cts-mega-menu,
	.cts-series-menu { grid-template-columns: 1fr; }
	.cts-mega-menu { padding: 30px 20px; }
	.cts-quote-page { padding: 50px 16px 80px; }
	.cts-page-heading { margin-bottom: 32px; }
	.cts-list-head { grid-template-columns: 1fr 78px; padding-left: 0; }
	.cts-quote-item { grid-template-columns: 22px 68px minmax(0, 1fr); gap: 10px; }
	.cts-quote-image { width: 68px; height: 68px; }
	.cts-item-quantity { grid-column: 3; justify-content: flex-start; }
	.cts-quote-product-name { font-size: 15px; }
	.cts-quote-form { padding: 20px; }
}

/* =========================================================
   v2.0 — SINGLE PRODUCT REDESIGN
   Reference: editorial furniture detail page + Carsolli quote flow.
   ========================================================= */

/* Remove price/discount/stock/review/meta commerce noise everywhere quote mode is active. */
.woocommerce span.onsale,
.woocommerce .onsale,
.single-product .stock,
.single-product .out-of-stock,
.single-product .woocommerce-product-rating,
.single-product .product_meta,
.single-product .sku_wrapper,
.single-product .posted_in,
.single-product .tagged_as {
	display: none !important;
}

/* Give the product summary a calmer editorial rhythm without forcing theme columns. */
.single-product div.product .summary,
.single-product div.product .entry-summary {
	color: #171614;
}

.single-product div.product .summary .product_title,
.single-product div.product .entry-summary .product_title {
	margin: 0 0 22px !important;
	color: #111 !important;
	font-size: clamp(30px, 2.4vw, 46px) !important;
	font-weight: 400 !important;
	letter-spacing: -.035em !important;
	line-height: 1.08 !important;
}

.single-product .woocommerce-product-details__short-description {
	max-width: 650px;
	margin: 0 0 28px !important;
	color: #625f59 !important;
	font-size: 15px !important;
	line-height: 1.75 !important;
}

.single-product .woocommerce-product-details__short-description p {
	margin: 0 0 11px !important;
}

/* Three compact feature cards inspired by the reference layout. */
.cts-single-features {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	max-width: 460px;
	margin: 30px 0 24px;
}

.cts-single-feature {
	display: flex;
	min-height: 116px;
	padding: 16px 10px 12px;
	border: 1px solid #dedbd5;
	background: #fff;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	color: #1d1b18;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
}

.cts-feature-icon {
	display: flex;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
}

.cts-feature-icon svg {
	width: 42px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Dimensions table. It appears only when dimensions can be read from product attributes/native dimensions/description. */
.cts-single-dimensions {
	max-width: 620px;
	margin: 12px 0 28px;
	border-top: 1px solid #d8d5cf;
}

.cts-single-dimensions h3 {
	margin: 0 !important;
	padding: 14px 0 12px;
	border-bottom: 1px solid #d8d5cf;
	color: #26231f !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
}

.cts-single-dimensions dl {
	margin: 0;
}

.cts-single-dimensions dl > div {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	padding: 13px 0;
	border-bottom: 1px solid #dedbd5;
}

.cts-single-dimensions dt,
.cts-single-dimensions dd {
	margin: 0;
	font-size: 13px;
	font-weight: 400;
}

.cts-single-dimensions dd {
	color: #111;
	text-align: right;
}

/* New quote box replacing the old Buy It Now / purchase area. */
.cts-single-offer-box {
	max-width: 650px;
	margin: 28px 0 0;
	padding: 18px;
	border: 0;
	border-radius: 10px;
	background: #f1f0ee;
	box-sizing: border-box;
}

.cts-single-offer-copy {
	display: grid;
	gap: 4px;
	margin-bottom: 12px;
}

.cts-single-offer-copy strong {
	color: #24211e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.cts-single-offer-copy span {
	color: #6f6b64;
	font-size: 12px;
	line-height: 1.45;
}

.cts-single-offer-actions {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
}

.cts-single-qty {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	min-height: 48px;
	border: 1px solid #d1cec8;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.cts-single-qty button {
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #171614 !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.cts-single-qty-value {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
	font-size: 14px;
	font-weight: 500;
}

.cts-single-offer-add,
.cts-single-offer-box .cts-add-quote {
	position: relative;
	display: inline-flex !important;
	width: 100% !important;
	min-width: 0 !important;
	min-height: 48px !important;
	padding: 0 22px !important;
	border: 1px solid #171614 !important;
	border-radius: 6px !important;
	background: #171614 !important;
	color: #fff !important;
	align-items: center;
	justify-content: center;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .045em !important;
	text-transform: uppercase !important;
	transform: none !important;
}

.cts-single-offer-box .cts-add-quote::before {
	display: none !important;
}

.cts-single-offer-box .cts-add-quote:hover,
.cts-single-offer-box .cts-add-quote:focus-visible {
	border-color: #c79b37 !important;
	background: #c79b37 !important;
	color: #fff !important;
	transform: none !important;
}

/* Variable-product selectors remain usable, but native quantity/purchase chrome stays hidden. */
.single-product form.variations_form table.variations {
	margin-bottom: 18px !important;
}

.single-product form.variations_form .single_variation .price,
.single-product form.variations_form .woocommerce-variation-availability,
.single-product form.variations_form .quantity,
.single-product form.cart > .quantity,
.single-product form.cart > button.single_add_to_cart_button {
	display: none !important;
}

/* Theme leftovers seen in the Olight demo. JS also removes text-matched blocks for resilience. */
.single-product [class*="secure-checkout"],
.single-product [class*="safe-checkout"],
.single-product [class*="checkout-safe"],
.single-product [class*="payment-icons"],
.single-product [class*="payment-icon"] {
	display: none !important;
}

/* Gallery stays theme-native but gets the pale editorial canvas from the reference page. */
.single-product .woocommerce-product-gallery__image,
.single-product .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
	background: #f7f7f6;
}

/* Tabs / lower product content: keep readable, remove old English styling artifacts. */
.single-product .woocommerce-tabs {
	margin-top: 52px !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
	font-weight: 500 !important;
}

@media (max-width: 900px) {
	.cts-single-features {
		max-width: none;
	}

	.cts-single-offer-actions {
		grid-template-columns: 150px minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.cts-single-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.cts-single-feature {
		min-height: 98px;
		padding: 12px 6px 10px;
		font-size: 10px;
	}

	.cts-feature-icon,
	.cts-feature-icon svg {
		width: 34px;
		height: 34px;
	}

	.cts-single-offer-box {
		padding: 14px;
	}

	.cts-single-offer-actions {
		grid-template-columns: 1fr;
	}

	.cts-single-qty {
		grid-template-columns: 50px 1fr 50px;
	}
}
