/* ==========================================================================
   Nishtohum — ürün kartı ikili butonu + hızlı sepet modalı
   ========================================================================== */

/* --- Kart altı: "İncele" + "Sepete Ekle" -------------------------------- */
.nish-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
}

.nish-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 10px;
	font-family: var(--nish-font-body);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	border-radius: var(--nish-radius-btn);
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.nish-card-btn--ghost {
	color: var(--nish-text-dark) !important;
	background: #fff;
	border: 1px solid var(--nish-border);
}

.nish-card-btn--ghost:hover {
	color: var(--nish-primary) !important;
	border-color: var(--nish-primary);
	background: rgba(67, 170, 91, .06);
}

.nish-card-btn--solid {
	color: #fff !important;
	background: var(--nish-primary);
	border: 1px solid var(--nish-primary);
}

.nish-card-btn--solid:hover {
	background: var(--nish-primary-dark);
	border-color: var(--nish-primary-dark);
	color: #fff !important;
}

.nish-card-btn--ask {
	color: #fff !important;
	background: var(--nish-accent);
	border: 1px solid var(--nish-accent);
}

.nish-card-btn--ask:hover {
	background: #c56511;
	border-color: #c56511;
}

/* Woodmart hover katmanini bastir - butonlar her zaman gorunsun */
.wd-product .wd-add-btn,
.wd-product .wd-add-btn-replace {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}

@media (max-width: 480px) {
	.nish-card-actions { grid-template-columns: 1fr; }
}

/* --- Modal -------------------------------------------------------------- */
.nish-qc[hidden] { display: none; }

.nish-qc {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nish-qc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 25, 20, .55);
}

.nish-qc__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow: hidden;
	min-height: 180px;
	border: 1px solid rgba(255, 255, 255, .65);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
	animation: nishQCIn .18s ease;
}

@keyframes nishQCIn {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}

.nish-qc__close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	color: var(--nish-text-muted);
	background: #fff !important;
	border: 1px solid var(--nish-border) !important;
	border-radius: 8px !important;
	cursor: pointer;
	z-index: 20;
	min-height: 0 !important;
	padding: 0 !important;
}

.nish-qc__body {
	flex: 1 1 auto;
	min-height: 0;
	width: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.nish-qc__close:hover {
	color: var(--nish-text-dark);
	border-color: var(--nish-text-muted) !important;
}

.nish-qc__loading,
.nish-qc__error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 180px;
	padding: 40px 24px;
	text-align: center;
	color: var(--nish-text-muted);
	font-family: var(--nish-font-body);
}

.nish-qc__loading strong {
	color: var(--nish-text-dark);
	font-size: 15px;
}

.nish-qc__loading small {
	color: var(--nish-text-muted);
	font-size: 12px;
}

.nish-qc__spinner {
	width: 26px;
	height: 26px;
	margin-bottom: 4px;
	border: 2px solid rgba(67, 170, 91, .18);
	border-top-color: var(--nish-primary);
	border-radius: 50%;
	animation: nishSpin .65s linear infinite;
}

/* --- Modal basligi --- */
.nish-qc__head {
	display: flex;
	gap: 16px;
	padding: 22px 56px 20px 22px;
	background: var(--nish-bg-light);
	border-bottom: 1px solid var(--nish-border);
	border-radius: 14px 14px 0 0;
}

.nish-qc__img {
	flex: 0 0 auto;
	width: 88px;
	height: 88px;
	object-fit: cover;
	background: #fff;
	border: 1px solid var(--nish-border);
	border-radius: 10px;
}

.nish-qc__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.nish-qc__cat {
	color: var(--nish-primary);
	font-family: var(--nish-font-body);
	font-size: 12px;
	font-weight: 700;
}

.nish-qc__title {
	margin: 0;
	color: var(--nish-text-dark);
	font-family: var(--nish-font-body);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.nish-qc__link {
	color: var(--nish-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.nish-qc__link:hover { text-decoration: underline; }

/* --- Paket satirlari --- */
.nish-qc__rows {
	padding: 14px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.nish-qc__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--nish-border);
	border-radius: 10px;
	transition: border-color .15s ease, background-color .15s ease;
}

.nish-qc__row.is-picked {
	border-color: var(--nish-primary);
	background: rgba(67, 170, 91, .04);
}

.nish-qc__pkg {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.nish-qc__pkg strong {
	color: var(--nish-text-dark);
	font-family: var(--nish-font-body);
	font-size: 15px;
	font-weight: 700;
}

.nish-qc__price {
	color: var(--nish-primary);
	font-size: 14px;
	font-weight: 700;
}

/* --- Adet secici --- */
.nish-qc__stepper {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	border: 1px solid var(--nish-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.nish-qc__stepper button {
	width: 36px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--nish-text-dark);
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	cursor: pointer;
	min-height: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.nish-qc__stepper button:hover {
	background: var(--nish-bg-light) !important;
	color: var(--nish-primary);
}

.nish-qc__stepper input {
	width: 46px;
	height: 38px;
	padding: 0 !important;
	font-family: var(--nish-font-body);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: var(--nish-text-dark);
	border: 0 !important;
	border-left: 1px solid var(--nish-border) !important;
	border-right: 1px solid var(--nish-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* --- Alt bar --- */
.nish-qc__foot {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 22px;
	background: var(--nish-bg-light);
	border-top: 1px solid var(--nish-border);
	border-radius: 0 0 14px 14px;
}

.nish-qc__total {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nish-qc__total span {
	color: var(--nish-text-muted);
	font-size: 12px;
	font-weight: 600;
}

.nish-qc__total strong {
	color: var(--nish-text-dark);
	font-size: 22px;
	font-weight: 800;
}

.nish-qc__submit {
	min-height: 48px;
	padding: 0 26px;
	color: #fff !important;
	font-family: var(--nish-font-body);
	font-size: 15px;
	font-weight: 700;
	background: var(--nish-primary) !important;
	border: 1px solid var(--nish-primary) !important;
	border-radius: var(--nish-radius-btn) !important;
	cursor: pointer;
	transition: background-color .18s ease;
}

.nish-qc__submit:hover:not(:disabled) { background: var(--nish-primary-dark) !important; }
.nish-qc__submit:disabled { opacity: .6; cursor: default; }

.nish-qc__submit.is-loading {
	position: relative;
	color: transparent !important;
}

.nish-qc__submit.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: nishSpin .6s linear infinite;
}

@keyframes nishSpin { to { transform: rotate(360deg); } }

.nish-qc__msg {
	margin: 0 22px 18px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
}

.nish-qc__msg.is-ok   { color: #1b6b34; background: rgba(67, 170, 91, .12); }
.nish-qc__msg.is-warn { color: #9a3412; background: var(--nish-accent-light); }
.nish-qc__msg a { color: inherit; text-decoration: underline; }

body.nish-qc-open-body { overflow: hidden; }

@media (max-width: 560px) {
	.nish-qc { padding: 0; align-items: flex-end; }
	.nish-qc__panel { max-width: none; max-height: 92vh; border-radius: 14px 14px 0 0; }
	.nish-qc__close { top: 10px !important; right: 10px !important; left: auto !important; width: 32px; height: 32px; border-radius: 50% !important; }
	.nish-qc__head { border-radius: 14px 14px 0 0; padding: 14px 50px 13px 14px; }
	.nish-qc__img { width: 64px; height: 64px; }
	.nish-qc__title { font-size: 16px; }
	.nish-qc__rows { padding: 10px 14px; }
	.nish-qc__row { gap: 8px; padding: 10px; }
	.nish-qc__stepper { width: auto !important; height: 36px; }
	.nish-qc__stepper button { flex: 0 0 30px !important; width: 30px !important; min-width: 30px !important; max-width: 30px !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; font-size: 15px; }
	.nish-qc__stepper input { flex: 0 0 34px !important; width: 34px !important; min-width: 34px !important; max-width: 34px !important; height: 34px !important; min-height: 34px !important; max-height: 34px !important; font-size: 13px; }
	.nish-qc__foot { padding: 12px 14px; }
	.nish-qc__submit { flex: 1; padding: 0 16px; }
}
