/* ============================================================
   FOoFO.sk — vlastné štýly
   Nahrané na FTP v /user/documents/foofo.css
   ============================================================ */

/* ---- Kruhy s packou pri výbere farieb ---- */
.product-top .detail-parameters tr.variant-list .hidden-split-parameter .advanced-parameter .advanced-parameter-inner {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 40px;
  position: relative;
  width: 40px;
}
/* Packa na zvolenej vzorke sa kreslí ako vrstva navrch, nie ako pozadie —
   inak by prekryla textúru paracordu. */
tr.variant-list .advanced-parameter-inner {
  position: relative;
}
tr.variant-list label.advanced-parameter:has(input:checked) .advanced-parameter-inner::after,
.advanced-parameter.foofo-vzorka.zvolena .advanced-parameter-inner::after,
.foofo-swatche button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(https://cdn.myshoptet.com/usr/www.foofo.sk/user/documents/upload/packa5.svg);
  background-size: 62%;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ---- Skrytie podpisu v pätke ---- */
.container.footer-bottom .copyright .podpis {
  position: absolute;
  visibility: hidden;
}

/* ---- Zamknuté tlačidlo Pridať do košíka ---- */
.foofo-lock {
  background: #c4bdb5 !important;
  border-color: #c4bdb5 !important;
  color: #fff !important;
  cursor: not-allowed !important;
  transition: background .2s ease;
}

/* ---- Letiace packy do košíka ---- */
.foofo-paw {
  position: fixed;
  width: 22px;
  height: 22px;
  z-index: 99999;
  pointer-events: none;
  background-color: #1a1614;
  -webkit-mask: url(https://cdn.myshoptet.com/usr/www.foofo.sk/user/documents/upload/packa5.svg) center/contain no-repeat;
  mask: url(https://cdn.myshoptet.com/usr/www.foofo.sk/user/documents/upload/packa5.svg) center/contain no-repeat;
  opacity: 0;
  animation: foofoPaw 1.1s ease-out forwards;
}
@keyframes foofoPaw {
  0%   { opacity: 0;   transform: scale(.6) rotate(var(--uhol)); }
  15%  { opacity: .95; transform: scale(1)  rotate(var(--uhol)); }
  55%  { opacity: .95; transform: scale(1)  rotate(var(--uhol)); }
  100% { opacity: 0;   transform: scale(.9) rotate(var(--uhol)); }
}

/* ---- Stránka 404 ---- */
.foofo-404 {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 560px;
  margin: 0 auto;
}
.foofo-404 h1 {
  margin: 24px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}
.foofo-404 p {
  color: #666;
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.foofo-404-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.foofo-404-btns .btn {
  width: 100%;
  max-width: 280px;
  text-align: center;
  justify-content: center;
}
.foofo-404-stopy {
  height: 54px;
  position: relative;
}
.foofo-404-stopy span {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  background-color: rgb(229,122,26);
  -webkit-mask: url(https://cdn.myshoptet.com/usr/www.foofo.sk/user/documents/upload/packa5.svg) center/contain no-repeat;
  mask: url(https://cdn.myshoptet.com/usr/www.foofo.sk/user/documents/upload/packa5.svg) center/contain no-repeat;
  opacity: 0;
  animation: foofo404 3.4s ease-in-out infinite;
}
@keyframes foofo404 {
  0%, 100% { opacity: 0 }
  12%      { opacity: .9 }
  60%      { opacity: .9 }
  85%      { opacity: 0 }
}

/* ---- Náhľad gravírovania ---- */
#foofo-nahlad {
  margin: 14px 0 6px;
  border: 1px solid #e6e1db;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
#foofo-nahlad .popisok {
  font-size: 12px;
  color: #8b8279;
  margin-bottom: 9px;
}
#foofo-remen {
  height: 114px;
  border-radius: 8px;
  background: #26221f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition: background .25s ease;
}
#foofo-text {
  position: relative;
  z-index: 1;
  color: rgba(25,20,16,.9);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  font-size: 52px;
  text-transform: uppercase;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: contents;
  transition: font-size .12s ease;
}
#foofo-text .r2 {
  display: block;
  font-size: .6em;
}
#foofo-text.svetly {
  color: rgba(255,255,255,.94);
}
#foofo-text.prazdny {
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  letter-spacing: normal !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  margin: 0 !important;
  opacity: .5;
  font-style: italic;
  color: rgba(255,255,255,.9);
}

/* ---- Oranžové zvýraznenie textu a ohraničenie ---- */
::selection        { background: rgb(229,122,26) !important; color: #fff !important }
*::selection       { background: rgb(229,122,26) !important; color: #fff !important }
::-moz-selection   { background: rgb(229,122,26) !important; color: #fff !important }
*::-moz-selection  { background: rgb(229,122,26) !important; color: #fff !important }

html { scroll-behavior: smooth }

*:focus-visible {
  outline: 2px solid rgb(229,122,26);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Lepkavá lišta s košíkom (iba mobil) ---- */
#foofo-lista {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e6e1db;
  box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  transform: translateY(115%);
  transition: transform .25s ease;
}
#foofo-lista.vidno {
  transform: translateY(0);
}
#foofo-lista .info {
  flex: 1;
  min-width: 0;
}
#foofo-lista .nazov {
  font-size: 12px;
  color: #8b8279;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#foofo-lista .cena {
  font-size: 17px;
  font-weight: 700;
  color: #2b2724;
  line-height: 1.3;
}
#foofo-lista button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 20px;
  cursor: pointer;
}

@media (max-width: 768px) {
  #foofo-lista { display: flex }
}

/* ---- Výber farieb paracordu ako kruhy ----
   Veľkosť guľôčok nastavuje JavaScript podľa natívnych vzoriek,
   tu je len rozloženie a označenie zvolenej. */
.foofo-swatche {
  display: flex;
  flex-wrap: wrap;
  padding: 2px 0;
  align-items: center;
}
.foofo-swatche button:hover {
  transform: scale(1.07);
}
.foofo-swatche button[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgb(229,122,26);
}

/* ---- Náhľad spleteného paracordu ---- */
#foofo-splet {
  margin: 16px 0 6px;
  border: 1px solid #e6e1db;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
#foofo-splet .popisok {
  font-size: 12px;
  color: #8b8279;
  margin-bottom: 9px;
}
#foofo-splet .platno {
  position: relative;
  height: 72px;
  border-radius: 36px;
  overflow: hidden;
  background: #efece8;
}
#foofo-splet .pramen {
  position: absolute;
  width: 34px;
  background-size: cover;
  background-position: center;
}
#foofo-splet .tien {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.26) 0%,
    rgba(255,255,255,.26) 38%,
    rgba(0,0,0,.10) 62%,
    rgba(0,0,0,.34) 100%);
}
#foofo-splet .zoznam {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8279;
  line-height: 1.5;
}
#foofo-splet .prazdne {
  font-size: 13px;
  color: #8b8279;
  font-style: italic;
  text-align: center;
  line-height: 72px;
}

/* ---- Paracord: výber 4 farieb a náhľad spletenia ---- */

#foofo-paracord {
  padding: 2px 0 6px;
}

/* guľôčky vedľa seba, vedľa nich decentná rada */
#foofo-paracord .vyberRiadok {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
#foofo-paracord .miesta {
  display: flex;
  gap: 8px;
}
#foofo-paracord .rada {
  font-size: 12px;
  line-height: 1.5;
  color: #9a918a;
  max-width: 320px;
}

#foofo-paracord .zoznam {
  margin-top: 4px;
  font-size: 12px;
  color: #8b8279;
  line-height: 1.5;
}
#foofo-paracord .odkaz {
  margin-top: 12px;
  font-size: 12px;
  color: #8b8279;
  line-height: 1.5;
}
#foofo-paracord .odkaz.vyzva {
  color: rgb(229,122,26);
}

#foofo-paracord .platno {
  margin-top: 16px;
  height: 78px;
  border-radius: 39px;
  overflow: hidden;
  background: #f2efeb;
  border: 1px solid #e6e1db;
}
#foofo-paracord .platno svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* miesta na farby */
.advanced-parameter.miesto {
  flex: 0 0 auto;
  margin: 0 !important;
  cursor: pointer;
}
.advanced-parameter.miesto .advanced-parameter-inner {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
}
.advanced-parameter.miesto.prazdne .advanced-parameter-inner {
  background: none;
  box-shadow: inset 0 0 0 1px #cdc6bd;
  color: #a8a097;
}
.advanced-parameter.miesto.aktivne .advanced-parameter-inner {
  box-shadow: inset 0 0 0 2px rgb(229,122,26);
  color: rgb(229,122,26);
}

.advanced-parameter.foofo-vzorka {
  cursor: pointer;
  position: relative;
}

/* počet pri zdvojenej farbe */
.advanced-parameter.foofo-vzorka[data-pocet]::before {
  content: attr(data-pocet);
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 8px;
  background: rgb(229,122,26);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  z-index: 2;
}
