/* ==================================================================
   v0.17-B "sakin vitrin" – storefront layer (inc/vitrin.php, after the theme style). Premium yön ilkeleri 3–5: spacing
   between sections, Bodoni Moda 400 display titles, Inter 400 / 500, no boxes; the catalog page (4 / 2 columns, calm head,
   horizontal tool bar). Colours from the v0.17-A web tokens with fallbacks:
     --bdg-zemin #FBF9F4 (page) · --bdg-panel #F3F0E8 · --bdg-ikincil-metin #56624D (small secondary text, 6,1:1)
   Gold only as hairline / focus. Block-specific rules live in blocks/<name>/style.css.
   ================================================================== */

/* header heights (site-header: 60 px phones, 88 px desktop + 1 px hairline) – sticky offsets, scroll padding, mega menu */
:root { --bdg-header-h: 61px; }
@media (min-width: 900px) { :root { --bdg-header-h: 89px; } }

/* ---------------------------------------------------------------- section heads on the storefront */
/* side padding of the home sections: 24 px on phones (ana-premium-390), the theme gutter on desktop – content lines up with
   the header (no extra inner inset) */
.beydagi-home { --bdg-vitrin-pad: 24px; }
@media (min-width: 900px) { .beydagi-home { --bdg-vitrin-pad: var(--bdg-gutter, 48px); } }
.beydagi-home .beydagi-section, .beydagi-serit { padding: 64px var(--bdg-vitrin-pad, var(--bdg-gutter, 16px)) 0; overflow: visible; }
.beydagi-home .beydagi-section__inner, .beydagi-serit .beydagi-section__inner { padding: 0; gap: 20px; }
.beydagi-home .beydagi-section__head, .beydagi-serit .beydagi-section__head { align-items: baseline; gap: 6px 24px; }
.beydagi-home .beydagi-section__titles, .beydagi-serit .beydagi-section__titles { gap: 6px; }
.beydagi-home .beydagi-section__title, .beydagi-serit .beydagi-section__title { font-family: var(--bdg-serif, serif); font-size: 32px; font-weight: 400; line-height: 1.1; letter-spacing: 0; }
.beydagi-home .beydagi-section__link, .beydagi-serit .beydagi-section__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; font-size: 13px; font-weight: 400; color: var(--bdg-zeytin, #26302A); text-decoration: underline; text-decoration-color: rgba(var(--bdg-zeytin-rgb, 38, 48, 42), .45); text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.beydagi-home .beydagi-section__link:hover, .beydagi-serit .beydagi-section__link:hover { color: var(--bdg-zeytin, #26302A); text-decoration-color: var(--bdg-altin, #C7A64E); }
.beydagi-home .beydagi-section__link:focus-visible, .beydagi-serit .beydagi-section__link:focus-visible { outline: 2px solid var(--bdg-altin, #C7A64E); outline-offset: 2px; }
.beydagi-home .bdg-eyebrow { letter-spacing: .14em; font-weight: 500; color: var(--bdg-ikincil-metin, #56624D); }
@media (min-width: 900px) {
	.beydagi-home .beydagi-section, .beydagi-serit { padding-top: 120px; }
	.beydagi-home .beydagi-guven + .beydagi-section { padding-top: 112px; }
	.beydagi-home .beydagi-section__inner, .beydagi-serit .beydagi-section__inner { gap: 32px; }
	.beydagi-home .beydagi-section__title, .beydagi-serit .beydagi-section__title { font-size: 44px; }
	.beydagi-home .beydagi-section__link, .beydagi-serit .beydagi-section__link { font-size: 14px; }
	.beydagi-serit .beydagi-serit__titles, .beydagi-serit .beydagi-section__titles { gap: 10px; }
}
/* the dark band and the photo / store row keep their own rhythm (64 / 120 px apart, footer 72 / 128 px below) */
.beydagi-home .beydagi-serit--koyu { margin-top: 72px; padding: 48px var(--bdg-vitrin-pad, 24px); }
.beydagi-home .beydagi-tiles { padding-top: 72px; }
.beydagi-home { padding-bottom: 72px; }
@media (min-width: 900px) {
	.beydagi-home .beydagi-serit--koyu { margin-top: 128px; padding: 96px var(--bdg-vitrin-pad, 48px); }
	.beydagi-home .beydagi-tiles { padding-top: 128px; }
	.beydagi-home { padding-bottom: 128px; }
}
.beydagi-home .beydagi-serit--koyu + .beydagi-tiles { padding-top: 72px; }
@media (min-width: 900px) { .beydagi-home .beydagi-serit--koyu + .beydagi-tiles { padding-top: 128px; } }

/* ---------------------------------------------------------------- catalog page (kat-premium-1440 / 390) */
.beydagi-catalog-page { padding-top: 16px; }
.beydagi-catalog-page .wp-block-woocommerce-breadcrumbs, .beydagi-catalog-page .woocommerce-breadcrumb { margin: 0; font-size: 12px; color: var(--bdg-ikincil-metin, #56624D); }
.beydagi-catalog-page .woocommerce-breadcrumb a { color: var(--bdg-ikincil-metin, #56624D); text-decoration: none; }
.beydagi-catalog-page .woocommerce-breadcrumb a:hover { color: var(--bdg-zeytin, #26302A); text-decoration: underline; text-underline-offset: 3px; }
.beydagi-catalog-page .bdg-crumb-sep { color: var(--bdg-ikincil-metin, #56624D); padding: 0 4px; }
/* head: title + one line on the left, the "Modeller" pills on the right (desktop); photo tiles take their own row */
.beydagi-katalog-bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 48px; margin: 0; padding: 24px 0 20px; }
.beydagi-katalog-bas > * { margin: 0; }
.beydagi-katalog-bas > .beydagi-kategori { flex: 1 1 auto; }
.beydagi-katalog-bas > .beydagi-modeller { flex: 1 1 100%; }
.beydagi-katalog-bas > .beydagi-modeller--hap { flex: 1 1 100%; }
@media (min-width: 900px) {
	.beydagi-catalog-page { padding-top: 28px; }
	.beydagi-catalog-page .wp-block-woocommerce-breadcrumbs, .beydagi-catalog-page .woocommerce-breadcrumb { font-size: 13px; }
	.beydagi-katalog-bas { padding: 40px 0 36px; }
	.beydagi-katalog-bas > .beydagi-modeller--hap { flex: 0 1 auto; max-width: 55%; }
}
/* horizontal catalog: no sidebar column – the panel is a drawer at every width (blocks/katalog-filtre) */
.beydagi-catalog.beydagi-catalog--yatay { display: block; }
.beydagi-catalog--yatay .beydagi-catalog__grid { display: flex; flex-direction: column; gap: 32px; }
/* product grid: 2 columns on phones, 3 on tablets, 4 on desktop; generous row gap, no boxes */
.beydagi-catalog-page .beydagi-catalog__grid .wc-block-product-template,
.beydagi-catalog-page .beydagi-catalog__grid .wp-block-woocommerce-product-template { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 32px; margin: 0; padding: 0; }
@media (min-width: 720px) {
	.beydagi-catalog-page .beydagi-catalog__grid .wc-block-product-template,
	.beydagi-catalog-page .beydagi-catalog__grid .wp-block-woocommerce-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; }
}
@media (min-width: 900px) {
	.beydagi-catalog-page .beydagi-catalog__grid .wc-block-product-template,
	.beydagi-catalog-page .beydagi-catalog__grid .wp-block-woocommerce-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
}
/* pagination: calm numbers, the current page underlined (24 per page, v0.15) */
.beydagi-catalog-page .wp-block-query-pagination { margin: 24px 0 0; gap: 6px; font-size: 14px; align-items: center; }
.beydagi-catalog-page .wp-block-query-pagination a, .beydagi-catalog-page .wp-block-query-pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 0; font-weight: 400; color: var(--bdg-zeytin, #26302A); }
.beydagi-catalog-page .wp-block-query-pagination a:hover { border: 0; text-decoration: underline; text-underline-offset: 5px; }
.beydagi-catalog-page .wp-block-query-pagination .current { background: transparent; color: var(--bdg-zeytin, #26302A); font-weight: 500; box-shadow: inset 0 -1px 0 var(--bdg-altin, #C7A64E); }
.beydagi-catalog-page .wp-block-query-pagination-previous, .beydagi-catalog-page .wp-block-query-pagination-next { display: inline-flex; align-items: center; padding: 0 18px !important; border: 1px solid rgba(var(--bdg-zeytin-rgb, 38, 48, 42), .3) !important; }
.beydagi-catalog-page .wp-block-query-pagination-previous:hover, .beydagi-catalog-page .wp-block-query-pagination-next:hover { border-color: var(--bdg-zeytin, #26302A) !important; text-decoration: none !important; }
.beydagi-catalog-page .wp-block-query-pagination a:focus-visible { outline: 2px solid var(--bdg-altin, #C7A64E); outline-offset: 2px; }
/* search results: a smaller title, the search field left-aligned (the block spans the column, its field ≤ 560 px) */
.beydagi-search-page .beydagi-kategori__title { font-size: 36px; line-height: 1.1; }
@media (min-width: 900px) { .beydagi-search-page .beydagi-kategori__title { font-size: 52px; } }
.beydagi-catalog-page.beydagi-search-page .wp-block-search { margin: 0 0 24px; max-width: none; }
.beydagi-catalog-page.beydagi-search-page .wp-block-search__inside-wrapper { max-width: 560px; }
.beydagi-catalog-page .wp-block-search .wp-block-search__inside-wrapper { border-color: rgba(var(--bdg-zeytin-rgb, 38, 48, 42), .25); border-radius: 0; background: transparent; }
.beydagi-catalog-page .wp-block-search .wp-block-search__button { border-radius: 0; font-weight: 500; }

/* ---------------------------------------------------------------- legacy WooCommerce loops (shortcodes): the card language */
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: contain; border: 0; border-radius: 0; background: var(--bdg-zemin, #FBF9F4); mix-blend-mode: multiply; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 400; }
.woocommerce ul.products li.product .price { font-size: 15px; font-weight: 500; }

/* "Daha fazla göster" (assets/js/katalog.js – page 1 with JS; the numbered pagination stays without JS) */
.bdg-daha { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 24px 0 0; }
.bdg-daha__durum { margin: 0; font-size: 13px; color: var(--bdg-ikincil-metin, #56624D); font-variant-numeric: tabular-nums; }
.bdg-daha__dugme { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; min-width: 208px; padding: 0 32px; border: 1px solid var(--bdg-zeytin, #26302A); color: var(--bdg-zeytin, #26302A); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.bdg-daha__dugme:hover { background: var(--bdg-zeytin, #26302A); color: var(--bdg-kirec, #F1EFE6); }
.bdg-daha__dugme[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.bdg-daha__dugme:focus-visible { outline: 2px solid var(--bdg-altin, #C7A64E); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .bdg-daha__dugme { transition: none; } }

/* ---------------------------------------------------------------- v0.18-H ana sayfa "gövde" ritmi (yeni bloklar: kategori merkezi,
   özel günler, sekmeli raflar, bütçe, size özel tasarım, rehberden, SSS – kendi düzenleri blocks/<ad>/style.css'te). Bölümler
   mevcut .beydagi-section aralığını (64 / 120 px) kullanır; burada yalnız ana sayfaya özgü istisnalar. */
/* "Size özel tasarım" panel bandı koyu "Gram ve yatırım" bandına yapışmasın (style.css .beydagi-home > * { margin: 0 }) */
.beydagi-home .bdg-tasarim { margin-top: 72px; }
.beydagi-home .bdg-tasarim + .beydagi-section { padding-top: 72px; }
/* bütçe basamakları ürün raflarının hemen ardından: biraz daha yakın (aynı "keşfet" grubunun parçası) */
.beydagi-home .bdg-raflar + .bdg-butce { padding-top: 56px; }
@media (min-width: 900px) {
	.beydagi-home .bdg-tasarim { margin-top: 128px; }
	.beydagi-home .bdg-tasarim + .beydagi-section { padding-top: 120px; }
	.beydagi-home .bdg-raflar + .bdg-butce { padding-top: 96px; }
}
/* sekmeli raflar JS ile tek panele iner; JS yoksa her raf kendi başlığıyla alt alta (blocks/kategori-raflari/style.css) */
