/* mobile.css: Mobile-friendly overrides for main.css (max-width: 720px) */

@media only screen and (max-width: 720px) {
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff0dc;
    font-size: 1rem;
    line-height: 1.5;
    overflow-y: auto;
  }

  header {
    height: 60px;
    flex-direction: row;
    padding: 0;
    font-size: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
  }

  header .logo {
    width: 90px;
    height: 60px;
  }

  header .logo img {
    width: 80px;
    height: 40px;
  }

  header .bars {
    flex: 1;
    flex-direction: column;
  }

  header .bars .top-bar {
    height: 30px;
    padding: 5px 15px;
    font-size: 0.95rem;
    justify-content: flex-end;
  }

  header .bars .top-bar a {
    font-size: 0.95rem;
    margin-right: 8px;
  }

  header .bars .top-bar a img {
    height: 16px;
  }

  header .bars .bottom-bar {
    height: 30px;
    justify-content: center;
    padding: 0 15px;
  }

  header .bars .bottom-bar a {
    font-size: 1rem;
    margin: 6px 10px;
    left: -15px;;
    padding: 0;
  }
  
  header .bars .bottom-bar img {
    height: 22px;
    width: 22px;
    right: 20px;
  }

  header .bars .bottom-bar .submenu {
    width: 90%;
    transform: translateX(calc(-50% - 45px)); /* move to center of screen */
    height: 150px;
    border-radius: 10px;
    padding: 8px;
    font-size: 1rem;
  }

  header .bars .bottom-bar .menu {
    border-radius: 10px;
    padding: 8px;
    font-size: 1rem;
  }

  header .bars .bottom-bar .submenu img {
    width: 113px;
    height: 150px;
    margin-right: 8px;
  }

  header .bars .bottom-bar .submenu .submenu-links a {
    font-size: 0.8rem;
  }

  header .bars .bottom-bar .submenu .submenu-links a:hover {
    color: #00e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }

  header .bars .bottom-bar .menu .mainmenu-links a {
    font-size: 0.8rem;
    padding: 2px 0;
  }

  .header-spacing {
    min-height: 60px;
  }

  main {
    padding: 0;
  }

  main.home {
    flex-direction: column;
    height: auto;
    padding: 0 15px;
    gap: 0;
  }

  main.home .blurb {
    width: auto;
    padding: 0px;
    text-align: center;
  }

  main.home .box-container {
    flex-direction: column;
    gap: 10px;
    padding: 0 0 15px 0;
  }

  main.home .box {
    width: 80%;
    align-self: center;
    border-radius: 15px;
    padding: 8px;
    margin-bottom: 10px;
  }

  main.home .box img {
    max-width: 100%;
    max-height: 120px;
  }

  main.content {
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  main.content .left {
    border-right: none;
    padding: 8px;
    gap: 8px;
  }

  main.content .left .content-header .view {
    display: none;
  }

  main.content .left .tile-view {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  main.content .left .list-view {
    gap: 6px;
  }

  main.content .left .itembox {
    border-radius: 8px;
    padding: 6px;
    font-size: 0.95rem;
  }

  main.content .left .list-view .itembox .description {
    font-size: 0.8rem;
  }

  main.content .right {
      display: none;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100vw;
      height: calc(100vh - 60px);
      background: #fff0dc;
      z-index: 1000;
      max-width: 100vw;
      padding: 8px 0 0 0;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
      overflow-y: auto;
    }

  main.content .right.show {
      display: block;
    }

  .close-pane-btn {
      display: block;
      position: absolute;
      top: 10px;
      right: 15px;
      background: #f00;
      color: #fff;
      border: none;
      border-radius: 20px;
      padding: 8px 16px;
      font-size: 1.1em;
      z-index: 1100;
      cursor: pointer;
    }

  .item-detail {
    border-radius: 10px;
    padding: 8px;
    gap: 10px;
    margin-top: 10px;
  }

  .item-detail .promo-bar {
    gap: 10px;
  }

  .item-detail .promo-bar img {
    max-width: 50%;
    height: auto;
    margin-bottom: 8px;
  }

  .item-detail .promo-bar .buy-info .price {
    font-size: 1.5em;
  }

  .item-detail .promo-bar .buy-info button {
    width: 100%;
    font-size: 1em;
    padding: 10px;
  }

  .item-detail .description-bar h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  footer {
    min-height: 30px;
    max-height: 30px;
    font-size: 0.95rem;
    padding: 0 8px;
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-spacing {
    min-height: 30px;
    max-height: 30px;
  }

  footer p {
    font-size: 0.9rem;
    margin: 5px;
  }

  footer a {
    margin-right: 8px;
  }

  h1 {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  h2 {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  h5 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  p {
    font-size: 0.95rem;
    padding: 0 4px;
    margin-bottom: 10px;
    text-align: left;
  }
  
  main.info .infoheader {
    width: auto;
  }

  main.info .infomenu {
    padding: 0 5px; /* Prevent overlap with arrows */
  }

  /* Infomenu items */
  .infomenu .infomenu-link {
    margin: 0 5px;
    padding: 100px;
  }

  /* Navigation arrows */
  .infomenu-arrow {
    top: 178px;
  }

  .infomenu-arrow.left {
    left: calc(10% - 40px); /* Position the left arrow just outside the infomenu */
  }

  .infomenu-arrow.right {
    right: calc(10% - 40px); /* Position the right arrow just outside the infomenu */
  }

  main.info .infomenu .infomenu-title {
    font-size: 0.9rem;
    padding: 5px 5px;
    margin: 0 10px;
  }

  main.info .infomenu .infomenu-btn {
    font-size: 0.9rem;
    padding: 5px 5px;
    margin: 0 10px;
  }

  main.info .infomenu .infomenu-link {
    font-size: 0.9rem;
    padding: 5px 5px;
    margin: 0 10px;
  }

  video {
    border-radius: 10px;
  }

  /* Hide desktop-only elements */
  .desktop-only {
    display: none !important;
  }
  
  /* Show mobile-only elements */
  .mobile-only {
    display: block !important;
  }

}
