/* ============================================================
   MS — Modern Site Tasarımı (itemsatis tarzı)
   Yeni header/footer/anasayfa/auth işaretlemeleri için
   ============================================================ */

:root {
	--ms-primary: #2563eb;
	--ms-primary-600: #1d4ed8;
	--ms-primary-50: #eef2ff;
	--ms-bg: #f4f6fb;
	--ms-surface: #ffffff;
	--ms-border: #e5e9f2;
	--ms-text: #0f172a;
	--ms-muted: #64748b;
	--ms-green: #16a34a;
	--ms-red: #ef4444;
	--ms-amber: #f59e0b;
	--ms-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
	--ms-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12);
	--ms-shadow-lg: 0 20px 44px -14px rgba(15, 23, 42, 0.22);
	--ms-radius: 12px;
	--ms-radius-lg: 18px;
}

/* ---------- Dark Mode ---------- */
html[data-theme="dark"] {
	--ms-bg: #0f172a;
	--ms-surface: #1e293b;
	--ms-border: #334155;
	--ms-text: #e2e8f0;
	--ms-muted: #94a3b8;
	--ms-primary-50: #1e3a8a;
	--ms-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
	--ms-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5);
	--ms-shadow-lg: 0 20px 44px -14px rgba(0, 0, 0, 0.6);
	color-scheme: dark;
}
html[data-theme="dark"] body { background-color: var(--ms-bg); color: var(--ms-text); }
html[data-theme="dark"] .ms-topbar,
html[data-theme="dark"] .ms-header,
html[data-theme="dark"] .ms-footer,
html[data-theme="dark"] .ms-drawer-panel,
html[data-theme="dark"] .ms-search-drop { background: var(--ms-surface); }
html[data-theme="dark"] .ms-cat-card,
html[data-theme="dark"] .ms-card,
html[data-theme="dark"] .ms-feat,
html[data-theme="dark"] .ms-shop-card,
html[data-theme="dark"] .ms-section-inner,
html[data-theme="dark"] .ms-user-drop { background: var(--ms-surface); color: var(--ms-text); }
html[data-theme="dark"] .ms-card-title a { color: var(--ms-text); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea { background: var(--ms-surface); color: var(--ms-text); border-color: var(--ms-border); }

/* ---------- Scroll Progress ---------- */
.ms-scroll-progress {
	position: fixed; top: 0; left: 0; height: 3px; width: 0;
	background: linear-gradient(90deg, var(--ms-primary), #7c3aed);
	z-index: 9999; border-radius: 0 999px 999px 0;
	transition: width 80ms linear;
}

/* ---------- Back to Top ---------- */
.ms-backtop {
	position: fixed; right: 22px; bottom: 90px; z-index: 1000;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--ms-primary); color: #fff; border: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--ms-shadow-lg); opacity: 0; visibility: hidden;
	transform: translateY(12px); transition: all .25s ease;
	font-size: 20px;
}
.ms-backtop.ms-show { opacity: 1; visibility: visible; transform: translateY(0); }
.ms-backtop:hover { background: var(--ms-primary-600); }

/* ---------- Toast ---------- */
.ms-toast-box {
	position: fixed; top: 18px; right: 18px; z-index: 12000;
	display: flex; flex-direction: column; gap: 8px; max-width: 340px;
}
.ms-toast {
	display: flex; align-items: center; gap: 10px;
	background: var(--ms-surface); color: var(--ms-text);
	border: 1px solid var(--ms-border); border-left: 4px solid var(--ms-primary);
	border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600;
	box-shadow: var(--ms-shadow-lg); animation: msToastIn .3s ease;
}
.ms-toast i { font-size: 18px; }
.ms-toast-success { border-left-color: var(--ms-green); }
.ms-toast-success i { color: var(--ms-green); }
.ms-toast-error { border-left-color: var(--ms-red); }
.ms-toast-error i { color: var(--ms-red); }
.ms-toast-info { border-left-color: var(--ms-primary); }
.ms-toast-info i { color: var(--ms-primary); }
.ms-toast-warn { border-left-color: var(--ms-amber); }
.ms-toast-warn i { color: var(--ms-amber); }
.ms-toast-out { animation: msToastOut .3s ease forwards; }
@keyframes msToastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes msToastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Favori Butonu ---------- */
.ms-fav-btn {
	position: absolute; top: 10px; right: 10px; z-index: 5;
	width: 34px; height: 34px; border-radius: 50%;
	background: #fff; border: none; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--ms-shadow); font-size: 17px; color: #94a3b8;
	transition: all .2s ease;
}
.ms-fav-btn:hover { transform: scale(1.1); color: var(--ms-red); }
.ms-fav-btn.ms-fav-on { color: var(--ms-red); background: #fef2f2; }
html[data-theme="dark"] .ms-fav-btn { background: var(--ms-surface); }
.ms-fav-badge {
	position: absolute; top: -5px; right: -5px;
	background: var(--ms-red); color: #fff; font-size: 10px; font-weight: 800;
	min-width: 16px; height: 16px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* ---------- Son Bakılanlar ---------- */
.ms-rv-section { margin-top: 28px; }
.ms-rv-list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.ms-rv-item {
	display: flex; gap: 10px; align-items: center;
	background: var(--ms-surface); border: 1px solid var(--ms-border);
	border-radius: 12px; padding: 10px; text-decoration: none; color: var(--ms-text);
	transition: all .2s ease;
}
.ms-rv-item:hover { border-color: var(--ms-primary); box-shadow: var(--ms-shadow); }
.ms-rv-img { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #eef2f7; }
.ms-rv-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-rv-img.ms-rv-ph { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 18px; }
.ms-rv-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-rv-info b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-rv-info span { font-size: 12px; font-weight: 700; color: var(--ms-primary); }

/* ---------- Quick View Modal ---------- */
.ms-qv-modal {
	position: fixed; inset: 0; z-index: 11000; display: none;
	align-items: center; justify-content: center; padding: 20px;
	background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
}
.ms-qv-modal.ms-open { display: flex; }
.ms-qv-box {
	background: var(--ms-surface); border-radius: 18px; max-width: 560px; width: 100%;
	max-height: 85vh; overflow-y: auto; padding: 24px; position: relative;
	box-shadow: var(--ms-shadow-lg);
}
.ms-qv-close {
	position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
	border-radius: 50%; border: none; background: var(--ms-bg); color: var(--ms-text);
	cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ms-qv-empty { text-align: center; color: var(--ms-muted); padding: 40px 0; }

/* ---------- Lightbox ---------- */
.ms-lightbox {
	position: fixed; inset: 0; z-index: 11500; display: none;
	align-items: center; justify-content: center; background: rgba(0,0,0,.85); padding: 30px;
}
.ms-lightbox.ms-open { display: flex; }
.ms-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: var(--ms-shadow-lg); }

/* ---------- Duyuru Barı ---------- */
.ms-annbar {
	background: linear-gradient(90deg, var(--ms-primary), #7c3aed);
	color: #fff; font-size: 13px; font-weight: 600; overflow: hidden;
	transition: height .25s ease;
}
.ms-annbar-inner {
	max-width: 1400px; margin: 0 auto; padding: 8px 20px;
	display: flex; align-items: center; justify-content: center; gap: 10px; position: relative;
}
.ms-annbar-inner i { font-size: 16px; }
.ms-ann-close {
	position: absolute; right: 12px; background: none; border: none; color: #fff;
	cursor: pointer; font-size: 16px; opacity: .8; line-height: 1;
}

/* ---------- Theme Toggle ---------- */
.ms-theme-toggle {
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--ms-border); background: var(--ms-surface);
	color: var(--ms-text); cursor: pointer; display: flex; align-items: center;
	justify-content: center; font-size: 17px; transition: all .2s ease;
}
.ms-theme-toggle:hover { border-color: var(--ms-primary); color: var(--ms-primary); }

/* ---------- Paylaşım / Geri Sayım ---------- */
.ms-share-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ms-share-btn {
	display: inline-flex; align-items: center; gap: 6px;
	border: 1px solid var(--ms-border); background: var(--ms-surface);
	color: var(--ms-text); border-radius: 999px; padding: 7px 14px;
	font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
	transition: all .2s ease;
}
.ms-share-btn:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.ms-countdown {
	display: inline-flex; align-items: center; gap: 4px; font-weight: 800;
	font-variant-numeric: tabular-nums; color: var(--ms-red);
}
.ms-countdown b { background: var(--ms-red); color: #fff; border-radius: 8px; padding: 2px 7px; font-size: 13px; }
html[data-theme="dark"] .ms-countdown b { color: #fff; }

/* ---------- İstatistik Kutuları ---------- */
.ms-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ms-stat-box {
	background: var(--ms-surface); border: 1px solid var(--ms-border);
	border-radius: 14px; padding: 16px; display: flex; gap: 12px; align-items: center;
}
.ms-stat-box i { font-size: 26px; color: var(--ms-primary); }
.ms-stat-box b { display: block; font-size: 20px; }
.ms-stat-box span { font-size: 12px; color: var(--ms-muted); }

/* ---------- Footer Güven Rozetleri ---------- */
.ms-trust-row {
	display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
	padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--ms-border);
}
.ms-trust-item {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--ms-bg); border: 1px solid var(--ms-border);
	border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600;
	color: var(--ms-text);
}
.ms-trust-item i { color: var(--ms-primary); font-size: 16px; }
html[data-theme="dark"] .ms-trust-item { background: var(--ms-surface); }

/* ---------- Newsletter ---------- */
.ms-newsletter { display: flex; gap: 8px; margin-top: 10px; max-width: 260px; }
.ms-newsletter input {
	flex: 1; min-width: 0; border: 1px solid var(--ms-border); background: var(--ms-bg);
	border-radius: 999px; padding: 9px 16px; font-size: 13px; outline: none; color: var(--ms-text);
}
.ms-newsletter input:focus { border-color: var(--ms-primary); }
.ms-newsletter button {
	width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--ms-primary);
	color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
	font-size: 16px; flex-shrink: 0; transition: background .2s;
}
.ms-newsletter button:hover { background: var(--ms-primary-600); }
.ms-spin { animation: msSpin 1s linear infinite; display: inline-block; }
@keyframes msSpin { to { transform: rotate(360deg); } }

/* ---------- Favoriler Sayfası ---------- */
.ms-fav-page { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.ms-fav-page h2 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ms-fav-empty {
	text-align: center; background: var(--ms-surface); border: 1px dashed var(--ms-border);
	border-radius: 16px; padding: 60px 20px; color: var(--ms-muted);
}
.ms-fav-empty i { font-size: 48px; color: #e2e8f0; display: block; margin-bottom: 14px; }
.ms-fav-empty p { margin-bottom: 16px; }
.ms-fav-pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ms-surface); border: 1px solid var(--ms-border);
	border-radius: 999px; padding: 8px 16px; font-weight: 600; margin: 0 8px 10px 0;
}
.ms-fav-pill-x {
	background: none; border: none; cursor: pointer; color: var(--ms-red);
	display: flex; align-items: center; font-size: 16px; padding: 0;
}

/* ---------- Sıralama ---------- */
.ms-sort select {
	border: 1.5px solid var(--ms-border); background: var(--ms-surface);
	color: var(--ms-text); border-radius: 10px; padding: 8px 12px;
	font-size: 13px; font-weight: 600; cursor: pointer; outline: none;
}
.ms-sort select:focus { border-color: var(--ms-primary); }

@media (max-width: 768px) {
	.ms-backtop { right: 16px; bottom: 76px; width: 40px; height: 40px; }
	.ms-toast-box { left: 16px; right: 16px; max-width: none; }
}

/* ---------- Temel / Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	background-color: var(--ms-bg);
	color: var(--ms-text);
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--ms-primary); text-decoration: none; }
a:hover { color: var(--ms-primary-600); }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #eef2f7; }
::-webkit-scrollbar-thumb { background: #c3cbd8; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a3afc0; }


.ms-topbar {
	background: #fff;
	border-bottom: 1px solid var(--ms-border);
	font-size: 13px;
}
.ms-topbar-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
}
.ms-topbar-links { display: flex; align-items: center; gap: 18px; }
.ms-topbar-links a { color: var(--ms-muted); font-weight: 500; text-decoration: none; }
.ms-topbar-links a:hover { color: var(--ms-primary); }
.ms-topbar-right { display: flex; align-items: center; gap: 10px; }
.ms-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	transition: all 0.2s ease;
}
.ms-btn-primary { background: var(--ms-primary); color: #fff !important; }
.ms-btn-primary:hover { background: var(--ms-primary-600); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(37,99,235,.5); }
.ms-btn-soft { background: var(--ms-primary-50); color: var(--ms-primary) !important; }
.ms-btn-soft:hover { background: #dbeafe; }
.ms-btn-outline { background: #fff; color: var(--ms-text) !important; border: 1px solid var(--ms-border); }
.ms-btn-outline:hover { border-color: var(--ms-primary); color: var(--ms-primary) !important; }

/* ---------- Ana header ---------- */
.ms-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: #fff;
	border-bottom: 1px solid var(--ms-border);
	box-shadow: var(--ms-shadow-sm);
}
.ms-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 20px;
}
.ms-logo { flex-shrink: 0; display: flex; align-items: center; }
.ms-logo img { height: 40px; max-width: 170px; object-fit: contain; }
.ms-search { flex: 1; display: flex; align-items: center; gap: 0; background: var(--ms-bg); border: 1.5px solid var(--ms-border); border-radius: 999px; padding: 3px 3px 3px 18px; transition: all .2s ease; }
.ms-search:focus-within { border-color: var(--ms-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.ms-search input { flex: 1; border: none; background: transparent; font-size: 15px; padding: 10px 0; color: var(--ms-text); outline: none; }
.ms-search button {
	background: var(--ms-primary); color: #fff; border: none; border-radius: 999px;
	padding: 9px 22px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease;
}
.ms-search button:hover { background: var(--ms-primary-600); }
.ms-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ms-icon-btn {
	width: 42px; height: 42px; border-radius: 999px; background: var(--ms-bg); border: 1px solid var(--ms-border);
	display: inline-flex; align-items: center; justify-content: center; color: var(--ms-text); font-size: 20px;
	position: relative; text-decoration: none; transition: all .2s ease;
}
.ms-icon-btn:hover { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-icon-btn .ms-badge {
	position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px;
	background: var(--ms-red); color: #fff; font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* Kullanıcı menüsü */
.ms-user {
	position: relative;
}
.ms-user-btn {
	display: flex; align-items: center; gap: 10px; border: 1px solid var(--ms-border); background: #fff;
	border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; transition: all .2s ease;
}
.ms-user-btn:hover { border-color: var(--ms-primary); box-shadow: var(--ms-shadow-sm); }
.ms-user-avatar {
	width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#4f46e5);
	color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
	overflow: hidden;
}
.ms-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ms-user-info { line-height: 1.1; text-align: left; }
.ms-user-info b { font-size: 13px; color: var(--ms-text); display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-user-info span { font-size: 12px; color: var(--ms-primary); font-weight: 600; }
.ms-user-drop {
	position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff;
	border: 1px solid var(--ms-border); border-radius: 14px; box-shadow: var(--ms-shadow-lg);
	padding: 8px; display: none; z-index: 50;
}
.ms-user-drop.ms-open { display: block; }
.ms-user-drop a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
	color: var(--ms-text); text-decoration: none; font-size: 14px; font-weight: 500; transition: all .15s ease;
}
.ms-user-drop a i { font-size: 18px; color: var(--ms-muted); width: 22px; text-align: center; }
.ms-user-drop a:hover { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-user-drop a:hover i { color: var(--ms-primary); }
.ms-user-drop .ms-drop-head {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--ms-border); margin-bottom: 6px;
}
.ms-user-drop .ms-drop-head .ms-user-avatar { width: 40px; height: 40px; font-size: 17px; }
.ms-user-drop .ms-drop-head b { font-size: 14px; color: var(--ms-text); display: block; }
.ms-user-drop .ms-drop-head span { font-size: 12px; color: var(--ms-muted); }

/* ---------- Alt menü şeridi ---------- */
.ms-nav {
	background: #fff;
	border-bottom: 1px solid var(--ms-border);
}
.ms-nav-inner {
	max-width: 1400px; margin: 0 auto; padding: 0 20px;
	display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.ms-nav-inner::-webkit-scrollbar { display: none; }
.ms-nav-inner a {
	display: inline-flex; align-items: center; gap: 7px; padding: 11px 13px; color: var(--ms-text);
	font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: all .15s ease;
}
.ms-nav-inner a:hover { color: var(--ms-primary); border-bottom-color: var(--ms-primary); }
.ms-nav-inner .ms-cat-icon {
	width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.ms-nav-inner .ms-cat-icon img { width: 100%; height: 100%; object-fit: contain; }
.ms-nav-inner .ms-cat-icon i { font-size: 16px; color: #fff; }

/* ---------- Hero / slider ---------- */
.ms-hero { padding: 22px 0 8px; }
.ms-hero-inner {
	max-width: 1400px; margin: 0 auto; padding: 0 20px;
	display: grid; grid-template-columns: 1fr 360px; gap: 18px;
}
.ms-hero-slider { border-radius: var(--ms-radius-lg); overflow: hidden; box-shadow: var(--ms-shadow); min-height: 320px; background: #fff; }
.ms-hero-slider .swiper-slide a { display: block; }
.ms-hero-slider .swiper-slide img { width: 100%; height: 340px; object-fit: cover; }
.ms-hero-slider .swiper-pagination-bullet { width: 8px; height: 8px; background: rgba(255,255,255,.7); opacity: 1; }
.ms-hero-slider .swiper-pagination-bullet-active { background: var(--ms-primary); width: 24px; border-radius: 999px; }
.ms-hero-side { display: flex; flex-direction: column; gap: 14px; }
.ms-hero-side-item { background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; overflow: hidden; box-shadow: var(--ms-shadow-sm); transition: all .2s ease; display: flex; }
.ms-hero-side-item:hover { transform: translateY(-2px); box-shadow: var(--ms-shadow); }
.ms-hero-side-item a { display: flex; align-items: center; gap: 12px; padding: 10px; text-decoration: none; color: inherit; }
.ms-hero-side-item .ms-side-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--ms-bg); display: flex; align-items: center; justify-content: center; }
.ms-hero-side-item .ms-side-img img { width: 100%; height: 100%; object-fit: cover; }
.ms-hero-side-item .ms-side-text h3 { font-size: 13px; font-weight: 600; color: var(--ms-text); margin: 0 0 2px; line-height: 1.3; }
.ms-hero-side-item .ms-side-text span { font-size: 12px; color: var(--ms-muted); }
.ms-hero-side-item .ms-side-price { margin-left: auto; font-weight: 700; color: var(--ms-primary); font-size: 13px; }

/* ---------- Kategori şeridi ---------- */
.ms-cats { padding: 18px 0; }
.ms-cats-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.ms-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.ms-cat-card {
	background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; padding: 14px 8px;
	display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; transition: all .2s ease;
}
.ms-cat-card:hover { transform: translateY(-3px); box-shadow: var(--ms-shadow); border-color: #dbeafe; }
.ms-cat-card .ms-cat-img { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ms-cat-card .ms-cat-img img { width: 100%; height: 100%; object-fit: contain; }
.ms-cat-card .ms-cat-img i { font-size: 24px; color: #fff; }
.ms-cat-card span { font-size: 12.5px; font-weight: 600; color: var(--ms-text); text-align: center; line-height: 1.25; }

/* ---------- Bölümler ---------- */
.ms-section { padding: 26px 0; }
.ms-section-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.ms-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ms-section-title { display: flex; align-items: center; gap: 10px; }
.ms-section-title .ms-t-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--ms-primary-50); color: var(--ms-primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ms-section-title h2 { font-size: 19px; font-weight: 800; color: var(--ms-text); margin: 0; }
.ms-section-title p { font-size: 13px; color: var(--ms-muted); margin: 0; }
.ms-see-all { color: var(--ms-primary); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ms-see-all:hover { color: var(--ms-primary-600); }

/* ---------- İlan kartı ---------- */
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.ms-card {
	background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; overflow: hidden;
	box-shadow: var(--ms-shadow-sm); transition: all .25s ease; display: flex; flex-direction: column;
}
.ms-card:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow); border-color: #dbeafe; }
.ms-card-img { position: relative; aspect-ratio: 4/3; background: var(--ms-bg); overflow: hidden; }
.ms-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ms-card:hover .ms-card-img img { transform: scale(1.04); }
.ms-card-tag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.ms-tag { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.ms-tag-blue { background: #10c5a8; }
.ms-tag-amber { background: #f2ba1f; color: #3b2f00; }
.ms-tag-red { background: #ff4655; }
.ms-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ms-card-title { font-size: 14px; font-weight: 600; color: var(--ms-text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.ms-card-title a { color: inherit; text-decoration: none; }
.ms-card-title a:hover { color: var(--ms-primary); }
.ms-card-price { font-size: 16px; font-weight: 800; color: var(--ms-primary); }
.ms-card-seller { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--ms-border); margin-top: auto; }
.ms-seller-av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--ms-primary-50); display: flex; align-items: center; justify-content: center; color: var(--ms-primary); font-weight: 700; font-size: 12px; }
.ms-seller-av img { width: 100%; height: 100%; object-fit: cover; }
.ms-seller-av span { color: var(--ms-primary); font-weight: 700; font-size: 12px; }
.ms-card-seller .ms-seller-name { font-size: 12px; color: var(--ms-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-card-seller .ms-seller-name b { display: block; color: var(--ms-text); font-weight: 600; font-size: 12.5px; }

/* ---------- Yatay kaydırma şeritleri ---------- */
.ms-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.ms-scroll::-webkit-scrollbar { height: 6px; }
.ms-scroll::-webkit-scrollbar-thumb { background: #dbe3ee; border-radius: 999px; }
.ms-scroll .ms-scroll-item { flex: 0 0 auto; }
.ms-scroll .ms-scroll-item .ms-cat-card { width: 120px; }

/* ---------- Mağaza kartı ---------- */
.ms-shop-card {
	background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; padding: 18px;
	box-shadow: var(--ms-shadow-sm); transition: all .2s ease; text-align: center;
}
.ms-shop-card:hover { transform: translateY(-3px); box-shadow: var(--ms-shadow); }
.ms-shop-av { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; background: var(--ms-primary-50); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--ms-primary); }
.ms-shop-av img { width: 100%; height: 100%; object-fit: cover; }
.ms-shop-card h3 { font-size: 14px; font-weight: 700; color: var(--ms-text); margin: 0 0 4px; }
.ms-shop-card p { font-size: 12px; color: var(--ms-muted); margin: 0 0 10px; }

/* ---------- Avantajlar ---------- */
.ms-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.ms-feat { background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: var(--ms-shadow-sm); }
.ms-feat .ms-feat-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--ms-primary-50); color: var(--ms-primary); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.ms-feat h4 { font-size: 14.5px; font-weight: 700; color: var(--ms-text); margin: 0 0 3px; }
.ms-feat p { font-size: 12.5px; color: var(--ms-muted); margin: 0; }

/* ---------- SSS ---------- */
.ms-sss { background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; overflow: hidden; }
.ms-sss details { border-bottom: 1px solid var(--ms-border); }
.ms-sss details:last-child { border-bottom: none; }
.ms-sss summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--ms-text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ms-sss summary::-webkit-details-marker { display: none; }
.ms-sss summary::after { content: "\ea4e"; font-family: "remixicon"; font-size: 18px; color: var(--ms-muted); transition: transform .2s ease; }
.ms-sss details[open] summary::after { transform: rotate(180deg); color: var(--ms-primary); }
.ms-sss details[open] summary { color: var(--ms-primary); }
.ms-sss .ms-sss-body { padding: 0 18px 16px; font-size: 14px; color: var(--ms-muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.ms-footer { background: #0f172a; color: #94a3b8; margin-top: 40px; }
.ms-footer-inner { max-width: 1400px; margin: 0 auto; padding: 40px 20px 24px; }
.ms-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; }
.ms-footer h4 { color: #e2e8f0; font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.ms-footer ul { list-style: none; margin: 0; padding: 0; }
.ms-footer ul li { margin-bottom: 10px; }
.ms-footer ul li a { color: #94a3b8; font-size: 14px; text-decoration: none; transition: color .15s ease; }
.ms-footer ul li a:hover { color: #fff; }
.ms-footer .ms-footer-brand img { height: 42px; margin-bottom: 14px; }
.ms-footer .ms-footer-brand p { font-size: 13.5px; line-height: 1.6; margin: 0 0 16px; }
.ms-social { display: flex; gap: 10px; }
.ms-social a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.08); color: #cbd5e1; display: flex; align-items: center; justify-content: center; font-size: 17px; text-decoration: none; transition: all .2s ease; }
.ms-social a:hover { background: var(--ms-primary); color: #fff; }
.ms-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #64748b; flex-wrap: wrap; }
.ms-footer-bottom ul { display: flex; gap: 16px; }
.ms-footer-bottom ul a { color: #94a3b8; }
.ms-footer-bottom ul a:hover { color: #fff; }

/* ---------- Mobil alt bar ---------- */
.ms-mobile-bar {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
	background: #fff; border-top: 1px solid var(--ms-border); box-shadow: 0 -6px 20px rgba(15,23,42,.06);
}
.ms-mobile-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.ms-mobile-bar ul li a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; font-size: 10.5px; color: var(--ms-muted); text-decoration: none; }
.ms-mobile-bar ul li a i { font-size: 19px; }
.ms-mobile-bar ul li.active a { color: var(--ms-primary); }

/* ---------- Mobil menü ---------- */
.ms-hamburger { display: none; background: none; border: 1px solid var(--ms-border); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; color: var(--ms-text); cursor: pointer; }
.ms-drawer { position: fixed; inset: 0; z-index: 1200; display: none; }
.ms-drawer.ms-open { display: block; }
.ms-drawer-bg { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.ms-drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 300px; max-width: 85vw; background: #fff; overflow-y: auto; padding: 18px; box-shadow: var(--ms-shadow-lg); }
.ms-drawer-panel h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ms-muted); margin: 20px 0 8px; }
.ms-drawer-panel > a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; color: var(--ms-text); text-decoration: none; font-weight: 500; }
.ms-drawer-panel > a:hover { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-drawer-close { position: absolute; top: 12px; right: 12px; background: var(--ms-bg); border: none; border-radius: 999px; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }

/* ---------- Auth sayfaları ---------- */
.ms-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#eef2ff 0%,#f4f6fb 50%,#dbeafe 100%); padding: 30px 16px; position: relative; overflow: hidden; }
.ms-auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; box-shadow: var(--ms-shadow-lg); padding: 36px 32px; border: 1px solid rgba(255,255,255,.7); position: relative; z-index: 2; }
.ms-auth-logo { text-align: center; margin-bottom: 20px; }
.ms-auth-logo img { height: 52px; object-fit: contain; }
.ms-auth-title { text-align: center; margin-bottom: 24px; }
.ms-auth-title h2 { font-size: 23px; font-weight: 800; color: var(--ms-text); margin: 0 0 4px; }
.ms-auth-title p { font-size: 14px; color: var(--ms-muted); margin: 0; }
.ms-field { margin-bottom: 15px; }
.ms-field label { font-size: 13px; font-weight: 600; color: var(--ms-text); display: block; margin-bottom: 6px; }
.ms-input { position: relative; }
.ms-input i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ms-muted); font-size: 17px; }
.ms-input input {
	width: 100%; border: 1.5px solid var(--ms-border); border-radius: 11px; padding: 12px 14px 12px 42px;
	font-size: 14.5px; color: var(--ms-text); background: var(--ms-bg); transition: all .2s ease; outline: none;
}
.ms-input input:focus { border-color: var(--ms-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.ms-auth-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; font-size: 13px; }
.ms-auth-row a { color: var(--ms-primary); font-weight: 600; text-decoration: none; }
.ms-auth-submit {
	width: 100%; background: linear-gradient(135deg,#2563eb,#4f46e5); color: #fff; border: none; border-radius: 11px;
	padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s ease;
}
.ms-auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(37,99,235,.6); }
.ms-auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ms-muted); }
.ms-auth-alt a { color: var(--ms-primary); font-weight: 700; text-decoration: none; }
.ms-auth-alert { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 16px; }
.ms-auth-alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Hesap paneli ---------- */
.ms-account { padding: 26px 0 60px; }
.ms-account-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.ms-acc-menu { background: #fff; border: 1px solid var(--ms-border); border-radius: 16px; padding: 20px; box-shadow: var(--ms-shadow-sm); position: sticky; top: 90px; }
.ms-acc-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ms-border); margin-bottom: 16px; }
.ms-acc-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#2563eb,#4f46e5); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; overflow: hidden; flex-shrink: 0; }
.ms-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ms-acc-user b { font-size: 14px; color: var(--ms-text); display: block; }
.ms-acc-user span { font-size: 12px; color: var(--ms-muted); }
.ms-acc-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ms-acc-balance .ms-acc-bal { background: var(--ms-primary-50); border-radius: 12px; padding: 12px; }
.ms-acc-balance .ms-acc-bal.green { background: #ecfdf5; }
.ms-acc-balance h6 { font-size: 11px; color: var(--ms-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 4px; }
.ms-acc-balance b { font-size: 15px; color: var(--ms-text); }
.ms-acc-links { display: flex; flex-direction: column; gap: 2px; }
.ms-acc-links a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; color: var(--ms-text); font-size: 14px; font-weight: 500; text-decoration: none; transition: all .15s ease; }
.ms-acc-links a i { font-size: 19px; color: var(--ms-muted); width: 22px; text-align: center; }
.ms-acc-links a:hover, .ms-acc-links a.ms-active { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-acc-links a:hover i, .ms-acc-links a.ms-active i { color: var(--ms-primary); }
.ms-panel { background: #fff; border: 1px solid var(--ms-border); border-radius: 16px; padding: 24px; box-shadow: var(--ms-shadow-sm); }
.ms-panel-title { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--ms-border); margin-bottom: 20px; }
.ms-panel-title .ms-p-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--ms-primary-50); color: var(--ms-primary); display: flex; align-items: center; justify-content: center; font-size: 21px; }
.ms-panel-title h2 { font-size: 18px; font-weight: 800; color: var(--ms-text); margin: 0; }
.ms-panel-title p { font-size: 13px; color: var(--ms-muted); margin: 0; }

.ms-pay-tabs { display: flex; gap: 8px; background: var(--ms-bg); padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.ms-pay-tabs button { flex: 1; border: none; background: transparent; padding: 11px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ms-muted); cursor: pointer; transition: all .2s ease; }
.ms-pay-tabs button.ms-active, .ms-pay-tabs button.active { background: #fff; color: var(--ms-primary); box-shadow: var(--ms-shadow-sm); }
.ms-field-label { font-size: 13px; font-weight: 600; color: var(--ms-text); display: block; margin-bottom: 6px; }
.ms-input-plain { width: 100%; border: 1.5px solid var(--ms-border); border-radius: 11px; padding: 12px 14px; font-size: 15px; color: var(--ms-text); background: var(--ms-bg); transition: all .2s ease; outline: none; }
.ms-input-plain:focus { border-color: var(--ms-primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.ms-input-plain[readonly], .ms-input-plain:disabled { background: #f8fafc; color: var(--ms-muted); }
.ms-commission { display: flex; align-items: center; gap: 8px; color: var(--ms-muted); font-size: 13px; font-weight: 600; }
.ms-commission i { font-size: 17px; color: var(--ms-amber); }
.ms-info-list { margin: 18px 0 0; padding: 14px 18px 14px 34px; background: var(--ms-bg); border-radius: 11px; }
.ms-info-list li { font-size: 13px; color: var(--ms-muted); margin-bottom: 6px; }
.ms-info-list li:last-child { margin-bottom: 0; }

.ms-table { width: 100%; border-collapse: collapse; }
.ms-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ms-muted); padding: 12px 14px; border-bottom: 1px solid var(--ms-border); background: #f8fafc; }
.ms-table td { padding: 14px; border-bottom: 1px solid var(--ms-border); font-size: 14px; color: var(--ms-text); }
.ms-table tr:last-child td { border-bottom: none; }
.ms-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ms-status-ok { background: #ecfdf5; color: var(--ms-green); }
.ms-status-wait { background: #fffbeb; color: var(--ms-amber); }
.ms-status-err { background: #fef2f2; color: var(--ms-red); }

/* ---------- Kategori & Ürün sayfaları ---------- */
.ms-page { padding: 26px 0 60px; }
.ms-page-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.ms-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ms-muted); margin-bottom: 20px; flex-wrap: wrap; }
.ms-breadcrumb a { color: var(--ms-primary); text-decoration: none; font-weight: 500; }
.ms-breadcrumb i { font-size: 14px; color: #cbd5e1; }
.ms-cat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.ms-cat-sidebar { background: #fff; border: 1px solid var(--ms-border); border-radius: 16px; padding: 20px; box-shadow: var(--ms-shadow-sm); position: sticky; top: 90px; }
.ms-cat-sidebar h4 { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--ms-text); display: flex; align-items: center; gap: 8px; }
.ms-cat-sidebar h4 i { color: var(--ms-primary); font-size: 19px; }
.ms-cat-sidebar .ms-cat-sub { font-size: 12px; color: var(--ms-muted); margin-bottom: 14px; }
.ms-cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 560px; overflow: auto; }
.ms-cat-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ms-text); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: all .15s ease; }
.ms-cat-list a i { font-size: 15px; color: var(--ms-muted); }
.ms-cat-list a:hover { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-cat-list a.ms-active { background: var(--ms-primary); color: #fff; }
.ms-cat-list a.ms-active i { color: #fff; }

.ms-cat-banner { background: linear-gradient(120deg,#eff6ff,#eef2ff); border: 1px solid #dbeafe; border-radius: 18px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.ms-cat-banner img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: #fff; padding: 8px; border: 1px solid var(--ms-border); }
.ms-cat-banner h1 { font-size: 24px; font-weight: 800; color: var(--ms-text); margin: 0; }
.ms-cat-banner p { font-size: 13.5px; color: var(--ms-muted); margin: 4px 0 0; }
.ms-cat-stats { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ms-muted); }
.ms-cat-stats i { color: var(--ms-amber); }

.ms-subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ms-subcat { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--ms-border); border-radius: 14px; padding: 18px 12px; text-decoration: none; color: var(--ms-text); transition: all .2s ease; text-align: center; }
.ms-subcat:hover { border-color: var(--ms-primary); box-shadow: var(--ms-shadow); transform: translateY(-3px); }
.ms-subcat img { width: 46px; height: 46px; object-fit: contain; }
.ms-subcat i { font-size: 26px; color: var(--ms-primary); }
.ms-subcat span { font-size: 13px; font-weight: 600; line-height: 1.3; }

.ms-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ms-toolbar b { font-size: 15px; color: var(--ms-text); }
.ms-toolbar b span { color: var(--ms-primary); }
.ms-count-badge { background: var(--ms-primary-50); color: var(--ms-primary); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-left: 6px; }

.ms-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.ms-product-card { background: #fff; border: 1px solid var(--ms-border); border-radius: 16px; overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column; }
.ms-product-card:hover { box-shadow: var(--ms-shadow); transform: translateY(-3px); }
.ms-product-img { height: 170px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #fff; border-bottom: 1px solid var(--ms-border); }
.ms-product-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ms-product-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ms-product-title { font-size: 14.5px; font-weight: 700; color: var(--ms-text); text-decoration: none; line-height: 1.35; display: block; min-height: 40px; }
.ms-product-title:hover { color: var(--ms-primary); }
.ms-product-sub { font-size: 12.5px; color: var(--ms-muted); }
.ms-product-price { font-size: 19px; font-weight: 800; color: var(--ms-primary); }
.ms-product-price .ms-price-old { font-size: 13px; color: var(--ms-muted); text-decoration: line-through; font-weight: 600; margin-left: 8px; }
.ms-product-actions { display: flex; align-items: center; gap: 10px; margin-top: auto; }

.ms-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ms-border); border-radius: 10px; overflow: hidden; background: var(--ms-bg); }
.ms-qty button { width: 32px; height: 34px; border: none; background: transparent; color: var(--ms-text); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .15s ease; }
.ms-qty button:hover { background: var(--ms-primary-50); color: var(--ms-primary); }
.ms-qty span { min-width: 34px; text-align: center; font-weight: 700; font-size: 14px; }

.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: none; border-radius: 11px; padding: 11px 18px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s ease; text-decoration: none; }
.ms-btn-primary { background: var(--ms-primary); color: #fff; }
.ms-btn-primary:hover { background: var(--ms-primary-dark); color: #fff; }
.ms-btn:disabled, .ms-btn.ms-disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.ms-btn-outline { background: #fff; border: 1.5px solid var(--ms-border); color: var(--ms-text); }
.ms-btn-outline:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.ms-btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 9px; }

.ms-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.ms-pagination a, .ms-pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1.5px solid var(--ms-border); color: var(--ms-text); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .15s ease; }
.ms-pagination a:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.ms-pagination .ms-active { background: var(--ms-primary); color: #fff; border-color: var(--ms-primary); }

.ms-cat-desc { background: #fff; border: 1px solid var(--ms-border); border-radius: 16px; padding: 24px; margin-top: 28px; box-shadow: var(--ms-shadow-sm); }
.ms-cat-desc h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.ms-cat-desc p, .ms-cat-desc div { font-size: 14px; color: var(--ms-text); line-height: 1.7; }

/* Ürün detay */
.ms-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.ms-detail { background: #fff; border: 1px solid var(--ms-border); border-radius: 18px; padding: 26px; box-shadow: var(--ms-shadow-sm); }
.ms-detail-top { display: grid; grid-template-columns: 320px 1fr; gap: 28px; }
.ms-detail-img { border: 1px solid var(--ms-border); border-radius: 14px; background: var(--ms-bg); padding: 20px; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.ms-detail-img img { max-width: 100%; max-height: 280px; object-fit: contain; }
.ms-detail-sku { font-size: 12.5px; color: var(--ms-muted); margin-bottom: 10px; }
.ms-detail-sku b { color: var(--ms-text); }
.ms-detail-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ms-detail h1 { font-size: 23px; font-weight: 800; color: var(--ms-text); margin: 0 0 6px; }
.ms-detail-sub { font-size: 14.5px; color: var(--ms-muted); margin-bottom: 16px; }
.ms-detail-feats { background: var(--ms-bg); border: 1px solid var(--ms-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; }
.ms-detail-feats ul { margin: 0; padding-left: 18px; }
.ms-detail-feats li { font-size: 13.5px; color: var(--ms-text); margin-bottom: 6px; }
.ms-detail-price { font-size: 30px; font-weight: 800; color: var(--ms-primary); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.ms-detail-price .ms-price-old { font-size: 18px; color: var(--ms-muted); text-decoration: line-through; font-weight: 600; }
.ms-discount { background: #fee2e2; color: var(--ms-red); font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.ms-detail-buy { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-detail-tabs { margin-top: 30px; }
.ms-tabs { display: flex; gap: 6px; border-bottom: 1.5px solid var(--ms-border); margin-bottom: 20px; overflow-x: auto; }
.ms-tabs button { border: none; background: transparent; padding: 11px 18px; font-size: 14.5px; font-weight: 700; color: var(--ms-muted); cursor: pointer; position: relative; white-space: nowrap; transition: color .15s ease; }
.ms-tabs button.ms-active, .ms-tabs button.active { color: var(--ms-primary); }
.ms-tabs button.ms-active::after, .ms-tabs button.active::after { content: ''; position: absolute; bottom: -1.5px; left: 0; width: 100%; height: 3px; background: var(--ms-primary); border-radius: 3px 3px 0 0; }
.ms-tab-pane { display: none; }
.ms-tab-pane.ms-active { display: block; }
.ms-tab-content { font-size: 14px; line-height: 1.75; color: var(--ms-text); }

.ms-review { padding: 18px 0; border-bottom: 1px solid var(--ms-border); }
.ms-review:last-child { border-bottom: none; }
.ms-review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ms-review-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--ms-primary-50); color: var(--ms-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-review-av img { width: 100%; height: 100%; object-fit: cover; }
.ms-review-name { font-size: 14px; font-weight: 700; color: var(--ms-text); }
.ms-review-sub { font-size: 12px; color: var(--ms-muted); }
.ms-review-stars { font-size: 14px; color: var(--ms-amber); margin-left: auto; }
.ms-review-stars span { color: var(--ms-muted); font-weight: 600; margin-left: 4px; }
.ms-review-text { font-size: 14px; color: var(--ms-text); line-height: 1.65; }
.ms-review-date { font-size: 12px; color: var(--ms-muted); margin-top: 8px; }

.ms-similar { display: flex; flex-direction: column; gap: 16px; }
.ms-similar-card { background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; overflow: hidden; transition: all .2s ease; }
.ms-similar-card:hover { box-shadow: var(--ms-shadow); }
.ms-similar-card .ms-product-img { height: 120px; }
.ms-similar-card .ms-product-body { padding: 12px 14px; }

@media (max-width: 992px) {
	.ms-cat-layout { grid-template-columns: 1fr; }
	.ms-cat-sidebar { position: static; }
	.ms-detail-grid { grid-template-columns: 1fr; }
	.ms-detail-top { grid-template-columns: 1fr; }
	.ms-detail-img { min-height: 200px; }
	.ms-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}

.ms-sidebar-head { font-size: 13.5px; font-weight: 700; color: var(--ms-text); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ms-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; background: var(--ms-bg); border: 1.5px solid var(--ms-border); border-radius: 999px; text-decoration: none; color: var(--ms-text); font-size: 13px; font-weight: 600; transition: all .2s ease; }
.ms-chip:hover { border-color: var(--ms-primary); color: var(--ms-primary); transform: translateY(-1px); }
.ms-chip.ms-active { background: var(--ms-primary); border-color: var(--ms-primary); color: #fff; }

.ms-accordion-item { border: 1.5px solid var(--ms-border); border-radius: 12px; overflow: hidden; background: #fff; }
.ms-accordion-head { width: 100%; border: none; background: #fff; padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--ms-text); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.ms-accordion-head i { transition: transform .25s ease; color: var(--ms-primary); font-size: 18px; }
.ms-accordion-item.ms-open .ms-accordion-head i { transform: rotate(45deg); }
.ms-accordion-body { display: none; padding: 0 16px 16px; font-size: 13.5px; color: var(--ms-muted); line-height: 1.6; }
.ms-accordion-item.ms-open .ms-accordion-body { display: block; }

.ms-grid-ilan { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.ms-switch { position: relative; width: 44px; height: 24px; display: inline-block; }
.ms-switch input { opacity: 0; width: 0; height: 0; }
.ms-switch .slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: all .25s ease; cursor: pointer; }
.ms-switch .slider:before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: all .25s ease; }
.ms-switch input:checked + .slider { background: var(--ms-primary); }
.ms-switch input:checked + .slider:before { transform: translateX(20px); }

/* ============================================================
   ESKİ HESAP SAYFALARI İÇİN MS- UYUM KATMANI
   (ayarlarim, siparislerim, paracekme, ilanlarim, referanslarim,
    destek-talebi, magazadoping, ilanistatistik ...)
   ============================================================ */
.accountarea { padding: 26px 0 60px; }
.accountarea > .row > .col-md-9 { flex: 1; }
.accountarea > .row > .col-md-3 { flex: 0 0 260px; }
@media (max-width: 992px) {
    .accountarea > .row { flex-direction: column; }
    .accountarea > .row > .col-md-3 { flex: 0 0 auto; }
}
.accountarea .acc_ilanlarpage,
.accountarea .profilebox,
.accountarea .orderslist {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 16px;
    box-shadow: var(--ms-shadow-sm);
    padding: 24px;
    margin-bottom: 22px;
}
.accountarea .profilebox { border-radius: 16px; margin-top: 0; }

.accountarea .bartitle,
.accountarea .filttitle {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--ms-border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}
.accountarea .bartitle .icon,
.accountarea .filttitle .icon {
    width: 42px; height: 42px;
    background: var(--ms-primary-50);
    color: var(--ms-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
}
.accountarea .bartitle span,
.accountarea .filttitle span {
    font-size: 18px;
    font-weight: 800;
    color: var(--ms-text);
}

/* Genel form elemanları */
.accountarea input:not([type="checkbox"]):not([type="radio"]),
.accountarea select,
.accountarea textarea {
    border: 1.5px solid var(--ms-border) !important;
    border-radius: 11px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    background: var(--ms-bg) !important;
    color: var(--ms-text) !important;
    transition: all .2s ease;
}
.accountarea input:focus,
.accountarea select:focus,
.accountarea textarea:focus {
    border-color: var(--ms-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(37,99,235,.1) !important;
}
.accountarea label { font-size: 13px; font-weight: 600; color: var(--ms-text); }
.accountarea .form-label { font-size: 13px; font-weight: 600; color: var(--ms-text); }
.accountarea .inptsitem { margin-bottom: 14px; }
.accountarea .inptsitem label { display: block; margin-bottom: 6px; }

.accountarea button[type="submit"],
.accountarea .btn-primary {
    background: var(--ms-primary) !important;
    border: none !important;
    border-radius: 11px !important;
    padding: 11px 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    transition: all .2s ease;
}
.accountarea button[type="submit"]:hover,
.accountarea .btn-primary:hover { background: var(--ms-primary-dark) !important; }

/* Sipariş tablosu */
.accountarea .orderfilter {
    background: var(--ms-bg);
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.accountarea .orderfilter ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.accountarea .orderfilter ul li { margin: 0; }
.accountarea .orderfilter .filtreButon {
    background: #fff;
    border: 1.5px solid var(--ms-border);
    color: var(--ms-text);
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.accountarea .orderfilter .filtreButon:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.accountarea .orderfilter .filtreButon.active { background: var(--ms-primary); border-color: var(--ms-primary); color: #fff; }
.accountarea .servissearch {
    display: flex; align-items: center; gap: 8px;
    background: #fff !important;
    border: 1.5px solid var(--ms-border) !important;
    border-radius: 11px !important;
    padding: 0 12px !important;
}
.accountarea .servissearch input { border: none !important; background: transparent !important; padding: 9px 0 !important; flex: 1; }

.accountarea .siparistable { width: 100%; }
.accountarea .siparistable .thad {
    display: none;
}
.accountarea .siparistable .thad .row > div { display: none; }
.accountarea .siparistable .thad span {
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ms-muted); font-weight: 700;
}
.accountarea .siparistable .tbody { display: flex; flex-direction: column; gap: 12px; }
.accountarea .siparistable .tbody .item {
    border: 1px solid var(--ms-border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
    transition: all .2s ease;
}
.accountarea .siparistable .tbody .item:hover { box-shadow: var(--ms-shadow); }
.accountarea .siparistable .id {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--ms-primary); font-size: 14px;
}
.accountarea .siparistable .copy {
    border: none; background: var(--ms-primary-50); color: var(--ms-primary);
    border-radius: 8px; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.accountarea .siparistable .sippro { display: flex; align-items: center; gap: 12px; }
.accountarea .siparistable .sippro img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--ms-bg); border: 1px solid var(--ms-border); padding: 4px; }
.accountarea .siparistable .sippro .ts { font-size: 14px; font-weight: 700; color: var(--ms-text); text-decoration: none; }
.accountarea .siparistable .price { font-size: 15px; font-weight: 800; color: var(--ms-primary); }
.accountarea .siparistable .date { font-size: 13px; color: var(--ms-muted); }
.accountarea .siparistable .status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.accountarea .siparistable .status.wait { background: #fffbeb; color: var(--ms-amber); }
.accountarea .siparistable .status.succes { background: #ecfdf5; color: var(--ms-green); }
.accountarea .siparistable .status.cancel { background: #fef2f2; color: var(--ms-red); }
.accountarea .siparistable .status.solution { background: var(--ms-primary-50); color: var(--ms-primary); }

/* Para çekme geçmişi tablosu */
.accountarea .paracekimgecmis h3 { font-size: 17px; font-weight: 800; color: var(--ms-text); margin: 0 0 14px; }
.accountarea .table { background: #fff; border: 1px solid var(--ms-border); border-radius: 14px; overflow: hidden; }
.accountarea .tableheadweb {
    background: var(--ms-bg);
    padding: 12px 16px;
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ms-muted); font-weight: 700;
    border-bottom: 1px solid var(--ms-border);
}
.accountarea .tablecekimbody .item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ms-border);
    font-size: 14px;
    color: var(--ms-text);
}
.accountarea .tablecekimbody .item:last-child { border-bottom: none; }
.accountarea .tablecekimbody .item span { display: none; }
.accountarea .tablecekimbody .yhesap b, .accountarea .tablecekimbody .yhesap { font-weight: 600; }
.accountarea .durum { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.accountarea .durum.text-info { color: var(--ms-amber); }
.accountarea .durum.no { color: var(--ms-red); }

/* İlanlarım sayfası kartları */
.accountarea .ilanitem {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .2s ease;
}
.accountarea .ilanitem:hover { box-shadow: var(--ms-shadow); }
.accountarea .ilanitem .img img { width: 100%; height: 160px; object-fit: contain; background: var(--ms-bg); }
.accountarea .ilanitem .text { padding: 14px 16px; }
.accountarea .ilanitem .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.accountarea .ilanitem .head .icon img { width: 26px; height: 26px; object-fit: contain; }
.accountarea .ilanitem .head .price { font-size: 17px; font-weight: 800; color: var(--ms-primary); }
.accountarea .ilanitem h2 { font-size: 14.5px; font-weight: 700; margin: 0 0 4px; }
.accountarea .ilanitem h2 a { color: var(--ms-text); text-decoration: none; }
.accountarea .ilanitem h2 a:hover { color: var(--ms-primary); }
.accountarea .ilanitem p { font-size: 12.5px; color: var(--ms-muted); margin: 0 0 10px; }
.accountarea .ilanitem .seller { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ms-border); }
.accountarea .ilanitem .seller a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.accountarea .ilanitem .seller .img img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.accountarea .ilanitem .seller h3 { font-size: 11px; color: var(--ms-muted); margin: 0; }
.accountarea .ilanitem .seller span { font-size: 13px; font-weight: 700; color: var(--ms-text); }
.accountarea .ilanitem .editbtn,
.accountarea .ilanitem .delete,
.accountarea .ilanitem .analiz {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
}
.accountarea .ilanitem .editbtn { background: var(--ms-primary-50); color: var(--ms-primary); }
.accountarea .ilanitem .delete { background: #fef2f2; color: var(--ms-red); }
.accountarea .ilanitem .analiz { background: #fffbeb; color: var(--ms-amber); }

/* Destek talebi */
.accountarea .supportdeskitem {
    background: #fff;
    border: 1px solid var(--ms-border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    transition: all .2s ease;
}
.accountarea .supportdeskitem:hover { box-shadow: var(--ms-shadow); }
.accountarea .dashboardbox {
    background: var(--ms-primary-50);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 18px;
}
.accountarea .destektalebikonusma { display: flex; flex-direction: column; gap: 12px; }
.accountarea .destektalebikonusma .item {
    background: var(--ms-bg);
    border: 1px solid var(--ms-border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}

/* Sayfalama */
.accountarea .pagination-page { display: flex; justify-content: center; margin-top: 24px; }
.accountarea .pagination-page ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.accountarea .pagination-page a,
.accountarea .pagination-page .page-link {
    min-width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--ms-border); background: #fff;
    border-radius: 10px; color: var(--ms-text); text-decoration: none;
    font-weight: 600; font-size: 14px;
}
.accountarea .pagination-page a:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.accountarea .pagination-page li.active a,
.accountarea .pagination-page .active > .page-link { background: var(--ms-primary); color: #fff; border-color: var(--ms-primary); }

/* Modal içeriği */
.accountarea .modal-content { border-radius: 16px; }
.accountarea .modal-header { border-bottom: 1px solid var(--ms-border); }
.accountarea .modal-title { font-size: 17px; font-weight: 800; }

@media (max-width: 992px) {
	.ms-account-inner { grid-template-columns: 1fr; }
	.ms-acc-menu { position: static; }
}


@media (max-width: 1024px) {
	.ms-hero-inner { grid-template-columns: 1fr; }
	.ms-hero-side { flex-direction: row; overflow-x: auto; }
	.ms-hero-side-item { flex: 0 0 260px; }
}
@media (max-width: 768px) {
	.ms-search { display: none; }
	.ms-mobile-search-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
	.ms-hamburger { display: inline-flex; align-items: center; justify-content: center; }
	.ms-nav { display: none; }
	.ms-footer-grid { grid-template-columns: 1fr 1fr; }
	.ms-user-info { display: none; }
	.ms-mobile-bar { display: block; }
	body { padding-bottom: 62px; }
	.ms-cats-grid { grid-template-columns: repeat(4, 1fr); }
	.ms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ms-footer-grid { grid-template-columns: 1fr; }
	.ms-cats-grid { grid-template-columns: repeat(3, 1fr); }
}
