/* Velocity Storefront — özel header + footer + sağdan sepet (WoodMart tarzı). Marka rengi: --vst-accent. */
:root { --vst-accent: #e11d48; --vst-primary: #111827; }
.vst-hdr, .vst-hdr *, .vst-footer, .vst-footer *, .vst-cart-drawer, .vst-cart-drawer * { box-sizing: border-box; }

/* Tema header'ını gizle (bizimki yerine geçer) */
body.vst-has-header #masthead,
body.vst-has-header .site-header,
body.vst-has-header header.site-header,
body.vst-has-header .ast-above-header-wrap,
body.vst-has-header .ast-below-header-wrap,
body.vst-has-header .ast-main-header-bar-alignment { display: none !important; }
/* Tema footer'ını gizle (bizimki yerine geçer) */
body.vst-has-footer .site-footer,
body.vst-has-footer footer.site-footer,
body.vst-has-footer #colophon,
body.vst-has-footer .ast-small-footer,
body.vst-has-footer .footer-adv { display: none !important; }
/* Astra içerik kabına dokunmadan: bizim header/footer TAM genişlik, iç içerik container ortalı. */
.vst-hdr, .vst-footer { width: 100%; }

/* ===== Header ===== */
.vst-hdr { background: #fff; border-bottom: 1px solid #ececec; font-family: inherit; }
.vst-hdr--sticky { position: sticky; top: 0; z-index: 999; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.vst-hdr-wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }

.vst-hdr-top { padding: 14px 0; }
.vst-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.vst-logo img { max-height: 46px; width: auto; display: block; }
.vst-logo-text { font-size: 24px; font-weight: 800; color: var(--vst-primary); letter-spacing: -.02em; }

.vst-search { flex: 1 1 auto; min-width: 0; display: flex; align-items: stretch; max-width: 720px; border: 2px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
.vst-search-input { flex: 1; border: 0; outline: 0; padding: 12px 16px; font-size: 15px; background: transparent; color: #111; }
.vst-search-btn { border: 0; background: var(--vst-accent); color: #fff; padding: 0 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vst-search-btn:hover { filter: brightness(.95); }

.vst-hdr-icons { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.vst-ic { position: relative; color: var(--vst-primary); display: inline-flex; text-decoration: none; }
.vst-ic:hover { color: var(--vst-accent); }
.vst-ic-count { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--vst-accent); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* ===== Alt navigasyon ===== */
.vst-hdr-nav { border-top: 1px solid #f1f1f1; }
.vst-hdr-nav .vst-hdr-wrap { gap: 0; align-items: stretch; }

.vst-cats { position: relative; flex-shrink: 0; }
.vst-cats-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--vst-accent); color: #fff; border: 0; padding: 14px 22px; font-size: 15px; font-weight: 600; cursor: pointer; min-width: 240px; }
.vst-cats-btn svg { flex-shrink: 0; }
.vst-cats-btn span { flex: 1; text-align: left; }
.vst-cats-panel { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid #eee; border-top: 0; box-shadow: 0 12px 32px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s; z-index: 1000; }
.vst-cats:hover .vst-cats-panel, .vst-cats.open .vst-cats-panel { opacity: 1; visibility: visible; transform: none; }
.vst-cats-list { list-style: none; margin: 0; padding: 8px 0; }
.vst-cat > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 20px; color: #222; text-decoration: none; font-size: 14px; }
.vst-cat > a:hover { background: #f7f7f7; color: var(--vst-accent); }
.vst-subcats { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 100%; top: 0; min-width: 260px; background: #fff; border: 1px solid #eee; box-shadow: 0 12px 32px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transition: .14s; }
.vst-cat.has-children:hover > .vst-subcats { opacity: 1; visibility: visible; }
.vst-subcats a { display: block; padding: 9px 20px; color: #444; text-decoration: none; font-size: 13.5px; }
.vst-subcats a:hover { background: #f7f7f7; color: var(--vst-accent); }
.vst-cats-empty { padding: 16px 20px; color: #999; font-size: 13px; }

.vst-nav { flex: 1; display: flex; align-items: center; }
.vst-nav-menu { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; align-items: center; gap: 28px; }
.vst-nav-menu li { position: relative; }
.vst-nav-menu a { color: var(--vst-primary); text-decoration: none; font-size: 15px; font-weight: 600; padding: 14px 0; display: inline-block; }
.vst-nav-menu a:hover { color: var(--vst-accent); }
.vst-nav-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid #eee; box-shadow: 0 12px 32px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transition: .14s; z-index: 1000; }
.vst-nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; }
.vst-nav-menu .sub-menu a { padding: 9px 18px; font-weight: 500; }

.vst-mobile-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 12px; color: var(--vst-primary); cursor: pointer; }

/* ===== Sağdan sepet (drawer) ===== */
.vst-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10000; opacity: 0; transition: .2s; }
.vst-cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 380px; max-width: 92vw; background: #fff; z-index: 10001; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.15); }
body.vst-cart-open { overflow: hidden; }
body.vst-cart-open .vst-cart-overlay { opacity: 1; }
body.vst-cart-open .vst-cart-drawer { transform: none; }
.vst-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #eee; font-size: 17px; font-weight: 700; }
.vst-cart-close { background: none; border: 0; color: #555; cursor: pointer; display: inline-flex; }
.vst-cart-close:hover { color: var(--vst-accent); }
.vst-cart-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.vst-cart-body .woocommerce-mini-cart__empty-message { color: #777; text-align: center; padding: 40px 0; }
.vst-cart-body ul.cart_list { list-style: none; margin: 0; padding: 0; }
.vst-cart-body ul.cart_list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; position: relative; font-size: 13.5px; }
.vst-cart-body ul.cart_list li img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; float: none; margin: 0; }
.vst-cart-body ul.cart_list a.remove { position: absolute; top: 10px; right: 0; color: #bbb !important; }
.vst-cart-body .woocommerce-mini-cart__total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; margin-top: 8px; border-top: 2px solid #eee; font-size: 15px; }
.vst-cart-body .woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 8px; }
.vst-cart-body .woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.vst-cart-body .woocommerce-mini-cart__buttons a.button { background: #f3f4f6; color: #111; }
.vst-cart-body .woocommerce-mini-cart__buttons a.checkout { background: var(--vst-accent); color: #fff; }

/* ===== Mobil ===== */
@media (max-width: 900px) {
  .vst-hdr-wrap { flex-wrap: wrap; gap: 12px; }
  .vst-hdr-top .vst-hdr-wrap { align-items: center; }
  .vst-search { order: 3; flex-basis: 100%; max-width: none; }
  .vst-cats-btn { min-width: 0; padding: 12px 16px; }
  .vst-cats-btn span { display: none; }
  .vst-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; box-shadow: 0 12px 24px rgba(0,0,0,.1); z-index: 998; }
  body.vst-menu-open .vst-nav { display: block; }
  .vst-nav-menu { flex-direction: column; align-items: stretch; padding: 8px 0; gap: 0; }
  .vst-nav-menu a { padding: 12px 20px; }
  .vst-mobile-toggle { display: inline-flex; }
  .vst-hdr-nav .vst-hdr-wrap { position: relative; }
}

/* ===== Footer (WoodMart tarzı çok sütunlu) ===== */
.vst-footer { background: #f5f5f6; color: #374151; margin-top: 48px; }
.vst-footer-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.vst-footer-cols .vst-footer-wrap { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.25fr 1.5fr; gap: 32px; padding-top: 52px; padding-bottom: 44px; }
.vst-footer-h { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #1f2937; margin: 0 0 18px; }
.vst-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.vst-footer-links a { color: #3f4652; text-decoration: none; font-size: 15px; line-height: 1.35; }
.vst-footer-links a:hover { color: var(--vst-accent); }
.vst-footer-muted { color: #9ca3af; }
.vst-footer-contact .vst-ct { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; margin: 0 0 14px; color: #4b5563; }
.vst-footer-contact .vst-ct svg { flex-shrink: 0; margin-top: 2px; color: #9aa1ab; }
.vst-footer-contact a { color: #4b5563; text-decoration: none; }
.vst-footer-contact a:hover { color: var(--vst-accent); }
.vst-footer-social { display: flex; gap: 10px; margin-top: 6px; }
.vst-footer-social a { color: #6b7280; }
.vst-footer-social a:hover { color: var(--vst-accent); }

.vst-footer-bar { border-top: 1px solid #e5e7eb; background: #fff; }
.vst-footer-bar .vst-footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; padding-bottom: 18px; }
.vst-footer-copy { font-size: 13px; color: #6b7280; }
.vst-footer-logo img { max-height: 34px; width: auto; }
.vst-footer-logo span { font-weight: 800; color: var(--vst-primary); }
.vst-footer-pay { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vst-pay { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 800; letter-spacing: .01em; color: #374151; }
.vst-pay--visa { color: #1a1f71; } .vst-pay--mastercard { color: #eb001b; } .vst-pay--paytr { color: #0a7cff; } .vst-pay--amex { color: #2e77bc; } .vst-pay--troy { color: #009fae; }

@media (max-width: 900px) {
  .vst-footer-cols .vst-footer-wrap { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
  .vst-footer-contact { grid-column: 1 / -1; }
  .vst-footer-bar .vst-footer-wrap { flex-direction: column; text-align: center; }
}

/* ===== WooCommerce cila (WoodMart tarzı ürün detay + katalog) ===== */
.woocommerce .vst-hdr, .woocommerce .vst-footer { font-family: inherit; }
/* Breadcrumb */
.woocommerce .woocommerce-breadcrumb { max-width: 1280px; margin: 18px auto 8px; padding: 0 24px; color: #6b7280; font-size: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: #6b7280; text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--vst-accent); }

/* Genel butonlar */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .woocommerce #respond input#submit {
  background: var(--vst-accent); color: #fff; border-radius: 8px; font-weight: 600; padding: 12px 22px; border: 0; transition: filter .15s; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover { background: var(--vst-accent); filter: brightness(.93); color: #fff; }

/* Tekil ürün düzeni: galeri + özet, kart görünümü */
.single-product .woocommerce div.product { max-width: 1280px; margin: 8px auto 40px; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.single-product .woocommerce div.product .woocommerce-product-gallery { width: 100% !important; margin: 0; background: #fff; border: 1px solid #eef0f2; border-radius: 14px; padding: 24px; }
.single-product .woocommerce div.product .woocommerce-product-gallery img { border-radius: 10px; }
.single-product .woocommerce div.product .summary { width: 100% !important; margin: 0; background: #fff; border: 1px solid #eef0f2; border-radius: 14px; padding: 28px; }
.single-product .woocommerce div.product .product_title { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 10px 0 14px; color: var(--vst-primary); }
.single-product .woocommerce div.product .price, .single-product .woocommerce div.product .summary .price { color: var(--vst-accent); font-size: 26px; font-weight: 800; margin: 0 0 16px; }
.single-product .woocommerce div.product .price del { color: #9ca3af; font-weight: 500; font-size: 18px; margin-right: 8px; }
.single-product .woocommerce div.product .stock { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: #15803d; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.single-product .woocommerce div.product .stock.out-of-stock { background: #fee2e2; color: #b91c1c; }
.single-product .woocommerce .star-rating span { color: #f59e0b; }
.single-product .woocommerce div.product form.cart { display: flex; align-items: stretch; gap: 12px; margin: 22px 0 12px; }
.single-product .woocommerce div.product form.cart .quantity { display: flex; }
.single-product .woocommerce .quantity input.qty { width: 64px; height: 52px; text-align: center; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 16px; }
.single-product .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; height: 52px; font-size: 16px; border-radius: 8px; }
.single-product .woocommerce div.product .woocommerce-product-details__short-description { color: #4b5563; font-size: 15px; line-height: 1.6; margin-top: 16px; }
.single-product .woocommerce div.product .product_meta { margin-top: 18px; color: #6b7280; font-size: 13px; }
/* Sekmeler (uzun açıklama + değerlendirmeler) */
.single-product .woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 8px; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs { border-bottom: 2px solid #eef0f2; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .single-product .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 18px; font-weight: 700; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--vst-accent); border-bottom-color: var(--vst-accent); }
.single-product .woocommerce div.product .woocommerce-Tabs-panel h2 { font-size: 20px; font-weight: 800; }

/* Katalog / arşiv ürün kartları */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin: 0; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; background: #fff; border: 1px solid #eef0f2; border-radius: 12px; padding: 14px; text-align: left; transition: box-shadow .18s, transform .18s; }
.woocommerce ul.products li.product:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { border-radius: 8px; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; font-weight: 600; color: var(--vst-primary); padding: 0; }
.woocommerce ul.products li.product .price { color: var(--vst-accent); font-weight: 800; font-size: 16px; }
.woocommerce ul.products li.product .button { margin-top: 10px; width: 100%; text-align: center; }
.woocommerce ul.products li.product .star-rating { font-size: 12px; margin: 4px 0; }

@media (max-width: 900px) {
  .single-product .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
