/* Appily Thirtyfour — global responsive overrides */

@media (max-width: 1100px) {
  .a34-footer-grid { grid-template-columns: 1fr 1fr; }
  .a34-product-row { grid-template-columns: repeat(3, 1fr); }
  .a34-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .a34-duo-grid { grid-template-columns: 1fr; }
  .a34-hero-slide-inner { grid-template-columns: 1fr; text-align: center; }
  .a34-organic-inner { grid-template-columns: 1fr; text-align: center; }
  .a34-contact-blocks { display: none; }
  .a34-nav-promo { display: none; }
  .catalog-layout,
  .product-layout,
  .dual,
  .contact-grid,
  .checkout-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .summary-box,
  .filter-panel {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  .container { width: min(1280px, 92vw); }

  /* Announcement strip */
  .a34-strip-inner {
    justify-content: center;
    text-align: center;
    padding: 0.4rem 0;
  }
  .a34-strip-inner span { display: none; }
  .a34-strip-inner p { font-size: 0.75rem; }

  /* Header — burger + compact utils */
  .a34-header-top {
    grid-template-columns: 1fr auto auto auto;
    gap: 0.5rem;
    padding: 0.65rem 0;
    align-items: center;
  }
  .a34-search { display: none; }
  .a34-contact-blocks { display: none; }
  .a34-header-mobile-utils { display: flex; }
  .a34-menu-toggle { display: flex; }

  /* Hide desktop navbar on mobile — drawer is primary nav */
  .a34-navbar { display: none; }

  /* Homepage */
  .a34-hero-slide { padding: 1.75rem 0 2rem; }
  .a34-hero-copy p { font-size: 0.92rem; }
  .a34-hero-visual img { max-height: 220px; }
  .a34-hero-badge { width: 72px; height: 72px; font-size: 0.48rem; }
  .a34-hero-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
  .a34-duo-card {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 1.25rem;
  }
  .a34-duo-card img { justify-self: center; max-height: 100px; }
  .a34-cat-rail { grid-template-columns: repeat(2, 1fr); }
  .a34-product-row { grid-template-columns: repeat(2, 1fr); }
  .a34-organic-inner img { max-height: 160px; }
  .a34-tab-head { flex-direction: column; align-items: flex-start; }
  .a34-tab-labels { flex-wrap: wrap; width: 100%; }
  .section { padding: 2rem 0; }

  /* Shared page layouts */
  .page-panel { padding: 1.25rem 0 2.5rem; }
  .panel { padding: 1.15rem; }
  .panel-lg { padding: 1.25rem; }
  .dual { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  .action-row { flex-direction: column; }
  .action-row .btn { width: 100%; text-align: center; }

  /* Tables scroll on small screens */
  .a34-topo-table,
  .a34-marquee-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Footer & newsletter */
  .a34-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .a34-footer-base {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .a34-newsletter-inner {
    flex-direction: column;
    text-align: center;
  }
  .a34-newsletter-form {
    width: 100%;
    max-width: none;
    flex-direction: column;
  }
  .a34-newsletter-form button { width: 100%; padding: 0.75rem; }
  .a34-trust-grid { grid-template-columns: 1fr; }

  /* Page-specific hero padding */
  [class*="a34-"][class*="-hero"],
  [class*="a34-"][class*="-marquee"],
  [class*="a34-"][class*="-sign"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* Full-width buttons in custom page footers */
  [class*="a34-"][class*="-foot"] .btn,
  [class*="a34-"][class*="-actions"] .btn,
  [class*="a34-"][class*="-foot"] {
    flex-direction: column;
  }
  [class*="a34-"][class*="-foot"] .btn,
  [class*="a34-"][class*="-actions"] .btn {
    width: 100%;
    text-align: center;
  }

  /* Status / gateway pages */
  .checkout-layout .dual { grid-template-columns: 1fr; }
  .status-card { padding: 1.5rem 1.15rem; }
  .gateway-page { padding: 1rem; }
}

@media (max-width: 640px) {
  .a34-brand-word { font-size: 1.2rem; }
  .a34-brand-leaf { width: 22px; height: 22px; }
  .a34-mobile-util,
  .a34-menu-toggle { width: 38px; height: 38px; }

  .a34-product-row { grid-template-columns: 1fr; }
  .a34-cat-rail { grid-template-columns: 1fr; }

  /* Honeycomb catalog — remove stagger on small phones */
  .a34-comb-grid .a34-comb-cell:nth-child(even) {
    transform: none;
  }
  .a34-comb-grid .a34-comb-cell:nth-child(even):hover {
    transform: translateY(-4px);
  }

  /* Mobile nav grid single column on very narrow */
  .a34-mobile-nav-grid {
    grid-template-columns: 1fr;
  }
  .a34-mobile-quick {
    grid-template-columns: 1fr;
  }
  .a34-mobile-quick-btn {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.65rem 0.85rem;
    text-align: left;
  }
  .a34-mobile-cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container { width: min(1280px, 94vw); }
  .a34-strip { display: none; }
  .a34-header-top { padding: 0.55rem 0; }

  /* Stack table rows on policy / registry pages */
  .a34-topo-table th,
  .a34-topo-table td {
    display: block;
    width: 100%;
  }
  .a34-topo-table th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a34-mobile-panel,
  .a34-mobile-backdrop,
  .a34-menu-bar {
    transition: none;
  }
}
