/*
Theme Name: Köşk Pide Kebap
Theme URI: https://koskpide.com
Author: Köşk Pide Kebap
Description: Köşk Pide Kebap için kırmızı-beyaz WooCommerce sipariş ve QR menü teması.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kosk-pide
*/

:root {
	--red: #d30d2f;
	--red-dark: #aa0926;
	--ink: #171717;
	--muted: #736b64;
	--cream: #faf5ed;
	--line: rgba(23, 23, 23, 0.09);
	--shadow: 0 18px 50px rgba(40, 27, 17, 0.1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--ink);
	font-family: "Inter", Arial, sans-serif;
	line-height: 1.6;
}

body.admin-bar .kosk-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.screen-reader-text:focus {
	z-index: 99999;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 10px;
	clip: auto;
	background: #fff;
	color: var(--red);
}

.kosk-container {
	width: min(calc(100% - 32px), 1440px);
	margin-inline: auto;
}

.kosk-header {
	position: sticky;
	z-index: 1000;
	top: 0;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
}

.kosk-header-inner {
	display: flex;
	align-items: center;
	min-height: 82px;
	gap: 22px;
}

.kosk-brand,
.kosk-footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.kosk-logo {
	display: grid;
	width: 46px;
	height: 46px;
	place-items: center;
	border-radius: 13px;
	background: var(--red);
	box-shadow: 0 9px 24px rgba(211, 13, 47, 0.25);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 25px;
	font-weight: 800;
}

.kosk-brand-copy,
.kosk-footer-brand > span:last-child {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.kosk-brand-copy strong,
.kosk-footer-brand strong {
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 800;
}

.kosk-brand-copy small,
.kosk-footer-brand small {
	margin-top: 5px;
	color: var(--red);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.2em;
}

.kosk-custom-logo img {
	width: auto;
	max-width: 230px;
	max-height: 58px;
}

.kosk-nav {
	margin-left: auto;
}

.kosk-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kosk-nav-list a {
	display: block;
	padding: 10px 11px;
	border-radius: 999px;
	color: #4d4742;
	font-size: 14px;
	font-weight: 600;
	transition: 0.2s ease;
}

.kosk-nav-list a:hover,
.kosk-nav-list .current-menu-item > a {
	background: var(--cream);
	color: var(--red);
}

.kosk-header-actions,
.kosk-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kosk-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 21px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 700;
	transition: 0.18s ease;
}

.kosk-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	transform: translateY(-1px);
}

.kosk-button-red,
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--red);
	box-shadow: 0 10px 24px rgba(211, 13, 47, 0.2);
	color: #fff;
}

.kosk-button-red:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--red-dark);
	color: #fff;
}

.kosk-button-outline {
	border: 1px solid rgba(23, 23, 23, 0.14);
	background: #fff;
}

.kosk-cart-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	transition: transform 0.2s ease;
}

.kosk-cart-link.is-bumped {
	transform: scale(1.08);
}

.kosk-cart-count {
	display: grid;
	min-width: 21px;
	height: 21px;
	padding: 0 5px;
	place-items: center;
	border-radius: 50%;
	background: var(--red);
	color: #fff;
	font-size: 11px;
}

.kosk-menu-toggle {
	display: none;
	width: 46px;
	height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.kosk-menu-toggle > span {
	display: block;
	height: 2px;
	margin: 4px 0;
	border-radius: 2px;
	background: var(--ink);
}

.kosk-hero {
	overflow: hidden;
	background:
		radial-gradient(circle at 10% 12%, rgba(211, 13, 47, 0.11), transparent 27%),
		linear-gradient(135deg, #fff 0%, #fff 52%, var(--cream) 52%, #f4e8da 100%);
}

.kosk-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
	align-items: center;
	min-height: 650px;
	gap: 65px;
	padding-block: 68px;
}

.kosk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 17px;
	color: var(--red);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.kosk-eyebrow::before {
	content: "";
	width: 27px;
	height: 3px;
	border-radius: 3px;
	background: var(--red);
}

.kosk-hero h1,
.kosk-section-heading h2,
.kosk-page-hero h1 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.08;
}

.kosk-hero h1 {
	font-size: clamp(42px, 5vw, 74px);
}

.kosk-hero h1 span {
	color: var(--red);
}

.kosk-lead {
	max-width: 650px;
	margin: 22px 0 28px;
	color: var(--muted);
	font-size: 18px;
}

.kosk-points {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin: 27px 0 0;
	padding: 0;
	list-style: none;
	color: #4f4944;
	font-size: 13px;
	font-weight: 600;
}

.kosk-points li::before {
	content: "✓";
	display: inline-grid;
	width: 21px;
	height: 21px;
	margin-right: 6px;
	place-items: center;
	border-radius: 50%;
	background: #e6f6ed;
	color: #147a4b;
}

.kosk-hero-media {
	min-height: 500px;
	overflow: hidden;
	border: 10px solid rgba(255, 255, 255, 0.8);
	border-radius: 42px 42px 90px 42px;
	background: #f5ecdf;
	box-shadow: var(--shadow);
}

.kosk-hero-media img {
	width: 100%;
	min-height: 500px;
	object-fit: cover;
}

.kosk-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: inherit;
	padding: 28px;
	place-items: center;
	background: repeating-linear-gradient(45deg, #f5ecdf, #f5ecdf 18px, #fcf8f3 18px, #fcf8f3 36px);
	color: #9b8b7d;
	text-align: center;
}

.kosk-placeholder strong,
.kosk-placeholder small {
	display: block;
}

.kosk-placeholder strong {
	font-family: "Poppins", sans-serif;
	font-size: 22px;
}

.kosk-section {
	padding-block: 82px;
}

.kosk-section.is-cream {
	background: var(--cream);
}

.kosk-section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 29px;
}

.kosk-section-heading h2 {
	font-size: clamp(30px, 4vw, 46px);
}

.kosk-section-heading p {
	max-width: 650px;
	margin: 8px 0 0;
	color: var(--muted);
}

.kosk-category-grid,
.kosk-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.kosk-category-card,
.kosk-feature-grid article {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 6px 25px rgba(31, 21, 13, 0.04);
	transition: 0.2s ease;
}

.kosk-category-card:hover {
	transform: translateY(-4px);
	border-color: rgba(211, 13, 47, 0.32);
	box-shadow: var(--shadow);
}

.kosk-category-card > span,
.kosk-feature-grid article > b {
	display: grid;
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
	place-items: center;
	border-radius: 14px;
	background: rgba(211, 13, 47, 0.09);
	color: var(--red);
	font-size: 22px;
}

.kosk-category-card h3,
.kosk-feature-grid h3 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
}

.kosk-category-card p,
.kosk-feature-grid p {
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.kosk-qr-panel {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	align-items: center;
	gap: 34px;
	padding: 38px;
	border-radius: 32px;
	background: var(--ink);
	color: #fff;
}

.kosk-qr-panel img {
	padding: 12px;
	border-radius: 18px;
	background: #fff;
}

.kosk-qr-panel h2 {
	margin: 0 0 8px;
	font-family: "Poppins", sans-serif;
	font-size: 32px;
}

.kosk-qr-panel p {
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
}

.kosk-page-hero {
	padding: 52px 0 44px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(135deg, var(--cream), #fff);
}

.kosk-page-hero h1 {
	font-size: clamp(34px, 5vw, 54px);
}

.kosk-page-hero p {
	max-width: 720px;
	margin: 10px 0 0;
	color: var(--muted);
}

.kosk-content {
	padding-block: 55px 90px;
}

.kosk-content-narrow {
	width: min(calc(100% - 32px), 900px);
	margin-inline: auto;
}

.kosk-content h2,
.kosk-content h3 {
	font-family: "Poppins", sans-serif;
}

.kosk-menu-tabs {
	position: sticky;
	z-index: 50;
	top: 82px;
	overflow-x: auto;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
}

.kosk-menu-tabs .kosk-container {
	display: flex;
	gap: 9px;
	padding-block: 12px;
}

.kosk-menu-tab {
	flex: 0 0 auto;
	padding: 10px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--cream);
	color: #403b36;
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
}

.kosk-menu-tab:hover,
.kosk-menu-tab.is-active {
	background: var(--red);
	color: #fff;
}

.kosk-menu-category {
	padding-top: 40px;
	scroll-margin-top: 145px;
}

.kosk-category-title {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 20px;
}

.kosk-category-title h2 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 26px;
}

.kosk-category-title::after {
	content: "";
	height: 1px;
	flex: 1;
	background: var(--line);
}

.kosk-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.kosk-product-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(31, 21, 13, 0.05);
	transition: 0.2s ease;
}

.kosk-product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.kosk-product-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f7eee3;
}

.kosk-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kosk-product-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	color: #aa9b8e;
	text-align: center;
}

.kosk-product-placeholder b,
.kosk-product-placeholder small {
	display: block;
}

.kosk-product-placeholder b {
	font-size: 27px;
}

.kosk-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 17px;
}

.kosk-product-top {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 10px;
}

.kosk-product-top h3 {
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.35;
}

.kosk-product-top > strong {
	flex: 0 0 auto;
	color: var(--red);
	font-family: "Poppins", sans-serif;
}

.kosk-product-body > p {
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.kosk-product-form {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 9px;
	margin-top: auto;
	padding-top: 14px;
}

.kosk-note {
	grid-column: 1 / -1;
	width: 100%;
	min-height: 41px;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.kosk-product-form .quantity .qty {
	width: 62px;
	min-height: 44px;
	border: 1px solid var(--line);
	border-radius: 999px;
	text-align: center;
}

.kosk-add-button {
	min-height: 44px;
	padding: 0 15px;
	border: 0;
	border-radius: 999px;
	background: var(--red);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}

.kosk-info-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 28px;
}

.kosk-info-card,
.kosk-map-card {
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 8px 30px rgba(31, 21, 13, 0.05);
}

.kosk-info-card ul {
	display: grid;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kosk-info-card strong,
.kosk-info-card span,
.kosk-info-card a {
	display: block;
}

.kosk-info-card span,
.kosk-info-card a {
	color: var(--muted);
}

.kosk-map-card {
	min-height: 430px;
	padding: 0;
	overflow: hidden;
	background: var(--cream);
}

.kosk-map-card iframe {
	width: 100%;
	height: 430px;
	border: 0;
}

.kosk-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.kosk-gallery-placeholder {
	display: grid;
	aspect-ratio: 4 / 3;
	place-items: center;
	border: 2px dashed rgba(211, 13, 47, 0.18);
	border-radius: 20px;
	background: var(--cream);
	color: #a29081;
	text-align: center;
}

.kosk-gallery-placeholder small {
	display: block;
}

.kosk-footer {
	padding-top: 58px;
	background: #151515;
	color: rgba(255, 255, 255, 0.7);
}

.kosk-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr 1fr;
	gap: 58px;
	padding-bottom: 44px;
}

.kosk-footer h2 {
	margin: 0 0 13px;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
}

.kosk-footer a {
	display: block;
	margin: 7px 0;
}

.kosk-footer a:hover {
	color: #fff;
}

.kosk-footer-bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 13px;
}

.kosk-mobile-bar {
	display: none;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product {
	width: auto;
	margin: 0;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(31, 21, 13, 0.05);
}

.woocommerce ul.products li.product img {
	border-radius: 14px;
}

.woocommerce ul.products li.product .price {
	color: var(--red);
	font-weight: 800;
}

.woocommerce table.shop_table,
.woocommerce form.checkout_coupon,
.woocommerce-checkout #payment {
	border-color: var(--line);
	border-radius: 18px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
}

.woocommerce-info,
.woocommerce-message {
	border-top-color: var(--red);
}

.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--red);
}

@media (max-width: 1180px) {
	.kosk-menu-toggle {
		display: block;
		margin-left: auto;
	}

	.kosk-nav {
		position: absolute;
		top: 82px;
		right: 16px;
		left: 16px;
		display: none;
		padding: 14px;
		border: 1px solid var(--line);
		border-radius: 18px;
		background: #fff;
		box-shadow: var(--shadow);
	}

	.kosk-nav.is-open {
		display: block;
	}

	.kosk-nav-list {
		display: grid;
	}

	.kosk-category-grid,
	.kosk-feature-grid,
	.kosk-product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 850px) {
	body {
		padding-bottom: 66px;
	}

	body.admin-bar .kosk-header {
		top: 46px;
	}

	.kosk-header-inner {
		min-height: 68px;
	}

	.kosk-nav {
		top: 68px;
	}

	.kosk-header-actions {
		display: none;
	}

	.kosk-hero {
		background: linear-gradient(180deg, #fff 0%, #fff 57%, var(--cream) 57%);
	}

	.kosk-hero-grid {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-block: 52px;
	}

	.kosk-hero-media,
	.kosk-hero-media img {
		min-height: 410px;
	}

	.kosk-category-grid,
	.kosk-feature-grid,
	.kosk-product-grid,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kosk-menu-tabs {
		top: 68px;
	}

	.kosk-qr-panel {
		grid-template-columns: 150px 1fr;
	}

	.kosk-qr-panel .kosk-button {
		grid-column: 1 / -1;
	}

	.kosk-info-grid {
		grid-template-columns: 1fr;
	}

	.kosk-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.kosk-mobile-bar {
		position: fixed;
		z-index: 1100;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		padding: 7px 8px max(7px, env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: #fff;
		box-shadow: 0 -7px 24px rgba(0, 0, 0, 0.08);
		font-size: 12px;
		font-weight: 700;
		text-align: center;
	}

	.kosk-mobile-bar a {
		padding: 10px 5px;
		border-radius: 999px;
	}

	.kosk-mobile-bar .is-primary {
		background: var(--red);
		color: #fff;
	}
}

@media (max-width: 600px) {
	.kosk-container {
		width: min(calc(100% - 24px), 1440px);
	}

	.kosk-logo {
		width: 40px;
		height: 40px;
		font-size: 21px;
	}

	.kosk-brand-copy strong {
		font-size: 16px;
	}

	.kosk-brand-copy small {
		display: none;
	}

	.kosk-section {
		padding-block: 58px;
	}

	.kosk-section-heading {
		display: block;
	}

	.kosk-category-grid,
	.kosk-feature-grid,
	.kosk-product-grid,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}

	.kosk-hero-media,
	.kosk-hero-media img {
		min-height: 330px;
	}

	.kosk-qr-panel {
		grid-template-columns: 1fr;
		padding: 25px;
		text-align: center;
	}

	.kosk-qr-panel img {
		width: 180px;
		margin-inline: auto;
	}

	.kosk-footer-grid,
	.kosk-gallery-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

