/*
Theme Name: 3D Baskı Mağaza
Theme URI: https://example.com/3d-baski
Author: Custom Theme
Author URI: https://example.com
Description: Çiçekçi tarzı modern e-ticaret teması - 3D baskı ürünleri için uyarlanmış. WooCommerce uyumlu, Elementor ready.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 3d-baski
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, elementor
*/

/* =====================================================
   CSS VARIABLES - Renkler (kolay değiştirilebilir)
   ===================================================== */
:root {
  --primary: #1a1a2e;
  --primary-dark: #0f0f1a;
  --accent: #00d4aa;          /* 3D baskı için modern yeşil-turkuaz */
  --accent-hover: #00b894;
  --secondary: #e94560;       /* İndirim / CTA kırmızısı */
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --border: #e9ecef;
  --success: #00b894;
  --warning: #fdcb6e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1280px;
  --header-height: 70px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.top-bar a { color: var(--accent); font-weight: 600; }
.top-bar .top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  min-height: var(--header-height);
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
.site-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  max-height: 50px;
}
.site-logo span { color: var(--accent); }
/* Yüklenen özel logo çok büyük olmasın */
.site-logo img,
.custom-logo-link img,
.custom-logo {
  max-height: 48px !important;
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  object-fit: contain;
}
/* Scroll sonrası logo alanı gizlensin (JS class) */
body.scrolled .header-main {
  max-height: 0;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
body.scrolled .top-bar {
  display: none;
}

.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
  background: #fff;
}
.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search button:hover { background: var(--accent-hover); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.header-actions .btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.header-actions .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

/* Navigation - sticky only menu bar */
.main-nav {
  border-top: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  overflow-x: auto;
}
.main-nav a {
  display: block;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  padding-right: 8px;
}
.nav-right strong { color: var(--primary); }

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
}
.hero-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  background-size: cover;
  background-position: center;
  min-height: 420px;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 420px;
}
.hero-content h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-content p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 20px;
}
.hero-content .btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Feature cards under hero */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), #00b894);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section {
  padding: 60px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header .label {
  display: inline-block;
  background: rgba(0,212,170,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}
.section-header p {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 15px;
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
}
.product-card .badge.discount { background: var(--secondary); }
.product-card .badge.same-day { background: var(--accent); }
.product-card .badge.sold-out { background: #636e72; }
.product-thumb {
  aspect-ratio: 1;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-info {
  padding: 16px;
}
.product-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.product-price .current {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.product-price .old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}
.btn-order {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-order:hover { background: var(--accent); }

/* =====================================================
   CATEGORY / OCCASION GRID
   ===================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.category-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.category-card:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.category-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.category-card h3 {
  font-size: 14px;
  font-weight: 600;
}

/* =====================================================
   TRUST BAR
   ===================================================== */
.trust-bar {
  background: var(--bg-soft);
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.trust-item p {
  font-size: 13px;
  color: var(--text-light);
}

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review-card .stars { color: #f1c40f; margin-bottom: 10px; font-size: 14px; }
.review-card p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.55;
}
.review-card .author {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #16213e 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}
.cta-banner p { opacity: 0.85; font-size: 15px; max-width: 480px; }
.cta-banner .btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.cta-banner .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* =====================================================
   NEWSLETTER
   ===================================================== */
.newsletter {
  background: var(--bg-soft);
  padding: 48px 0;
  text-align: center;
}
.newsletter h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.newsletter p {
  color: var(--text-light);
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 8px;
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
}
.newsletter-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: var(--accent); }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #a0aec0;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* =====================================================
   LIVE COUNTER (floating)
   ===================================================== */
.live-counter {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border-radius: 50px;
  padding: 10px 18px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 999;
  border: 1px solid var(--border);
}
.live-counter .dot {
  width: 8px;
  height: 8px;
  background: #00b894;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-slider { grid-template-columns: 1fr; }
  .hero-slide { min-height: 320px; }
  .hero-content h2 { font-size: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .btn-whatsapp span { display: none; }
  .nav-right { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: 1fr; margin-top: -20px; }
}

/* WooCommerce overrides (basic) */
.woocommerce ul.products li.product { margin: 0; width: 100%; }
.woocommerce .products { display: contents; }
.woocommerce span.onsale {
  background: var(--secondary) !important;
  border-radius: 6px !important;
  line-height: 1.4 !important;
  min-height: auto !important;
  padding: 4px 8px !important;
}