/*
Theme Name: Tridicraft
Description: Tridicraft için sade 3D baskı teması. Koyu ana sayfa, mobil alt menü ve fiyat hesaplama eklentisiyle uyumlu.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: tridicraft
*/

:root {
	--bg: #111218;
	--card: #1b1713;
	--surface: #f4f5f7;
	--line: rgba(0, 0, 0, .1);
	--ink: #1f2328;
	--mute: #5f6872;
	--on-dark: #f5f5f7;
	--on-dark-mute: #a7a9b6;
	--accent: #ff8c00;
	--accent-2: #e8590c;
	--grad: linear-gradient(135deg, var(--accent), var(--accent-2));
	--wrap: 1120px;
	--bn-h: 60px;
	--bn-pad: calc(env(safe-area-inset-bottom, 0px) * 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
body {
	margin: 0; background: var(--surface); color: var(--ink);
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px; line-height: 1.6;
	padding-bottom: calc(var(--bn-h) + var(--bn-pad) + 10px);
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tc-menu { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* eklenti: sabit üst bar altında kalmasın */
.yg3d { --yg-sticky: 88px; --yg-page: var(--surface); }

/* düğmeler */
.tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
	border: 0; border-radius: 12px; padding: 13px 24px; font: inherit; font-weight: 700; color: #1a1205; background: var(--grad);
	box-shadow: 0 8px 24px rgba(255, 140, 0, .28);
}
.tc-btn:hover { filter: brightness(1.05); }
.tc-btn--sm { padding: 9px 16px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.tc-btn--block { display: flex; width: 100%; margin-top: 18px; }
.tc-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* üst bar */
.tc-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.tc-header__in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.tc-logo { display: inline-flex; align-items: center; text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.tc-logo b { color: var(--accent); font-weight: 800; }
.tc-logo--light { color: #fff; }
.tc-logo img { max-height: 44px; width: auto; }
.tc-nav { display: none; margin-left: 8px; }
.tc-nav .tc-menu { display: flex; gap: 4px; }
.tc-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--ink); }
.tc-nav a:hover, .tc-nav .current-menu-item > a { color: var(--accent-2); background: rgba(255, 140, 0, .08); }
.tc-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tc-iconbtn {
	position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: #eef0f2; color: var(--ink); cursor: pointer; text-decoration: none;
}
.tc-iconbtn--accent { background: var(--grad); color: #1a1205; }
.tc-cart-count {
	position: absolute; top: -4px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--grad); color: #1a1205; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; border: 2px solid #fff;
}
.tc-cart-count[data-n="0"] { display: none; }

.tc-ig {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 22px;
	background: #eef0f2; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.tc-ig svg { color: var(--accent-2); flex: none; }

/* ana sayfa - kahraman alan */
.tc-hero { background: var(--bg); color: var(--on-dark); padding: 14px 0 40px; position: relative; overflow: hidden; }
.tc-hero::before {
	content: ""; position: absolute; left: 50%; bottom: -220px; width: 720px; height: 460px; transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255, 140, 0, .16), transparent); pointer-events: none;
}
.tc-hero__in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tc-hero h1 { margin: 0 0 12px; font-size: clamp(2rem, 6.2vw, 3.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; max-width: 16em; }
.tc-hero h1 em, .tc-drop h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tc-hero__lead { margin: 0 0 32px; max-width: 36em; font-size: clamp(1rem, 2.4vw, 1.2rem); color: var(--on-dark-mute); }

.tc-drop {
	width: 100%; max-width: 820px; padding: 40px 28px; border: 2px solid rgba(255, 140, 0, .55); border-radius: 28px; background: var(--card);
	box-shadow: 0 0 80px rgba(255, 140, 0, .12); cursor: pointer; display: flex; flex-direction: column; align-items: center;
}
.tc-drop.is-over { border-color: var(--accent); background: #241c12; }
.tc-drop__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 140, 0, .35); }
.tc-drop h2 { margin: 22px 0 10px; font-size: clamp(1.3rem, 3.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.tc-drop p { margin: 0; max-width: 34em; color: var(--on-dark-mute); font-size: 15px; }
.tc-checks { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 28px; font-weight: 600; }
.tc-checks li { display: inline-flex; align-items: center; gap: 10px; }
.tc-checks svg { color: #3ecf7a; }

/* bölümler */
.tc-section { padding: 56px 0; }
.tc-section--tight { padding-top: 0; }
.tc-h2 { margin: 0 0 28px; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; text-align: center; }
.tc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
.tc-steps li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tc-steps b { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #1a1205; }
.tc-steps h3 { margin: 14px 0 6px; font-size: 18px; }
.tc-steps p { margin: 0; color: var(--mute); }
.tc-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding: 28px; border-radius: 22px; background: var(--bg); color: var(--on-dark); }
.tc-cta h2 { margin: 0 0 4px; font-size: 1.5rem; }
.tc-cta p { margin: 0; color: var(--on-dark-mute); }

/* iç sayfalar */
.tc-main { padding: 28px 0 40px; }
.tc-main--calc { padding-top: 20px; }
.tc-title { margin: 0 0 14px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; }
.tc-meta { margin: 0 0 18px; color: var(--mute); font-size: 14px; }
.tc-entry { max-width: 760px; }
.tc-entry a { color: var(--accent-2); }
.tc-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; }
.tc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tc-card img { display: block; width: 100%; }
.tc-card__b { padding: 16px 18px 20px; }
.tc-card h2 { margin: 0 0 6px; font-size: 18px; }
.tc-card h2 a { text-decoration: none; }
.tc-card p { margin: 0; color: var(--mute); font-size: 15px; }

/* alt bilgi */
.tc-footer { background: #0c0d12; color: var(--on-dark-mute); padding-top: 40px; }
.tc-footer__in { display: grid; gap: 24px; grid-template-columns: 1fr; padding-bottom: 28px; }
.tc-footer p { margin: 12px 0 0; max-width: 28em; }
.tc-footer .tc-menu { display: grid; gap: 6px; }
.tc-footer a { text-decoration: none; }
.tc-footer a:hover { color: #fff; }
.tc-footer__copy { padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }

/* mobil alt menü */
.tc-bn {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--bn-h) + var(--bn-pad));
	padding-bottom: var(--bn-pad); background: #fff; border-top: 1px solid var(--line);
	display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
}
.tc-bn__i {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--bn-h);
	text-decoration: none; background: none; border: 0; font: inherit; font-size: 12px; font-weight: 700; color: #6b7480; cursor: pointer;
}
.tc-bn__i.is-on { color: var(--accent-2); }
.tc-bn__calc b {
	display: grid; place-items: center; width: 64px; height: 64px; margin-top: -34px; border-radius: 50%;
	background: var(--grad); color: #fff; border: 5px solid #fff; box-shadow: 0 8px 22px rgba(255, 140, 0, .4);
}
.tc-bn__calc { color: var(--accent-2); height: auto; padding-bottom: 10px; }

@media (min-width: 640px) {
	.tc-hero { padding: 40px 0 72px; }
	.tc-drop { padding: 52px 40px; }
	.tc-grid { grid-template-columns: repeat(2, 1fr); }
	.tc-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px 40px; }
}
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.tc-nav { display: block; }
	.tc-bn { display: none; }
	.tc-only-m { display: none !important; }
	.tc-steps { grid-template-columns: repeat(3, 1fr); }
	.tc-grid { grid-template-columns: repeat(3, 1fr); }
	.tc-footer__in { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 359px) {
	.tc-ig { width: 44px; padding: 0; justify-content: center; }
	.tc-ig span { display: none; }
}
@media (max-width: 899px) {
	.yg3d, .slc { --yg-sticky: 63px; --yg-bottom: calc(var(--bn-h) + var(--bn-pad)); }
	.tc-hide-m { display: none; }
	.tc-header__in { min-height: 62px; }
	.tc-logo { font-size: 26px; }
}

/* ---------- WooCommerce ---------- */
.tc-wide .tc-entry { max-width: none; }
.tc-main--shop img, .tc-entry img, .woocommerce img { max-width: 100%; height: auto; }
.woocommerce-products-header__title, .tc-shop-page .page-title, .tc-shop-page .product_title { margin: 0 0 16px; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; }

.woocommerce .woocommerce-ordering { float: none; margin: 0 0 16px; display: flex; justify-content: flex-end; }
.woocommerce .woocommerce-ordering select { font: inherit; max-width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.woocommerce ul.products, .woocommerce-page ul.products {
	list-style: none; margin: 0 0 24px !important; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.woocommerce ul.products::before, .woocommerce ul.products::after, .woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important; position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; flex: 1; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0 0 10px !important; border-radius: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 4px; padding: 0; font-size: 16px; line-height: 1.35; }
.woocommerce ul.products li.product .star-rating { margin: 0 0 6px; font-size: .85em; }
.woocommerce ul.products li.product .price { display: block; margin: 4px 0 10px; color: var(--ink); font-weight: 800; }
.woocommerce ul.products li.product .price del { color: var(--mute); font-weight: 500; opacity: .8; }
.woocommerce ul.products li.product .price ins { background: none; text-decoration: none; }
.woocommerce ul.products li.product .button { margin-top: auto; width: 100%; }
.woocommerce span.onsale {
	top: 10px; left: 10px; right: auto; margin: 0; min-width: 0; min-height: 0; padding: 7px 12px; line-height: 1;
	border-radius: 999px; background: var(--grad); color: #1a1205; font-size: 12px; font-weight: 800;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce a.added_to_cart {
	display: inline-block; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--grad); color: #1a1205;
	font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--grad); color: #1a1205; filter: brightness(1.05); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; }

.woocommerce div.product { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none !important; width: 100% !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-size: 1.4rem; font-weight: 800; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.woocommerce .quantity .qty { width: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--accent); border-radius: 10px; background: #fff; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent-2); }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 12px; background: #fff; border-collapse: separate; overflow: hidden; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit;
}
.woocommerce-checkout #payment { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--accent); color: var(--accent-2); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { float: none; width: 100%; }

@media (min-width: 640px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (min-width: 900px) {
	.woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: 48%; float: right; }
}
