/* ==========================================================================
   AKLAST Core — tasarım katmanı
   1. Tasarım değişkenleri ve tipografi
   2. Üst bar
   3. Butonlar ve fiyat etiketleri
   4. Ürün kartları ve listeleme
   5. Başlık, footer, içerik
   6. Mobil alt menü
   ========================================================================== */

/* Yazı tipleri sistemden gelir; harici font isteği yok. */

/* Woodmart tema değişkenleri: !important, temanın satır içi CSS'ini geçer. */
html:root {
	--wd-primary-color: #f26522 !important;
	--wd-title-font: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif !important;
	--wd-text-font: "Inter", "Segoe UI", -apple-system, Arial, sans-serif !important;
	--wd-entities-title-font: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif !important;
	--wd-header-el-font: "Inter", "Segoe UI", Arial, sans-serif !important;
	--wd-entities-title-color: #14181d !important;
	--wd-title-font-weight: 600 !important;

	--ak-graphite: #14181d;
	--ak-orange: #f26522;
	--ak-orange-dark: #d9541a;
	--ak-surface: #f5f6f7;
	--ak-border: #e4e7eb;
	--ak-text: #1f2328;
	--ak-muted: #5c6670;
}

body {
	font-family: "Inter", "Segoe UI", -apple-system, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.wd-entities-title,
.entry-title,
.woocommerce-loop-product__title {
	font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif !important;
	letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
   2. Üst bar
   -------------------------------------------------------------------------- */

.aklast-topbar {
	background: var(--ak-graphite);
	color: #d7dbe0;
	font-size: 12.5px;
	line-height: 1;
	position: relative;
	z-index: 400;
}

body.admin-bar .aklast-topbar { margin-top: 32px; }

.aklast-topbar__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 9px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.aklast-topbar__links {
	display: flex;
	align-items: center;
	gap: 18px;
}

.aklast-topbar__item {
	color: #d7dbe0;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
}

.aklast-topbar__item:hover { color: #fff; }

.aklast-topbar__dealer {
	background: var(--ak-orange);
	color: #fff !important;
	padding: 6px 12px;
	border-radius: 999px;
	font-weight: 600;
}

.aklast-topbar__dealer:hover { background: var(--ak-orange-dark); }

@media (max-width: 1024px) {
	.aklast-topbar__shipping { display: none; }
	.aklast-topbar__inner { justify-content: center; }
}

/* --------------------------------------------------------------------------
   3. Butonlar ve fiyat etiketleri
   -------------------------------------------------------------------------- */

.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wd-btn,
.btn {
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-weight: 600;
	letter-spacing: 0.3px;
	border-radius: 8px;
}

.single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--ak-orange);
	color: #fff;
}

.single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: var(--ak-orange-dark);
	color: #fff;
}

.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce ul.products li.product .price {
	color: var(--ak-graphite);
	font-weight: 700;
}

.aklast-price-tag {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 7px;
	border-radius: 4px;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	vertical-align: middle;
	background: var(--ak-orange);
	color: #fff;
}

.aklast-price-note {
	display: block;
	margin: 4px 0 0;
	font-size: 11.5px;
	font-weight: 400;
	line-height: 1.3;
}

.aklast-price-note a { color: var(--ak-muted); text-decoration: underline; }
.aklast-price-note a:hover { color: var(--ak-orange); }

/* --------------------------------------------------------------------------
   4. Ürün kartları
   -------------------------------------------------------------------------- */

.woocommerce ul.products li.product,
.wd-product {
	border: 1px solid var(--ak-border);
	border-radius: 10px;
	padding: 12px 12px 16px;
	background: #fff;
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.woocommerce ul.products li.product:hover,
.wd-product:hover {
	border-color: #d0d5db;
	box-shadow: 0 8px 24px rgba(20, 24, 29, 0.08);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wd-product .wd-entities-title {
	font-size: 15.5px;
	line-height: 1.35;
	min-height: 42px;
	margin-bottom: 6px;
}

.woocommerce ul.products li.product img,
.wd-product img {
	border-radius: 8px;
	background: var(--ak-surface);
}

.woocommerce span.onsale,
.wd-product .onsale {
	background: var(--ak-orange);
	border-radius: 4px;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
	font-weight: 700;
}

/* Filtre alanı */
.widget-title,
.wd-widget-title {
	font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 16px;
	letter-spacing: 0.3px;
}

/* --------------------------------------------------------------------------
   5. Başlık, footer, içerik
   -------------------------------------------------------------------------- */

.whb-general-header-inner { border-bottom: 1px solid var(--ak-border); }

.wd-nav > li > a {
	font-weight: 600;
	letter-spacing: 0.3px;
}

/* Footer açık zeminde: harita ve ödeme ikonları koyu bantta kayboluyordu. */
.footer-container,
footer.wd-footer {
	background: #f1f3f5;
	color: var(--ak-muted);
	border-top: 1px solid var(--ak-border);
}

.footer-container a,
footer.wd-footer a { color: var(--ak-text); }

.footer-container a:hover,
footer.wd-footer a:hover { color: var(--ak-orange); }

.footer-container h1, .footer-container h2, .footer-container h3, .footer-container h4,
footer.wd-footer h1, footer.wd-footer h2, footer.wd-footer h3 { color: var(--ak-text); }

/* Sosyal ikon çerçeveleri metin rengini izler; açık zeminde koyu kalmalı. */
.footer-container .wd-social-icons .wd-social-icon,
footer.wd-footer .wd-social-icons .wd-social-icon { color: var(--ak-text); }

/* Boş footer widget alanlarını gizle */
.footer-container .widget:empty,
footer.wd-footer .widget:empty { display: none; }

.wd-entry-content p,
.woocommerce-product-details__short-description p { line-height: 1.7; }

/* --------------------------------------------------------------------------
   6. Mobil alt menü
   -------------------------------------------------------------------------- */

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

@media (max-width: 768px) {
	.aklast-mobile-bar {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 500;
		background: #fff;
		border-top: 1px solid var(--ak-border);
		box-shadow: 0 -4px 16px rgba(20, 24, 29, 0.08);
		padding-bottom: env(safe-area-inset-bottom);
	}

	.aklast-mobile-bar a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 9px 4px 8px;
		font-size: 10.5px;
		font-weight: 600;
		color: var(--ak-text);
		text-decoration: none;
	}

	.aklast-mobile-bar a:active { background: var(--ak-surface); }
	.aklast-mobile-bar__icon { font-size: 16px; line-height: 1; }

	body { padding-bottom: 58px; }
}
