/*
 * NextKat Market — product conversion sections.
 *
 * Product pages whose long description starts with the <!--nk-sections-->
 * marker render that description as full-width conversion sections below the
 * buy box (patipet-style landing flow), instead of the plain description tab.
 * All section content is authored in the product description with the
 * classes below, so every product can reuse the same system.
 */

/* ---------- Layout shell ---------- */

.nk-conversion { clear: both; margin-top: 56px; }

.nk-sec { padding: 58px 24px; border-top: 1px solid var(--dgz-line); }
.nk-sec:first-child { border-top: 0; }
.nk-sec--soft { background: var(--dgz-soft); }
.nk-sec--dark { background: #161724; color: #fff; }
.nk-sec__inner { width: min(100%, 1080px); margin: 0 auto; }

.nk-sec__title {
	margin: 0 0 8px;
	color: var(--dgz-ink);
	font-size: clamp(1.45rem, 3vw, 2.1rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
	text-align: center;
}
.nk-sec--dark .nk-sec__title { color: #fff; }
.nk-sec__title em { font-style: italic; color: var(--dgz-violet); }
.nk-sec--dark .nk-sec__title em { color: #ffb894; }

.nk-sec__lead {
	max-width: 640px;
	margin: 0 auto 30px;
	color: var(--dgz-muted);
	font-size: .86rem;
	line-height: 1.6;
	text-align: center;
}
.nk-sec--dark .nk-sec__lead { color: #bfc0d0; }

/* ---------- Trust strip (hero badges) ---------- */

.nk-trust {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.nk-trust__item {
	display: grid;
	grid-template-columns: 34px 1fr;
	grid-template-rows: auto auto;
	column-gap: 11px;
	align-items: center;
	padding: 16px 15px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
}
.nk-trust__icon {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--dgz-violet-soft);
	color: var(--dgz-violet-dark);
	font-size: 1rem;
}
.nk-trust__label { color: var(--dgz-ink); font-size: .82rem; font-weight: 800; line-height: 1.25; }
.nk-trust__note { grid-column: 2; color: var(--dgz-muted); font-size: .68rem; line-height: 1.4; }

/* ---------- Card grids (features, details, ideas) ---------- */

.nk-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.nk-cards--three { grid-template-columns: repeat(3, 1fr); }

.nk-card {
	padding: 22px 20px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius-lg);
	background: #fff;
	box-shadow: var(--dgz-shadow-sm);
}
.nk-card__tag {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--dgz-violet-dark);
	font-size: .6rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}
.nk-card__title { margin: 0 0 8px; color: var(--dgz-ink); font-size: .95rem; font-weight: 800; line-height: 1.3; }
.nk-card__text { margin: 0; color: var(--dgz-muted); font-size: .78rem; line-height: 1.6; }
.nk-card__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 13px;
	border-radius: 11px;
	background: var(--dgz-violet-soft);
	color: var(--dgz-violet-dark);
	font-size: 1.1rem;
}

/* ---------- Steps ---------- */

.nk-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	counter-reset: nk-step;
}
.nk-step {
	position: relative;
	padding: 24px 20px 20px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius-lg);
	background: #fff;
}
.nk-step__num {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--dgz-violet);
	color: #fff;
	font-size: .85rem;
	font-weight: 800;
}
.nk-step__title { margin: 0 0 7px; color: var(--dgz-ink); font-size: .92rem; font-weight: 800; }
.nk-step__text { margin: 0; color: var(--dgz-muted); font-size: .78rem; line-height: 1.6; }

/* ---------- Numbered moments (01 / 02 / 03) ---------- */

.nk-moments {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.nk-moment {
	padding: 24px 20px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius-lg);
	background: #fff;
}
.nk-moment__num {
	margin-bottom: 12px;
	color: var(--dgz-violet);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .14em;
}
.nk-moment__title { margin: 0 0 7px; color: var(--dgz-ink); font-size: .95rem; font-weight: 800; }
.nk-moment__text { margin: 0; color: var(--dgz-muted); font-size: .78rem; line-height: 1.6; }

/* ---------- Fit / comparison rows ---------- */

.nk-fit { display: grid; gap: 10px; }
.nk-fit__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 6px 18px;
	align-items: center;
	padding: 15px 18px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
}
.nk-fit__row--caution { border-left: 3px solid var(--dgz-yellow); }
.nk-fit__use { color: var(--dgz-ink); font-size: .84rem; font-weight: 800; }
.nk-fit__detail { color: var(--dgz-muted); font-size: .74rem; }
.nk-fit__note { display: flex; align-items: flex-start; gap: 7px; color: #8a7420; font-size: .71rem; line-height: 1.5; }
.nk-fit__note::before { content: "!"; flex: 0 0 auto; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #ffcd4a; color: #5d4b00; font-size: .62rem; font-weight: 800; }

/* ---------- Quote block ---------- */

.nk-quote {
	max-width: 640px;
	margin: 26px auto 0;
	padding: 18px 22px;
	border-left: 3px solid var(--dgz-violet);
	border-radius: 0 var(--dgz-radius) var(--dgz-radius) 0;
	background: #fff;
	color: var(--dgz-ink-soft);
	font-size: .84rem;
	line-height: 1.65;
}

/* ---------- Order info summary ---------- */

.nk-order {
	display: grid;
	gap: 8px;
}
.nk-order__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 18px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
	font-size: .8rem;
}
.nk-order__key { color: var(--dgz-muted); font-weight: 650; }
.nk-order__val { color: var(--dgz-ink); font-weight: 800; text-align: right; }

/* ---------- FAQ accordion ---------- */

.nk-faq { display: grid; gap: 9px; max-width: 760px; margin: 0 auto; }
.nk-faq__item { border: 1px solid var(--dgz-line); border-radius: var(--dgz-radius); background: #fff; overflow: hidden; }
.nk-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	color: var(--dgz-ink);
	font-size: .84rem;
	font-weight: 750;
	text-align: left;
	cursor: pointer;
}
.nk-faq__q:hover { color: var(--dgz-violet-dark); }
.nk-faq__q::after {
	content: "+";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: var(--dgz-violet-soft);
	color: var(--dgz-violet-dark);
	font-size: .95rem;
	font-weight: 800;
	transition: transform var(--dgz-transition);
}
.nk-faq__item.is-open .nk-faq__q::after { content: "−"; }
.nk-faq__a {
	display: none;
	padding: 0 18px 16px;
	color: var(--dgz-muted);
	font-size: .78rem;
	line-height: 1.65;
}
.nk-faq__item.is-open .nk-faq__a { display: block; }

/* ---------- Closing note ---------- */

.nk-note {
	max-width: 640px;
	margin: 0 auto;
	color: var(--dgz-muted);
	font-size: .7rem;
	line-height: 1.6;
	text-align: center;
}

/* ---------- Scroll reveal ---------- */

.nk-sec { opacity: 1; }
.js .nk-sec[data-nk-reveal] {
	opacity: 0;
	transform: translateY(30px);
	/* Long enough to actually be seen. At .55s the fade was over before
	   the eye registered it, so sections read as simply appearing. */
	transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.js .nk-sec[data-nk-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .nk-sec[data-nk-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Mobile touch zoom UI ---------- */

.woocommerce-product-gallery__wrapper { position: relative; }
.woocommerce-product-gallery__wrapper.is-zoomed { touch-action: none; }
.woocommerce-product-gallery__image { transition: transform .28s cubic-bezier(.2, .75, .35, 1); }
.woocommerce-product-gallery__image.is-zoomed { transition: none; z-index: 2; }

.nk-zoom-chip {
	position: absolute;
	bottom: 12px;
	left: 50%;
	z-index: 4;
	max-width: calc(100% - 24px);
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(21, 21, 21, .82);
	color: #fff;
	font-size: .64rem;
	font-weight: 650;
	line-height: 1.35;
	text-align: center;
	transform: translateX(-50%);
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--dgz-transition);
}
.nk-zoom-chip.is-active { opacity: 1; }

.nk-zoom-hint {
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 4;
	padding: 9px 16px;
	border-radius: 999px;
	background: rgba(255, 90, 31, .94);
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	box-shadow: 0 10px 26px rgba(255, 90, 31, .35);
	transform: translateX(-50%);
	transition: opacity .45s ease;
	pointer-events: none;
}
.nk-zoom-hint.is-hidden { opacity: 0; }

/* Disable WooCommerce's own zoom cursor/hint confusion on touch. */
@media (pointer: coarse) {
	.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { touch-action: manipulation; }
	.woocommerce div.product div.images a.woocommerce-product-gallery__trigger { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
	.nk-trust { grid-template-columns: repeat(2, 1fr); }
	.nk-cards { grid-template-columns: repeat(2, 1fr); }
	.nk-cards--three { grid-template-columns: 1fr; }
	.nk-steps, .nk-moments { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.nk-sec { padding: 44px 16px; }
	.nk-trust { grid-template-columns: 1fr; }
	.nk-cards { grid-template-columns: 1fr; }
	.nk-fit__row { grid-template-columns: 1fr; gap: 8px; }
	.nk-order__row { flex-direction: column; gap: 3px; }
	.nk-order__val { text-align: left; }
}

/* ---------- Customer reviews (horizontal card strip) ---------- */

.nk-reviews {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 78%;
	gap: 14px;
	padding: 4px 2px 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--dgz-line) transparent;
}
.nk-reviews::-webkit-scrollbar { height: 6px; }
.nk-reviews::-webkit-scrollbar-track { background: transparent; }
.nk-reviews::-webkit-scrollbar-thumb { background: var(--dgz-line); border-radius: 999px; }

.nk-review {
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-snap-align: start;
	padding: 20px 18px;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
}
.nk-review__stars { color: #f5a524; font-size: .95rem; letter-spacing: 2px; line-height: 1; }
.nk-review__text { flex: 1; margin: 0; color: var(--dgz-ink); font-size: .82rem; line-height: 1.65; }
.nk-review__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--dgz-line);
}
.nk-review__author { color: var(--dgz-ink); font-size: .74rem; font-weight: 800; }
.nk-review__date { color: var(--dgz-muted); font-size: .68rem; }

/* Shown until the product collects its first real review. */
.nk-reviews-empty {
	max-width: 560px;
	margin: 0 auto;
	padding: 28px 22px;
	border: 1px dashed var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
	text-align: center;
}
.nk-reviews-empty__stars { color: #f5a524; font-size: 1.1rem; letter-spacing: 3px; line-height: 1; }
.nk-reviews-empty__text { margin: 12px 0 18px; color: var(--dgz-muted); font-size: .82rem; line-height: 1.6; }
.nk-reviews-empty__cta {
	display: inline-block;
	padding: 11px 24px;
	border-radius: 999px;
	background: var(--dgz-violet);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	text-decoration: none;
	transition: background var(--dgz-transition);
}
.nk-reviews-empty__cta:hover { background: var(--dgz-violet-dark); color: #fff; }

/* WooCommerce tab block (review form) relocated below the spec table. */
.nk-review-form { clear: both; margin-top: 48px; }
.nk-review-form .woocommerce-tabs {
	width: min(100%, 1080px);
	margin: 0 auto;
	padding: 0 24px 48px;
}

/* ---------- Spec table (replaces the near-empty "Ek bilgi" tab) ---------- */

.nk-spec {
	max-width: 720px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid var(--dgz-line);
	border-radius: var(--dgz-radius);
	background: #fff;
}
.nk-spec__table { width: 100%; border-collapse: collapse; }
.nk-spec__table tr + tr { border-top: 1px solid var(--dgz-line); }
.nk-spec__k, .nk-spec__v { padding: 13px 18px; font-size: .8rem; text-align: left; vertical-align: top; }
.nk-spec__k { width: 34%; color: var(--dgz-ink); font-weight: 800; }
.nk-spec__v { color: var(--dgz-muted); font-style: italic; }

@media (min-width: 640px) {
	.nk-reviews { grid-auto-columns: calc((100% - 28px) / 2); }
}
@media (min-width: 1020px) {
	.nk-reviews { grid-auto-columns: calc((100% - 28px) / 3); }
}
@media (max-width: 640px) {
	.nk-spec__k, .nk-spec__v { padding: 11px 14px; font-size: .76rem; }
	.nk-spec__k { width: 42%; }
	.nk-review-form { margin-top: 32px; }
	.nk-review-form .woocommerce-tabs { padding: 0 16px 40px; }
}
