:root{
  --bg:#0b0b0c;
  --card:#111113;
  --text:#e9e9ea;
  --muted:#b8b8bd;
  --line:#242429;
  --accent:#ffffff;
  --btn:#1b1b20;
  --btn2:#15151a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 20% 0%, #151518 0%, var(--bg) 55%);
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }

.wrap{ max-width:var(--max); margin:0 auto; padding:24px; }

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0 24px;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.brand strong{
  letter-spacing:.6px;
  font-size:15px;
}

.brand span{
  color:var(--muted);
  font-size:13px;
}

.top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  border:1px solid var(--line);
  background:var(--btn);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition: transform .08s ease, background .2s ease;
  font-size:14px;
}

.btn:hover{ background:var(--btn2); }
.btn:active{ transform:scale(.98); }

.btn.primary{
  background:var(--accent);
  color:#0b0b0c;
  border-color: transparent;
  font-weight:600;
}

.hero{
  padding:28px 0 18px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:start;
}

@media(max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
}

.hero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.1;
  letter-spacing:-.4px;
}

.hero p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
  max-width: 60ch;
}

.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}

.hero-card h3{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--muted);
}

.hero-card ul{
  margin:0;
  padding-left:18px;
  color:var(--text);
  font-size:14px;
  line-height:1.6;
}

.pillbar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 0;
}

.pill{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  padding:7px 10px;
  border-radius: 999px;
  font-size:12px;
  cursor:pointer;
  user-select:none;
}

.pill.active{
  background:rgba(255,255,255,.12);
  color:var(--text);
  border-color: rgba(255,255,255,.18);
}

section{ padding:14px 0; }

.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  margin:10px 0 12px;
}

.section-title h2{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}

.section-title span{
  color:var(--muted);
  font-size:13px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

@media(max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height: 210px;
}

.top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.badge{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  padding:6px 8px;
  border-radius: 999px;
  white-space:nowrap;
}

.card h3{
  margin:0;
  font-size:15px;
  line-height:1.25;
  letter-spacing:.1px;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

.price{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,.06);
}

.price strong{ font-size:14px; }

.smallbtn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-size:13px;
  white-space:nowrap;
}

.smallbtn:hover{ background:rgba(255,255,255,.1); }

.note{
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

footer{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0 26px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.hidden{ display:none !important; }

/* ==========================
   MULTI-IMAGE (slider)
   ========================== */
.product-images{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #0f0f12;
  border:1px solid rgba(255,255,255,.06);
}

.product-images img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.product-images img.active{ display:block; }

.img-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:32px;
  height:32px;
  border-radius:50%;
  background: rgba(0,0,0,.6);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
  font-size:18px;
  line-height:30px;
  display:grid;
  place-items:center;
  user-select:none;
}

.img-prev{ left:8px; }
.img-next{ right:8px; }

.img-dots{
  position:absolute;
  bottom:8px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  gap:6px;
  padding:6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
}

.img-dots span{
  width:6px;
  height:6px;
  border-radius:50%;
  background: rgba(255,255,255,.4);
}

.img-dots span.active{ background:#fff; }
/* ==========================
   LIGHTBOX (full image on click)
   ========================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  z-index: 9999;
  padding: 18px;
}

.lightbox.open { display: grid; place-items: center; }

.lightbox-inner {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: 100%;
  display: grid;
  gap: 10px;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}

.lb-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.lb-btn:hover { background: rgba(255,255,255,.10); }
/* ==========================
   HERO SLIDER
   ========================== */
.hero-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:none;
}

.hero-slide.active{ display:block; }

.hero-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:38px;
  height:38px;
  border-radius:50%;
  background: rgba(0,0,0,.55);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:20px;
  user-select:none;
}

.hero-prev{ left:10px; }
.hero-next{ right:10px; }

.hero-dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  gap:7px;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
}

.hero-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background: rgba(255,255,255,.45);
}
.hero-slider{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:18px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);box-shadow:0 10px 30px rgba(0,0,0,.35);cursor:pointer}
.hero-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.hero-slide.active{display:block}
.hero-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;border:1px solid rgba(255,255,255,.18);cursor:pointer;display:grid;place-items:center;font-size:20px;user-select:none}
.hero-prev{left:10px}
.hero-next{right:10px}
.hero-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:7px;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.12)}
.hero-dots span{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.45)}
.hero-dots span.active{background:#fff}

.hero-dots span.active{ background:#fff; }

  /* ==========================
   TOP CONTACT BAR
   ========================== */

.top-contact-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:8px 16px;
  margin:12px 0 10px;

  font-size:13px;
  color:#1a1206;

  background: linear-gradient(
    180deg,
    #ffb347 0%,
    #ff9f1c 100%
  );

  border:1px solid rgba(0,0,0,.15);
  border-radius:14px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 6px 18px rgba(0,0,0,.35);
}

.tcb-left{
  display:flex;
  gap:10px;
  align-items:center;
}

.tcb-left strong{
  letter-spacing:.6px;
}

.tcb-left span{
  color:rgba(0,0,0,.65);
}

.tcb-right{
  display:flex;
  gap:10px;
  align-items:center;
}

.tcb-right a{
  color:#1a1206;
  text-decoration:none;
  font-weight:500;
}

.tcb-right a:hover{
  text-decoration:underline;
}

.sep{
  color:rgba(0,0,0,.45);
}

@media(max-width:720px){
  .top-contact-bar{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
}

/* ==========================
   HERO SLIDER
   ========================== */
.hero-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: pointer;
}

.hero-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:none;
}

.hero-slide.active{ display:block; }

.hero-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:38px;
  height:38px;
  border-radius:50%;
  background: rgba(0,0,0,.55);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:20px;
  user-select:none;
}

.hero-prev{ left:10px; }
.hero-next{ right:10px; }

.hero-dots{
  position:absolute;
  bottom:10px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  gap:7px;
  padding:6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.12);
}

.hero-dots span{
  width:7px;
  height:7px;
  border-radius:50%;
  background: rgba(255,255,255,.45);
}

.hero-dots span.active{ background:#fff; }

html, body { overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; width: 100%; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px){ .hero { grid-template-columns: 1fr; } }
/* ===== FIX: centriranje + nema bježanja u desno ===== */
html, body { overflow-x: hidden; }

.container, .wrap{
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* hero layout: ne smije preći širinu ekrana */
.hero{
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 18px;
  align-items: start;
}

.hero-slider{ width: 100%; }

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
}
/* ===== HARD FIX: ništa ne smije širiti stranicu ===== */
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

.container, .wrap {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* ako neka sekcija ima 100vw i pravi overflow */

.hero, header, main, footer, section { max-width: 100%; }
/* SUBLIMATION BADGE */
.badge-sublimation {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, #ffb347);
  color: #111;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  text-transform: uppercase;
}
.card { position: relative; }

.card .badge-sublimation{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
}

/* sigurnosno: da se nikad ne pojavi van kartice */
body > .badge-sublimation { display: none !important; }
/* ==========================
   HEADER LAYOUT FIX (2 kolone / 2 reda)
   ========================== */

/* wrapper ako već nema padding */
.wrap{
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

/* HEADER kao grid */
header{
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 14px 18px;
  align-items: start;
  margin: 6px 0 18px;
}

/* brand lijevo gore */
header .brand{
  grid-column: 1;
  grid-row: 1;
  min-width: 260px;
}

/* buy box desno gore */
header .header-topbox{
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  margin: 0; /* bitno: da ne gura layout */
}

header .buy-card{
  width: min(420px, 100%);
}

/* meni desno dole */
header .top-actions{
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* na manjim ekranima sve ide u jednu kolonu */
@media (max-width: 900px){
  header{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  header .brand{ grid-column: 1; grid-row: 1; }
  header .header-topbox{ grid-column: 1; grid-row: 2; justify-content: flex-start; }
  header .top-actions{ grid-column: 1; grid-row: 3; justify-self: start; }
  header .buy-card{ width: 100%; }
}
/* koristi top bar i van .wrap (onama/kontakt) */
.top-contact-bar{
  width: min(1360px, calc(100% - 32px));
  margin: 12px auto 10px;
  border-radius: 999px;
}
.social-links{
  display:flex;
  gap:14px;
  margin-top:12px;
}

.social-links a{
  color:rgba(255,255,255,.7);
  text-decoration:none;
  font-size:14px;
}

.social-links a:hover{
  color:#fff;
  text-decoration:underline;
}
.cookie-bar{
  position:fixed;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  width:min(960px, calc(100% - 32px));
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;

  padding:14px 18px;
  background:#0f0f12;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  box-shadow:0 10px 30px rgba(0,0,0,.45);

  font-size:14px;
  color:rgba(255,255,255,.85);
  z-index:9999;
}

.cookie-bar a{
  color:#ffb347;
  text-decoration:none;
}

.cookie-bar a:hover{
  text-decoration:underline;
}

.cookie-btn{
  background:linear-gradient(180deg,#ffb347,#ff9f1c);
  border:none;
  color:#1a1206;
  font-weight:600;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
}

.cookie-btn:hover{
  opacity:.9;
}

@media(max-width:720px){
  .cookie-bar{
    flex-direction:column;
    align-items:flex-start;
  }
}
