/* ============================================================
   Halil İbrahim Sofrası — Ana Tema Stili
   Kırmızı / Beyaz / Siyah • Mobil öncelikli
   ============================================================ */

:root {
	--him-red: #da2128;
	--him-red-dark: #b0161c;
	--him-red-soft: #fbeaea;
	--him-black: #17140f;
	--him-ink: #221f1a;
	--him-gray: #6b6660;
	--him-line: #ece7e1;
	--him-cream: #faf7f2;
	--him-white: #ffffff;
	--him-wa: #25d366;
	--him-wa-dark: #1da851;
	--him-radius: 16px;
	--him-radius-sm: 10px;
	--him-shadow: 0 10px 30px rgba(23,20,15,.10);
	--him-shadow-sm: 0 4px 14px rgba(23,20,15,.08);
	--him-head: 'Rubik', 'Segoe UI', system-ui, sans-serif;
	--him-body: 'Mulish', 'Segoe UI', system-ui, sans-serif;
	--him-header-h: 74px;
	--him-menubar-h: 118px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--him-body);
	color: var(--him-ink);
	background: var(--him-cream);
	line-height: 1.5;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.him-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 18px;
}

/* ---------- Butonlar ---------- */
.him-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--him-head);
	font-weight: 600;
	letter-spacing: .3px;
	text-transform: uppercase;
	font-size: 15px;
	padding: 13px 24px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
	line-height: 1;
}
.him-btn:active { transform: scale(.97); }
.him-btn--primary { background: var(--him-red); color: #fff; box-shadow: 0 8px 20px rgba(218,33,40,.32); }
.him-btn--primary:hover { background: var(--him-red-dark); transform: translateY(-2px); }
.him-btn--dark { background: var(--him-black); color: #fff; }
.him-btn--dark:hover { background: #000; transform: translateY(-2px); }
.him-btn--wa { background: var(--him-wa); color: #fff; }
.him-btn--wa:hover { background: var(--him-wa-dark); transform: translateY(-2px); }
.him-btn--outline {
	background: #fff;
	color: var(--him-red);
	border: 2px solid var(--him-red);
}
.him-btn--outline:hover { background: var(--him-red); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.him-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--him-line);
}
.him-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--him-header-h);
	padding-top: 8px;
	padding-bottom: 8px;
}
.him-header__logo img { height: 56px; width: auto; }
.him-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--him-red);
	font-size: 15px;
	background: var(--him-red-soft);
	padding: 9px 15px;
	border-radius: 999px;
	transition: background-color .18s ease;
}
.him-header__phone:hover { background: #f6d9da; }

/* ---------- Hero ---------- */
.him-hero {
	position: relative;
	background: var(--him-black);
	color: #fff;
	text-align: center;
	padding: 64px 0 72px;
	overflow: hidden;
}
.him-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--hero-image);
	background-size: cover;
	background-position: center;
	opacity: 0;
	z-index: 0;
}
.him-hero.has-image::before { opacity: .38; }
.him-hero.has-image { background: linear-gradient(180deg, #1a1712 0%, #2a231b 100%); }
.him-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 120% at 50% 0%, rgba(218,33,40,.28) 0%, rgba(23,20,15,0) 55%);
	z-index: 1;
}
.him-hero__inner { position: relative; z-index: 2; }
.him-hero__logo {
	width: min(300px, 66vw);
	height: auto;
	margin: 0 auto 20px;
	display: block;
	filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
	animation: himLogoIn .7s cubic-bezier(.2,.9,.3,1.1) both;
}
.him-hero__title {
	font-family: var(--him-head);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: clamp(30px, 8vw, 62px);
	margin: 0 0 14px;
	line-height: 1.02;
	text-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.him-hero__text {
	max-width: 620px;
	margin: 0 auto 26px;
	font-size: clamp(15px, 4vw, 19px);
	color: rgba(255,255,255,.88);
}
.him-hero__cta { font-size: 16px; }

/* ---------- Menü çubuğu (arama + kategoriler) yapışkan ---------- */
.him-menubar {
	position: sticky;
	top: var(--him-header-h);
	z-index: 40;
	background: rgba(250,247,242,.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--him-line);
	padding: 12px 0 6px;
}
.him-search {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.him-search__icon {
	position: absolute;
	left: 16px;
	color: var(--him-gray);
	pointer-events: none;
}
.him-search__input {
	width: 100%;
	font-family: var(--him-body);
	font-size: 16px;
	padding: 13px 16px 13px 46px;
	border: 1.5px solid var(--him-line);
	border-radius: 999px;
	background: #fff;
	color: var(--him-ink);
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.him-search__input:focus {
	border-color: var(--him-red);
	box-shadow: 0 0 0 4px rgba(218,33,40,.12);
}
.him-cats {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 6px;
	scroll-snap-type: x proximity;
}
.him-cats::-webkit-scrollbar { display: none; }
.him-cats__btn {
	flex: 0 0 auto;
	scroll-snap-align: start;
	font-family: var(--him-head);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .3px;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--him-line);
	background: #fff;
	color: var(--him-ink);
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.him-cats__btn:hover { border-color: var(--him-red); color: var(--him-red); }
.him-cats__btn.is-active {
	background: var(--him-red);
	border-color: var(--him-red);
	color: #fff;
}

/* ---------- Kategori bölümü ---------- */
.him-catsection { padding: 34px 0 8px; scroll-margin-top: calc(var(--him-header-h) + var(--him-menubar-h)); }
.him-catsection__head {
	margin-bottom: 20px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.him-catsection__headmain { min-width: 0; }
.him-catsection__title {
	font-family: var(--him-head);
	font-weight: 700;
	text-transform: uppercase;
	font-size: clamp(23px, 6vw, 34px);
	margin: 0;
	color: var(--him-black);
	position: relative;
	padding-left: 16px;
}
.him-catsection__title::before {
	content: "";
	position: absolute;
	left: 0; top: 6px; bottom: 6px;
	width: 6px;
	border-radius: 4px;
	background: var(--him-red);
}
.him-catsection__desc { color: var(--him-gray); margin: 8px 0 0; max-width: 640px; }
.him-viewall {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--him-head);
	font-weight: 600;
	font-size: 14px;
	color: var(--him-red);
	white-space: nowrap;
	padding: 8px 4px;
	border-bottom: 2px solid transparent;
	transition: gap .18s ease, border-color .18s ease;
}
.him-viewall:hover { gap: 10px; border-color: var(--him-red); }
.him-viewall-wrap { text-align: center; margin-top: 22px; }
.him-viewall-wrap .him-btn { font-size: 14px; }

/* Kategori (arşiv) sayfası */
.him-main--archive { padding-top: 24px; }
.him-breadcrumb { padding: 8px 0 4px; }
.him-breadcrumb a {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--him-gray); font-weight: 600; font-size: 14px;
	transition: color .18s ease;
}
.him-breadcrumb a:hover { color: var(--him-red); }
.him-archive__head { padding: 10px 0 26px; }
.him-archive__title {
	font-family: var(--him-head);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(28px, 8vw, 46px);
	margin: 0;
	color: var(--him-black);
	position: relative;
	padding-left: 18px;
}
.him-archive__title::before {
	content: "";
	position: absolute;
	left: 0; top: 8px; bottom: 8px;
	width: 7px; border-radius: 4px;
	background: var(--him-red);
}
.him-archive__desc { color: var(--him-gray); margin: 12px 0 0; max-width: 680px; font-size: 16px; }

/* ---------- Ürün ızgarası ---------- */
.him-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* ---------- Ürün kartı ---------- */
.him-card {
	background: #fff;
	border: 1px solid var(--him-line);
	border-radius: var(--him-radius);
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	box-shadow: var(--him-shadow-sm);
}
.him-card:hover, .him-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--him-shadow);
	border-color: #e2c9c9;
	outline: none;
}
.him-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--him-red-soft);
	overflow: hidden;
}
.him-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.him-card:hover .him-card__media img { transform: scale(1.05); }
.him-card__placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--him-head);
	font-size: 56px;
	color: var(--him-red);
	background: repeating-linear-gradient(45deg, #fbeaea, #fbeaea 12px, #f7dede 12px, #f7dede 24px);
}
.him-card__tag {
	position: absolute;
	top: 12px; left: 12px;
	background: var(--him-red);
	color: #fff;
	font-family: var(--him-head);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(218,33,40,.35);
}
.him-card__body { padding: 15px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.him-card__title {
	font-family: var(--him-head);
	font-weight: 600;
	font-size: 20px;
	margin: 0;
	color: var(--him-black);
	line-height: 1.15;
}
.him-card__ing {
	margin: 0;
	color: var(--him-gray);
	font-size: 14.5px;
	line-height: 1.4;
	flex: 1;
}
.him-card__price { margin-top: 4px; }

/* Fiyatlar */
.him-prices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.him-price {
	font-family: var(--him-head);
	font-weight: 700;
	font-size: 19px;
	color: var(--him-red);
}
.him-price--single { font-size: 21px; }
.him-price__label {
	display: inline-block;
	font-family: var(--him-body);
	font-weight: 600;
	font-size: 11px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--him-gray);
	background: var(--him-cream);
	padding: 3px 8px;
	border-radius: 6px;
	margin-right: 2px;
	vertical-align: middle;
}
.him-price--double { padding-left: 8px; border-left: 2px solid var(--him-line); }

/* ---------- Boş durum ---------- */
.him-empty { text-align: center; color: var(--him-gray); padding: 40px 0; }
.him-empty--small { padding: 16px 0; text-align: left; }
.him-noresults {
	text-align: center;
	color: var(--him-gray);
	font-size: 17px;
	padding: 50px 0 60px;
}

/* ---------- Modal (ürün detay) ---------- */
.him-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.him-modal[hidden] { display: none; }
.him-modal__overlay { position: absolute; inset: 0; background: rgba(23,20,15,.66); backdrop-filter: blur(4px); animation: himFade .2s ease; }
.him-modal__box {
	position: relative;
	background: #fff;
	border-radius: 20px;
	max-width: 480px;
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	box-shadow: 0 30px 80px rgba(0,0,0,.4);
	animation: himPop .24s cubic-bezier(.2,.9,.3,1.2);
	z-index: 1;
}
.him-modal__close {
	position: absolute;
	top: 12px; right: 12px;
	z-index: 2;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.92);
	color: var(--him-black);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0,0,0,.2);
	transition: background-color .18s ease, transform .18s ease;
}
.him-modal__close:hover { background: #fff; transform: rotate(90deg); }
.him-modal__media { aspect-ratio: 4 / 3; background: var(--him-red-soft); overflow: hidden; border-radius: 20px 20px 0 0; }
.him-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.him-modal__media:empty, .him-modal__media img[src=""] { display: none; }
.him-modal__body { padding: 20px 22px 24px; }
.him-modal__title { font-family: var(--him-head); font-weight: 700; font-size: 26px; margin: 0 0 8px; color: var(--him-black); text-transform: uppercase; }
.him-modal__ing { color: var(--him-gray); margin: 0 0 8px; font-size: 15.5px; }
.him-modal__desc { color: var(--him-ink); margin: 0 0 14px; font-size: 15px; }
.him-modal__desc:empty { display: none; }
.him-modal__price { margin-bottom: 18px; }
.him-modal__price .him-price { font-size: 24px; }
.him-modal__order { width: 100%; font-size: 16px; }

/* ---------- Sabit WhatsApp butonu ---------- */
.him-wa-float {
	position: fixed;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 80;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--him-wa);
	color: #fff;
	font-family: var(--him-head);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: .4px;
	text-transform: uppercase;
	padding: 13px 20px;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(37,211,102,.45);
	transition: transform .2s ease, background-color .2s ease;
	animation: himPulse 2.6s infinite;
}
.him-wa-float:hover { background: var(--him-wa-dark); transform: translateY(-2px) scale(1.03); }
.him-wa-float:active { transform: scale(.96); }

/* ---------- Footer ---------- */
.him-footer { background: var(--him-black); color: rgba(255,255,255,.82); margin-top: 40px; }
.him-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding: 46px 18px 34px;
}
.him-footer__logo { height: 74px; width: auto; margin-bottom: 12px; }
.him-footer__desc { font-size: 15px; line-height: 1.6; max-width: 360px; }
.him-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.him-footer__social a {
	width: 42px; height: 42px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,.08);
	color: #fff;
	transition: background-color .18s ease, transform .18s ease;
}
.him-footer__social a:hover { background: var(--him-red); transform: translateY(-3px); }
.him-footer__title { font-family: var(--him-head); font-weight: 600; text-transform: uppercase; color: #fff; font-size: 20px; margin: 0 0 14px; }
.him-footer__line { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.him-footer__line strong { color: #fff; }
.him-footer__line a:hover { color: var(--him-red); }
.him-footer__buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.him-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- Animasyonlar ---------- */
@keyframes himFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes himLogoIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes himPop { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes himPulse {
	0% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
	70% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
	100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
	.him-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.him-menubar { --him-menubar-h: 122px; }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 960px) {
	.him-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
	.him-header__logo img { height: 62px; }
	.him-footer__grid { grid-template-columns: 1.2fr 1fr 1.1fr; padding: 56px 18px 40px; }
	.him-wa-float { right: 26px; bottom: 26px; font-size: 16px; padding: 15px 24px; }
	.him-hero { padding: 90px 0 100px; }
}

@media (min-width: 1200px) {
	.him-grid { grid-template-columns: repeat(4, 1fr); }
}
