* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(
    to bottom,
    var(--background-beige) 50%,
    var(--background-beigeTwo) 80%
  );
}

body {
  font-family: "Helsinki", Arial, Helvetica, sans-serif;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main.shop {
  flex: 1;
}

/* Top bar layout */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2vw;

  background-color: rgba(255, 249, 229, 0.92);
  backdrop-filter: blur(8px);
  z-index: 1000;

  transition: transform 220ms ease;
}

.topbar--hidden{
  transform: translateY(-110%);
}

/* Left: smaller logo */
.topbar__logo{
  height: 65px;         /* smaller on shop page */
  width: auto;
  display: block;
}

.topbar__logo-link{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Center nav */
.topbar__nav{
  justify-self: center;
  display: flex;
  gap: 40px;
  align-items: center;
}

/* Shared link styling */
.nav-link{
  position: relative;
  text-decoration: none;
  font-size: 22px;
  padding: 10px 18px;          /* gives room for bubble */
  border-radius: 999px;        /* bubble shape on hover */
  transition: background-color 200ms ease, color 200ms ease;
}

/* Match your home page colors as text */
.nav-link--home{ color: var(--orange-main); }
.nav-link--shop{ color: var(--yellow-main); }
.nav-link--contact{ color: var(--green-main); }

/* Hover bubble: background becomes same as text color, text turns beige */
.nav-link--home:hover{
  background-color: var(--orange-main);
  color: var(--background-beige);
}

.nav-link--shop:hover{
  background-color: var(--yellow-main);
  color: var(--background-beige);
}

.nav-link--contact:hover{
  background-color: var(--green-main);
  color: var(--background-beige);
}

/* Right: basket button */
.topbar__basket{
  justify-self: end;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 12px;
}

.topbar__basket-icon{
  height: 34px;
  width: 34px;
  display: block;
}

/* Optional: subtle hover feedback for basket */
.topbar__basket:hover{
  background-color: rgba(0,0,0,0.06);
}

.shop {
  position: relative;
  overflow: hidden;
  flex: 1;
  padding: calc(90px + 1vw) 3vw 0;
  margin-bottom: 0;
}


.shop-grid{
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* default = 2 wide */
  z-index: 2;
}

@media (min-width: 1100px){
  .shop-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 650px){
  .shop-grid{ grid-template-columns: 1fr; }
}

.product-item{
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease;
}

.product-item:hover{
  transform: scale(1.02);
}

.product-card{
  background: var(--beige-opaque);
  border-radius: 18px;
  padding: 18px;
}

.product-image-box{
  background-image: url("/assets/Images/Nbw.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 200%;
  border-radius: 18px;
  padding: 14px;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* change this if you want */
  overflow: hidden;

  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border: 2px solid transparent;

  transition: border-color 180ms ease;
}

.product-item:hover .product-image-box{
  border-color: var(--green-main); /* subtle border */
}

.product-image-box::after{
  content:"";
  position:absolute;
  inset:0;
  background-color: rgba(255, 249, 229, 0.937);
  pointer-events:none;
  z-index:1;
}


.product-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;      /* ← set image size as % here */
  height: 150%;     /* ← same % = consistent scaling */
  transform: translate(-50%, -50%);
  object-fit: contain; /* no cropping */
  z-index:2;
}


.product-meta{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-name{
  font-size: 20px;
  color: var(--text-dark);
}

/* Price + button inline */
.product-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price{
  font-size: 18px;
  color: var(--text-dark);
}

/* Button hover: scale up */
.product-btn{
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  background-color: var(--green-main);
  color: var(--background-beige);
  font-family: inherit;

  transition: transform 160ms ease;
  transform-origin: center;
}

.product-btn:hover{
  transform: scale(1.08);
}

.site-footer {
  width: 100%;
  padding: 32px 0;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.footer-inner{
  width: 100%;
  margin: 0 auto;
  padding: 0 5vw;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  font-size: 14px;
  color: var(--text-dark);
  opacity: 0.75;
}

.footer-left{
  justify-self: start;
}

.footer-nav{
  display: flex;
  gap: 24px;
}

.footer-nav a{
  text-decoration: none;
  color: inherit;
}

.footer-nav a:hover{
  text-decoration: underline;
}

.footer-right{
  justify-self: end;
}


.cart-fab{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;

  width: 84px;
  height: 84px;
  border-radius: 20px;

  display: grid;
  place-items: center;

  background:var(--orange-opaque);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);

  text-decoration: none;
}

/* icon image */
.cart-fab__img{
  width: 74px;
  height: 74px;
  display: block;
  opacity:0.1;
}

/* big count in front of icon */
.cart-fab__count{
  position: absolute;
  font-size: 50px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-dark);
  text-shadow: 0 3px 10px rgba(0,0,0,0.18);
  pointer-events: none; /* clicks go to button */
  z-index: 2;
}

/* little hover pop */
.cart-fab:hover{
  transform: scale(1.05);
  transition: transform 160ms ease;
}

@media (max-width: 768px){
  :root{
    --header-h: 58px;
  }

  html, body{
    overflow-x: hidden;
  }

  .topbar{
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 0 4vw;
    height: var(--header-h);
  }

  .topbar__logo{
    height: 40px;
    max-width: 110px;
    object-fit: contain;
  }

  .topbar__logo-link{
    display: inline-flex;
    align-items: center;
  }

  .topbar__nav{
    justify-self: end;
    gap: 4px;
  }

  .nav-link{
    font-size: 13px;
    padding: 5px 8px;
  }

  .topbar__basket{
    display: none;
  }

  .shop{
    padding: calc(var(--header-h) + 16px) 4vw 0;
  }

  .product-name{
    font-size: 17px;
  }

  .product-price{
    font-size: 15px;
  }

  .footer-inner{
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }

  .footer-left,
  .footer-right{
    justify-self: center;
  }

  .footer-nav{
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}