/* ============================================
   BIYOLINE MEDIKAL - RESPONSIVE STILLER
   ============================================ */

/* ---------- TABLET (768px - 1199px) ---------- */
@media (max-width: 1199px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 24px;
  }

  .hero {
    height: 100vh;
    min-height: 500px;
    max-height: 800px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .about-preview-grid {
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

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

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

  .mega-menu {
    min-width: 520px;
  }

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

  .products-layout {
    grid-template-columns: 220px 1fr;
    gap: 30px;
  }

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

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

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

  .mission-vision {
    grid-template-columns: 1fr;
  }

  /* Product Detail - Tablet */
  .product-hero-inner {
    gap: 40px;
  }

  .product-hero-title {
    font-size: 2.2rem;
  }

  .product-hero-image img {
    max-height: 320px;
  }

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

  .product-showcase-inner {
    gap: 40px;
  }

  .product-showcase-title {
    font-size: 1.7rem;
  }

  .product-showcase-image img {
    max-height: 340px;
  }
}

/* ---------- MOBILE (max-width: 767px) ---------- */
@media (max-width: 767px) {
  :root {
    --header-height: 64px;
    --section-padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Topbar */
  .topbar {
    display: none;
  }

  /* Header */
  .header {
    height: var(--header-height);
  }

  .logo img {
    height: 36px;
  }

  .logo-text .brand {
    font-size: 1.1rem;
  }

  .logo-text .tagline {
    font-size: 0.6rem;
  }

  /* Mobile Navigation */
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 999;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    height: auto;
    justify-content: space-between;
  }

  .nav-link::after {
    display: none;
  }

  .mega-menu,
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    min-width: unset;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .nav-item.open .mega-menu,
  .nav-item.open .dropdown {
    max-height: 500px;
    padding: 10px 16px 16px;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  /* Hero */
  .hero {
    height: 100vh;
    min-height: 450px;
    max-height: 700px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-arrows {
    display: none;
  }

  /* Categories */
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
  }

  .category-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  /* About Preview */
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-preview-image img {
    height: 280px;
  }

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

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Brands */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .brand-item {
    height: 80px;
    padding: 16px;
  }

  /* News */
  .news-grid,
  .news-page-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta .section-title {
    font-size: 1.5rem;
  }

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

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

  /* Products Page */
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

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

  /* About Page */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Contact */
  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Page Banner */
  .page-banner h1 {
    font-size: 1.8rem;
  }

  /* Product Detail - Mobile */
  .product-hero {
    padding: 20px 0 40px;
  }

  .product-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .product-hero-content {
    order: 1;
  }

  .product-hero-image {
    order: 0;
  }

  .product-hero-image img {
    max-height: 240px;
  }

  .product-hero-title {
    font-size: 1.8rem;
  }

  .product-hero-desc {
    max-width: 100%;
  }

  .product-hero .breadcrumb {
    justify-content: center;
  }

  /* Product Showcase - Mobile */
  .product-showcase {
    padding: 50px 0;
  }

  .product-showcase-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .product-showcase.reverse .product-showcase-inner {
    direction: ltr;
  }

  .product-showcase-icon {
    margin: 0 auto 16px;
  }

  .product-showcase-image {
    order: -1;
  }

  .product-showcase-image img {
    max-height: 260px;
  }

  .product-showcase-title {
    font-size: 1.5rem;
  }

  .product-showcase-features li {
    text-align: left;
  }

  .product-description {
    padding: 50px 0 40px;
  }

  .product-specs-grid {
    grid-template-columns: 1fr;
  }

  .product-specs-section {
    padding: 40px 0 60px;
  }

  .product-features-section {
    padding: 50px 0;
  }

  .feature-row {
    gap: 16px;
    padding: 18px 0;
  }

  .feature-row-number {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  /* Scroll Top */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- SMALL MOBILE (max-width: 479px) ---------- */
@media (max-width: 479px) {
  .hero {
    height: 100vh;
    min-height: 400px;
    max-height: 650px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-tag {
    font-size: 0.75rem;
  }

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

  .stat-number {
    font-size: 1.6rem;
  }

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

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Product Detail - Small Mobile */
  .product-hero {
    padding: 16px 0 30px;
  }

  .product-hero-title {
    font-size: 1.5rem;
  }

  .product-hero-image img {
    max-height: 180px;
  }

  .product-description-text h2 {
    font-size: 1.4rem;
  }

  .product-showcase-image img {
    max-height: 200px;
  }

  .product-showcase-title {
    font-size: 1.3rem;
  }
}
