@media (max-width: 420px) {
  .btn.customize {
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
}

@media (max-width: 899px) {
  .nav {
    display: none !important;
  }

  /* Mobile fixed side arrow buttons (match reference screenshot) */
  .controls {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0px;
    margin: 0 !important;
    gap: calc(100vw - 150px);
    pointer-events: none;
    /* allow slider taps except on buttons */
    z-index: 3200;
  }

  .controls .btn {
    pointer-events: auto;
    width: 2px;
    height: 110px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 2.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .controls .btn:active {
    transform: scale(0.98);
  }
}

@media (max-width: 767px) {
  .btn.customize {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom, 0));
    /* above safe area */
    transform: translateX(-50%);
    width: calc(70% - 36px);
    /* comfortable full-width with side margins */
    max-width: 420px;
    border-radius: 12px;
    padding: 12px 18px;
    z-index: 4000;
    box-shadow: 0 10px 30px rgba(6, 6, 6, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  }

  .gallery-center {
    position: fixed;
    left: 50%;
    bottom: calc(84px + env(safe-area-inset-bottom, 0));
    transform: translateX(-50%);
    margin: 0;
    width: calc(70% - 36px);
    max-width: 420px;
    z-index: 3900;
  }

  .gallery-center .btn.gallery {
    width: 100%;
    min-width: 0;
  }

  /* ensure page content isn't obscured by the fixed button */
  .container {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0));
  }
}

@media (max-width: 767px) {
  .hydra {
    position: relative;
    top: clamp(230px, 35vh, 340px);
  }
}

@media (max-width: 767px) {
  #product-price {
    font-size: 32px;
    display: inline-block;
    margin-top: 12px;
  }
}
