#menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  #menu-toggle {
    display: inline-block;
  }
  .topbar .search-bar {
    display: none;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 0 1rem 1.5rem;
    gap: 1.25rem;
  }

  /* MAIN CONTENT (ambil dari feat/mobile-responsive) */
  .main-content {
    margin: 0;
  }

  body {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .main-content section {
    margin-bottom: 1.75rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-right: 0;
  }

  .page-header .header-left p {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .sort-toggle-btn {
    width: 100%;
    justify-content: space-between;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(-110%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
  }

  .sidebar.mobile-active {
    transform: translateX(0);
    padding-top: 6rem;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card-summary {
    margin: 0;
  }

  .product-title {
    font-size: 1rem;
    line-height: 1.4;
  }

  .price {
    font-size: 0.9rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  .page-header h1 {
    font-size: 1.2rem;
  }

  .cart-layout {
    flex-direction: column;
  }

  .cart-items-container {
    margin-bottom: 2rem;
  }

  .cart-item-product {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .my-account .page-title,
  .order-history .page-title {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .account-layout {
    flex-direction: column;
  }

  .hero-slider {
    aspect-ratio: 4 / 3;
  }

  .hero-content {
    padding: 1.5rem 1.25rem;
  }

  .hero-section .container > .container {
    padding: 1.25rem 0 !important;
  }

  .promo-section {
    margin-bottom: 1.5rem;
  }

  .news-grid {
    margin: 1.25rem 0;
    gap: 1.25rem;
  }

  .news-section .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .news-card-content {
    padding: 0.9rem 1rem;
  }

  .site-footer {
    padding: 1.5rem 0 1.25rem;
  }

  .footer-inner {
    padding: 0 1.25rem;
    gap: 1.5rem;
  }

  .product-detail-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    text-align: left;
  }

  .product-detail-img {
    flex: 1 1 auto;
    max-width: 100%;
    margin: 0;
  }

  .product-detail-info {
    flex: 1 1 auto;
  }

  .product-detail-info .badge-category {
    margin: 0;
  }

  .product-detail-title {
    font-size: 1.2rem;
  }

  .product-detail-price {
    font-size: 1.05rem;
  }

  .product-detail-desc-short {
    font-size: 0.85rem;
    line-height: 1.5;
  }


  .related-products .products-grid {
    grid-template-columns: 1fr;
    display: flex;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    gap: 1rem;
  }

  .related-products .product-card {
    width: 160px; /* Samakan dengan ukuran di index.html */
    flex-shrink: 0;
  }

  .related-products .products-grid::-webkit-scrollbar {
    display: none;
  }
}

/* Sprint 3 catalog mobile contract: single-column product cards. */
.product-toolbar {
  grid-template-columns: 1fr;
}

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