/* Layar Digital responsive hardening for the exported GayaStore demo. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
section,
footer,
header,
.container-gs {
  min-width: 0;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  main {
    overflow-x: hidden;
  }
}

.container-gs {
  width: 100%;
  max-width: min(1280px, 100%);
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

header[style] > div[style] {
  width: 100%;
  max-width: min(1240px, calc(100vw - 24px)) !important;
  gap: clamp(8px, 2vw, 20px) !important;
  padding-left: clamp(12px, 3vw, 20px) !important;
  padding-right: clamp(12px, 3vw, 20px) !important;
}

section[style*="background:#0A0A0A"][style*="overflow:hidden"]
  > div[style*="border-radius:50%"][style*="position:absolute"] {
  display: none !important;
}

@media (max-width: 1024px) {
  .value-grid,
  .category-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  footer [style*="grid-template-columns"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .container-gs {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .section-pad {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .value-grid,
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .testimonial-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .product-card,
  .card {
    width: 100%;
    max-width: 100%;
  }

  section[aria-label="Hero banner"] {
    min-height: auto !important;
  }

  section[aria-label="Hero banner"] > div[style*="padding-left"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  header[style] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  header[style] > div[style] {
    max-width: calc(100vw - 20px) !important;
  }

  footer [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  footer [style*="justify-content:flex-end"],
  footer [style*="justifyContent:flex-end"] {
    justify-content: flex-start !important;
  }

  footer img[alt="Visa"],
  footer img[alt="Mastercard"],
  footer img[alt="QRIS"],
  footer img[alt="GoPay"],
  footer img[alt="OVO"],
  footer img[alt="DANA"] {
    max-width: 58px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .wa-float {
    right: 16px !important;
    bottom: 76px !important;
  }
}

@media (max-width: 420px) {
  section[style*="background:#0A0A0A"] form.flex {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  section[style*="background:#0A0A0A"] form.flex .btn,
  section[style*="background:#0A0A0A"] form.flex button {
    width: 100% !important;
    flex-shrink: 1 !important;
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .product-grid,
  .category-grid {
    gap: 12px !important;
  }

  .product-card h3,
  .product-card p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 374px) {
  .product-grid,
  .category-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
