/* ===========================
   PONUDA – PLUTAJUĆI GUMB (Desno, više gore)
   =========================== */

.offer-fab {
  position: fixed;
  right: 20px;          /* prije left: 20px */
  top: 80px;            /* prije top: 120px – dignuto gore */
  z-index: 1100;

  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 2px solid #d87676;
  background: transparent;
  color: #d87676;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  min-width: 125px;
  justify-content: center;
}

.offer-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}


/* ===========================
   GUMB NA VRH — PROZIRNI KRUG
   S TROKUTOM SAMO KAO OBRUB
   =========================== */

.scroll-top-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1200;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #d87676;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: fixed;
}

/* TROKUT – samo obrub, unutrašnjost prozirna */
.scroll-top-fab::before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;

  /* vanjski trokut (boja obruba) */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 14px solid #d87676;
}

/* manji trokut unutra da isprazni punjenje */
.scroll-top-fab::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid transparent;

  top: 2px; /* centriranje prema dolje */
}

.scroll-top-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0,0,0,0.2);
}


/* ===========================
   PANEL S PONUDOM (bočno)
   =========================== */

.offer-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 1200;
}

.offer-panel.open {
  display: flex;
}

.offer-panel-inner {
  width: 320px;
  max-width: 90vw;
  background: #fff7f5;
  height: 100%;
  box-shadow: 4px 0 16px rgba(0,0,0,0.25);
  padding: 1.2rem 1rem 1.5rem;
  overflow-y: auto;
}

.offer-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.offer-panel-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

.offer-panel-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}


/* ===========================
   SADRŽAJ PONUDE
   =========================== */

.offer-panel-body {
  font-size: 0.95rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-list li {
  margin-bottom: 0.35rem;
}

.offer-section-title {
  margin-top: 0.9rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #aa5555;
}

.offer-link {
  display: block;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  text-decoration: none;
  color: #444;
}

.offer-link:hover {
  background: #f4caca;
  color: #2a2a2a;
}


/* ===========================
   ANCHOR ZA SKOK NA SHOP
   =========================== */

html {
  scroll-behavior: smooth;
}

.shop-anchor {
  scroll-margin-top: 100px;
}


/* ===========================
   MOBILE PRILAGODBA
   =========================== */

@media (max-width: 768px) {
  .offer-fab {
    top: 70px;        /* malo još gore na mobitelu */
    right: 12px;      /* prije left: 12px */
    padding-inline: 0.9rem;
    font-size: 0.9rem;
  }

  .scroll-top-fab {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .scroll-top-fab::before {
    border-left-width: 8px;
    border-right-width: 8px;
    border-bottom-width: 12px;
  }

  .scroll-top-fab::after {
    border-left-width: 6px;
    border-right-width: 6px;
    border-bottom-width: 10px;
    top: 2px;
  }
}

