/* Atikamzan Namoonekar — همه‌ی کلاس‌ها با atk-nk- شروع می‌شن تا با استایل قالب تداخل نکنن */

.atk-nk-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
html { scroll-behavior: smooth; }

.atk-nk-breadcrumb { padding: 16px 0; font-size: 14px; }
.atk-nk-breadcrumb a { color: inherit; opacity: .65; text-decoration: none; }
.atk-nk-breadcrumb a:hover { opacity: 1; }
.atk-nk-breadcrumb .atk-nk-sep { margin: 0 6px; opacity: .4; }
.atk-nk-breadcrumb .atk-nk-current { font-weight: 600; }

.atk-nk-hero { padding: 10px 0 30px; }
.atk-nk-hero h1 { margin: 0 0 8px; font-size: 30px; }
.atk-nk-hero p { margin: 0; opacity: .7; }

/* ---- سرچ‌باکس صفحه‌ی هاب ---- */
.atk-nk-cat-search { max-width: 420px; margin: 0 0 22px; }
.atk-nk-cat-search input {
	width: 100%;
	padding: 12px 16px;
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,.15);
	font-size: 15px;
	background: #fff;
	color: inherit;
}

/* ---- کارت‌های دسته‌ی اصلی ---- */
.atk-nk-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	padding-bottom: 50px;
}
@media (max-width: 900px) { .atk-nk-cat-grid { grid-template-columns: repeat(2, 1fr); } }

.atk-nk-cat-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	background-color: var(--atk-color, #2B3A67);
	background-size: cover;
	background-position: center;
	padding: 16px;
	transition: transform .15s ease;
}
.atk-nk-cat-card:hover { transform: translateY(-3px); }
.atk-nk-cat-card-shade {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0) 60%);
}
.atk-nk-cat-card-label {
	position: absolute; right: 16px; bottom: 40px; left: 16px;
	font-size: 17px; font-weight: 700;
}
.atk-nk-cat-card-meta {
	position: absolute; right: 16px; bottom: 16px;
	font-size: 12px; opacity: .85;
}
.atk-nk-cat-card-arrow {
	position: absolute; left: 14px; bottom: 14px;
	width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255,255,255,.92); color: #20242B;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px;
}

/* ---- صفحه‌ی داخل دسته ---- */
.atk-nk-cat-header { padding: 30px 0 6px; }
.atk-nk-back { font-size: 13px; opacity: .65; text-decoration: none; color: inherit; }
.atk-nk-back:hover { opacity: 1; }
.atk-nk-cat-header h2 { margin: 10px 0 0; font-size: 26px; }

/* ---- نوار عکس‌های کوچک زیردسته‌ها (لینک اسکرول به همون بخش) ---- */
.atk-nk-subcat-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 22px 0 10px;
}
.atk-nk-subcat-tile {
	position: relative;
	flex: 0 0 auto;
	width: 150px;
	height: 150px;
	border-radius: 14px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-color: #2B3A67;
	border: 1px solid rgba(255,255,255,.14);
	display: flex;
	align-items: flex-end;
	padding: 14px;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.atk-nk-subcat-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.atk-nk-subcat-tile-shade {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,0) 55%);
}
.atk-nk-subcat-tile-label {
	position: relative;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}
.atk-nk-subcat-tile-arrow {
	position: absolute; top: 10px; left: 10px;
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255,255,255,.92); color: #20242B;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px;
	opacity: 0; transition: opacity .15s ease;
}
.atk-nk-subcat-tile:hover .atk-nk-subcat-tile-arrow { opacity: 1; }
@media (max-width: 600px) { .atk-nk-subcat-tile { width: 120px; height: 120px; } }

.atk-nk-subgroup { padding-top: 30px; scroll-margin-top: 24px; }
.atk-nk-subgroup-head {
	display: flex; align-items: baseline; justify-content: space-between;
	border-bottom: 1px solid rgba(0,0,0,.1);
	padding-bottom: 10px; margin-bottom: 14px;
}
.atk-nk-subgroup-head h4 { margin: 0; font-size: 16px; }
.atk-nk-count { font-size: 12px; opacity: .6; }

.atk-nk-item-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
@media (max-width: 900px) { .atk-nk-item-grid { grid-template-columns: repeat(2, 1fr); } }

.atk-nk-item-card {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: #f2f2f2;
	text-decoration: none;
}
.atk-nk-item-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.atk-nk-item-overlay {
	position: absolute; inset-inline: 0; bottom: 0;
	padding: 18px 10px 8px;
	background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,0));
}
.atk-nk-item-caption { color: #fff; font-size: 12.5px; font-weight: 600; }
.atk-nk-item-arrow {
	position: absolute; top: 8px; left: 8px;
	width: 24px; height: 24px; border-radius: 50%;
	background: rgba(255,255,255,.92);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; color: #20242B;
	opacity: 0; transition: opacity .15s ease;
}
.atk-nk-item-card:hover .atk-nk-item-arrow { opacity: 1; }
.atk-nk-item-card--nolink { cursor: default; opacity: .6; }
.atk-nk-item-card--nolink .atk-nk-item-arrow { display: none; }
.atk-nk-no-image {
	display: flex; align-items: center; justify-content: center;
	height: 100%; font-size: 12px; opacity: .5;
}

.atk-nk-foot { padding: 46px 0 70px; text-align: center; }
.atk-nk-foot p { opacity: .65; font-size: 14px; margin-bottom: 12px; }
.atk-nk-btn {
	display: inline-block; padding: 9px 18px; border: 1px solid rgba(0,0,0,.15);
	border-radius: 8px; text-decoration: none; color: inherit; font-size: 14px;
}
.atk-nk-btn:hover { border-color: currentColor; }

.atk-nk-empty { opacity: .6; padding: 40px 0; }
