body {
  margin: 0;
  padding: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px;
  background: #f5f4ef;
  color: #111;

}

/* Main container with two columns */
.container {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
}

/* Sticky logo at the top of nav */
#logo {
  position: fixed;     /* float over both columns */
  top: 20px;           /* distance from top */
  left: 0px;          /* distance from left edge */
  width: 400px;        /* increase width to spill into column 2 */
  z-index: 99;       /* on top of everything */
  pointer-events: none; /* optional, so it doesn't block clicks */
}

/* Floating transparent search bar */
#search-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 220px;
  padding: 8px 12px;
  font-family: "Arial Black", sans-serif;
  font-size: 16px;
  color: #111;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 99;
  outline: none;
  transition: background 0.2s ease;
}

#search-bar::placeholder {
  color: #555;
  letter-spacing: 0.5px;
}

#search-bar:focus {
  background: rgba(255, 255, 255, 0.6);
}

/* Sticky side menu */
nav {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: 20px;
  box-sizing: border-box;
}

#print-counter {
  position: fixed;
  bottom: 10px;
  left: 10px;
  font-family: "Arial Black", sans-serif;
  font-size: 18px;
  color: #111;
  z-index: 99;
  padding: 4px 4px;
  border-radius: 2px;
}


/* Grid tiles */
.grid {
  display: grid;
  margin-top: 2px;
  gap: 1px;
  width: calc(100vw - 140px);
  max-width: calc(100vw - 140px);
}
.tile {
  border: 1px solid #999;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 1.41 / 1;
  position: relative;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Three-column grid */
.grid3col {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive */
@media (max-width: 1200px) {
  .grid3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid {
    width: calc(100vw - 180px);
    max-width: calc(100vw - 180px);
  }
}
@media (max-width: 800px) {
  .container {
    grid-template-columns: 1fr;
  }
  .grid3col {
    grid-template-columns: 1fr;
  }
  .grid {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid #fff;
  background: #111;
  object-fit: contain;
}
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox .close:hover {
  color: #611c20;
}

/* Tile with Shopify button */
.tile-with-button {
  position: relative;
  overflow: visible;
}
.tile-with-button div {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
}

.shopify-buy__cart-toggle {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

/* ============================= */
/* Mobile / Narrow Window Fixes  */
/* ============================= */
@media (max-width: 800px) {

  /* Make container full width and remove extra spacing */
  .container {
    grid-template-columns: 1fr;
    margin-top: 0; /* remove any top margin pushing content down */
    padding-top: 0; /* just in case */
  }

  /* Shrink & reposition logo for mobile */
  #logo {
    position: static;
    width: 90%;       
    top: 10px;        /* distance from top of viewport */
  }

  /* Search bar under the logo */
  #search-bar {
    width: 80%;
    top: 100px;        /* enough space below logo */
    right: 10px;
    font-size: 14px;
    padding: 6px 10px;
  }

  /* Push grid down so it doesn't overlap logo/search bar */
  .grid {
    margin-top: -600px;
    width: 100vw;
    max-width: 100vw;
  }

  /* Collapse tiles to single column */
  .grid3col {
    grid-template-columns: 1fr;
  }

  /* Keep print counter visible and proportionate */
  #print-counter {
    bottom: 10px;
    left: 10px;
    font-size: 16px;
    font-family: "Bebas Neue", sans-serif;
    font-weight: 700;
    background-color: #f5f4ef;
  }
}

/* Force Shopify cart icon to bottom-right */
.shopify-buy-frame--toggle,
.shopify-buy__cart-toggle {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 9999 !important;
  margin: 0 !important;
  opacity: 1 !important;
  display: block !important;
}

/* Target the Shopify cart toggle SVG */
.shopify-buy__cart-toggle svg {
  fill: #000000 !important;  /* black */
}

/* Optional: adjust for mobile view */
@media (max-width: 800px) {
  .shopify-buy-frame--toggle,
  .shopify-buy__cart-toggle {
    bottom: 60px !important;
    right: 10px !important;
  }
}

/* Override Shopify "added to cart" green state */
.shopify-buy__btn[disabled],
.shopify-buy__btn--disabled,
.shopify-buy__btn--added {
  background-color: #aaa !important; /* your red grey */
  color: #000000ff !important;
  opacity: 1 !important;
}

.shopify-buy__btn[disabled]:hover,
.shopify-buy__btn--disabled:hover,
.shopify-buy__btn--added:hover {
  background-color: #cabfb7ff !important; /* hover warm grey */
}


