/*
Theme Name: Buka Tedarik
Description: Urun listesi ve WhatsApp teklif sepeti icin ozel tema.
Version: 1.0.0
Text Domain: bukatedarik
*/

:root { --ink: #123b5d; --muted: #61758a; --line: #d8e3ea; --paper: #f6fafc; --white: #fff; --brand: #087ec1; --brand-dark: #05669f; --teal: #03965b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif; }
button, input { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 3px solid var(--brand); background: rgba(255,255,255,.96); }
.header-inner { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { display: block; max-width: 176px; max-height: 46px; object-fit: contain; }
.header-note { color: var(--muted); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-icon { width: 40px; height: 40px; display: inline-grid; place-items: center; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand); background: var(--white); text-decoration: none; cursor: pointer; }
.header-icon:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.header-icon svg { width: 19px; height: 19px; fill: currentColor; }
.header-whatsapp { color: var(--teal); }
.header-whatsapp:hover { border-color: var(--teal); background: var(--teal); }
.header-call { color: var(--brand); }
.store-layout { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 52px 0 44px; display: grid; grid-template-columns: minmax(0, 768px) minmax(290px, 1fr); gap: 64px; align-items: start; }
.catalog-header { padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--teal); text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.04; }
.catalog-intro { max-width: 540px; margin: 13px 0 0; color: var(--muted); line-height: 1.5; }
.category-filter { position: relative; margin: 22px 0 2px; border: 1px solid var(--line); background: var(--white); }
.category-filter summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 16px; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.category-filter summary::-webkit-details-marker { display: none; }
.category-filter summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; order: 2; }
.category-filter[open] summary::after { content: '−'; }
.filter-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.category-filter-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.category-filter-options label { display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 14px; }
.category-filter-options input { accent-color: var(--teal); }
.category-filter-actions { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); }
.category-filter-actions a { color: var(--muted); font-size: 13px; text-decoration: none; }
.category-filter-actions button { min-height: 36px; border: 0; padding: 0 16px; background: var(--brand); color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.product-list { display: grid; }
.product-card { padding: 24px 0; display: grid; grid-template-columns: 134px minmax(0, 1fr); gap: 24px; border-bottom: 1px solid var(--line); }
.product-image { width: 134px; aspect-ratio: 1; display: block; object-fit: contain; border: 1px solid var(--line); background: #fff; }
.product-image--placeholder { display: grid; place-items: center; color: #93a099; font-family: Arial, sans-serif; font-size: 12px; }
.product-name { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.15; }
.product-meta { margin: 7px 0 17px; color: var(--muted); font-size: 14px; }
.product-price { margin: 0; color: var(--teal); font-size: 19px; font-weight: 700; }
.product-actions { display: flex; align-items: stretch; gap: 10px; margin-top: 17px; }
.quantity-picker { display: flex; height: 42px; border: 1px solid var(--ink); background: var(--white); }
.quantity-picker button { width: 37px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 21px; }
.quantity-picker input { width: 38px; border: 0; text-align: center; appearance: textfield; }
.quantity-picker input::-webkit-outer-spin-button, .quantity-picker input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.add-to-cart, .whatsapp-button { min-height: 42px; border: 0; background: var(--brand); color: #fff; cursor: pointer; padding: 0 17px; font-size: 14px; font-weight: 700; }
.add-to-cart:hover, .whatsapp-button:hover { background: var(--brand-dark); }
.cart-panel { position: sticky; top: 100px; border-top: 3px solid var(--teal); background: var(--white); box-shadow: 0 8px 24px rgba(18,59,93,.08); }
.cart-heading { margin: 0; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); font-size: 23px; font-weight: 400; }
.cart-items { max-height: min(46vh, 470px); overflow-y: auto; padding: 0 22px; }
.empty-cart { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cart-item { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-item-placeholder { width: 50px; height: 50px; object-fit: contain; background: #fff; }
.cart-item-placeholder { display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cart-item-name { display: block; font-size: 13px; line-height: 1.25; }
.cart-item-quantity { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.cart-quantity-button, .cart-remove-button { width: 23px; height: 23px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; }
.cart-quantity-button:hover { border-color: var(--brand); color: var(--brand); }
.cart-quantity-input { width: 36px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--white); font: inherit; font-size: 12px; text-align: center; appearance: textfield; }
.cart-quantity-input::-webkit-outer-spin-button, .cart-quantity-input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.cart-item-actions { display: grid; justify-items: end; gap: 7px; }
.cart-item-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-remove-button { border-color: transparent; color: var(--muted); }
.cart-remove-button:hover { border-color: #d74242; background: #d74242; color: #fff; }
@media (max-width: 1024px) { .mobile-cart-items .cart-item { grid-template-columns: 48px minmax(0, 1fr) 72px; gap: 9px; } .mobile-cart-items .cart-item-name { overflow-wrap: anywhere; } .mobile-cart-items .cart-item-actions { width: 72px; } .mobile-cart-items .cart-item-price { font-size: 12px; } }
.cart-summary { padding: 17px 22px 22px; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.whatsapp-button { width: 100%; background: var(--teal); }
.whatsapp-button:hover { background: #027849; }
.cart-status { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.mobile-cart-open, .mobile-cart-dialog { display: none; }
.no-products { padding: 30px 0; color: var(--muted); }
.quote-page { width: min(768px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0; }
.quote-list { margin-top: 30px; border-top: 2px solid var(--ink); }
.quote-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.quote-row img { width: 70px; height: 70px; object-fit: cover; background: #e8ece7; }
.quote-row h2 { margin: 0; font-size: 19px; font-weight: 400; }
.quote-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.quote-total { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 19px; border-top: 2px solid var(--ink); font-size: 20px; font-weight: 700; }
.site-footer { margin-top: 42px; color: #d9eafa; background: #123b5d; font-size: 14px; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,.18); background: #087ec1; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.footer-contact { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 26px 0; }
.footer-logo { width: 150px; max-height: 40px; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.footer-contact p, .footer-contact strong { margin: 7px 0 0; }
.footer-contact strong { display: block; color: #fff; }
.footer-phone { flex: 0 0 auto; text-align: right; }
.footer-phone > div { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; }
.footer-contact a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-main { padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-grid h2 { margin: 0 0 15px; color: #fff; font-size: 15px; }
.footer-grid a { display: block; margin: 0 0 10px; color: #d9eafa; text-decoration: none; }
.footer-grid a:hover { color: #72d6a5; }
.footer-grid p { margin: 0 0 12px; line-height: 1.45; }
.footer-bottom { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); color: #a9c5dc; font-size: 12px; }
.content-page, .blog-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0; }
.content-page-header { padding-bottom: 24px; border-bottom: 2px solid var(--brand); }
.content-page-header > p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); }
.page-content { max-width: 760px; padding-top: 32px; color: #294862; font-size: 17px; line-height: 1.75; }
.page-content h2, .page-content h3 { margin-top: 2em; color: var(--ink); line-height: 1.2; }
.page-content a, .post-link { color: var(--brand); font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.post-card { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.post-card > :not(a) { margin-left: 22px; margin-right: 22px; }
.post-card img { width: 100%; height: 220px; display: block; object-fit: cover; }
.post-date { margin-top: 22px; color: var(--teal); font-size: 12px; font-weight: 700; }
.post-card h2 { margin-top: 9px; font-size: 22px; line-height: 1.2; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card > p:not(.post-date) { color: var(--muted); line-height: 1.5; }
.post-card .post-link { display: inline-block; margin-top: 3px; margin-bottom: 24px; }
.post-featured-image { margin-top: 32px; }
.post-featured-image img { width: 100%; height: auto; display: block; }
@media (max-width: 1024px) { body { overflow-x: hidden; } .store-layout { display: block; padding-bottom: 94px; } .cart-panel { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; top: auto; border-top: 3px solid var(--teal); box-shadow: 0 -8px 25px rgba(25,37,35,.14); } .cart-heading { display: none; } .cart-items { display: none; } .cart-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; padding: 13px 20px; } .cart-total { grid-column: 1; margin: 0; display: block; font-size: 13px; } .cart-total span { display: block; margin-top: 3px; font-size: 19px; } .cart-summary > .whatsapp-button, .cart-status { display: none; } .mobile-cart-open { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; grid-column: 2; padding: 0 16px; border: 0; border-radius: 5px; background: var(--brand); box-shadow: 0 2px 0 var(--brand-dark); color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; } .mobile-cart-open:hover { background: var(--brand-dark); } .mobile-cart-open:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--brand-dark); } .mobile-cart-dialog { position: fixed; z-index: 30; inset: 0; display: block; background: var(--paper); color: var(--ink); } .mobile-cart-dialog[hidden] { display: none; } .mobile-cart-dialog-panel { width: 100%; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; background: var(--paper); color: var(--ink); } .mobile-cart-dialog .cart-item, .mobile-cart-dialog .cart-item-name, .mobile-cart-dialog .cart-item-price, .mobile-cart-dialog .cart-item-quantity, .mobile-cart-dialog .mobile-cart-total { color: var(--ink); } .mobile-cart-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line); background: var(--white); } .mobile-cart-dialog-header h2 { margin: 0; font-size: 21px; } .mobile-cart-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; font-size: 27px; line-height: 1; } .mobile-cart-items { min-width: 0; overflow-y: auto; overflow-x: hidden; padding: 0 20px; } .mobile-cart-dialog-footer { padding: 17px 20px; border-top: 1px solid var(--line); background: var(--white); } .mobile-cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 17px; font-weight: 700; } .mobile-whatsapp-button { width: 100%; min-height: 46px; border: 0; background: var(--teal); color: #fff; cursor: pointer; font-size: 14px; font-weight: 700; } .mobile-cart-status { min-height: 18px; margin: 9px 0 0; color: var(--muted); font-size: 12px; text-align: center; } body.mobile-cart-open { overflow: hidden; } .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .header-inner, .store-layout, .footer-inner, .content-page, .blog-page { width: min(100% - 28px, 768px); } .header-inner { min-height: 64px; } .brand-logo { max-width: 135px; max-height: 36px; } .header-note { display: none; } .header-actions { gap: 7px; } .store-layout { padding-top: 34px; } .category-filter-options, .post-grid, .footer-grid { grid-template-columns: 1fr; } .product-card { grid-template-columns: 92px minmax(0,1fr); gap: 15px; padding: 18px 0; } .product-image { width: 92px; } .product-name { font-size: 18px; } .product-meta { margin: 5px 0 12px; } .product-price { font-size: 16px; } .product-actions { margin-top: 12px; gap: 7px; } .add-to-cart { padding: 0 11px; font-size: 12px; } .quantity-picker { height: 40px; } .quantity-picker button { width: 31px; } .quantity-picker input { width: 31px; } .footer-contact { display: block; } .footer-contact > div + div { margin-top: 22px; } .footer-phone { text-align: left; } .footer-phone > div { justify-content: flex-start; flex-wrap: wrap; gap: 8px 14px; } .site-footer { margin-bottom: 104px; } }

@media (max-width: 1024px) { .mobile-cart-dialog-header { position: relative; z-index: 2; } .mobile-cart-close { position: fixed; z-index: 100; top: 17px; right: 20px; } .mobile-cart-items { position: relative; z-index: 1; } .mobile-cart-dialog-footer { position: relative; z-index: 2; } }