/* Appily twentyeight — global mobile responsive */

@media (max-width: 768px) {
  .container {
    width: min(var(--a28-container), calc(100% - 1.75rem));
  }
}

@media (max-width: 480px) {
  .container {
    width: min(var(--a28-container), calc(100% - 1.25rem));
  }

  body.a28-store {
    font-size: 14px;
  }
}

/* Page bands & headings */
@media (max-width: 640px) {
  .a28-page-band {
    padding: 1.35rem 0 1rem;
  }

  .a28-page-band h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    letter-spacing: 0.08em;
  }

  .a28-breadcrumb {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }
}

/* Shop */
@media (max-width: 900px) {
  .a28-shop-layout {
    padding: 1.5rem 0 2.5rem;
    gap: 1.25rem;
  }

  .a28-shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .a28-view-toggle {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .a28-filter-panel {
    padding: 1rem;
  }

  .a28-filter-nav a {
    padding: 0.65rem 0;
    font-size: 0.85rem;
  }
}

/* Product detail */
@media (max-width: 640px) {
  .page-product .a28-product-detail {
    padding: 1.5rem 0 2.5rem;
  }

  .page-product .a28-product-info h1 {
    font-size: clamp(1.35rem, 5vw, 1.65rem);
  }

  .page-product .buy-form {
    flex-direction: column;
    align-items: stretch !important;
  }

  .page-product .buy-form select,
  .page-product .buy-form .a28-btn,
  .page-product .buy-form .a28-icon-btn {
    width: 100%;
    min-height: 44px;
  }

  .page-product .buy-form .a28-icon-btn {
    width: 100%;
    height: auto;
  }
}

/* About */
@media (max-width: 640px) {
  .a28-about-registry dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .a28-about-registry dt {
    margin-top: 0.65rem;
  }

  .a28-about-actions {
    flex-direction: column;
  }

  .a28-about-actions .a28-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Buttons & touch targets */
@media (max-width: 640px) {
  .a28-btn {
    min-height: 44px;
  }

  .a28-scroll-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* Policy pages */
@media (max-width: 640px) {
  .policy-page,
  .policy-doc,
  .policy-wrap,
  .policy-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .policy-content table,
  .policy-detail table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Auth / store chrome (legacy account gate on some flows) */
@media (max-width: 900px) {
  .auth-split-panels {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }

  .auth-split-panel {
    padding: 28px 20px !important;
  }
}

/* TS page containers — align with a28 container token */
@media (max-width: 640px) {
  :root {
    --container: var(--a28-container);
  }
}
