:root{
  --bg-image:url("https://lost-city-frontend.s3.eu-north-1.amazonaws.com/assets/Wroclaw-1945-K.-Gorazdowska-R.-Jagusch+(1).jpg");
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --cream:#fff1de;
  --dark:#161311;
  --brown:#2b241f;
}

*{ box-sizing:border-box; }

html{
  scroll-behavior:smooth;
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  min-height:100%;
  background:#000;
  font-family:system-ui,sans-serif;
}

body{
  color:var(--cream);
  touch-action:manipulation;
}

a{
  color:inherit;
  text-decoration:none;
}

.app{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  overflow:hidden;
  background:#000;
  display:flex;
  flex-direction:column;
}

/* TŁO */

.bg{
  position:fixed;
  inset:-10%;
  background-image:
    linear-gradient(to bottom, rgba(255,245,225,.42), rgba(255,245,225,.10), rgba(0,0,0,.82)),
    var(--bg-image);
  background-size:cover;
  background-position:center;
  filter:grayscale(.32) sepia(.24) contrast(1.08) brightness(.88);
  transform:translate3d(0,0,0) scale(1.18);
  opacity:0;
  transition:opacity 2.5s ease;
  will-change:transform,opacity;
  z-index:1;
}

.fog{
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 20% 70%, rgba(255,241,222,.10), transparent 32%);
  mix-blend-mode:screen;
  opacity:.55;
  pointer-events:none;
  z-index:2;
}

.noise{
  position:fixed;
  inset:0;
  opacity:.06;
  pointer-events:none;
  z-index:3;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* HEADER */

.shop-header{
  position:relative;
  z-index:5;
  text-align:center;
  padding:
    calc(22px + var(--safe-top))
    16px
    18px;
  flex-shrink:0;
}

.shop-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(
    to bottom,
    rgba(12,10,8,.48),
    rgba(12,10,8,.62) 60%,
    rgba(12,10,8,.28)
  );
  pointer-events:none;
}

.back-link{
  position:absolute;
  top:calc(16px + var(--safe-top));
  left:14px;
  padding:9px 14px;
  border:1px solid rgba(255,241,220,.45);
  border-radius:999px;
  background:rgba(22,19,17,.75);
  color:var(--cream);
  font-size:20px;
  cursor:pointer;
  transition:all .2s ease;
}

.back-link:hover{
  border-color:var(--cream);
  background:rgba(22,19,17,.9);
}

.back-icon{
  position:absolute;
  top:calc(16px + var(--safe-top));
  left:14px;
  padding:9px 14px;
  border:1px solid rgba(255,241,220,.45);
  border-radius:999px;
  background:rgba(22,19,17,.75);
  color:var(--cream);
  font-size:20px;
  cursor:pointer;
  transition:all .2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}

.back-icon:hover{
  border-color:var(--cream);
  background:rgba(22,19,17,.9);
}

.logo{
  margin:0 0 12px;
}

.shop-stamp-logo img{
  width:64px;
  height:64px;
  filter:drop-shadow(0 4px 12px rgba(0,0,0,.5));
}

.shop-header h1{
  margin:8px 0 4px;
  font-family:'Anton',sans-serif;
  font-size:clamp(48px,12vw,72px);
  line-height:1;
  letter-spacing:2px;
  color:var(--cream);
  -webkit-text-stroke:2px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:
    0 2px 0 rgba(22,19,17,.85),
    0 5px 12px rgba(0,0,0,.98),
    0 14px 28px rgba(0,0,0,.78);
}

.breslau{
  margin:4px 0 12px;
  font-family:'Anton',sans-serif;
  font-size:14px;
  letter-spacing:3px;
  color:var(--cream);
  -webkit-text-stroke:1px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:0 2px 8px rgba(0,0,0,.95);
  text-transform:uppercase;
}

.subtitle{
  margin:0;
  font-size:14px;
  color:rgba(255,241,220,.95);
  -webkit-text-stroke:.6px rgba(22,19,17,.92);
  paint-order:stroke fill;
  font-weight:500;
  letter-spacing:.8px;
  text-shadow:0 2px 8px rgba(0,0,0,.95);
}

/* CONTENIDO PRINCIPAL */

.shop-content{
  flex:1;
  overflow-y:auto;
  padding:
    16px
    16px
    calc(40px + var(--safe-bottom));
}

/* SEKCJA PRODUKTÓW */

.products-section{
  display:flex;
  flex-direction:column;
  gap:28px;
  z-index:4;
  position:relative;
}

.store-location{
  position:relative;
  z-index:4;
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:6px 0 18px;
  padding:16px 18px;
  border-left:3px solid #b99a72;
  background:rgba(22,19,17,.84);
  color:var(--cream);
  box-shadow:0 10px 24px rgba(0,0,0,.28);
}

.store-location strong{
  font-size:14px;
  letter-spacing:.5px;
  text-transform:uppercase;
}

.store-location span{
  color:rgba(255,241,220,.88);
  font-size:14px;
}

.store-location-header{
  align-items:center;
  margin:0 0 12px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:center;
}

.store-location-header strong{
  font-size:14px;
  text-shadow:0 2px 0 rgba(22,19,17,.85), 0 5px 12px rgba(0,0,0,.98), 0 14px 28px rgba(0,0,0,.78);
}

.store-location-header span{
  font-size:15px;
  text-shadow:0 2px 0 rgba(22,19,17,.85), 0 5px 12px rgba(0,0,0,.98), 0 14px 28px rgba(0,0,0,.78);
}

.store-map-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  min-height:34px;
  margin-top:9px;
  padding:7px 16px;
  border:1px solid #b99a72;
  border-radius:4px;
  background:linear-gradient(to bottom, #fffdf7 0%, #f2dfc0 48%, #b99a72 100%);
  color:var(--dark);
  font-family:'Anton',sans-serif;
  font-size:13px;
  letter-spacing:1px;
  text-decoration:none;
  text-transform:uppercase;
  text-shadow:none;
}

.store-map-link:hover{
  background:linear-gradient(to bottom, #ffffff 0%, #f7e8cf 48%, #c8aa82 100%);
}

/* FILTRY */

.shop-filters{
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  z-index:12;
  width:min(360px,88vw);
  border-right:2px solid rgba(255,236,214,.35);
  background:rgba(22,19,17,.95);
  box-shadow:8px 0 28px rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  padding:calc(16px + var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  overflow-y:auto;
  transform:translateX(-105%);
  transition:transform .28s ease;
  visibility:hidden;
}

.shop-filters.is-open{
  transform:translateX(0);
  visibility:visible;
}

.filter-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(255,241,220,.25);
}

.filter-panel-header h2{
  margin:0;
  font-family:'Anton',sans-serif;
  font-size:28px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.filter-toggle,
.filter-close{
  border:1px solid rgba(255,241,220,.45);
  background:rgba(22,19,17,.75);
  color:var(--cream);
  cursor:pointer;
  font-family:'Anton',sans-serif;
  text-transform:uppercase;
}

.filter-toggle{
  position:relative;
  display:block;
  margin:16px auto 0 0;
  z-index:6;
  padding:9px 12px;
  border:2px solid #a9432e;
  border-radius:4px;
  background:rgba(77,25,18,.72);
  font-size:13px;
  letter-spacing:.5px;
}

.filter-close{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  padding:0;
  border-radius:4px;
  font-size:27px;
  line-height:1;
}

.filter-toggle:hover{
  border-color:#e87836;
  background:rgba(122,42,27,.88);
}

.filter-close:hover{
  border-color:var(--cream);
  background:rgba(22,19,17,.95);
}

.filter-backdrop{
  position:fixed;
  inset:0;
  z-index:11;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}

.cart-button{
  position:fixed;
  top:18px;
  right:72px;
  z-index:1000;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:3px double rgba(24,20,18,.92);
  border-radius:50%;
  background:var(--cream);
  color:var(--dark);
  font-size:19px;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.42);
}

.cart-symbol{
  color:var(--dark);
  font-family:Arial,sans-serif;
  font-size:20px;
  line-height:1;
}

.cart-count{
  position:absolute;
  top:-7px;
  right:-7px;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 4px;
  border:1px solid var(--cream);
  border-radius:10px;
  background:#a9432e;
  color:#fff;
  font-family:system-ui,sans-serif;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.filters-wrapper{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.filter-section{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.object-filter-section{
  width:100%;
}

.filter-section:has(.reset-filters){
  margin-top:4px;
}

.filter-title{
  margin:0;
  font-family:system-ui,sans-serif;
  font-size:13px;
  font-weight:800;
  letter-spacing:.3px;
  color:var(--cream);
  -webkit-text-stroke:.7px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:0 2px 6px rgba(0,0,0,.95);
  text-transform:uppercase;
  white-space:nowrap;
}

.filter-options{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.filter-checkbox{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:all .2s ease;
  white-space:nowrap;
  font-size:13px;
}

.filter-checkbox input[type="checkbox"]{
  width:16px;
  height:16px;
  cursor:pointer;
  accent-color:#fff1de;
}

.checkbox-label{
  color:var(--cream);
  font-weight:600;
  -webkit-text-stroke:.55px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:0 1px 4px rgba(0,0,0,.95);
  transition:color .2s ease;
}

.filter-checkbox:hover .checkbox-label{
  color:var(--cream);
}

.object-filter{
  width:100%;
  padding:7px 10px;
  border:1px solid rgba(255,241,220,.4);
  border-radius:4px;
  background:rgba(0,0,0,.58);
  color:var(--cream);
  background:rgba(0,0,0,.58);
  font-weight:600;
  text-shadow:0 1px 3px rgba(0,0,0,.95);
  font:inherit;
}

.object-filter:focus{
  outline:1px solid var(--cream);
  outline-offset:2px;
}

.reset-filters{
  background:rgba(255,241,220,.1);
  border:1px solid rgba(255,241,220,.4);
  color:var(--cream);
  padding:6px 14px;
  font-size:13px;
  font-family:'Anton',sans-serif;
  letter-spacing:.5px;
  border-radius:4px;
  cursor:pointer;
  transition:all .2s ease;
  text-transform:uppercase;
  white-space:nowrap;
  align-self:flex-start;
}

.reset-filters:hover{
  background:rgba(255,241,220,.2);
  border-color:var(--cream);
}

/* SEKCJE KATEGORII */

.category{
  scroll-margin-top:92px;
  margin:28px 0 46px;
  padding:18px;
  border:1px solid rgba(255,241,220,.25);
  border-radius:28px;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.46),
    rgba(0,0,0,.28)
  );
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.category h2{
  margin:4px 0 18px;
  font-family:'Anton',sans-serif;
  font-size:clamp(32px,8vw,62px);
  line-height:1;
  letter-spacing:1.5px;
  color:var(--cream);
  -webkit-text-stroke:1.5px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-align:center;
  text-shadow:
    0 3px 12px rgba(0,0,0,.9),
    0 10px 28px rgba(0,0,0,.62);
}

.products{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:18px;
}

.product{
  display:flex;
  flex-direction:column;
  min-height:100%;
  padding:14px;
  border:2px solid rgba(255,236,214,.52);
  border-radius:24px;
  background:rgba(22,19,17,.82);
  box-shadow:0 12px 28px rgba(0,0,0,.32);
  overflow:hidden;
  transform:none;
  opacity:1;
  transition:
    border-color .2s ease,
    transform .25s ease;
}

/* Ukrycie produktów przez JavaScript */
.product[hidden],
.category[hidden]{
  display:none !important;
}

.product:hover{
  border-color:rgba(255,241,220,.92);
  transform:translateY(-4px);
}

.product.visible{
  transform:translateY(0);
  opacity:1;
}

.product-image{
  width:100%;
  aspect-ratio:4/3;
  position:relative;
  overflow:hidden;
  border-radius:18px;
  background:#111;
  border:1px solid rgba(255,241,220,.25);
  cursor:zoom-in;
}

.product-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  filter:grayscale(.18) sepia(.18) contrast(1.05);
  transition:transform .4s ease;
}

@media (hover:hover) and (pointer:fine){
  .product:hover .product-image img{
    transform:scale(1.08);
  }
}

.image-preview{
  width:min(960px,calc(100vw - 32px));
  height:min(820px,calc(100svh - 32px));
  padding:48px 16px 16px;
  border:1px solid rgba(255,241,220,.45);
  border-radius:8px;
  background:rgba(22,19,17,.98);
  box-shadow:0 24px 64px rgba(0,0,0,.8);
}

.image-preview::backdrop{
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(4px);
}

.image-preview-content{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.image-preview-close{
  position:absolute;
  top:8px;
  right:8px;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(255,241,220,.55);
  border-radius:4px;
  background:var(--cream);
  color:var(--dark);
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

.product-image:focus-visible{
  outline:2px solid #e87836;
  outline-offset:3px;
}

.product h3{
  margin:16px 0 8px;
  font-family:system-ui,sans-serif;
  font-size:22px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:0;
  color:var(--cream);
  -webkit-text-stroke:.75px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:0 2px 5px rgba(0,0,0,.95);
}

.product p{
  display:none;
}

.price{
  margin-top:auto;
  margin-bottom:14px;
  color:#e87836;
  font-size:22px;
  font-weight:900;
  text-align:right;
  -webkit-text-stroke:.5px rgba(22,19,17,.92);
  paint-order:stroke fill;
  text-shadow:0 2px 7px rgba(0,0,0,.95);
}

.product button{
  background:linear-gradient(to bottom, #fffdf7 0%, #f2dfc0 48%, #b99a72 100%);
  border:1px solid var(--cream);
  border-radius:6px;
  color:var(--dark);
  padding:12px 16px;
  font-family:'Anton',sans-serif;
  font-size:14px;
  letter-spacing:1px;
  text-transform:uppercase;
  cursor:pointer;
  transition:all .2s ease;
}

.product button.is-added{
  background:#e87836;
  border-color:#e87836;
}

.product button:hover{
  background:linear-gradient(to bottom, #ffffff 0%, #f7e8cf 48%, #c8aa82 100%);
  border-color:#fff;
  transform:translateY(-2px);
}

/* Szersze odstępy dla skondensowanej czcionki Anton. */
.shop-header h1{ letter-spacing:4px; }
.breslau{ letter-spacing:4px; }
.filter-panel-header h2{ letter-spacing:2px; }
.filter-toggle,
.reset-filters{ letter-spacing:1px; }
.category h2{ letter-spacing:3px; }
.product button{ letter-spacing:1.5px; }

/* HOME BOTTOM LINK */

.home-bottom{
  position:relative;
  display:block;
  width:max-content;
  margin:36px auto 24px;
  padding:12px 28px;
  font-family:'Anton',sans-serif;
  font-size:14px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--cream);
  border:1px solid rgba(255,241,220,.35);
  border-radius:999px;
  background:rgba(22,19,17,.85);
  z-index:4;
  transition:all .2s ease;
  text-align:center;
  white-space:nowrap;
}

.home-bottom:hover{
  border-color:var(--cream);
  background:rgba(22,19,17,.95);
}

.shop-footer{
  position:relative;
  z-index:4;
  padding:18px 12px calc(9px + var(--safe-bottom));
  background:linear-gradient(
    to top,
    rgba(0,0,0,.86),
    rgba(0,0,0,.48),
    transparent
  );
  text-align:center;
}

.shop-footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}

.shop-footer-links a{
  color:var(--cream);
  font-size:11.5px;
  font-weight:600;
  opacity:.9;
}

.shop-footer-links a:hover{
  color:#fff;
  opacity:1;
}

.shop-footer-links span{
  color:rgba(255,255,255,.35);
  font-size:11px;
}

.shop-footer-copy{
  margin-top:4px;
  color:rgba(255,255,255,.58);
  font-size:10.5px;
}

.shop-header .back-icon{
  top:auto;
  bottom:calc(110px + var(--safe-bottom));
}

/* MOBILE */

@media(max-width:768px){
  .shop-header{
    padding-top:calc(56px + var(--safe-top));
  }

  .shop-content{
    padding:10px 12px calc(40px + var(--safe-bottom));
  }

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

  .product{
    padding:9px;
    border-radius:16px;
  }

  .product-image{
    aspect-ratio:1/1;
    border-radius:12px;
  }

  .product h3{
    font-size:17px;
    line-height:1.2;
    margin:10px 0 5px;
  }

  .filter-title{
    font-size:15px;
  }

  .product p{
    font-size:11px;
    line-height:1.25;
    margin:0 0 7px;
  }

  .price{
    font-size:16px;
    margin-bottom:8px;
  }

  .product button{
    width:100%;
    min-height:42px;
    padding:10px 6px;
    font-size:13px;
  }

  .filter-toggle{
    margin-top:14px;
    padding:12px 16px;
    font-size:15px;
  }

  .home-bottom{
    bottom:calc(100px + var(--safe-bottom));
    font-size:12px;
    padding:8px 16px;
  }
}
