/* ==========================================================================
   EGELİ HIRDAVAT - RESPONSIVE & MOBİL STİLLERİ
   ========================================================================== */

/* Mobil Menü Butonu & Mobil Header Bileşenleri */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--navy-dark);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
}

/* Mobil Alt Sabit Gezinme Çubuğu (Bottom Navigation Bar) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
  z-index: 1500;
  padding: 6px 12px;
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--navy-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  position: relative;
  transition: var(--transition);
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--primary-blue);
}

.mobile-nav-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-nav-badge {
  position: absolute;
  top: 0px;
  right: 8px;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobil Off-Canvas Menü Çekmecesi */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2020;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #ffffff;
  z-index: 2021;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--navy-dark);
  color: #ffffff;
}

.mobile-drawer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
}

.mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-list {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.mobile-menu-item {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.mobile-menu-link:hover {
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
}

.mobile-sub-list {
  background: var(--bg-page);
  padding: 8px 0;
  display: none;
}

.mobile-menu-item.open .mobile-sub-list {
  display: block;
}

.mobile-menu-item.open .mobile-menu-link svg {
  transform: rotate(180deg);
}

.mobile-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 32px;
  font-size: 0.88rem;
  color: var(--navy-muted);
}

.mobile-sub-link:hover {
  color: var(--primary-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Media Queries (Masaüstü, Tablet, Mobil)
   -------------------------------------------------------------------------- */

/* 1200px altı (Küçük Masaüstü / Geniş Tablet) */
@media (max-width: 1200px) {
  .theme-banners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .showcase-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .product-slider-track .product-card {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
    min-width: calc((100% - 16px) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* 992px altı (Tablet & Mobil Ekranlar) */
@media (max-width: 992px) {
  .top-bar-links {
    display: none;
  }

  .top-bar .container {
    justify-content: center;
  }

  .top-bar-contacts {
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
  }

  .main-nav {
    display: none; /* Masaüstü menü gizlenir, mobil çekmece açılır */
  }

  .main-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 8px 12px;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 1;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
  }

  .header-logo {
    order: 2;
    margin-right: auto;
    gap: 10px;
    flex-shrink: 0;
  }

  .header-logo .brand-emblem {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .header-logo .brand-emblem svg {
    width: 26px;
    height: 26px;
  }

  .header-logo .brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
  }

  .header-logo .brand-subtitle {
    font-size: 0.74rem;
    font-weight: 600;
    display: block;
  }

  .header-actions {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .action-btn {
    padding: 6px 8px;
    gap: 6px;
  }

  .action-text {
    display: none; /* Mobilde sadece ikonlar + rozetler görünür, tek sıraya sığar */
  }

  .header-search {
    order: 4;
    max-width: 100%;
    width: 100%;
    flex: 0 0 100%;
    margin-top: 6px;
  }

  .hero-slider img {
    height: 280px;
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .showcase-side-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
  }

  .side-banner-img {
    display: none !important;
  }

  .side-banner-btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-grid {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form-box {
    width: 100%;
  }

  .mobile-bottom-nav {
    display: block;
  }

  body {
    padding-bottom: 60px; /* Mobil alt bar için boşluk */
  }

  .floating-actions {
    bottom: 74px; /* Alt barın üstüne kaydır */
  }
}

/* 768px altı (Telefon Ekranları) */
@media (max-width: 768px) {
  .theme-banners-grid {
    grid-template-columns: 1fr;
  }

  .category-badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-slider-wrapper {
    overflow: hidden !important;
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .product-slider-track {
    display: flex;
    width: 100% !important;
    gap: 16px;
    box-sizing: border-box;
  }

  .product-slider-track .product-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
  }

  .product-card .product-quick-actions {
    opacity: 1;
    transform: none;
  }

  .showcase-slider-arrow {
    width: 34px;
    height: 34px;
    opacity: 0.95;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .quick-view-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .quick-view-gallery {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
  }

  .quick-view-info {
    padding: 20px;
  }

  .hero-slider img {
    height: 200px;
  }
}

/* 480px altı (Küçük Telefonlar) */
@media (max-width: 480px) {
  .main-header .container {
    padding: 8px 10px;
    gap: 6px 8px;
  }

  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .header-logo {
    gap: 8px;
  }

  .header-logo .brand-emblem {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .header-logo .brand-emblem svg {
    width: 24px;
    height: 24px;
  }

  .header-logo .brand-title {
    font-size: 1.25rem;
    font-weight: 800;
  }

  .header-logo .brand-subtitle {
    font-size: 0.66rem;
    display: block;
  }

  .header-actions {
    gap: 4px;
  }

  .action-btn {
    padding: 4px 6px;
    border-radius: var(--radius-sm);
  }

  .action-icon {
    width: 28px;
    height: 28px;
  }

  .header-search {
    margin-top: 2px;
  }

  .search-input {
    height: 40px;
    font-size: 0.84rem;
  }

  .category-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-banner-card {
    padding: 16px;
  }

  .promo-banner-title {
    font-size: 1.1rem;
  }

  .promo-banner-img {
    width: 100px;
    height: 90px;
  }

  /* Kategori Sayfası 2'li Ürün Düzeni */
  .category-products-grid {
    gap: 10px !important;
  }

  .category-products-grid .product-card {
    padding: 10px;
  }

  .category-products-grid .product-image-box {
    height: 120px;
    margin-bottom: 8px;
  }

  .category-products-grid .product-title {
    font-size: 0.82rem;
    height: 32px;
    margin-bottom: 6px;
  }

  .category-products-grid .price-current {
    font-size: 0.95rem;
  }

  .category-products-grid .price-old {
    font-size: 0.75rem;
  }
}

/* =========================================================================
   ALT SAYFALAR (KATEGORİ, ÜRÜN DETAY, İLETİŞİM, HAKKIMIZDA) RESPONSIVE DÜZEN
   ========================================================================= */
@media (max-width: 992px) {
  .category-main-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .category-main-layout aside {
    display: none !important;
  }

  .category-main-layout main {
    width: 100% !important;
    min-width: 0 !important;
  }

  .category-products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .category-products-grid .product-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 12px 10px !important;
    box-sizing: border-box !important;
  }

  .category-products-grid .product-image-box {
    height: 130px !important;
  }

  .product-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-grid-layout,
  .about-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  aside {
    display: none;
  }
}

