.teklif-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-base), visibility var(--transition-base);
	backdrop-filter: blur(2px);
}

.teklif-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* Sol Ürün Seçici Panel */
.teklif-product-selector {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 520px;
	max-width: 100vw;
	background: var(--color-white);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 8px 0 40px rgba(0, 0, 0, 0.18);
}

.teklif-product-selector.is-open {
	transform: translateX(0);
}

.teklif-product-selector__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	background: var(--color-primary);
	flex-shrink: 0;
}

.teklif-product-selector__title {
	font-size: var(--text-lg);
	font-weight: var(--font-bold);
	color: var(--color-white);
	margin: 0;
}

.teklif-product-selector__close {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: var(--color-white);
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition-fast);
	position: relative;
	flex-shrink: 0;
}

.teklif-product-selector__close i {
	display: none;
}

.teklif-product-selector__close::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.teklif-product-selector__close:hover {
	background: rgba(255, 255, 255, 0.35);
}

.teklif-product-selector__toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--color-border);
	flex-shrink: 0;
}

.teklif-selector-sort {
	flex: 1;
	padding: 8px 12px;
	border: 1.5px solid var(--color-border-dark);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-white);
	cursor: pointer;
}

.teklif-selector-sort:focus {
	outline: none;
	border-color: var(--color-primary);
}

.teklif-product-selector__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	overscroll-behavior: contain;
}

.teklif-selector-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.teklif-selector-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 6px;
	border: 2px solid var(--color-border);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: border-color var(--transition-fast), background var(--transition-fast);
	position: relative;
	text-align: center;
}

.teklif-selector-item:hover {
	border-color: var(--color-primary);
	background: #fff5f5;
}

.teklif-selector-item.is-selected {
	border-color: var(--color-primary);
	background: #fff5f5;
}

.teklif-selector-item__check {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 20px;
	height: 20px;
	border-radius: var(--radius-full);
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 11px;
	display: none;
	align-items: center;
	justify-content: center;
}

.teklif-selector-item.is-selected .teklif-selector-item__check {
	display: flex;
}

.teklif-selector-item__img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: var(--radius-sm);
}

.teklif-selector-item__placeholder {
	width: 72px;
	height: 72px;
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-text-muted);
	font-size: 22px;
}

.teklif-selector-item__name {
	font-size: 10px;
	font-weight: var(--font-medium);
	color: var(--color-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.3;
	word-break: break-word;
}

.teklif-selector-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	gap: 8px;
}

.teklif-product-selector__footer {
	border-top: 1px solid var(--color-border);
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-shrink: 0;
	background: var(--color-white);
}

.teklif-selector-count {
	font-size: var(--text-sm);
	color: var(--color-text-light);
	font-weight: var(--font-medium);
}

.teklif-selector-confirm {
	padding: 10px 20px;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--font-semibold);
	font-family: var(--font-sans);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: background var(--transition-fast);
}

.teklif-selector-confirm:hover {
	background: var(--color-primary-dark);
}

.teklif-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 480px;
	max-width: 100vw;
	background: var(--color-white);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
}

.teklif-drawer.is-open {
	transform: translateX(0);
}

.teklif-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: var(--color-primary);
	flex-shrink: 0;
}

.teklif-drawer__title {
	font-size: var(--text-xl);
	font-weight: var(--font-bold);
	color: var(--color-white);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.teklif-drawer__close {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: var(--color-white);
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition-fast);
	flex-shrink: 0;
	position: relative;
}

.teklif-drawer__close i {
	display: none;
}

.teklif-drawer__close::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.teklif-drawer__close:hover {
	background: rgba(255, 255, 255, 0.35);
}

.teklif-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
	overscroll-behavior: contain;
}

.teklif-form__section {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 16px;
	margin-bottom: 20px;
}

.teklif-form__section-label {
	display: block;
	font-size: var(--text-sm);
	font-weight: var(--font-semibold);
	color: var(--color-text);
	margin-bottom: 12px;
}

.teklif-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.teklif-product-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 10px 12px;
}

.teklif-product-item__img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
	flex-shrink: 0;
}

.teklif-product-item__img-placeholder {
	width: 42px;
	height: 42px;
	border-radius: var(--radius-sm);
	background: var(--color-bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--color-text-muted);
	font-size: 18px;
}

.teklif-product-item__name {
	flex: 1;
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.teklif-product-item__remove {
	width: 28px;
	height: 28px;
	border-radius: var(--radius-full);
	background: var(--color-primary);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--transition-fast);
	flex-shrink: 0;
	padding: 0;
}

.teklif-product-item__remove svg {
	width: 14px;
	height: 14px;
	stroke: #ffffff;
	flex-shrink: 0;
}

.teklif-product-item__remove:hover {
	background: var(--color-primary-dark);
}

.teklif-add-product-btn {
	width: 100%;
	padding: 10px;
	border: 2px dashed var(--color-border-dark);
	border-radius: var(--radius-md);
	background: transparent;
	color: var(--color-text-light);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: border-color var(--transition-fast), color var(--transition-fast);
}

.teklif-add-product-btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.teklif-search-box {
	margin-top: 10px;
	position: relative;
}

.teklif-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--color-white);
	border: 1px solid var(--color-border-dark);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	z-index: 10;
	max-height: 220px;
	overflow-y: auto;
}

.teklif-search-result-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	cursor: pointer;
	transition: background var(--transition-fast);
	border-bottom: 1px solid var(--color-border);
}

.teklif-search-result-item:last-child {
	border-bottom: none;
}

.teklif-search-result-item:hover {
	background: var(--color-bg-alt);
}

.teklif-search-result-item img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: var(--radius-sm);
	flex-shrink: 0;
}

.teklif-search-result-item span {
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text);
}

.teklif-search-no-result {
	padding: 12px;
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	text-align: center;
}

.teklif-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 14px;
}

.teklif-form__group {
	margin-bottom: 14px;
}

.teklif-form__label {
	display: block;
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	color: var(--color-text);
	margin-bottom: 6px;
}

.teklif-form__req {
	color: var(--color-primary);
}

.teklif-form__input,
.teklif-form__textarea {
	width: 100%;
	border: 1.5px solid var(--color-border-dark);
	border-radius: var(--radius-md);
	padding: 10px 14px;
	font-size: var(--text-sm);
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-white);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
	box-sizing: border-box;
}

.teklif-form__input:focus,
.teklif-form__textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(254, 0, 13, 0.1);
}

.teklif-form__textarea {
	resize: vertical;
	min-height: 100px;
}

.teklif-form__feedback {
	padding: 12px 16px;
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	font-weight: var(--font-medium);
	margin-bottom: 14px;
}

.teklif-form__feedback--success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.teklif-form__feedback--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.teklif-form__submit {
	width: 100%;
	padding: 14px;
	background: var(--color-primary);
	color: var(--color-white);
	border: none;
	border-radius: var(--radius-md);
	font-size: var(--text-base);
	font-weight: var(--font-semibold);
	font-family: var(--font-sans);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.teklif-form__submit:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
}

.teklif-form__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	transform: none;
}

.floating-cta__btn--teklif {
	background: var(--color-secondary);
}

.floating-cta__btn--teklif:hover {
	background: var(--color-accent);
}

@media (max-width: 540px) {
	.teklif-drawer {
		width: 100vw;
	}

	.teklif-form__row {
		grid-template-columns: 1fr;
	}
}
