﻿@media (max-width: 1200px) {
  .header-inner {
    grid-template-columns: 1fr minmax(240px, 1fr) 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .modal-body {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr minmax(200px, 1fr) auto;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .categories-panel {
    right: 4vw;
    width: min(360px, 90vw);
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

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

  .modal-body {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .logo-image {
    height: 24px;
    max-width: 68vw;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-actions,
  .categories-panel {
    display: none;
  }

  .mobile-menu {
    right: 4vw;
    width: min(92vw, 360px);
    max-height: 70vh;
    overflow: hidden;
  }

  .mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 38vh;
    overflow: auto;
    padding-right: 4px;
  }

  .mobile-categories .category-link {
    font-size: 11px;
    padding: 8px 10px;
    line-height: 1.2;
  }

  .hero {
    min-height: 100vh;
  }

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

  .slide-content {
    padding: 22px;
  }

  .carousel {
    height: 100vh;
  }
}
