/* ============================================================
   Sevgin Tarım - Frontend Ana CSS
   Tasarım: Ünyıldız referanslı
   ============================================================ */

:root {
  --primary:      #f5a623;
  --primary-dark: #d4891a;
  --dark:         #1a1d23;
  --dark2:        #2d3139;
  --text:         #333;
  --text-muted:   #777;
  --border:       #e8ecf0;
  --bg-light:     #f8f9fa;
  --success:      #28a745;
  --danger:       #dc3545;
  --radius:       10px;
  --shadow:       0 2px 16px rgba(0,0,0,.08);
  --transition:   .25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--primary); }

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 18px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.logo-text .name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.logo-text .sub {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
}

.search-form {
  display: flex;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-form:focus-within { border-color: var(--primary); }

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 16px;
  font-size: 14px;
  background: transparent;
}

.search-select {
  border: none;
  border-left: 1px solid var(--border);
  outline: none;
  padding: 0 12px;
  font-size: 13px;
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
}

.search-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
}

.header-phone strong { color: var(--dark); font-size: 15px; }

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  background: #fff;
  transition: all var(--transition);
  position: relative;
}

.header-btn:hover { border-color: var(--primary); color: var(--primary); }
.header-btn i { font-size: 20px; }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: var(--dark);
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: stretch;
}

/* Kategori Mega Menü Butonu */
.cat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 48px;
  white-space: nowrap;
  transition: background var(--transition);
}

.cat-toggle:hover { background: var(--primary-dark); }

/* Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  height: 48px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary);
  background: rgba(255,255,255,.05);
}

/* Dropdown */
.nav-links .dropdown { position: relative; }

.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  min-width: 200px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 999;
  padding: 8px 0;
}

.nav-links .dropdown:hover .dropdown-menu { display: block; }

.nav-links .dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text);
  font-size: 13.5px;
  transition: background var(--transition), color var(--transition);
}

.nav-links .dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Store Status Badge */
.store-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

.store-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.store-dot.closed { background: #f87171; animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ============================================================
   HERO / SLIDER
   ============================================================ */
.hero-section {
  background: var(--dark);
  padding: 0;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 420px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  align-items: center;
}

.hero-slide.active { display: flex; }

.hero-content {
  padding: 60px 0;
  color: #fff;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-title span { color: var(--primary); }

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.hero-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.hero-img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  opacity: .3;
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}

.slider-dot.active { background: var(--primary); }

/* ============================================================
   FEATURES BAR
   ============================================================ */
.features-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,166,35,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text .title { font-size: 13px; font-weight: 700; color: var(--dark); }
.feature-text .sub   { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-link {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge-new      { background: var(--success); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-campaign { background: var(--danger);  color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.badge-featured { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 1;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform var(--transition);
}

.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.action-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.product-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-name:hover { color: var(--primary); }

.product-price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-discount {
  font-size: 11px;
  background: var(--danger);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition);
}

.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: var(--text);
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(245,166,35,.15);
  transform: translateY(-3px);
  color: var(--primary);
}

.cat-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.cat-card .cat-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.cat-card .cat-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-card .cat-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   BANNER / CTA
   ============================================================ */
.banner-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  border-radius: 14px;
  padding: 32px 40px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.banner-cta .title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.banner-cta .sub   { font-size: 14px; color: rgba(255,255,255,.7); }

.btn-banner {
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-banner:hover { background: var(--primary-dark); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 50px 0 0;
  margin-top: 60px;
}

.footer-logo .name { font-size: 20px; font-weight: 800; color: #fff; }
.footer-logo .sub  { font-size: 12px; color: rgba(255,255,255,.5); }

.footer-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin: 14px 0 20px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 16px;
  transition: all var(--transition);
}

.social-btn:hover { background: var(--primary); color: #fff; }

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover { color: var(--primary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.65);
}

.footer-contact-item i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter-input {
  flex: 1;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-input:focus { border-color: var(--primary); }

.newsletter-btn {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-btn:hover { background: var(--primary-dark); }

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 0;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-icon {
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  font-weight: 700;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.page-breadcrumb {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.breadcrumb { margin: 0; font-size: 13px; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ============================================================
   STORE CLOSED BANNER
   ============================================================ */
.store-closed-banner {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .header-phone { display: none; }
  .hero-title   { font-size: 28px; }
  .hero-img     { display: none; }
  .banner-cta   { flex-direction: column; text-align: center; }
}

@media (max-width: 767px) {
  .topbar       { display: none; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .hero-title   { font-size: 22px; }
  .hero-content { padding: 30px 0; }
  .section-title { font-size: 18px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .main-nav .nav-links { display: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.section-padding { padding: 50px 0; }
.section-padding-sm { padding: 30px 0; }
.bg-light-custom { background: var(--bg-light); }
.text-primary-custom { color: var(--primary) !important; }
.fw-800 { font-weight: 800; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245,166,35,.4);
  transition: all var(--transition);
  z-index: 999;
}

.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-2px); }
