/*
Theme Name: MyTheme
Author: Custom Developer
Description: Elite Studio Edition - Restoration & Final Responsive
Version: 18.0
*/

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

:root {
  --black: #050505;
  --white: #ffffff;
  --gray-bg: #f8f8fa;
  --border: #ececec;
  --text-main: #1a1a1a;
  --text-muted: #8e8e93;
  --gold: #d4af37;
  --red: #f22222;
  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- KRİTİK TAŞMA ENGELLEYİCİ --- */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Sağdaki boşluğu tamamen siler */
  -webkit-font-smoothing: antialiased;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Inter", sans-serif;
  background: #fff;
  color: var(--text-main);
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* --- HEADER / NAVBAR (V12 DOKUNULMAZ YAPI) --- */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10000;
  height: 80px;
  display: flex;
  align-items: center;
}
.nav-container {
  width: 94%;
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo a {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu ul {
  display: flex;
  gap: 35px;
  list-style: none;
  align-items: center;
}
.nav-menu ul li {
  position: relative;
}
.nav-menu > ul > li > a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 30px 0;
  display: block;
  color: var(--black) !important;
  letter-spacing: 1px;
}

/* DROPDOWN (YAN YANA AÇILAN V12 SİSTEMİ) */
.nav-menu ul li ul.sub-menu {
  position: absolute;
  background: #fff;
  min-width: 250px;
  border: 1px solid var(--border);
  padding: 15px 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: none;
  top: 100%;
  left: 0;
  z-index: 100;
}
.nav-menu ul li:hover > ul.sub-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu ul li ul.sub-menu li ul.sub-menu {
  top: -16px;
  left: 100%;
  border-radius: 8px;
}
.nav-menu ul li ul.sub-menu li a {
  padding: 10px 25px;
  font-size: 12px;
  font-weight: 500;
  color: #555 !important;
  display: block;
  letter-spacing: 0.5px;
}

.nav-actions {
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-cart-btn {
  border: 1px solid var(--black);
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  background: #fff;
}
.mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

/* --- HERO (V12 YAPISI) --- */
.hero-section {
  background: #fbfbfb;
  height: 480px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
  z-index: 5;
}
.hero-container {
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-text {
  width: 45%;
  z-index: 10;
  position: relative;
}
.hero-text h2 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero-image-side {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* --- PREMİUM ÜRÜN KARTLARI (V12 TASARIMI RESTORE EDİLDİ) --- */
.vitrin-area {
  padding: 60px 0 100px;
  background: #fff;
}
.premium-market-grid,
.pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  width: 94%;
  max-width: 1500px;
  margin: 0 auto;
}
.premium-market-card,
.pro-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}
.premium-market-card:hover,
.pro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Resim Kutusu ve Premium Rozet Fix */
.mc-img-wrap,
.pro-img-box {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 25px;
  position: relative;
}
.mc-img-wrap img,
.pro-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* İndirim Rozeti - Jilet Gibi Premium */
.mc-badge,
.p-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--black);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 10;
}

.mc-body,
.pro-content {
  padding: 0 25px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}
.mc-category,
.p-brand {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 15px;
}
.mc-title a,
.p-title a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
  line-height: 1.4;
}
.mc-price,
.p-price-row {
  margin-top: auto;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}
.mc-add-btn,
.p-add-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gray-bg);
  color: var(--text-main);
  padding: 12px 0;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 20px;
}
.premium-market-card:hover .mc-add-btn,
.pro-card:hover .p-add-btn {
  background: var(--black);
  color: var(--white);
}

/* --- MAĞAZA (SHOP) ÖZEL --- */
.shop-hero {
  background: #fbfbfb;
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.shop-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.shop-categories-top {
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 40px;
}
.cat-top-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
}
.cat-top-list li a {
  display: block;
  padding: 10px 25px;
  background: var(--gray-bg);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.cat-top-list li a:hover {
  background: #000;
  color: #fff;
}

/* --- FOOTER (MASAÜSTÜ & MOBİL KESİN ÇÖZÜM) --- */
.site-footer {
  background: #050505;
  color: #fff;
  padding: 80px 0 40px;
  clear: both;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
}
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  margin-top: 60px;
  padding-top: 30px;
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
}

/* --- MOBİL & TABLET (RESPONSIVE) --- */
@media (max-width: 1100px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .premium-market-grid,
  .pro-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* Footer Mobil Fix */
  .footer-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }

  /* Hero Mobil Fix */
  .hero-section {
    height: auto;
    padding-bottom: 40px;
  }
  .hero-slide {
    position: relative;
    flex-direction: column;
    display: none;
    opacity: 1;
  }
  .hero-slide.active {
    display: flex;
  }
  .hero-text {
    width: 100%;
    text-align: center;
    padding: 20px;
  }
  .hero-image-side {
    position: relative;
    width: 100%;
    height: 250px;
    right: auto;
    top: auto;
  }

  /* Grid Mobil Fix (Trendyol 2'li) */
  .premium-market-grid,
  .pro-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    width: 96%;
  }
  .mc-body,
  .pro-content {
    padding: 15px 10px;
  }
  .p-badge,
  .mc-badge {
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    font-size: 9px;
  }
}

/* Mobile Side Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100%;
  background: #fff;
  z-index: 10001;
  transition: 0.4s ease;
  padding: 80px 40px;
}
.mobile-drawer.active {
  right: 0;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}
.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}
.mobile-nav-list {
  list-style: none;
}
.mobile-nav-list li {
  border-bottom: 1px solid #f0f0f0;
  padding: 15px 0;
}
.mobile-nav-list li a {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}
/* Ödeme Yap sayfasının başlığını (Sipariş Ödemesi) kaldırır */
.woocommerce-order-pay .entry-title, 
.woocommerce-order-pay .page-title,
.woocommerce-order-pay h1 {
    display: none !important;
}

/* Sayfanın arka planını Next.js tarafıyla eşitler */
body.woocommerce-order-pay {
    background-color: #fcfcfd !important;
}

/* Formun arka planındaki olası gölge ve beyazlıkları Next.js stiline uydurur */
.woocommerce-order-pay .rimba-order-pay-container {
    background-color: #fcfcfd !important;
}

/*
Theme Name: MyTheme
Description: Studio3D Corporate Premium Styling
Version: 12.0
*/

/* 1. TÜM ÖDEME VE HESABIM SAYFALARI ARKA PLANI */
body.woocommerce-checkout, 
body.woocommerce-order-pay,
body.woocommerce-account {
    background-color: #fcfcfd !important;
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* Sayfa Başlıklarını (Gereksiz WP Başlıkları) Gizle */
.entry-title, .page-title { display: none !important; }

/* 2. ANA KONTEYNER (FOCUS MODE) */
.rimba-checkout-container, 
.woocommerce-account .woocommerce {
    max-width: 650px !important;
    margin: 40px auto 100px auto !important;
}

/* 3. ÖZEL BAŞLIK TASARIMI */
.rimba-page-title,
.woocommerce-MyAccount-content h2 {
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: #000 !important;
    margin-bottom: 40px !important;
}
.rimba-page-title::after {
    content: ""; display: block; width: 40px; height: 2px;
    background: #f27a1a; margin: 15px auto 0 auto;
}

/* 4. FORM VE TABLO ALANLARI (BEYAZ KUTU) */
form.woocommerce-checkout, 
form#order_review,
.woocommerce-MyAccount-content {
    background: #ffffff !important;
    padding: 50px 60px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.04) !important;
    border: 1px solid #f0f0f0 !important;
}

/* 5. GİRİŞ KUTULARI (KORUMALI) */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
    background-color: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
input:focus { border-color: #000 !important; background-color: #fff !important; }

/* 6. SATIN AL VE GİRİŞ BUTONU */
#place_order, .woocommerce-form-login__submit {
    background-color: #000 !important;
    color: #fff !important;
    width: 100% !important;
    padding: 22px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    border-radius: 12px !important;
    border: none !important;
    transition: 0.3s ease !important;
}
#place_order:hover { background-color: #f27a1a !important; transform: translateY(-2px); }

/* 7. HESABIM NAVİGASYONU (SOL MENÜ) */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 30px; }
.woocommerce-MyAccount-navigation ul li { background: #eee; padding: 10px 20px; border-radius: 50px; font-size: 11px; font-weight: 700; }
.woocommerce-MyAccount-navigation ul li.is-active { background: #f27a1a; color: #fff; }
.woocommerce-MyAccount-navigation ul li a { text-decoration: none; color: inherit; }