@media (max-width: 900px) {

  :root {
  --cart-rail-collapsed-width: 88px;
  --page-bg-color: #23201d;
  --page-bg-pattern: url("/assets/graphics/dots.png");
}
  body{
    padding-top: 60px;
    padding-right: 0;
    background-color: var(--page-bg-color);
  }

  html{
    width: 100vw;
  }

  /* hide desktop nav */
  .nav{
    display: none;
  }

  .mobile-nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #2D2B24;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
    z-index: 180;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
  }

  .mobile-nav__logo{
    display: flex;
    justify-content: center;
  }

  .mobile-nav__logo img{
    height: 32px;
  }

  .mobile-nav__icon-btn{
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: relative;
  }

  .mobile-nav__icon{
    width: 28px;
    height: 28px;
  }

  .cart-count-badge{
    position: absolute;
    bottom: 2px;
    right: 4px;
    background: #da812b;
    color: #1f1e19;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 800;
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .cart-count-badge.is-hidden{
    display: none;
  }

  /* hide desktop rail state; use bottom sheet */
  .cart-rail__collapsed{
    display: none;
  }

  .cart-rail{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100vw;
    height: 80vh;
    transform: translateY(100%);
    transition: transform 200ms ease-out;
    z-index: 9950;
    flex-direction: column;
    box-shadow: 0 -10px 20px rgba(0,0,0,0.45);
border-radius:var(--drawer-header-radius);
    overflow: hidden;
  }

  .cart-rail__expanded{
    width: 100%;
    max-width: 100%;
    flex: 1;
  }

  .cart-rail__header{
    cursor: grab;
    touch-action: none;
    justify-content: space-between;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
    }

  .cart-rail__header:active{
    cursor: grabbing;
  }

  .cart-rail__scroll{
    flex: 1;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
  }

  .cart-rail__footer{
    position: sticky;
    bottom: 0;
    background: #3a382f;
    z-index: 2;
  }

  body.cart-open .cart-rail{
    transform: translateY(0);
  }

  .cart-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
    z-index: 200;
  }

  body.cart-open .cart-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  body.cart-open{
    overflow: hidden;
    height: 100vh;
    width: 100vw;
  }

  /* mobile menu drawer */
  .menu-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease-out;
    z-index: 210;
  }

  body.menu-open .menu-overlay{
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 50vh;
    max-height: 400px;
    background: var(--drawer-bg);
  border: none;
  box-shadow: var(--drawer-shadow);
    transform: translateY(100%);
    transition: transform 220ms ease, opacity 180ms ease;
    z-index: 220;
     border-radius: var(--drawer-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  body.menu-open .mobile-menu{
    transform: translateY(0);
  }

  .mobile-menu__header{
    display: flex;
    border-radius: var(--drawer-header-radius);
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
    cursor: grab;
    touch-action: none;
  }

  .mobile-menu__close{
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
  }

  .mobile-menu__links{
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px 0;
  }

  .mobile-menu__links a{
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    display: block;
  }

  body.menu-open{
    overflow: hidden;
    height: 100vh;
    width: 100vw;
  }

  .cart-mobile-close{
    display: inline-block;
  }




h1{
  font-size: 20px;
}
p{
  font-size: 14px;
}
h3{
  font-size: 16px;
}

.header{
  padding:16px;
}

.primary-button{
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}
.secondary-button{
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
#slide-arrow-next ,#slide-arrow-prev{
  display: none;
}
.carousel{
  padding: 16px;
}

  .ad-tile-double{
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }
  .ad-tile-single{
    display: none;
  }

  /* mobile products filter + grid */
  .filter-pills{
    gap: 8px;
  }

  .pill-button{
    padding: 8px 12px;
    font-size: 12px;
  }

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

  .products-wrap{
    padding: 0px;
  }

  .products-hero{
    padding: 16px;
  }

  /* mobile quick add toggle */
  .quick-add{
    transform: translateY(100%);
  }

  .product-card.is-quick-open .quick-add{
    transform: translateY(0);
  }

  .quick-add-toggle{
    display: inline-flex;
  }

  .quick-add{
    justify-content: space-between;
    gap: 0;
    padding: 10px 10px;
  }

  .quick-add-button{
    font-size: 12px;
  }

  .product-card .card-info{
    padding: 10px;
    gap: 4px;
  }

  /* product page mobile layout */
  .product-page{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0px;
  
  }

  .product-gallery{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .gallery-image{
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
  }

  .product-sidebar{
    max-height: none;
    padding: 6px;
    width: 100%;
  }

  .add-to-cart-button{
    position: sticky;
    bottom: 12px;
    z-index: 5;
  }

  /* related carousel */

  .related-grid{
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .related-grid .product-card{
    flex: 0 0 72vw;
    min-width: 72vw;
    scroll-snap-align: start;
  }
}
