﻿/* HPShop Adventi kalendárium 2026 — új világoskék dizájn */

[hidden]{display:none!important;}
*{box-sizing:border-box;}

body.advent-page{
  margin:0;
  min-height:100svh;
  background:#eff8ff;
  font-family:system-ui,sans-serif;
  color:#07335d;
}

body.advent-open,
body.advent-page.no-scroll{
  overflow:hidden;
}

#adventOverlay{
  display:none !important;
  position:fixed;
  inset:0;
  z-index:100000;
  overflow:auto;
  background:#eff8ff;
  color:#07335d;
  font-family:system-ui,sans-serif;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
#adventOverlay::-webkit-scrollbar{display:none;}
#adventOverlay.is-open{display:block !important;}

.advent-shell{
  max-width:min(1500px, 100%);
  margin:0 auto;
  padding:12px;
  display:flex;
  flex-direction:column;
  min-height:100%;
  box-sizing:border-box;
}

.status{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:15px 48px 15px 15px;
  font-weight:700;
  text-align:center;
}
#adventCloseCal{
  position:absolute;
  top:50%;
  right:4px;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#e7f1f8;
  color:#07335d;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  padding:0;
}
#adventCloseCal:hover{background:#d5e8f5;}
.legend{
  font-size:.85rem;
  font-weight:500;
  background:white;
  border-radius:30px;
  padding:7px 13px;
}
.legend b{color:#8a6400;}

.calendar{
  position:relative;
  isolation:isolate;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 30px #145e8b24;
  width:fit-content;
  max-width:100%;
  margin:0 auto;
}
.art{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  /* Valós arány: 1672×941 — ne nyújtsa a böngésző */
  aspect-ratio:1672 / 941;
  object-fit:contain;
  object-position:top center;
}

/* Overlay / laptop: a teljes naptár férjen a képernyőbe, ne legyen nyújtva */
#adventOverlay .advent-shell,
body.advent-page .advent-shell{
  min-height:100%;
  padding:8px 12px 10px;
}
#adventOverlay .status,
body.advent-page .status{
  padding:8px 10px 10px;
}
#adventOverlay .advent-foot,
body.advent-page .advent-foot{
  padding:6px 0 8px;
}
#adventOverlay .art,
body.advent-page .art{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:calc(100svh - 150px);
}

.door{
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:var(--w);
  height:var(--h);
  background:transparent;
  border:0;
  border-radius:12%;
  cursor:pointer;
  transition:box-shadow .2s;
  outline-offset:-4px;
  padding:0;
}
.door:focus-visible{outline:4px solid #ffdd50;}
.door.future{
  cursor:not-allowed;
  background:#001c3b22;
}
.door.past{background:#12344b35;}
.door.today{
  z-index:2;
  outline:4px solid #ffe34d;
  outline-offset:-4px;
  animation:glow 2s infinite;
}
.door.today:hover{background:#ffe34d29;}

.badge{
  position:absolute;
  right:5%;
  top:5%;
  font-size:clamp(8px,1.1vw,17px);
  padding:.25em .55em;
  background:#052b50;
  color:white;
  border-radius:20px;
  font-weight:800;
}
.door.today .badge{
  background:#ffe34d;
  color:#332500;
  box-shadow:0 2px 8px #0005;
}
.door.past .badge{
  background:#f2f8fc;
  color:#244a6a;
}

.advent-foot{
  text-align:center;
  padding:8px 0 20px;
}
#notice{
  font-size:.85rem;
  color:#40617c;
  text-align:center;
  margin:8px 0 0;
}

.advent-status{
  max-width:720px;
  margin:40px auto;
  padding:24px;
  text-align:center;
  background:white;
  border:1px solid #b9d8e9;
  border-radius:18px;
  color:#07335d;
}

/* Gift modal — világoskék sheet, product/discount tartalommal */
.modal{
  position:fixed;
  inset:0;
  z-index:100050;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px, 3vw, 34px);
}
.modal.is-open{display:flex;}
.modal[hidden]{display:none !important;}

.modal-backdrop{
  position:absolute;
  inset:0;
  z-index:0;
  background:#001d38b8;
}

.sheet{
  position:relative;
  z-index:1;
  width:min(920px, 100%);
  max-height:min(92svh, 900px);
  overflow:auto;
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1.05fr);
  border:0;
  border-radius:22px;
  background:#fff;
  color:#07335d;
  box-shadow:0 12px 70px #001c3b66;
  transform:translateY(18px) scale(.975);
  opacity:0;
  transition:transform .35s ease, opacity .35s ease;
}
.modal.is-open .sheet{
  transform:none;
  opacity:1;
}

.product-visual{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:280px;
  padding:clamp(18px, 3vw, 32px);
  background:linear-gradient(160deg,#e7f5ff,#f7fbff 55%,#fff);
  border-right:1px solid #d7ebf7;
}
.product-art{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.product-art img{
  display:block;
  width:100%;
  max-width:min(100%,380px);
  max-height:min(48vh,340px);
  margin:0 auto;
  object-fit:contain;
}
.only-today{
  position:absolute;
  top:16px;
  left:16px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border-radius:999px;
  background:#ffe34d;
  color:#332500;
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.product-info{
  display:flex;
  flex-direction:column;
  padding:clamp(22px, 3.4vw, 40px);
}
.product-kicker{
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#8a6400;
}
.brand{
  margin-top:14px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.28em;
  color:#087abd;
}
.product-info h3{
  margin:8px 0 0;
  font-size:clamp(24px, 3vw, 34px);
  line-height:1.15;
  color:#07335d;
}
.product-desc{
  margin:14px 0 0;
  color:#40617c;
  font-size:14.5px;
  line-height:1.65;
}
.specs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 0;
  padding:0;
  list-style:none;
}
.price-block{margin-top:18px;}
.price-label-big{
  font-size:clamp(22px, 3vw, 30px);
  font-weight:800;
  color:#087abd;
  margin:0 0 8px;
}
.discount-meta{
  margin:8px 0 0;
  color:#40617c;
  font-size:14px;
  line-height:1.5;
}
.price-old{
  display:flex;
  gap:8px;
  align-items:center;
  color:#6a879e;
  font-size:13px;
}
.price-old s{color:#6a879e;}
.price-row{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:10px;
  margin-top:6px;
}
.price-new{
  font-size:clamp(26px, 3.2vw, 36px);
  font-weight:800;
  color:#07335d;
}
.price-save{
  display:inline-flex;
  padding:4px 10px;
  border-radius:999px;
  background:#ffe34d;
  color:#332500;
  font-size:12px;
  font-weight:800;
}
.today-note{
  margin:12px 0 0;
  color:#40617c;
  font-size:13.5px;
  line-height:1.5;
}
.add-cart{
  margin-top:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:0;
  border-radius:12px;
  padding:14px 22px;
  background:#087abd;
  color:#fff;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
.add-cart:hover{filter:brightness(1.05);}
.add-cart:disabled{opacity:.6;cursor:not-allowed;}
.add-cart.is-sold-out,
.add-cart.is-sold-out:disabled{
  background:#9aa8b5;
  color:#fff;
  opacity:1;
  cursor:not-allowed;
  filter:none;
}
.add-cart svg{width:18px;height:18px;}

.advent-login-panel{
  margin-top:18px;
  padding-top:4px;
}
.advent-login-prompt{
  margin:0 0 12px;
  font-size:16px;
  font-weight:800;
  color:#07335d;
}
.advent-login-form{
  display:grid;
  gap:8px;
}
.advent-login-label{
  margin-top:4px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8a6400;
}
.advent-login-form input[type="text"],
.advent-login-form input[type="password"]{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid #b9d8e9;
  background:#f7fbff;
  color:#07335d;
  font:inherit;
  font-size:15px;
}
.advent-login-form input:focus{
  outline:none;
  border-color:#087abd;
  box-shadow:0 0 0 3px rgba(8,122,189,.18);
}
.advent-login-error{
  margin:2px 0 0;
  color:#c0392b;
  font-size:13.5px;
  font-weight:700;
}
.advent-login-submit{
  margin-top:8px;
  width:100%;
}
.advent-login-reg{
  margin:14px 0 0;
  text-align:center;
  font-size:14px;
}
.advent-login-reg a{
  color:#087abd;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
.advent-login-reg a:hover{color:#055a8c;}

.close-modal{
  position:absolute;
  top:14px;
  right:14px;
  z-index:6;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:0;
  background:#e7f1f8;
  color:#07335d;
  cursor:pointer;
}
.close-modal svg{width:18px;height:18px;}

.toast{
  position:fixed;
  left:50%;
  bottom:clamp(20px, 4vw, 40px);
  z-index:100060;
  max-width:calc(100vw - 32px);
  padding:14px 22px;
  border-radius:14px;
  border:1px solid #b9d8e9;
  background:#fff;
  color:#07335d;
  font-size:13.5px;
  font-weight:700;
  text-align:center;
  box-shadow:0 16px 40px #001c3b33;
  opacity:0;
  translate:-50% 20px;
  pointer-events:none;
  transition:opacity .35s ease, translate .35s ease;
}
.toast.show{
  opacity:1;
  translate:-50% 0;
}

@keyframes glow{
  50%{box-shadow:inset 0 0 25px 5px #ffe34d,0 0 15px #fff27b;}
}
@keyframes pop{
  from{transform:scale(.88);opacity:0;}
  to{transform:scale(1);opacity:1;}
}

@media (max-width: 820px){
  .sheet{grid-template-columns:1fr; max-height:92svh;}
  .product-visual{
    min-height:210px;
    border-right:0;
    border-bottom:1px solid #d7ebf7;
  }
}

@media (max-width: 600px){
  .advent-shell{padding:8px;}
  .calendar{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
    padding:6px;
    background:#c9e9ff;
    border-radius:13px;
    overflow:visible;
    width:100%;
  }
  .art{
    grid-column:1/-1;
    width:100%;
    height:auto;
    max-height:none;
    aspect-ratio:1672 / 195;
    object-fit:cover;
    object-position:top;
    border-radius:8px;
  }
  #adventOverlay .art{
    max-height:none;
  }
  .door{
    position:relative;
    left:auto;
    top:auto;
    width:100%;
    height:auto;
    aspect-ratio:1.04;
    background-image:var(--tile);
    background-size:100% 100%;
    border-radius:10px;
  }
  .door.future{
    background-image:linear-gradient(#001c3b22,#001c3b22),var(--tile);
  }
  .door.past{
    background-image:linear-gradient(#12344b35,#12344b35),var(--tile);
  }
  .door.today{background-image:var(--tile);}
  .badge{font-size:10px;}
  .status{font-size:.88rem;padding:12px 0;}
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation:none !important;
    transition:none !important;
  }
}
