/*
Theme Name: NitraSafe
Template: astra
Version: 1.1.0
Description: NitraSafe Is Guvenligi - Astra Child Theme
Author: NitraSafe
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   ROOT VARIABLES
============================================= */
:root {
  --navy:    #0d1f3c;
  --navy2:   #142444;
  --navy3:   #1a2e55;
  --yellow:  #f5c400;
  --yellow2: #d4a900;
  --yellow3: #ffd740;
  --light:   #f5f7fa;
  --border:  #e2e8f0;
  --gray:    #64748b;
  --gray2:   #94a3b8;
  --white:   #ffffff;
  --radius:  10px;
  --font:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font) !important;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* =============================================
   ASTRA SIFIRLA - HEADER
============================================= */
.site-header,
.ast-primary-header-bar,
.main-header-bar,
#masthead {
  background: rgba(13,31,60,.97) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  height: 68px !important;
  padding: 0 !important;
  backdrop-filter: blur(14px);
}

.main-header-bar-wrap,
.ast-container,
.ast-flex.main-header-bar {
  height: 68px !important;
  padding: 0 2rem !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* LOGO */
.site-branding,
.ast-site-identity,
.custom-logo-link {
  display: flex !important;
  align-items: center !important;
}

.custom-logo-link img,
.site-logo img {
  height: 44px !important;
  width: auto !important;
  max-width: 220px !important;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  display: block !important;
}

.site-title,
.ast-logo-title-inline .site-title {
  display: none !important;
}

/* NAV LINKS - ortalanmis */
.main-header-menu,
.ast-nav-menu,
#primary-menu {
  display: flex !important;
  align-items: center !important;
  gap: 1.6rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header-menu .menu-item > a,
.ast-nav-menu > li > a,
#primary-menu > li > a {
  color: rgba(255,255,255,.78) !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  transition: color .2s !important;
  font-family: var(--font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.main-header-menu .menu-item > a:hover,
.ast-nav-menu > li > a:hover {
  color: var(--yellow) !important;
  background: none !important;
}

/* Son nav item - CTA buton */
.main-header-menu .menu-item:last-child > a,
.ast-nav-menu > li:last-child > a {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  padding: .45rem 1.1rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}

.main-header-menu .menu-item:last-child > a:hover,
.ast-nav-menu > li:last-child > a:hover {
  background: var(--yellow2) !important;
}

/* =============================================
   ASTRA SIFIRLA - GENEL
============================================= */
.ast-page-builder-template .hentry,
.page-template-page-builder .hentry {
  margin: 0 !important;
  padding: 0 !important;
}

.entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ast-breadcrumbs-wrapper,
.woocommerce-breadcrumb { display: none !important; }

/* =============================================
   HERO
============================================= */
.ns-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.ns-hero-bg {
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/hero-bg.jpg') center 30%/cover no-repeat;
}

.ns-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,31,60,.95) 45%, rgba(13,31,60,.65));
}

.ns-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
}

.ns-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,196,0,.15);
  border: 1px solid rgba(245,196,0,.4);
  color: var(--yellow3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}

.ns-hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.5); }
}

.ns-hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  max-width: 680px;
  margin-bottom: 1.2rem;
}

.ns-hero-content h1 em {
  font-style: normal;
  color: var(--yellow);
}

.ns-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 480px;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.ns-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ns-btn {
  display: inline-block;
  padding: .85rem 1.9rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  border: none;
  transition: .2s;
  font-family: var(--font);
}

.ns-btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.ns-btn-yellow:hover {
  background: var(--yellow2);
  transform: translateY(-2px);
}

.ns-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}

.ns-btn-ghost:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

/* =============================================
   STATS / TRUST BAR
============================================= */
.ns-stats {
  background: var(--navy2);
  padding: 1.4rem 2rem;
}

.ns-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  text-align: center;
}

.ns-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  font-family: var(--font);
}

.ns-stat span {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =============================================
   SECTION COMMONS
============================================= */
.ns-section {
  padding: 5rem 2rem;
}

.ns-section-alt {
  background: var(--light);
}

.ns-section-dark {
  background: var(--navy);
}

.ns-container {
  max-width: 1280px;
  margin: 0 auto;
}

.ns-sec-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ns-sec-tag {
  display: inline-block;
  color: var(--yellow2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.ns-sec-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
}

.ns-sec-header.light h2 { color: #fff; }

.ns-sec-header p {
  color: var(--gray);
  max-width: 540px;
  margin: .7rem auto 0;
  font-size: .95rem;
}

/* =============================================
   CATEGORY CARDS
============================================= */
.ns-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1rem;
}

.ns-cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: .25s;
  display: block;
}

.ns-cat-card:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.09);
}

.ns-cat-icon {
  font-size: 2.2rem;
  margin-bottom: .8rem;
  display: block;
}

.ns-cat-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  font-family: var(--font);
}

/* =============================================
   WHY US CARDS
============================================= */
.ns-why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.3rem;
}

.ns-why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: .2s;
}

.ns-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.ns-why-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(245,196,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
}

.ns-why-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--navy);
  font-family: var(--font);
}

.ns-why-card p {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.6;
}

/* =============================================
   CTA SECTION
============================================= */
.ns-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ns-cta::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,196,0,.15), transparent 65%);
}

.ns-cta::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,196,0,.08), transparent 65%);
}

.ns-cta h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: .8rem;
  position: relative; z-index: 1;
  font-family: var(--font);
}

.ns-cta p {
  color: rgba(255,255,255,.65);
  max-width: 460px;
  margin: 0 auto 2rem;
  font-size: .95rem;
  position: relative; z-index: 1;
}

.ns-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}

.ns-btn-wa {
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s;
}

.ns-btn-wa:hover {
  background: #1db954;
  transform: translateY(-2px);
  color: #fff;
}

.ns-btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  padding: .85rem 2rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .92rem;
  transition: .2s;
}

.ns-btn-outline-white:hover {
  border-color: rgba(255,255,255,.8);
  transform: translateY(-2px);
}

/* =============================================
   WOOCOMMERCE OVERRIDES
============================================= */

/* Sayfa genis */
.woocommerce .page-title,
.woocommerce-page .page-title,
.woocommerce-shop .page-title { display: none !important; }

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 1.2rem !important;
  margin: 0 !important;
  padding: 1rem 0 !important;
}

.woocommerce ul.products li.product {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  transition: transform .22s, box-shadow .22s !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.1) !important;
}

/* Urun resim alani */
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 190px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  border: none !important;
  transition: transform .4s !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05) !important;
}

/* Urun bilgi alani */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: block !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  font-family: var(--font) !important;
  padding: .9rem 1rem .25rem !important;
  line-height: 1.35 !important;
}

.woocommerce ul.products li.product .price {
  color: var(--navy) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  padding: 0 1rem .6rem !important;
  font-family: var(--font) !important;
}

.woocommerce ul.products li.product .button {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: .82rem !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  width: 100% !important;
  text-align: center !important;
  padding: .7rem !important;
  border: none !important;
  font-family: var(--font) !important;
  transition: background .2s !important;
  display: block !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--yellow2) !important;
  transform: none !important;
}

/* Tekli urun sayfasi */
.woocommerce div.product .product_title {
  font-weight: 900 !important;
  font-size: 1.7rem !important;
  color: var(--navy) !important;
  font-family: var(--font) !important;
  line-height: 1.2 !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--navy) !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
  font-family: var(--font) !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: #475569 !important;
  font-size: .95rem !important;
  line-height: 1.8 !important;
}

/* Sepete ekle butonu */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-family: var(--font) !important;
  border-radius: 7px !important;
  border: none !important;
  transition: .2s !important;
  font-size: .95rem !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--yellow2) !important;
  transform: translateY(-1px) !important;
}

/* Diger butonlar */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  border-radius: 7px !important;
  border: none !important;
}

/* Koli bilgi kutusu */
.nitrasafe-koli-info {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin: 1rem 0;
  font-size: .88rem;
  color: var(--navy);
  font-weight: 600;
  font-family: var(--font);
}

/* 10 koli+ banner */
.nitrasafe-bulk-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font);
  font-size: .88rem;
}

.nitrasafe-bulk-banner strong { color: var(--yellow); }

.nitrasafe-bulk-banner a {
  background: var(--yellow);
  color: var(--navy);
  padding: .45rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .82rem;
  margin-left: auto;
  white-space: nowrap;
}

/* WhatsApp butonu */
.nitrasafe-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25d366;
  color: #fff !important;
  padding: .75rem 1.4rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none !important;
  transition: .2s;
  margin: .5rem 0;
  font-family: var(--font);
}

.nitrasafe-whatsapp:hover {
  background: #1db954;
  transform: translateY(-1px);
}

/* Sepet & checkout */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce-billing-fields {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

/* =============================================
   FOOTER
============================================= */
.site-footer,
.ast-footer-overlay,
#colophon {
  background: var(--navy) !important;
  color: rgba(255,255,255,.65) !important;
  border-top: 3px solid var(--yellow) !important;
  font-family: var(--font) !important;
}

.site-footer a,
.ast-footer-overlay a { color: var(--yellow) !important; }

.site-footer .ast-footer-copyright {
  color: rgba(255,255,255,.45) !important;
  font-size: .8rem !important;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .ns-hero-content h1 { font-size: 2.2rem; }
  .ns-stats-inner { grid-template-columns: repeat(2,1fr); }
  .ns-why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .ns-hero { min-height: 80vh; }
  .ns-hero-content { padding: 3.5rem 1.2rem; }
  .ns-hero-content h1 { font-size: 1.9rem; }
  .ns-stats-inner { grid-template-columns: repeat(2,1fr); gap: .6rem; }
  .ns-why-grid { grid-template-columns: 1fr; }
  .ns-cats-grid { grid-template-columns: repeat(2,1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}

@media (max-width: 400px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}