/*
Theme Name: Gavalle
Theme URI: https://gavalle.com
Author: Q Plus Media
Author URI: https://qplusmedia.com
Description: Gavalle kuruyemiş markası için hafif, WooCommerce uyumlu blok teması. Sıcak, cömert, seçici.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gavalle
WC requires at least: 9.0
*/

/* ---------- Temel ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a) { text-underline-offset: .2em; text-decoration-thickness: 1px; }
img { height: auto; }

/* ---------- Duyuru bandı ---------- */
.gv-announce { font-size: .8125rem; letter-spacing: .02em; }
.gv-announce p { margin: 0; }

/* ---------- Header ---------- */
.gv-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); background: color-mix(in srgb, var(--wp--preset--color--cream) 92%, transparent) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .gv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gv-header { top: 46px; } }
.gv-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none !important; color: var(--wp--preset--color--forest) !important; }
.gv-logo svg { width: 34px; height: 34px; flex: none; }
.gv-logo span { font-family: var(--wp--preset--font-family--serif); font-size: 1.75rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.gv-header .wp-block-navigation a { text-decoration: none; }
.gv-header .wp-block-navigation a:hover { color: var(--wp--preset--color--copper); }

/* ---------- Butonlar ---------- */
.wp-block-button__link, .wc-block-components-button:not(.is-link), .woocommerce a.button, .woocommerce button.button { transition: background-color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.is-style-outline > .wp-block-button__link { border-width: 1.5px; }

/* ---------- Hero ---------- */
.gv-hero { position: relative; overflow: hidden; }
.gv-hero .gv-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; }
.gv-hero-art { border-radius: 28px; overflow: hidden; aspect-ratio: 4/5; }
.gv-hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kartlar ---------- */
.gv-card { border-radius: 20px; transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.gv-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(31,58,44,.45); }
.gv-cat a { text-decoration: none; }
.gv-cat .wp-block-image img { border-radius: 16px; aspect-ratio: 1/1; object-fit: cover; }
.gv-step-num { flex: none; white-space: nowrap; min-width: 3.4rem; margin: 0; font-family: var(--wp--preset--font-family--serif); font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--pistachio); }

/* ---------- WooCommerce ---------- */
.wc-block-components-product-image img, .wc-block-grid__product-image img, .wp-block-woocommerce-product-image img { border-radius: 16px; background: var(--wp--preset--color--sand); }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { color: var(--wp--preset--color--forest); font-weight: 600; }
.wc-block-components-product-sale-badge, .onsale { background: var(--wp--preset--color--copper) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; }
.wp-block-woocommerce-product-template .wp-block-post-title a { text-decoration: none; }
.wp-block-woocommerce-product-template .wp-block-button__link { width: 100%; }
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--forest) !important; }

/* ---------- SSS ---------- */
.gv-faq details { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.1rem 0; }
.gv-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.gv-faq summary::-webkit-details-marker { display: none; }
.gv-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--serif); font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--copper); }
.gv-faq details[open] summary::after { content: "–"; }
.gv-faq details > *:not(summary) { margin-top: .75rem; }

/* ---------- Güven şeridi ---------- */
.gv-trust p { margin: 0; }
.gv-trust .gv-ico { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--wp--preset--color--pistachio-soft); color: var(--wp--preset--color--forest); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.gv-footer a { text-decoration: none; }
.gv-footer a:hover { text-decoration: underline; }
.gv-footer .wp-block-list { list-style: none; padding-left: 0; }
.gv-footer .wp-block-list li { margin: .35rem 0; }

/* ---------- Yasal metin uyarısı ---------- */
.gv-draft-note { border-left: 4px solid var(--wp--preset--color--copper); }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.gv-hero-art { aspect-ratio: 1/1; border-radius: 20px; }
	.gv-logo span { font-size: 1.5rem; }
	.gv-hide-mobile { display: none !important; }
}

/* Ürün sayfası başlık ölçüsü */
.single-product .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large) !important; }
