/**
 * Tema özelleştirme — Admin > Temalar ekranından düzenlenir.
 * Kaynak: settings.THEME_OPTIONS_{tema} (JSON) + bu dosya.
 */
:root {
	--theme-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--theme-container-max: 1320px;
	--theme-container-padding-x: 12px;
	--container: var(--theme-container-max);
	--nova-radius: 14px;
}

html[data-theme-init="light"] { color-scheme: light; }

body, .prime-body, .fy-body {
	font-family: var(--theme-font-family);
}

.custom-container,
.fy-container,
.prime-container,
.page > .container,
.page .container.custom-container {
	max-width: var(--theme-container-max);
	padding-left: var(--theme-container-padding-x);
	padding-right: var(--theme-container-padding-x);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

/* ============================================
   PREMIUM GLOBAL ENHANCEMENTS
   ============================================ */

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Selection color */
::selection {
	background: rgba(33, 60, 139, 0.15);
	color: #0f172a;
}

/* Better focus styles */
*:focus-visible {
	outline: 2px solid var(--prime-primary);
	outline-offset: 2px;
}

/* Premium link styling */
a {
	text-decoration: none;
	transition: var(--transition-fast);
}

/* Premium form controls */
.form-control {
	border-radius: var(--radius-sm);
	border-color: var(--border-color);
	padding: 10px 14px;
	font-size: 14px;
	transition: var(--transition-smooth);
}

.form-control:focus {
	border-color: var(--prime-primary);
	box-shadow: 0 0 0 4px rgba(33, 60, 139, 0.08);
}

/* Premium button base */
.btn {
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 20px;
	transition: var(--transition-smooth);
	letter-spacing: 0.01em;
	position: relative;
	overflow: hidden;
}

.btn::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.btn:hover::after {
	opacity: 1;
}

.btn-dark {
	background: var(--color1);
	border-color: var(--color1);
	border-radius: var(--radius-sm);
}

.btn-dark:hover {
	background: #000;
	transform: translateY(-1px);
	box-shadow: var(--premium-shadow-md);
}

/* Scroll-to-top button */
.scroll-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--premium-shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: var(--transition-smooth);
	z-index: 1000;
	color: var(--text-primary);
}

.scroll-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.scroll-to-top:hover {
	transform: translateY(-3px);
	box-shadow: var(--premium-shadow-lg);
	background: var(--prime-primary);
	color: #fff;
}

/* Premium section headings */
.section-premium {
	padding: 0 0 1.5rem;
}

.section-premium .section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0 1rem;
	margin-bottom: 0.5rem;
}

.section-premium .section-title {
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--text-primary);
	position: relative;
	letter-spacing: -0.02em;
}

.section-premium .section-title::after {
	content: '';
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 40px;
	height: 3px;
	background: var(--premium-gradient);
	border-radius: 2px;
}

.section-premium .section-head .btn {
	background: transparent;
	color: var(--text-secondary);
	border: 1.5px solid var(--border-color);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.section-premium .section-head .btn:hover {
	background: var(--prime-primary);
	border-color: var(--prime-primary);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(33, 60, 139, 0.25);
}

.section-premium .section-head .btn svg {
	transition: transform 0.3s ease;
}

.section-premium .section-head .btn:hover svg {
	transform: translateX(3px);
}

/* Trust bar / Güven barı */
.trust-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	padding: 2rem 0;
}

.trust-bar__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius-md);
	transition: var(--transition-smooth);
}

.trust-bar__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--premium-shadow-md);
}

.trust-bar__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 22px;
}

.trust-bar__icon--shipping { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.trust-bar__icon--secure { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.trust-bar__icon--support { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.trust-bar__icon--return { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: #db2777; }

.trust-bar__text strong {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 2px;
}

.trust-bar__text span {
	font-size: 12px;
	color: var(--text-secondary);
	line-height: 1.4;
}

@media (max-width: 991px) {
	.trust-bar {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.trust-bar__item {
		padding: 14px 16px;
	}
}

@media (max-width: 575px) {
	.trust-bar {
		grid-template-columns: 1fr;
	}
}

/* Premium product card base */
.product-card {
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition-smooth);
	position: relative;
}

.product-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--premium-shadow-hover);
	border-color: transparent;
}

.product-card .product-image-wrapper {
	background: var(--surface-soft);
	position: relative;
	overflow: hidden;
	min-height: 220px;
}

.product-card .product-image {
	transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image {
	transform: scale(1.06);
}

.product-card .product-info {
	padding: 16px;
}

.product-card .product-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
}

.product-card .product-title:hover {
	color: var(--prime-primary);
}

/* Product card action buttons */
.product-card .imageButtons {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	opacity: 0;
	transform: translateX(8px);
	transition: var(--transition-smooth);
	z-index: 5;
}

.product-card:hover .imageButtons {
	opacity: 1;
	transform: translateX(0);
}

.product-card .imageButtons .btn {
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--glass-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--premium-shadow-sm);
	color: var(--text-primary);
}

.product-card .imageButtons .btn:hover {
	background: var(--prime-primary);
	color: #fff;
	border-color: var(--prime-primary);
	transform: scale(1.1);
}

/* Premium badge on card */
.product-card .miniDiscount {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	z-index: 3;
	text-transform: uppercase;
}

/* Premium discount badge */
.productDiscount .discount-badge {
	background: var(--discount-bg);
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 14px;
}

.productDiscount .old-price {
	text-decoration: line-through;
	color: var(--old-price-color);
	font-size: 13px;
	font-weight: 500;
}

.productDiscount .current-price {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--text-primary);
	line-height: 1.2;
}

/* Premium Add to Cart button on cards */
.btn-details {
	background: var(--color1);
	color: #fff;
	border: none;
	border-radius: var(--radius-sm);
	padding: 10px 16px;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: auto;
	transition: var(--transition-smooth);
}

.btn-details:hover {
	background: var(--prime-primary);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(33, 60, 139, 0.3);
}

/* Premium slider wrapper */
.slider-wrapper {
	position: relative;
}

.slider-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--glass-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--glass-border);
	box-shadow: var(--premium-shadow-md);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-primary);
	transition: var(--transition-smooth);
}

.slider-nav-btn:hover {
	background: var(--prime-primary);
	color: #fff;
	border-color: var(--prime-primary);
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 8px 25px rgba(33, 60, 139, 0.3);
}

.slider-nav-btn.prev-btn {
	left: -16px;
}

.slider-nav-btn.next-btn {
	right: -16px;
}

/* Item in product slider */
.produtDiv {
	width: 260px;
	min-width: 260px;
}

/* Slide section */
#slide .owl-carousel,
#slide {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

/* Rating stars */
.rating .text-warning span {
	font-size: 13px;
}

/* Toast notification premium */
#tostAlert {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	z-index: 9999;
	border-radius: var(--radius-md);
	min-width: 320px;
	box-shadow: var(--premium-shadow-lg);
	font-weight: 600;
	font-size: 14px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

#tostAlert.success {
	background: linear-gradient(135deg, #059669, #10b981);
	color: #fff;
}

#tostAlert.danger {
	background: linear-gradient(135deg, #dc2626, #ef4444);
	color: #fff;
}

/* Fade-in animation for elements */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.05); }
}

.animate-fade-in {
	animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	opacity: 0;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.05s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.15s; }
.animate-fade-in:nth-child(4) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(5) { animation-delay: 0.25s; }
.animate-fade-in:nth-child(6) { animation-delay: 0.3s; }

/* Navbar tab premium */
.nav-tabs {
	border-bottom: 2px solid var(--border-color);
	gap: 4px;
}

.nav-tabs .nav-link {
	border: none;
	border-bottom: 3px solid transparent;
	color: var(--text-secondary);
	font-weight: 600;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: 0;
	transition: var(--transition-smooth);
}

.nav-tabs .nav-link:hover {
	color: var(--prime-primary);
	border-color: transparent;
	background: transparent;
}

.nav-tabs .nav-link.active {
	color: var(--prime-primary);
	border-bottom-color: var(--prime-primary);
	background: transparent;
}

/* Tab content premium */
.tab-content {
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	border: 1px solid var(--border-color);
	border-top: none;
	background: #fff;
	box-shadow: var(--premium-shadow-sm);
}

/* Premium favorite button (product page) */
.like-button.active,
.like-button:hover {
	color: #e63946;
}

.like-button.active svg {
	fill: #e63946;
	stroke: #e63946;
}

/* Footer premium enhancements */
footer {
	background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%) !important;
}

footer .bg-primary {
	background: var(--prime-primary) !important;
}

footer .input-group {
	border-radius: var(--radius-sm);
	overflow: hidden;
}

footer .form-control {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .form-control:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	box-shadow: none;
}

/* Hover helper classes */
.hover-text-white:hover { color: #fff !important; }
.hover-bg-primary:hover { background: var(--prime-primary) !important; }
