/* =========================================================
   Sarıgül Ticaret – Ana Stil Dosyası
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #e94560;
  --primary-dk: #c2304a;
  --dark:       #0f0c29;
  --dark2:      #1a1a2e;
  --dark3:      #16213e;
  --accent:     #0f3460;
  --text:       #e0e0e0;
  --text-muted: #a0a0b0;
  --white:      #ffffff;
  --success:    #16a34a;
  --whatsapp:   #25d366;
  --radius:     10px;
  --shadow:     0 4px 20px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* --- Utility --------------------------------------------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}
.section-title span { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1da851; color: var(--white); transform: translateY(-2px); }

/* --- Top Bar --------------------------------------------- */
.top-bar {
  background: var(--dark2);
  padding: 0.4rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.top-bar a { color: var(--text-muted); }
.top-bar a:hover { color: var(--primary); }
.top-bar-links { display: flex; gap: 1.2rem; }

/* --- Header ---------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}
.logo img { height: 40px; width: auto; }
.logo span { color: var(--primary); }

nav ul {
  display: flex;
  gap: 0.2rem;
}
nav ul li a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
}
nav ul li a:hover,
nav ul li a.active { background: var(--primary); color: var(--white); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark2);
    border-top: 1px solid rgba(255,255,255,0.07);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  nav.open { max-height: 400px; }
  nav ul { flex-direction: column; padding: 0.8rem 1rem; gap: 0.1rem; }
  nav ul li a { padding: 0.7rem 1rem; font-size: 1rem; }
  .top-bar-links { display: none; }
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 60%, #0f3460 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233,69,96,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-content h1 span { color: var(--primary); }
.hero-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.hero-image { display: flex; justify-content: center; }
.hero-image img { max-width: 480px; border-radius: 16px; filter: drop-shadow(0 0 30px rgba(233,69,96,0.3)); }

@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { display: none; }
}

/* --- Categories ------------------------------------------ */
.categories { padding: 5rem 0; background: var(--dark2); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.category-card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(233,69,96,0.2);
}
.category-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
}
.category-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.3rem; }
.category-card p { font-size: 0.82rem; color: var(--text-muted); }

/* --- Products -------------------------------------------- */
.featured-products { padding: 5rem 0; background: var(--dark); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-image {
  background: var(--dark3);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--primary); color: white; }
.badge-toptan { background: #f59e0b; color: #0a0a0a; }
.product-image-wrap { position: relative; }
.product-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.product-category { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 1rem; font-weight: 700; color: var(--white); }
.product-desc { font-size: 0.83rem; color: var(--text-muted); flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.product-price { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.product-price small { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.btn-ask {
  font-size: 0.82rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: var(--whatsapp);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-ask:hover { background: #1da851; color: white; }

/* --- Why Us ---------------------------------------------- */
.why-us { padding: 5rem 0; background: var(--dark2); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: border-color var(--transition);
}
.why-card:hover { border-color: var(--primary); }
.why-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 1rem; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); }

/* --- CTA Banner ------------------------------------------ */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, #c2304a 100%);
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: white; margin-bottom: 0.7rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: #f0f0f0; color: var(--primary-dk); }
.btn-white-outline { background: transparent; border: 2px solid white; color: white; }
.btn-white-outline:hover { background: white; color: var(--primary); }

/* --- Contact --------------------------------------------- */
.contact-section { padding: 5rem 0; background: var(--dark); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--dark2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item-text h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-item-text a, .contact-item-text p { color: var(--text-muted); font-size: 0.85rem; }
.contact-item-text a:hover { color: var(--primary); }

.contact-form-box {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-form-box h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark2); }
.form-message { font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.form-message.success { color: #4ade80; display: block; }
.form-message.error { color: #f87171; display: block; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Footer ---------------------------------------------- */
footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 260px; }
.social-links { display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.social-link {
  width: 36px; height: 36px;
  background: var(--dark3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--primary); color: white; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Cookie Banner --------------------------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: var(--dark2);
  border-top: 2px solid var(--primary);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 0.87rem; color: var(--text-muted); max-width: 680px; }
#cookie-banner a { color: var(--primary); }
.cookie-buttons { display: flex; gap: 0.8rem; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--primary); color: white; padding: 0.55rem 1.3rem; border-radius: 7px; border: none; cursor: pointer; font-size: 0.88rem; font-weight: 600; transition: background var(--transition); }
.btn-cookie-accept:hover { background: var(--primary-dk); }
.btn-cookie-decline { background: var(--dark3); color: var(--text-muted); padding: 0.55rem 1.3rem; border-radius: 7px; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; font-size: 0.88rem; transition: background var(--transition), color var(--transition); }
.btn-cookie-decline:hover { background: rgba(255,255,255,0.05); color: var(--white); }

/* --- WhatsApp Float ------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 9000;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: white;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.7); color: white; }
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--whatsapp);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* --- Back to Top ---------------------------------------- */
#back-to-top {
  position: fixed;
  bottom: 90px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 8900;
  box-shadow: 0 4px 14px rgba(233,69,96,0.4);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); }

/* --- Catalog Page --------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark3) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin-top: 0.8rem; font-size: 0.83rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--primary); }

.catalog-section { padding: 4rem 0; background: var(--dark); }
.catalog-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--dark2);
  color: var(--text-muted);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active,
.filter-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* --- Contact Page --------------------------------------- */
.contact-page { padding: 4rem 0; background: var(--dark); }
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}
.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--dark3);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .contact-page-grid { grid-template-columns: 1fr; }
}

/* --- Misc ----------------------------------------------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0; }
