/*
Theme Name: Melih Perde
Theme URI: https://melihperde.com
Author: Melih Perde
Author URI: https://melihperde.com
Description: Modern ve minimalist perde e-ticaret teması. MelihPerde.com için özel tasarlanmıştır.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melihperde
Tags: e-commerce, woocommerce, modern, minimalist, responsive
*/

/* ===== CSS VARIABLES ===== */
:root {
  --cream: #eef2f7;
  --dark: #0d1b2a;
  --text: #1e3048;
  --muted: #6b84a0;
  --accent: #c9a84c;
  --accent-dark: #a07830;
  --red: #c0392b;
  --border: #d0dce8;
  --white: #ffffff;
  --card-bg: #f4f8fc;
  --green: #25d366;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--text); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--dark);
  color: #b0c8e0;
  text-align: center;
  font-size: 12px;
  padding: 8px 20px;
  letter-spacing: 0.5px;
}
.top-bar span { margin: 0 16px; }
.top-bar strong { color: var(--accent); }

/* ===== HEADER ===== */
#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  overflow: visible;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
  overflow: visible;
}
#site-navigation { overflow: visible; }
#site-navigation .nav-menu { overflow: visible; }
.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo span { color: var(--accent); }

/* Primary Navigation */
#site-navigation .nav-menu {
  display: flex;
  gap: 0;
}
#site-navigation .nav-menu li a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding: 0 16px;
  height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
#site-navigation .nav-menu li a:hover,
#site-navigation .nav-menu li.current-menu-item > a {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ── Dropdown menü — saf CSS hover ── */
#site-navigation .nav-menu li {
  position: relative;
  overflow: visible;
}
#site-navigation .nav-menu li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 10px;
  color: var(--muted);
}
/* Sub-menu varsayılan: gizli */
#site-navigation .sub-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute !important;
  top: 68px !important;
  left: 0 !important;
  min-width: 240px !important;
  background: #ffffff !important;
  border-top: 3px solid #c9a84c !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.18) !important;
  z-index: 999999 !important;
  padding: 8px 0 !important;
  list-style: none !important;
  margin: 0 !important;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  transform: translateY(-8px);
}
/* Hover ile aç */
#site-navigation .nav-menu li:hover > .sub-menu,
#site-navigation .nav-menu li.tp-open > .sub-menu {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
#site-navigation .sub-menu li {
  display: block !important;
  position: static !important;
}
#site-navigation .sub-menu li a {
  height: auto !important;
  padding: 11px 20px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  border-bottom: none !important;
  border-left: none !important;
  display: block !important;
  white-space: nowrap !important;
  transition: background .15s, color .15s, padding .15s !important;
  line-height: 1.4 !important;
}
#site-navigation .sub-menu li a:hover {
  background: #fdf9f4 !important;
  color: #c9a84c !important;
  padding-left: 26px !important;
  border-bottom: none !important;
}
@keyframes tpDropIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-actions a {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.header-actions a:hover { color: var(--accent-dark); }
.header-phone { color: var(--accent-dark) !important; font-weight: 600 !important; }
.cart-btn {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s !important;
}
.cart-btn:hover { background: var(--accent-dark) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  color: var(--dark);
}

/* ===== HERO ===== */
.hero-section {
  background: var(--dark);
  min-height: 420px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.18) 0%, transparent 60%),
    linear-gradient(135deg, #0d1b2a 0%, #162640 50%, #0d1b2a 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,1) 40px, rgba(255,255,255,1) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,1) 40px, rgba(255,255,255,1) 41px);
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 40px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,168,130,0.2);
  border: 1px solid rgba(196,168,130,0.4);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(26px, 3.5vw, 42px);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-desc {
  color: #7a9bbf;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--accent);
  font-weight: 600;
}
.hero-stat .label { font-size: 12px; color: #4a6080; margin-top: 2px; }

/* Hero right cards */
.hero-right {
  flex: 0 0 320px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
  transition: all 0.3s;
  cursor: pointer;
}
.hero-card:hover { background: rgba(201,168,76,0.15); border-color: rgba(201,168,76,0.35); }
.hero-card.wide { grid-column: span 2; display: flex; align-items: center; gap: 12px; }
.hero-card-icon { font-size: 22px; }
.hero-card h3 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 3px; font-family: 'DM Sans', sans-serif; }
.hero-card p { color: #4a6080; font-size: 11px; line-height: 1.4; }

/* ===== STEPS ===== */
.steps-section {
  background: var(--white);
  padding: 36px 24px;
  border-bottom: 1px solid var(--border);
}
.steps-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  position: relative;
}
.step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 42px;
  color: var(--accent);
  font-size: 18px;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--dark);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-item h4 { font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }
.step-item p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== SECTIONS ===== */
.section-pad { padding: 64px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--dark); }

.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-desc { color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.6; }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.view-all:hover { color: var(--dark); }

/* ===== TIMER BANNER ===== */
.timer-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3050 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.timer-info h3 { font-size: 20px; color: var(--white); margin-bottom: 4px; }
.timer-info p { color: #7a9bbf; font-size: 13px; }
.countdown { display: flex; gap: 12px; align-items: center; }
.count-block {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  min-width: 60px;
}
.count-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  display: block;
  line-height: 1;
}
.count-label { font-size: 10px; color: #4a6080; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.count-sep { color: var(--accent); font-size: 20px; font-weight: 700; }

/* ===== PRODUCT GRID ===== */
.product-grid-tp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card-tp {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card-tp:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(13,27,42,.12); border-color: var(--accent); }
.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--card-bg);
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.25,.8,.25,1); }
.product-card-tp:hover .product-img-wrap img { transform: scale(1.07); }
.product-badge-tp {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 5px; z-index: 2;
  letter-spacing: .3px;
}
.product-badge-tp.badge-new { background: var(--dark); top: 44px; }
.tp-badge-tukendi {
  position: absolute; top: 12px; left: 12px;
  background: #2d6a2d; color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 4px 9px; border-radius: 5px; z-index: 2;
  letter-spacing: .5px; text-transform: uppercase;
}
.product-actions-tp {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(13,27,42,.85) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s;
  z-index: 2;
  display: flex; gap: 8px;
}
.product-card-tp:hover .product-actions-tp { opacity: 1; transform: translateY(0); }
.action-btn-tp {
  flex: 1;
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  letter-spacing: .3px;
}
.action-btn-tp:hover { background: var(--accent-dark); color: var(--white); }
.product-info-tp { padding: 16px; }
.product-name-tp {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.product-stars-tp { color: var(--accent); font-size: 12px; margin-bottom: 9px; letter-spacing: 1px; }
.product-stars-tp span { color: var(--muted); font-size: 11px; margin-left: 4px; letter-spacing: 0; }
.product-price-tp { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-current-tp { font-size: 17px; font-weight: 700; color: var(--dark); }
.price-original-tp { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-unit-tp { font-size: 11px; color: var(--muted); }
.sales-bar { height: 4px; background: var(--border); border-radius: 2px; margin: 10px 0 6px; overflow: hidden; }
.sales-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 2px; }
.sales-text { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }

/* ===== PROMO CARDS ===== */
.promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promo-card {
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-dark { background: var(--dark); }
.promo-warm { background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%); }
.promo-light { background: linear-gradient(135deg, #d8e8f4 0%, #b8ceE4 100%); }
.promo-stone { background: linear-gradient(135deg, #1e3a5a 0%, #0d1b2a 100%); }
.promo-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; color: rgba(255,255,255,0.6); }
.promo-light .promo-label { color: var(--muted); }
.promo-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 14px; color: var(--white); }
.promo-light h3 { color: var(--dark); }
.promo-price { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.promo-light .promo-price { color: var(--muted); }
.promo-link { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.promo-warm .promo-link, .promo-stone .promo-link { color: rgba(255,255,255,0.85); }
.promo-light .promo-link { color: var(--accent-dark); }
/* Kapak fotoğrafı varken metin okunabilirliği */
.promo-img-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,.08) 100%);
    pointer-events: none;
    z-index: 0;
}
.promo-card[style*="background-image"] .promo-label,
.promo-card[style*="background-image"] h3,
.promo-card[style*="background-image"] .promo-price,
.promo-card[style*="background-image"] .promo-link { position: relative; z-index: 1; color: #fff !important; }
.promo-card[style*="background-image"] .promo-link { color: var(--accent) !important; }

/* ===== CATEGORY BANNERS ===== */
.cat-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cat-banner {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  cursor: pointer;
  transition: transform 0.3s;
}
.cat-banner:hover { transform: scale(1.01); }
.cat-linen { background: linear-gradient(160deg, #c9a84c 0%, #8a6820 100%); }
.cat-sheer { background: linear-gradient(160deg, #1e4a7a 0%, #0d2a4a 100%); }
.cat-banner-content { position: relative; z-index: 2; }
.cat-banner h3 { font-size: 26px; color: var(--white); margin-bottom: 8px; font-weight: 600; }
.cat-banner p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 18px; line-height: 1.5; }
.btn-dark {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-dark:hover { background: var(--accent-dark); }

/* ===== FEATURES SECTION ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.feature-item {
  padding: 36px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.feature-item:last-child { border-right: none; }
.feature-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.feature-item h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 6px; font-family: 'DM Sans', sans-serif; }
.feature-item p { color: #4a6080; font-size: 12.5px; line-height: 1.6; }

/* ===== FOOTER ===== */
#colophon {
  background: var(--dark);
  padding: 56px 24px 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-desc { color: #3a5070; font-size: 13px; line-height: 1.7; margin-bottom: 20px; margin-top: 16px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.footer-contact-item .icon { color: var(--accent); font-size: 16px; }
.footer-contact-item p { color: #4a6080; font-size: 13px; line-height: 1.5; }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col a { display: block; color: #4a6080; font-size: 13px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.footer-bottom p { color: #3a5070; font-size: 12px; }
.payment-badges { display: flex; gap: 8px; }
.payment-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 5px 10px;
  color: #3a5070;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}


/* ===== HEADER AUTH / USER MENU ===== */
.tp-auth-links { display: flex; align-items: center; gap: 6px; }
.tp-auth-sep { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1; }
.tp-login-link {
    font-size: 13px; font-weight: 600; color: var(--text);
    padding: 8px 14px; border-radius: 7px; border: 1.5px solid var(--border);
    transition: all .2s;
}
.tp-login-link:hover { border-color: var(--accent); color: var(--accent-dark); }
.tp-register-link {
    font-size: 13px; font-weight: 700; color: var(--white);
    padding: 8px 16px; border-radius: 7px;
    background: var(--accent); transition: all .2s;
}
.tp-register-link:hover { background: var(--accent-dark); }

/* User dropdown */
.tp-user-menu { position: relative; }
.tp-user-toggle {
    display: flex; align-items: center; gap: 8px;
    background: none; border: 1.5px solid var(--border);
    border-radius: 8px; padding: 7px 12px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: all .2s;
    color: var(--text);
}
.tp-user-toggle:hover { border-color: var(--accent); }
.tp-user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--dark); color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.tp-user-name { font-size: 13px; font-weight: 600; color: var(--text); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-user-caret { font-size: 10px; color: var(--muted); transition: transform .2s; }
.tp-user-toggle.open .tp-user-caret { transform: rotate(180deg); }

.tp-user-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--white); border: 1px solid var(--border);
    border-radius: 12px; padding: 8px; min-width: 200px;
    box-shadow: 0 8px 32px rgba(13,27,42,.12); z-index: 200;
}
.tp-user-dropdown.open { display: block; }
.tp-user-dropdown a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: 8px; font-size: 13px;
    font-weight: 500; color: var(--text); transition: background .15s;
    white-space: nowrap;
}
.tp-user-dropdown a:hover { background: var(--cream); color: var(--dark); }
.tp-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.tp-logout-link { color: #ef4444 !important; }
.tp-logout-link:hover { background: #fef2f2 !important; }


/* Giriş yapılmamışken Hesabım menü linkini gizle */
li.tp-hide-logged-out { display: none !important; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce .woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
.woocommerce ul.products li.product { margin: 0 !important; float: none !important; width: 100% !important; }
.woocommerce .price { color: var(--dark); font-weight: 700; }
.woocommerce .price del { color: var(--muted); font-weight: 400; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--dark) !important;
  color: var(--white) !important;
  border-radius: 7px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent-dark) !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--accent) !important; color: var(--dark) !important; }
.woocommerce a.button.alt:hover { background: var(--accent-dark) !important; color: var(--white) !important; }
.woocommerce .onsale { background: var(--red) !important; border-radius: 4px !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { color: var(--text); border-color: var(--border); }
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .product-grid-tp { grid-template-columns: repeat(3, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #site-navigation { display: none; }
  #site-navigation.toggled { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px; z-index: 99; }
  #site-navigation.toggled .nav-menu { flex-direction: column; gap: 0; }
  #site-navigation.toggled .nav-menu li a { height: auto; padding: 12px 0; border-bottom: 1px solid var(--border); border-left: none; }
  .menu-toggle { display: block; order: 3; margin-left: auto; }
  .site-logo { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .header-inner { justify-content: flex-start; }
  .product-grid-tp { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-inner { grid-template-columns: repeat(3, 1fr); }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-banners { grid-template-columns: 1fr; }
  .timer-banner { flex-direction: column; text-align: center; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 600px) {
  .product-grid-tp { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .steps-inner { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .header-actions .hide-mobile { display: none; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  /* Footer bottom mobilde alt alta */
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .payment-badges { flex-wrap: wrap; gap: 6px; }
  /* Header taşmasın */
  .header-inner { overflow: visible; }
  /* Footer inner padding */
  .footer-inner { overflow: hidden; }
  #colophon { padding: 48px 16px 0; }
}

/* Mobil arama butonu (hero içinde) */
.show-mobile-only { display: none; }
@media (max-width: 900px) {
  .show-mobile-only { display: flex; }
}
.hero-search-mobile {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  padding: 13px 16px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 0;
}
.hero-search-mobile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

