/*
Theme Name: Maket Oto Shop
Theme URI: https://example.com/
Author: ChatGPT
Description: WooCommerce uyumlu, maket araba satışı için modern, canlı renkli ve mobil uyumlu WordPress teması.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: maket-oto-shop
Tags: e-commerce, woocommerce, responsive, one-column, two-columns, custom-menu, featured-images
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root{
  --bg:#070A12;
  --card:#0E1424;
  --text:#EAF1FF;
  --muted:#A8B3C7;

  --accent:#FF2D55;
  --accent2:#7C3AED;
  --accent3:#22C55E;
  --border:rgba(255,255,255,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.50);
  --radius:20px;
  --max:1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(900px 450px at 15% -10%, rgba(255,45,85,.35), transparent 62%),
    radial-gradient(900px 450px at 85% 0%, rgba(124,58,237,.30), transparent 60%),
    radial-gradient(900px 450px at 80% 80%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(180deg, rgba(9,12,24,1), rgba(7,10,18,1));
  color:var(--text);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}

.container{width:100%;max-width:var(--max);margin:0 auto;padding:0 18px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:999;
  background: rgba(7,10,18,.70);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex;gap:12px;align-items:center;min-width:0}
.brand .logo{
  width:44px;height:44px;border-radius:16px;
  background: linear-gradient(135deg, rgba(255,45,85,1), rgba(124,58,237,1));
  box-shadow: var(--shadow);
  display:grid;place-items:center;font-weight:900;
  flex:0 0 auto;
}
.brand .title{font-weight:900;letter-spacing:.2px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
.brand .tag{display:block;font-size:12px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}

/* Custom Logo support */
.custom-logo-link{display:inline-flex;align-items:center}
.custom-logo{
  max-height:44px;
  width:auto;
  height:auto;
  border-radius:12px;
}

.nav{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.nav a{font-size:14px;color:var(--muted)}
.nav a:hover{color:var(--text)}

.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-size:14px;
}
.btn.primary{
  border-color: rgba(255,45,85,.55);
  background: linear-gradient(135deg, rgba(255,45,85,.98), rgba(124,58,237,.92));
  color:#060812;
  font-weight:900;
}
.btn.primary:hover{filter:saturate(1.08) brightness(1.03)}
.badge{
  font-size:12px;color:var(--text);
  padding:4px 8px;border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  margin-left:6px;
}

/* Mobile header stacking */
@media(max-width:860px){
  .header-inner{flex-wrap:wrap;justify-content:space-between}
  .nav{order:3;width:100%;gap:10px;padding-bottom:8px}
  .header-actions{order:2}
  .brand{order:1}
}
@media(max-width:520px){
  .container{padding:0 14px}
  .btn{padding:9px 10px;border-radius:12px;font-size:13px}
  .brand .logo{width:40px;height:40px;border-radius:14px}
  .custom-logo{max-height:40px;border-radius:12px}
  .brand .title,.brand .tag{max-width:70vw}
}

/* Hero & layout */
.hero{padding:34px 0 18px}
.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,20,36,.86), rgba(11,16,32,.60));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero-inner{padding:22px}
.hero h1{margin:0 0 10px;font-size:36px;line-height:1.12}
.hero p{margin:0;color:var(--muted);max-width:70ch}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hero-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
@media(max-width:520px){
  .hero h1{font-size:28px}
  .hero-inner{padding:18px}
}

.kpi{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding:10px 12px;
  font-size:13px;
  color:var(--muted);
}
.kpi strong{color:var(--text);font-weight:900}

.grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:900px){.grid{grid-template-columns:2fr 1fr}}
.card{
  border:1px solid var(--border);
  background: rgba(14,20,36,.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card .card-body{padding:18px}
.section{padding:18px 0 34px}

.site-footer{
  border-top:1px solid var(--border);
  background: rgba(0,0,0,.25);
  padding:22px 0;
  color:var(--muted);
  font-size:13px;
}
.footer-inner{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}

.content{padding:18px 0 40px}

/* Search */
.search-form{display:flex;gap:8px;align-items:center}
.search-form input[type="search"]{
  width:220px;max-width:45vw;
  padding:10px 12px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
@media(max-width:520px){
  .search-form{width:100%}
  .search-form input[type="search"]{width:100%;max-width:100%}
}
.search-form input[type="search"]::placeholder{color:rgba(231,237,245,.45)}
.search-form button{
  border-radius:14px;border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:10px 12px;
}

/* Sidebar widgets */
.widget{border:1px solid var(--border);border-radius: var(--radius);background: rgba(14,20,36,.48);box-shadow: var(--shadow);overflow:hidden}
.widget .widget-title{margin:0;padding:14px 16px;border-bottom:1px solid var(--border);font-weight:900}
.widget .widget-body{padding:14px 16px;color:var(--muted)}

/* WooCommerce */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit{
  border-radius:14px !important;
  border:1px solid rgba(255,45,85,.55) !important;
  background: linear-gradient(135deg, rgba(255,45,85,.98), rgba(124,58,237,.92)) !important;
  color:#060812 !important;
  font-weight:900 !important;
  padding:12px 14px !important;
}
.woocommerce ul.products{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:14px;
}
@media(max-width:980px){ .woocommerce ul.products{grid-template-columns: repeat(3, minmax(0, 1fr));} }
@media(max-width:720px){ .woocommerce ul.products{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media(max-width:420px){ .woocommerce ul.products{grid-template-columns: 1fr;} }

.woocommerce ul.products li.product{
  width:100% !important;
  float:none !important;
  margin:0 !important;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:12px;
  background: rgba(14,20,36,.55);
  box-shadow: var(--shadow);
}
.woocommerce ul.products li.product a img{
  border-radius:16px;
  width:100%;
  max-height:165px;       /* ürün görselleri küçük */
  object-fit:contain;
  object-position:center;
}
.woocommerce div.product div.images img{
  border-radius:20px;
  max-height:420px;
  object-fit:contain;
}

/* (2) Sale badge smaller */
.woocommerce span.onsale{
  font-size:11px !important;
  line-height:1 !important;
  min-height:unset !important;
  min-width:unset !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  background: linear-gradient(135deg, rgba(255,45,85,1), rgba(124,58,237,1)) !important;
  top:10px !important;
  left:10px !important;
}

/* Cart drawer */
.cart-drawer{
  position:fixed;top:0;right:0;
  width:min(420px, 92vw);
  height:100vh;
  background: rgba(10,14,26,.92);
  backdrop-filter: blur(16px);
  border-left:1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,.55);
  transform: translateX(110%);
  transition: transform .22s ease;
  z-index: 100000;
  display:flex;flex-direction:column;
}
.cart-drawer.is-open{transform: translateX(0)}
.cart-drawer__header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid var(--border);
}
.cart-drawer__title{font-weight:900}
.cart-drawer__close{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  color:var(--text);
  border-radius:14px;
  padding:8px 10px;
  cursor:pointer;
}
.cart-drawer__body{padding:14px 16px;overflow:auto}
.cart-overlay{
  position:fixed;inset:0;
  background: rgba(0,0,0,.55);
  opacity:0; pointer-events:none;
  transition: opacity .2s ease;
  z-index: 99999;
}
.cart-overlay.is-open{opacity:1; pointer-events:auto}
