@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --legacy-fixed-header-offset: 190px;
  }

  :root {
    --page-width: calc(100% - 40px);
  }

  body {
    padding-top: 120px;
  }

  .section {
    margin-top: 36px;
    margin-bottom: 36px;
  }

  h1 {
    font-size: clamp(2.2rem, 4.8vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 3.8vw, 2.2rem);
  }

  .header {
    position: fixed;
    top: 12px;
    left: 50%;
    z-index: 1000;
    margin-top: 0;
    margin-bottom: 0;
    gap: 12px;
    padding: 10px 14px;
    transform: translateX(-50%);
  }

  .logo img {
    width: 78px;
  }

  .logo span {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }

  .menu-toggle {
    display: inline-grid;
    width: 74px;
    height: 74px;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 184, 228, 0.28);
    background:
      radial-gradient(circle at center, rgba(255, 20, 147, 0.14), rgba(20, 0, 16, 0.78) 68%),
      rgba(255, 255, 255, 0.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 12px 28px rgba(0, 0, 0, 0.28),
      0 0 22px rgba(255, 20, 147, 0.18);
  }

  .menu-toggle img {
    width: 100%;
    height: 100%;
    transform: scale(1.26);
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 16px;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: rgba(10, 0, 12, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.94rem;
  }

  .nav a.active::after {
    display: none;
  }

  .page-banner {
    margin-bottom: 24px;
    border-radius: 26px;
  }

  .page-banner img {
    height: 300px;
  }

  .hero,
  .featured-product,
  .contact-form-layout,
  .cart-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero--with-aside {
    text-align: center;
    justify-items: center;
  }

  .hero--with-aside .hero-content {
    margin: 0 auto;
  }

  .hero--with-aside .hero-buttons {
    justify-content: center;
  }

  .hero-buttons,
  .product-buttons,
  .template-actions,
  .template-version-actions,
  .button-row {
    gap: 10px;
  }

  .sale-card,
  .opening-sale-card {
    max-width: 430px;
  }

  .hero {
    gap: 26px;
  }

  .card-grid,
  .card-grid--three,
  .card-grid--four,
  .detail-grid,
  .achievement-grid,
  .homepage-templates-grid,
  .launch-grid,
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .trust-chip {
    min-height: 74px;
    padding: 14px;
  }

  .template-mini-card img {
    height: 250px;
  }

  .template-mini-body {
    min-width: 0;
  }

  .template-mini-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .comparison-headings,
  .comparison-row {
    gap: 10px;
  }

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

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

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

  .about-contact-grid {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: 20px;
  }

  .contact-request-card,
  .contact-side-card,
  .form-helper-box,
  .cart-item-content,
  .cart-checkout-card,
  .success-card,
  .download-box {
    padding: 24px;
  }

  .template-family-summary {
    max-width: 760px;
    text-align: center;
  }

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

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

  .template-version-card {
    grid-template-columns: 44% minmax(0, 1fr);
    gap: 8px;
  }

  .template-version-media {
    max-height: 244px;
  }

  .featured-template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 820px;
  }

  .featured-template-card .template-version-media {
    max-height: 420px;
  }

  .template-version-actions .btn {
    width: min(170px, 100%);
  }

  .template-section-jumps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .template-section-jump {
    min-width: 0;
    text-align: center;
    white-space: normal;
  }

  .form-row--three,
  .choice-grid--tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cart-product-visual,
  .cart-product-visual img,
  .cart-image-fallback {
    min-height: 240px;
  }

  .cart-info-grid {
    grid-template-columns: 1fr;
  }

  .intake-success-grid {
    grid-template-columns: 1fr;
  }

  .contact-side-card,
  .cart-checkout-card {
    position: static;
  }

  .success-actions .btn,
  .site-footer .btn {
    min-width: 0;
  }

  .pricing-row {
    grid-template-columns: minmax(0, 1.2fr) 160px minmax(0, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .homepage-templates-grid,
  .template-collection-grid {
    grid-template-columns: 1fr;
  }

  .homepage-templates-grid {
    max-width: 560px;
    margin: 0 auto;
  }

  .template-mini-card img {
    height: 320px;
  }

  .pricing-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

@media (max-width: 900px) {

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

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

  .store-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

}
/* Keep headers pinned on tablet without adding store-page gaps */
@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --legacy-fixed-header-offset: 190px;
  }

  body.store-page {
    padding-top: 0;
  }

  .store-header {
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  .header {
    position: fixed;
    top: 0;
    z-index: 3000;
  }
}
/* Final tablet sticky navigation spacing */
@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --legacy-fixed-header-offset: 190px;
  }

  html {
    scroll-padding-top: var(--legacy-fixed-header-offset, 190px);
  }

  body:not(.store-page) {
    padding-top: 104px;
  }

  body.store-page {
    padding-top: 0;
  }

  .store-header,
  .header {
    top: 0;
    z-index: 10000;
  }

  .store-header {
    position: sticky;
  }

  .header {
    position: fixed;
  }

  .store-nav,
  .nav {
    z-index: 10001;
  }

  .nav {
    top: calc(100% + 8px);
    max-height: calc(100vh - 92px);
  }
}
/* Final fixed header visibility guard */
@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --legacy-fixed-header-offset: 190px;
  }

  html {
    scroll-padding-top: var(--legacy-fixed-header-offset, 190px);
  }

  body.store-page {
    padding-top: var(--store-fixed-header-offset, 76px);
  }

  body:not(.store-page) {
    padding-top: var(--legacy-fixed-header-offset, 190px);
  }

  body.store-page > .store-header {
    position: fixed;
    top: 0;
    z-index: 20000;
  }

  .header {
    position: fixed;
    top: 0;
    z-index: 20000;
  }

  .store-nav,
  .nav {
    z-index: 20001;
  }
}
