/*
Theme Name: Darkmer
Theme URI: https://darkmer.com
Author: Darkmer
Description: Darkmer — Teknolojine Guc Kat. Koyu premium teknoloji aksesuar temasi (WooCommerce uyumlu).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: darkmer
*/

/* ===== Fontlar ===== */
@font-face{font-family:'Space Grotesk';font-weight:400;font-display:swap;src:url(assets/fonts/sg-400.woff2) format('woff2');}
@font-face{font-family:'Space Grotesk';font-weight:500;font-display:swap;src:url(assets/fonts/sg-500.woff2) format('woff2');}
@font-face{font-family:'Space Grotesk';font-weight:700;font-display:swap;src:url(assets/fonts/sg-700.woff2) format('woff2');}
@font-face{font-family:'InterD';font-weight:400;font-display:swap;src:url(assets/fonts/inter-400.woff2) format('woff2');}
@font-face{font-family:'InterD';font-weight:500;font-display:swap;src:url(assets/fonts/inter-500.woff2) format('woff2');}
@font-face{font-family:'InterD';font-weight:600;font-display:swap;src:url(assets/fonts/inter-600.woff2) format('woff2');}
@font-face{font-family:'InterD';font-weight:700;font-display:swap;src:url(assets/fonts/inter-700.woff2) format('woff2');}

/* ===== Degiskenler (Darkmer paleti) ===== */
:root{
  --base:#070A0F; --surface:#111827; --surface2:#0C1119;
  --line:rgba(255,255,255,0.06); --ink:#FFFFFF; --muted:#9CA3AF;
  --electric:#00E5FF; --electric-soft:#38EAFF; --electric-deep:#00B8D4;
  --neon:#39FF88; --neon-soft:#6BFFA8;
  --shadow-card:0 1px 0 0 rgba(255,255,255,0.04) inset, 0 20px 40px -24px rgba(0,0,0,0.9);
  --glow:0 0 0 1px rgba(0,229,255,0.35), 0 12px 40px -12px rgba(0,229,255,0.35);
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--base);color:var(--ink);
  font-family:'InterD',system-ui,sans-serif;line-height:1.6;
  background-image:radial-gradient(60rem 40rem at 50% -10%, rgba(0,229,255,0.08), transparent 60%),radial-gradient(50rem 40rem at 100% 10%, rgba(57,255,136,0.05), transparent 60%);
  background-attachment:fixed;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
h1,h2,h3,h4{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;line-height:1.1;letter-spacing:-0.01em;margin:0;}

.container{max-width:80rem;margin:0 auto;padding:0 1rem;width:100%;}
@media(min-width:640px){.container{padding:0 1.5rem;}}
@media(min-width:1024px){.container{padding:0 2rem;}}

.eyebrow{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.2em;color:var(--electric);}
.muted{color:var(--muted);}

/* Butonlar */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:.75rem;padding:.75rem 1.25rem;font-size:.9rem;font-weight:600;transition:all .2s;cursor:pointer;border:1px solid transparent;}
.btn-primary{background:var(--electric);color:var(--base);}
.btn-primary:hover{background:var(--electric-soft);box-shadow:var(--glow);}
.btn-ghost{border-color:var(--line);background:rgba(255,255,255,.02);color:var(--ink);}
.btn-ghost:hover{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.05);}
.btn-neon{background:var(--neon);color:var(--base);}
.btn-neon:hover{background:var(--neon-soft);}

.glass{border:1px solid var(--line);background:rgba(17,24,39,.7);backdrop-filter:blur(6px);}
.card{border:1px solid var(--line);background:var(--surface);border-radius:1.25rem;box-shadow:var(--shadow-card);}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,10,15,.85);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;height:72px;gap:1.5rem;}
.site-header .logo img{height:34px;width:auto;}
.nav{display:none;gap:1.5rem;align-items:center;}
.nav a{font-size:.9rem;color:var(--muted);transition:color .2s;}
.nav a:hover{color:var(--ink);}
.header-actions{display:flex;align-items:center;gap:1rem;}
.header-actions a{color:var(--muted);}
.header-actions a:hover{color:var(--electric);}
.announce{background:linear-gradient(90deg,var(--electric-deep),var(--electric));color:var(--base);text-align:center;font-size:.8rem;font-weight:600;padding:.5rem;}
@media(min-width:900px){.nav{display:flex;}}

/* ===== Hero ===== */
.hero{position:relative;overflow:hidden;text-align:center;padding:5rem 0;}
.hero .badge{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--line);background:rgba(17,24,39,.6);border-radius:999px;padding:.375rem 1rem;font-size:.75rem;color:var(--muted);}
.hero .badge .dot{width:6px;height:6px;border-radius:50%;background:var(--neon);}
.hero h1{font-size:clamp(2.5rem,7vw,4.5rem);margin:1.5rem 0;}
.hero h1 .grad{background:linear-gradient(90deg,var(--electric),var(--electric-soft),var(--neon));-webkit-background-clip:text;background-clip:text;color:transparent;}
.hero p{max-width:36rem;margin:0 auto;color:var(--muted);font-size:1.05rem;}
.hero .cta{display:flex;flex-direction:column;gap:.75rem;justify-content:center;align-items:center;margin-top:2.25rem;}
.hero .hl{display:flex;flex-wrap:wrap;gap:.5rem 2rem;justify-content:center;margin-top:2.5rem;color:var(--muted);font-size:.9rem;}
@media(min-width:640px){.hero .cta{flex-direction:row;}}

/* ===== Bolumler ===== */
.section{padding:4rem 0;}
.section-head{margin-bottom:2rem;}
.section-head h2{font-size:clamp(1.6rem,4vw,2.2rem);margin-top:.5rem;}
.grid{display:grid;gap:1rem;}
.g2{grid-template-columns:repeat(1,1fr);}
.g3{grid-template-columns:repeat(2,1fr);}
.g4{grid-template-columns:repeat(2,1fr);}
@media(min-width:768px){.g2{grid-template-columns:repeat(2,1fr);}.g3{grid-template-columns:repeat(3,1fr);}.g4{grid-template-columns:repeat(4,1fr);}}

.cat-card{padding:1.5rem;border-radius:1rem;text-align:left;transition:all .2s;}
.cat-card:hover{border-color:rgba(0,229,255,.3);transform:translateY(-2px);}
.cat-card .ic{width:2.75rem;height:2.75rem;border-radius:.75rem;border:1px solid var(--line);background:rgba(7,10,15,.6);display:flex;align-items:center;justify-content:center;color:var(--electric);margin-bottom:1rem;font-size:1.25rem;}
.cat-card h3{font-size:1rem;}
.cat-card p{font-size:.8rem;color:var(--muted);margin:.4rem 0 0;}

.badge-list{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;}
.trust{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;}
@media(min-width:768px){.trust{grid-template-columns:repeat(3,1fr);}}
@media(min-width:1100px){.trust{grid-template-columns:repeat(6,1fr);}}
.trust .t{padding:1.25rem;border-radius:1rem;text-align:center;}
.trust .t .ic{color:var(--electric);font-size:1.4rem;}
.trust .t h4{font-size:.9rem;margin:.5rem 0 .25rem;}
.trust .t p{font-size:.75rem;color:var(--muted);margin:0;}

/* B2B */
.b2b{position:relative;overflow:hidden;border-radius:1.5rem;padding:2.5rem;}
@media(min-width:768px){.b2b{padding:3rem;}}
.b2b .tag{display:inline-flex;gap:.5rem;align-items:center;border:1px solid rgba(57,255,136,.3);background:rgba(57,255,136,.1);color:var(--neon);border-radius:999px;padding:.25rem .75rem;font-size:.75rem;font-weight:600;}
.b2b ul{list-style:none;padding:0;margin:1.25rem 0;display:grid;gap:.6rem;}
.b2b li{display:flex;gap:.5rem;color:var(--ink);font-size:.9rem;}
.b2b li::before{content:"✓";color:var(--neon);font-weight:700;}
@media(min-width:768px){.b2b ul{grid-template-columns:repeat(2,1fr);}}

/* Newsletter */
.news{text-align:center;padding:3rem;border-radius:1.5rem;}
.news form{display:flex;flex-direction:column;gap:.75rem;max-width:28rem;margin:1.5rem auto 0;}
.news input{background:rgba(7,10,15,.5);border:1px solid var(--line);color:var(--ink);border-radius:.75rem;padding:.75rem 1rem;font:inherit;}
@media(min-width:520px){.news form{flex-direction:row;}}

/* ===== Footer ===== */
.site-footer{border-top:1px solid var(--line);background:var(--surface2);margin-top:4rem;}
.site-footer .cols{display:grid;grid-template-columns:1fr;gap:2rem;padding:3rem 0;}
@media(min-width:768px){.site-footer .cols{grid-template-columns:2fr 1fr 1fr 1fr;}}
.site-footer h5{font-size:.85rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 1rem;font-family:'InterD';}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.6rem;}
.site-footer a{color:var(--muted);font-size:.9rem;}
.site-footer a:hover{color:var(--electric);}
.site-footer .logo img{height:30px;margin-bottom:1rem;}
.site-footer .copy{border-top:1px solid var(--line);padding:1.25rem 0;font-size:.8rem;color:var(--muted);text-align:center;}

/* ===== WooCommerce koyu uyum ===== */
.woocommerce-page, .woocommerce{color:var(--ink);}
.woocommerce ul.products li.product, .woocommerce div.product{background:var(--surface);border:1px solid var(--line);border-radius:1rem;padding:1rem;}
.woocommerce ul.products li.product .price{color:var(--electric);}
.woocommerce a.button, .woocommerce button.button, .woocommerce .button, .woocommerce #respond input#submit{
  background:var(--electric)!important;color:var(--base)!important;border-radius:.75rem!important;font-weight:600!important;border:none!important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{background:var(--electric-soft)!important;}
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info{border-top-color:var(--electric);background:var(--surface);}
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea{background:var(--surface2);border:1px solid var(--line);color:var(--ink);border-radius:.5rem;}

/* WhatsApp sabit buton */
.wa-fab{position:fixed;right:1.25rem;bottom:1.25rem;z-index:60;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 30px -8px rgba(37,211,102,.6);}
.wa-fab svg{width:28px;height:28px;fill:#fff;}

/* ===== İç sayfalar ===== */
.page-hero{border-bottom:1px solid var(--line);padding:3.5rem 0;position:relative;overflow:hidden;}
.page-hero h1{font-size:clamp(2rem,5vw,2.6rem);margin-top:.5rem;}
.page-hero p{color:var(--muted);max-width:42rem;margin-top:.75rem;}
.prose{max-width:48rem;margin:0 auto;color:var(--muted);}
.prose h2{color:var(--ink);font-size:1.3rem;margin:2rem 0 .5rem;}
.prose p{margin:.5rem 0;}
.prose ul{margin:.5rem 0;padding-left:1rem;list-style:none;display:grid;gap:.5rem;}
.prose li{display:flex;gap:.5rem;}
.prose li::before{content:"✓";color:var(--neon);}
.faq details{border:1px solid var(--line);border-radius:.75rem;background:rgba(17,24,39,.5);margin-bottom:.75rem;padding:.25rem 1rem;}
.faq summary{cursor:pointer;padding:.85rem 0;font-weight:600;color:var(--ink);list-style:none;}
.faq summary::-webkit-details-marker{display:none;}
.faq details[open] summary{color:var(--electric);}
.faq p{color:var(--muted);padding:0 0 .85rem;margin:0;font-size:.92rem;}
.contact-cards{display:grid;gap:1rem;grid-template-columns:1fr;}
@media(min-width:700px){.contact-cards{grid-template-columns:repeat(3,1fr);}}
.contact-cards .c{padding:1.25rem;border-radius:1rem;}
.contact-cards h4{margin:0 0 .35rem;font-size:1rem;}
.contact-cards p{color:var(--muted);font-size:.9rem;margin:0;}


/* ===== WooCommerce ÜRÜN GRID — kesin çözüm ===== */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:1.25rem!important;
  width:100%!important;
  margin:0!important;padding:0!important;list-style:none!important;
}
@media(min-width:768px){
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(min-width:1100px){
  .woocommerce ul.products,ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}
/* her kart: float/inline/width kalıntılarını tamamen ez */
.woocommerce ul.products li.product,
ul.products li.product{
  width:100%!important;max-width:100%!important;min-width:0!important;
  float:none!important;display:flex!important;flex-direction:column!important;
  margin:0!important;clear:none!important;
  background:var(--surface)!important;border:1px solid var(--line)!important;
  border-radius:1rem!important;overflow:hidden!important;box-shadow:var(--shadow-card)!important;
  text-align:left!important;
}
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after{display:none!important;content:none!important;}
/* görsel */
.woocommerce ul.products li.product a img,
ul.products li.product img{
  width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:contain;
  background:#fff;margin:0!important;border-radius:0!important;display:block;
}
/* başlık: harfler alt alta düşmesin */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title{
  color:var(--ink)!important;font-family:'Space Grotesk'!important;font-size:.95rem!important;
  font-weight:600!important;line-height:1.35!important;padding:.85rem 1rem .25rem!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;
  min-height:2.6em;
}
.woocommerce ul.products li.product .price,
ul.products li.product .price{
  color:var(--electric)!important;font-weight:700!important;padding:.15rem 1rem .5rem!important;
  font-size:1.05rem!important;white-space:nowrap!important;
}
.woocommerce ul.products li.product .price del{color:var(--muted)!important;font-weight:400!important;opacity:.6;margin-right:.4rem;}
.woocommerce ul.products li.product .price ins{text-decoration:none!important;color:var(--electric)!important;}
/* buton: tam genişlik, tek satır */
.woocommerce ul.products li.product .button,
ul.products li.product .button{
  margin:auto 1rem 1rem!important;display:block!important;text-align:center!important;
  white-space:nowrap!important;background:var(--electric)!important;color:var(--base)!important;
  border-radius:.7rem!important;font-weight:600!important;padding:.6rem 1rem!important;width:auto!important;
}
/* "İndirim!/Satışta" rozeti */
.woocommerce span.onsale{
  position:absolute!important;top:.6rem!important;left:.6rem!important;right:auto!important;
  background:var(--electric)!important;color:var(--base)!important;border-radius:.5rem!important;
  padding:.3rem .55rem!important;font-weight:700!important;font-size:.7rem!important;
  min-height:0!important;min-width:0!important;line-height:1!important;white-space:nowrap!important;margin:0!important;z-index:3;
}
.woocommerce ul.products li.product{position:relative!important;}

/* ===== ÜRÜN KARTI GENİŞLİK KİLİDİ (ezmeyi aşan) ===== */
/* Grid konteynerini zorla tam genişlik + eşit kolon */
.section ul.products,.woocommerce ul.products,ul.products{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  gap:1.25rem!important;align-items:stretch!important;
}
/* Kartın içindeki HER şeyin genişlik kısıtını kaldır */
ul.products li.product,
ul.products li.product > *,
ul.products li.product a{
  box-sizing:border-box!important;
  max-width:100%!important;min-width:0!important;width:auto!important;
}
ul.products li.product a.woocommerce-LoopProduct-link{display:block!important;width:100%!important;}
/* metin sarma zorla (harf harf alt alta düşmeyi engelle) */
ul.products li.product *{word-break:normal!important;overflow-wrap:break-word!important;hyphens:none!important;}
/* Kadence olası kuralları */
.woocommerce ul.products li.product .product-details,
ul.products li.product .kadence-woo-product-details{width:100%!important;padding:0!important;}


/* ===== HEADER MARKA (maskot + yazı) ===== */
.site-header .logo{display:flex;align-items:center;gap:.55rem;}
.brand-mascot{height:52px;width:52px;display:block;border-radius:50%;object-fit:cover;}
.brand-word{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.2rem;letter-spacing:2px;color:var(--ink);line-height:1;}
.brand-word span{color:var(--electric);}
@media(max-width:520px){
  .brand-mascot{height:40px;width:40px;}
  .brand-word{font-size:.95rem;letter-spacing:1.5px;}
}
