/* ============================================================
   KupujBrzo — Glavni stilski sistem
   Brend: narandžasta (#ff7a00) + crna (#0f0f0f) + bijela
   Moderno, animirano, mobile-first
   ============================================================ */

/* ---------- FONTOVI ---------- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ---------- VARIJABLE ---------- */
:root {
    --orange:      #ff7a00;
    --orange-dark: #e66a00;
    --orange-soft: #fff1e3;
    --black:       #0f0f0f;
    --ink:         #1a1a1a;
    --gray-900:    #1f2937;
    --gray-700:    #374151;
    --gray-500:    #6b7280;
    --gray-400:    #9ca3af;
    --gray-300:    #d1d5db;
    --gray-200:    #e5e7eb;
    --gray-100:    #f3f4f6;
    --gray-50:     #f9fafb;
    --cream:       #faf7f2;
    --white:       #ffffff;
    --green:       #16a34a;
    --red:         #dc2626;

    --font-display: 'Sora', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 6px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 18px 50px rgba(0,0,0,.14);
    --shadow-orange: 0 10px 30px rgba(255,122,0,.32);

    --ease: cubic-bezier(.22,1,.36,1);
    --container: 1240px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

/* ---------- KONTEJNER ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- DUGMAD ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 28px; border-radius: 100px; font-weight: 700; font-size: .95rem;
    font-family: var(--font-display); letter-spacing: .2px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
    position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(255,122,0,.45); }
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--gray-200); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 36px; font-size: 1.05rem; white-space: normal; line-height: 1.3; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }

/* sjaj efekt na hover */
.btn-primary::after, .btn-dark::after {
    content: ''; position: absolute; top: 0; left: -120%;
    width: 70%; height: 100%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transition: left .7s var(--ease);
}
.btn-primary:hover::after, .btn-dark:hover::after { left: 130%; }

/* ---------- HEADER ---------- */
.topbar {
    background: var(--black); color: var(--gray-300);
    font-size: .82rem; padding: 9px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: var(--orange); }
.topbar-ship { color: var(--orange); font-weight: 600; }

header.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow .3s, padding .3s;
}
header.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
    display: flex; align-items: center; gap: 28px;
    padding: 16px 20px; max-width: var(--container); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
    width: 44px; height: 44px; border-radius: 13px;
    background: var(--orange); display: grid; place-items: center;
    box-shadow: var(--shadow-orange); transition: transform .5s var(--ease);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--black); letter-spacing: -.5px; }
.logo-text span { color: var(--orange); }
.logo-sub { display:block; font-family: var(--font-body); font-size: .62rem; font-weight: 600; color: var(--gray-400); letter-spacing: .5px; margin-top: -2px; }

/* pretraga */
.search-bar { flex: 1; position: relative; max-width: 560px; }
.search-bar input {
    width: 100%; padding: 13px 50px 13px 20px;
    border: 2px solid var(--gray-200); border-radius: 100px;
    background: var(--gray-50); transition: border-color .25s, background .25s, box-shadow .25s;
}
.search-bar input:focus {
    outline: none; border-color: var(--orange); background: #fff;
    box-shadow: 0 0 0 4px rgba(255,122,0,.12);
}
.search-bar button {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; background: var(--orange);
    display: grid; place-items: center; transition: transform .25s, background .25s;
}
.search-bar button:hover { background: var(--orange-dark); transform: translateY(-50%) scale(1.08); }
.search-bar button svg { width: 18px; height: 18px; stroke: #fff; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-icon {
    position: relative; width: 46px; height: 46px; border-radius: 13px;
    display: grid; place-items: center; color: var(--gray-700);
    transition: background .2s, color .2s, transform .2s;
}
.header-icon:hover { background: var(--orange-soft); color: var(--orange); transform: translateY(-2px); }
.header-icon svg { width: 23px; height: 23px; }
.cart-badge {
    position: absolute; top: 4px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--orange); color: #fff; border-radius: 100px;
    font-size: .68rem; font-weight: 700; display: grid; place-items: center;
    font-family: var(--font-display); border: 2px solid #fff;
}
.cart-badge.pop { animation: badgePop .45s var(--ease); }
@keyframes badgePop { 0%{transform:scale(0)} 60%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* navigacija (kategorije) */
.main-nav { background: #fff; border-bottom: 1px solid var(--gray-100); position: sticky; top: 76px; z-index: 99; }
.main-nav .container { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav .container::-webkit-scrollbar { display: none; }
.nav-link {
    padding: 14px 14px; font-weight: 600; font-size: .9rem; color: var(--gray-700);
    white-space: nowrap; position: relative; transition: color .2s;
}
.nav-link::after {
    content:''; position:absolute; left:14px; right:14px; bottom:8px; height:2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover { color: var(--orange); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--orange); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); height: 3px; }
.nav-link.all { color: var(--orange); display:flex; align-items:center; gap:7px; padding-left: 0; }
.nav-link.nav-contact { margin-left: auto; }

/* hamburger (mobilni) */
.menu-toggle { display: none; }

/* ---------- HERO ---------- */
.hero {
    position: relative; background: var(--black); color: #fff; overflow: hidden;
    padding: 80px 0 90px;
}
.hero::before {
    content:''; position:absolute; inset:0;
    background:
        radial-gradient(circle at 78% 30%, rgba(255,122,0,.28), transparent 45%),
        radial-gradient(circle at 12% 80%, rgba(255,122,0,.12), transparent 40%);
}
.hero-grid-bg {
    position:absolute; inset:0; opacity:.4;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: rgba(255,122,0,.14); border: 1px solid rgba(255,122,0,.3);
    border-radius: 100px; color: var(--orange); font-weight: 600; font-size: .82rem;
    margin-bottom: 22px;
}
.hero-eyebrow .dot { width:7px; height:7px; border-radius:50%; background: var(--orange); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(255,122,0,.6)} 50%{opacity:.7;box-shadow:0 0 0 7px rgba(255,122,0,0)} }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; }
.hero h1 .hl { color: var(--orange); position: relative; }
.hero p { font-size: 1.15rem; color: var(--gray-300); max-width: 480px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: #fff; }
.hero-stat .lbl { font-size: .82rem; color: var(--gray-400); }

/* hero vizual */
.hero-visual { position: relative; height: 420px; }
.hero-bag {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 15rem; animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-22px) rotate(3deg)} }
.hero-float-card {
    position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px;
    animation: floatCard 4s ease-in-out infinite;
}
.hero-float-card .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--orange-soft); display: grid; place-items: center; font-size: 1.3rem; }
.hero-float-card .t { font-weight: 700; font-size: .9rem; font-family: var(--font-display); }
.hero-float-card .s { font-size: .76rem; color: var(--gray-500); }
.hero-float-card.c1 { top: 18%; left: -6%; animation-delay: 0s; }
.hero-float-card.c2 { bottom: 16%; right: -4%; animation-delay: 1.5s; }
.hero-float-card.c3 { bottom: 40%; left: 4%; animation-delay: .8s; }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* ---------- TRUST BAR ---------- */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--gray-100); }
.trust-bar .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 26px 20px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .ico { width: 46px; height: 46px; border-radius: 13px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.trust-item .ico svg { width: 24px; height: 24px; stroke: var(--orange); }
.trust-item .t { font-weight: 700; font-size: .92rem; font-family: var(--font-display); }
.trust-item .s { font-size: .8rem; color: var(--gray-500); }

/* ---------- SEKCIJE ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; gap: 20px; flex-wrap: wrap; }
.section-head .eyebrow { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-display); }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -1px; margin-top: 6px; }
.section-head .link { color: var(--gray-700); font-weight: 600; display: flex; align-items: center; gap: 7px; transition: gap .25s, color .25s; }
.section-head .link:hover { color: var(--orange); gap: 12px; }

/* ---------- KATEGORIJE KARTICE ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cat-card {
    position: relative; padding: 30px 24px; border-radius: var(--radius-lg);
    background: var(--gray-50); border: 1px solid var(--gray-100); overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.cat-card::before {
    content:''; position:absolute; top:-40px; right:-40px; width:120px; height:120px;
    background: var(--orange); opacity:.08; border-radius:50%; transition: transform .5s var(--ease);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::before { transform: scale(2.4); opacity:.12; }
.cat-card .emoji { font-size: 2.6rem; margin-bottom: 14px; position: relative; transition: transform .4s var(--ease); }
.cat-card:hover .emoji { transform: scale(1.15) rotate(-6deg); }
.cat-card .cat-icon { width: 56px; height: 56px; margin-bottom: 14px; position: relative; transition: transform .4s var(--ease); display: flex; align-items: center; justify-content: center; }
.cat-card .cat-icon svg { width: 100%; height: 100%; }
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-3deg); }
.cat-card h3 { font-size: 1.15rem; position: relative; }
.cat-card p { font-size: .85rem; color: var(--gray-500); position: relative; margin-top: 4px; }
.cat-card .arrow { margin-top: 16px; color: var(--orange); font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 6px; position: relative; transition: gap .25s; }
.cat-card:hover .arrow { gap: 11px; }

/* ---------- PROIZVOD KARTICE ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.product-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.product-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--gray-100); position: relative;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #fff; padding: 16px; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); border-radius: var(--radius); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge {
    padding: 5px 11px; border-radius: 100px; font-size: .72rem; font-weight: 700;
    font-family: var(--font-display); backdrop-filter: blur(4px);
}
.badge-sale { background: var(--red); color: #fff; }
.badge-new { background: var(--black); color: #fff; }
.badge-hot { background: var(--orange); color: #fff; }
.product-fav {
    position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2;
    opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s, background .2s;
    border: none; cursor: pointer; padding: 0;
}
.product-card:hover .product-fav { opacity: 1; transform: translateY(0); }
.product-fav:hover { background: var(--orange); }
.product-fav:hover svg { stroke: #fff; }
.product-fav svg { width: 19px; height: 19px; stroke: var(--gray-700); fill: none; transition: fill .2s, stroke .2s; }
.product-fav.active { background: var(--orange); opacity: 1 !important; transform: translateY(0) !important; }
.product-fav.active svg { fill: #fff; stroke: #fff; }
.product-quickadd {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
    opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.product-card:hover .product-quickadd { opacity: 1; transform: translateY(0); }
.product-info { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .74rem; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-family: var(--font-display); }
.product-name { font-size: 1rem; font-weight: 600; margin: 6px 0 4px; line-height: 1.35; flex: 1; }
.product-name a:hover { color: var(--orange); }
.product-desc { font-size: .83rem; color: var(--gray-500); margin-bottom: 12px; }
.product-price-row { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--black); }
.product-old { font-size: .95rem; color: var(--gray-400); text-decoration: line-through; }
.product-stock-out { font-size: .8rem; color: var(--red); font-weight: 600; }

/* zvjezdice */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; fill: var(--orange); }

/* ---------- BANNER (mjesečna ponuda) ---------- */
.promo-banner {
    background: linear-gradient(120deg, var(--black) 0%, #1c1c1c 100%);
    border-radius: var(--radius-xl); padding: 54px 50px; color: #fff;
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.promo-banner::before { content:''; position:absolute; top:-60px; right:-20px; width:300px; height:300px; background: var(--orange); opacity:.2; border-radius:50%; filter: blur(40px); }
.promo-banner .eyebrow { color: var(--orange); font-weight: 700; letter-spacing: 1px; font-family: var(--font-display); text-transform: uppercase; font-size: .85rem; }
.promo-banner h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin: 10px 0 14px; letter-spacing: -1px; position: relative; }
.promo-banner p { color: var(--gray-300); max-width: 460px; position: relative; }

/* ---------- NEWSLETTER ---------- */
.newsletter { background: var(--orange-soft); border-radius: var(--radius-xl); padding: 50px; text-align: center; }
.newsletter h2 { font-size: clamp(1.6rem,3.5vw,2.3rem); letter-spacing: -.5px; }
.newsletter p { color: var(--gray-700); margin: 10px auto 26px; max-width: 460px; }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 15px 22px; border: 2px solid transparent; border-radius: 100px; background: #fff; transition: border-color .25s; }
.newsletter-form input:focus { outline: none; border-color: var(--orange); }

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--black); color: var(--gray-400); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { margin: 16px 0 20px; font-size: .9rem; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer-col ul a:hover { color: var(--orange); padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; font-size: .9rem; }
.footer-contact svg { width: 18px; height: 18px; stroke: var(--orange); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom strong { color: var(--orange); font-weight: 700; }
.footer-credit { display: flex; align-items: center; gap: 8px; color: var(--gray-500); }
.nld-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px; color: #fff; font-weight: 700; font-family: var(--font-display);
    font-size: .82rem; transition: all .3s var(--ease);
}
.nld-badge svg { width: 14px; height: 14px; fill: var(--orange); stroke: var(--orange); }
.nld-badge:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-orange); }
.nld-badge:hover svg { fill: #fff; stroke: #fff; }

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 3000;
    background: var(--black); color: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 22px 26px; max-width: 860px; margin: 0 auto;
    opacity: 0; transform: translateY(30px); transition: opacity .45s var(--ease), transform .45s var(--ease);
    border: 1px solid rgba(255,122,0,.25);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 26px; }
.cookie-text strong { font-family: var(--font-display); font-size: 1rem; display: block; margin-bottom: 4px; }
.cookie-text p { font-size: .86rem; color: var(--gray-400); line-height: 1.5; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.cookie-actions .btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 640px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
    .cookie-actions { flex-direction: column; }
    .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ---------- FLASH PORUKE ---------- */
.flash-wrap { position: fixed; top: 90px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.flash {
    padding: 15px 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--orange); font-size: .9rem; font-weight: 500;
    animation: flashIn .4s var(--ease); display: flex; align-items: center; gap: 11px;
}
.flash.success { border-left-color: var(--green); }
.flash.error { border-left-color: var(--red); }
@keyframes flashIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }

/* ---------- ANIMACIJE PRI SCROLLU ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ---------- RESPONZIVNOST ---------- */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .product-grid, .cat-grid { grid-template-columns: repeat(3,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .topbar { font-size: .75rem; padding: 7px 0; }
    .topbar .container { gap: 10px; flex-wrap: nowrap; }
    .topbar-left { gap: 12px; min-width: 0; }
    .topbar-left .hide-sm { display: none; }
    .topbar-ship { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .topbar-right { white-space: nowrap; flex-shrink: 0; }
    .search-bar { order: 3; flex-basis: 100%; max-width: none; margin-top: 12px; }
    .header-inner { flex-wrap: wrap; gap: 14px; }
    .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--gray-700); }
    .menu-toggle:hover { background: var(--orange-soft); color: var(--orange); }
    .main-nav { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; background: #fff; z-index: 200; transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); padding-top: 20px; }
    .main-nav.open { transform: translateX(0); }
    .main-nav .container { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-link { padding: 16px 22px; border-bottom: 1px solid var(--gray-100); }
    .nav-link::after { display: none; }
    .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .3s; }
    .nav-overlay.open { opacity: 1; visibility: visible; }
    .product-grid, .product-grid.cols-3, .cat-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
    .trust-bar .container { grid-template-columns: 1fr 1fr; gap: 18px; }
    .hero-stats { gap: 24px; }
    .promo-banner { grid-template-columns: 1fr; padding: 36px 28px; text-align: center; }
    .newsletter { padding: 36px 22px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }
    .section { padding: 48px 0; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    /* Topbar — kompaktnije i kraće tekstove */
    .topbar { font-size: .7rem; padding: 6px 0; }
    .topbar .container { padding: 0 12px; gap: 8px; }
    .topbar-left { gap: 8px; }

    .product-grid, .product-grid.cols-3, .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-info { padding: 12px; gap: 2px; }
    .product-cat { font-size: .65rem; letter-spacing: .3px; }
    .product-name { font-size: .88rem; line-height: 1.3; margin: 4px 0 2px; }
    .product-desc { font-size: .75rem; margin-bottom: 8px; }
    .product-price { font-size: 1.05rem; }
    .product-old { font-size: .8rem; }
    .product-thumb { padding: 10px; }
    .product-fav { width: 32px; height: 32px; top: 8px; right: 8px; }
    .product-fav svg { width: 16px; height: 16px; }
    .product-quickadd { left: 8px; right: 8px; bottom: 8px; }
    .product-quickadd .btn { font-size: .78rem; padding: 8px 10px; }
    .product-quickadd .btn svg { width: 14px; height: 14px; }
    .hero { padding: 54px 0 60px; }
    .logo-text { font-size: 1.25rem; }
    /* Header: hamburger + logo + ikonice ostaju u jednom redu */
    .header-inner { gap: 10px; padding: 14px 16px; }
    .logo { gap: 8px; min-width: 0; }
    .logo-mark { width: 38px; height: 38px; border-radius: 11px; }
    .logo-mark svg { width: 22px; height: 22px; }
    .header-actions { gap: 4px; }
    .header-icon { width: 40px; height: 40px; }
    .menu-toggle { width: 40px !important; height: 40px !important; }
}
@media (max-width: 360px) {
    /* Najmanji telefoni — sakrij podnaslov da logo bude uži */
    .logo-sub { display: none; }
    .logo-text { font-size: 1.15rem; }
}

/* utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================================
   STRANICE: prodavnica, proizvod, korpa, checkout, forme
   ============================================================ */

/* ---------- PAGE HERO / BREADCRUMB ---------- */
.page-hero { background: var(--cream); padding: 40px 0 36px; border-bottom: 1px solid var(--gray-100); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -1px; }
.page-hero p { color: var(--gray-500); margin-top: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--gray-500); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb strong { color: var(--ink); }
.breadcrumb span { color: var(--gray-300); }

/* ---------- SHOP LAYOUT ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.shop-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.filter-box { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 22px; }
.filter-box h4 { font-size: 1.05rem; margin-bottom: 14px; }
.filter-list li { margin-bottom: 4px; }
.filter-list a { display: block; padding: 9px 14px; border-radius: 10px; color: var(--gray-700); font-size: .92rem; font-weight: 500; transition: all .2s; }
.filter-list a:hover { background: var(--orange-soft); color: var(--orange); }
.filter-list a.active { background: var(--orange); color: #fff; font-weight: 600; }
.promo-side { background: linear-gradient(135deg, var(--black), #1c1c1c); color: #fff; text-align: center; }
.promo-side .emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.promo-side h4 { color: var(--orange); }
.promo-side p { font-size: .85rem; color: var(--gray-400); margin-top: 6px; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }
.result-count { color: var(--gray-500); font-size: .92rem; }
.sort-form { display: flex; align-items: center; gap: 10px; position: relative; }
.sort-form label { font-size: .88rem; color: var(--gray-500); }

/* Custom dropdown u stilu sajta */
.kb-select { position: relative; }
.kb-select-trigger {
    display: flex; align-items: center; gap: 12px; min-width: 180px;
    padding: 10px 16px; border: 2px solid var(--gray-200); border-radius: 100px;
    background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); font-size: .92rem;
    transition: border-color .2s, box-shadow .2s; justify-content: space-between;
}
.kb-select-trigger svg { width: 16px; height: 16px; color: var(--orange); transition: transform .25s var(--ease); flex-shrink: 0; }
.kb-select.open .kb-select-trigger { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.kb-select.open .kb-select-trigger svg { transform: rotate(180deg); }
.kb-select-trigger:hover { border-color: var(--orange); }
.kb-select-list {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--gray-100); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 6px; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.kb-select.open .kb-select-list { opacity: 1; visibility: visible; transform: translateY(0); }
.kb-select-list li {
    padding: 11px 14px; border-radius: 10px; cursor: pointer; font-weight: 600;
    font-size: .9rem; color: var(--gray-700); transition: background .15s, color .15s;
}
.kb-select-list li:hover { background: var(--orange-soft); color: var(--orange-dark); }
.kb-select-list li.selected { background: var(--orange); color: #fff; }

/* ---------- PAGINACIJA ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.page-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--gray-200); font-weight: 600; transition: all .25s; }
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ---------- EMPTY STATE ---------- */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .emoji { font-size: 4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); max-width: 420px; margin: 0 auto; }

/* ---------- PROIZVOD DETALJ ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 10px; }
.detail-img-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-50); border: 1px solid var(--gray-100); aspect-ratio: 1/1; }
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.detail-img-wrap:hover img { transform: scale(1.05); }

/* ===== GALERIJA PROIZVODA (Amazon stil) ===== */
.product-gallery { display: flex; gap: 16px; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.gallery-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid var(--gray-100); background: #fff; cursor: pointer; padding: 4px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.gallery-thumb:hover { border-color: var(--orange-soft); transform: translateY(-2px); }
.gallery-thumb:active { transform: scale(0.94); }
.gallery-thumb.active { border-color: var(--orange); }
.gallery-main { position: relative; flex: 1; }
.gallery-stage { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: #fff; border: 1px solid var(--gray-100); aspect-ratio: 1/1; cursor: zoom-in; padding: 0; touch-action: pan-y pinch-zoom; }
.gallery-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.gallery-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.gallery-slide img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .25s var(--ease); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.gallery-stage.zooming .gallery-slide img { transform: scale(2); transition: transform .1s linear; }
.gallery-zoom-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(15,15,15,.72); color: #fff; font-size: .78rem; padding: 7px 14px; border-radius: 100px; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(4px); white-space: nowrap; z-index: 2; }
.gallery-stage.zooming .gallery-zoom-hint { opacity: 0; }
.gallery-counter { position: absolute; top: 14px; right: 14px; background: rgba(15,15,15,.72); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px); z-index: 2; }
.gallery-main .detail-badge { z-index: 3; }
.gallery-dots { display: none; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200, #d4d4d8); border: none; padding: 0; cursor: pointer; transition: background .2s, width .25s var(--ease); }
.gallery-dot.active { background: var(--orange); width: 22px; border-radius: 100px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,15,15,.94); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; animation: lbFade .25s var(--ease); }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: 12px; }

.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    width: 48px; height: 48px; border-radius: 50%;
    background: #fff; color: var(--ink, #1a1a1a); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.lightbox-close svg { width: 22px; height: 22px; }
@media (hover: hover) {
    .lightbox-close:hover { background: var(--orange); color: #fff; transform: rotate(90deg); }
}

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff; color: var(--ink, #1a1a1a); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.lightbox-nav svg { width: 24px; height: 24px; }
@media (hover: hover) {
    .lightbox-nav:hover { background: var(--orange); color: #fff; box-shadow: 0 6px 22px rgba(255,122,0,.5); }
}
.lightbox-nav:active { background: var(--orange); color: #fff; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

.lightbox-counter { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; background: rgba(255,255,255,.12); padding: 7px 18px; border-radius: 100px; }
.detail-badge { position: absolute; top: 18px; left: 18px; font-size: .9rem; padding: 7px 14px; }
.product-detail-info h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.8px; margin: 6px 0 14px; }
.detail-rating { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.rating-text { font-size: .88rem; color: var(--green); font-weight: 600; }
.sku { font-size: .82rem; color: var(--gray-400); }
.detail-short { font-size: 1.05rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 24px; }
.detail-price-box { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--black); }
.detail-old { font-size: 1.3rem; color: var(--gray-400); text-decoration: line-through; }
.detail-save { background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; padding: 5px 13px; border-radius: 100px; font-size: .85rem; }
.detail-stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin-bottom: 24px; padding: 9px 16px; border-radius: 100px; }
.detail-stock svg { width: 18px; height: 18px; }
.detail-stock.in { background: #e7f6ec; color: var(--green); }
.detail-stock.out { background: #fde8e8; color: var(--red); }
.detail-actions { display: flex; gap: 14px; align-items: stretch; }
.qty-selector { display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: 100px; overflow: hidden; }
.qty-selector.small { border-width: 1px; }
.qty-btn { width: 46px; height: 100%; min-height: 50px; font-size: 1.3rem; font-weight: 700; color: var(--gray-700); transition: background .2s, color .2s; }
.qty-btn:hover { background: var(--orange-soft); color: var(--orange); }
.qty-selector input { width: 50px; text-align: center; border: none; font-weight: 700; font-size: 1.05rem; background: transparent; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-actions .btn { flex: 1; }
.detail-perks { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--gray-100); }
.perk { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--gray-700); font-weight: 500; }
.perk span { font-size: 1.3rem; }

.detail-description { margin-top: 60px; max-width: 800px; }
.detail-description h2 { font-size: 1.6rem; margin-bottom: 16px; position: relative; padding-bottom: 12px; }
.detail-description h2::after { content:''; position:absolute; left:0; bottom:0; width:50px; height:3px; background: var(--orange); border-radius:2px; }
.desc-content { color: var(--gray-700); line-height: 1.8; font-size: 1.02rem; }
.related-products { margin-top: 70px; }

/* ---------- KORPA ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto auto; gap: 18px; align-items: center; padding: 18px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); margin-bottom: 14px; transition: box-shadow .3s; }
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item-img { width: 90px; height: 90px; border-radius: 12px; overflow: hidden; background: var(--gray-50); }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 5px; }
.cart-item-info h3 a:hover { color: var(--orange); }
.cart-item-price { font-size: .88rem; color: var(--gray-500); }
.cart-item-total { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; min-width: 90px; text-align: right; }
.cart-item-remove { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--gray-400); transition: all .2s; }
.cart-item-remove:hover { background: #fde8e8; color: var(--red); }
.cart-item-remove svg { width: 19px; height: 19px; }
.cart-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.cart-actions .btn { flex: 1; min-width: 160px; }

@media (max-width: 520px) {
    .cart-actions { flex-direction: column; }
    .cart-actions .btn { width: 100%; }
}

.cart-summary, .checkout-summary { position: sticky; top: 100px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.cart-summary h3, .checkout-summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--gray-100); font-size: .95rem; color: var(--gray-700); }
.summary-row strong { color: var(--ink); }
.free-ship-hint { background: var(--orange-soft); color: var(--orange-dark); padding: 12px 16px; border-radius: 12px; font-size: .85rem; font-weight: 600; margin: 14px 0; text-align: center; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 6px; font-weight: 700; font-size: 1.05rem; }
.total-amount { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--orange); }
.summary-perks { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-100); font-size: .8rem; color: var(--gray-500); }

/* ---------- CHECKOUT ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-block { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; }
.checkout-block h3 { font-size: 1.2rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid > * { min-width: 0; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.form-field input, .form-field textarea, .form-field select {
    padding: 13px 16px; border: 2px solid var(--gray-200); border-radius: 12px;
    background: var(--gray-50); transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.form-field select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ff7a00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--orange); background-color: #fff; box-shadow: 0 0 0 4px rgba(255,122,0,.1);
}
.payment-option { display: block; cursor: pointer; margin-bottom: 12px; }
.payment-option input { position: absolute; opacity: 0; }
.payment-card { display: block; padding: 18px 20px; border: 2px solid var(--gray-200); border-radius: 14px; transition: all .25s; }
.payment-card strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.payment-card small { color: var(--gray-500); font-size: .85rem; }
.payment-option input:checked + .payment-card { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 4px rgba(255,122,0,.08); }
.checkout-items { margin-bottom: 18px; max-height: 320px; overflow-y: auto; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.checkout-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; background: #fff; }
.ci-info { flex: 1; display: flex; flex-direction: column; }
.ci-name { font-size: .88rem; font-weight: 600; }
.ci-qty { font-size: .8rem; color: var(--gray-500); }
.ci-total { font-weight: 700; font-size: .92rem; }
.checkout-note { font-size: .78rem; color: var(--gray-500); text-align: center; margin-top: 12px; }
.checkout-note a { color: var(--orange); text-decoration: underline; }

/* ---------- ALERT ---------- */
.alert-box { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; font-size: .92rem; }
.alert-box.error { background: #fde8e8; color: #991b1b; border-left: 4px solid var(--red); }
.alert-box.success { background: #e7f6ec; color: #166534; border-left: 4px solid var(--green); }
.alert-box ul { margin-top: 8px; padding-left: 18px; list-style: disc; }
.alert-box li { margin-top: 3px; }

/* ---------- THANK YOU ---------- */
.thank-you { padding: 80px 0; }
.thank-card { max-width: 600px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--radius-xl); padding: 56px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.thank-check { width: 90px; height: 90px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 24px; animation: checkPop .6s var(--ease); }
.thank-check svg { width: 46px; height: 46px; }
@keyframes checkPop { 0%{transform:scale(0)} 60%{transform:scale(1.15)} 100%{transform:scale(1)} }
.thank-card h1 { font-size: 2rem; margin-bottom: 12px; }
.thank-card p { color: var(--gray-600); }
.order-num { background: var(--cream); border-radius: 12px; padding: 14px 22px; margin: 22px 0; font-size: 1.05rem; }
.order-num strong { color: var(--orange); font-family: var(--font-display); }
.thank-sub { font-size: .92rem; color: var(--gray-500); }
.thank-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- AUTH FORME ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--gray-500); margin-bottom: 28px; font-size: .92rem; }
.auth-form .form-field { margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--gray-500); }
.auth-switch a { color: var(--orange); font-weight: 600; }

/* ---------- STATIC STRANICE (pravila itd.) ---------- */
.static-content { max-width: 800px; margin: 0 auto; }
.static-content h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.static-content h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.static-content p { color: var(--gray-700); line-height: 1.8; margin-bottom: 14px; }
.static-content ul { padding-left: 22px; list-style: disc; color: var(--gray-700); line-height: 1.8; margin-bottom: 14px; }
.static-content li { margin-bottom: 6px; }
.static-content a { color: var(--orange); text-decoration: underline; }

/* ---------- RESPONZIVNOST STRANICA ---------- */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .product-gallery { flex-direction: column; gap: 12px; }
    .gallery-main { order: 1; }
    .gallery-thumbs { order: 2; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
    .gallery-thumb { width: 64px; height: 64px; }
    .gallery-zoom-hint { display: none; }
    .gallery-stage { cursor: default; }
    .gallery-dots { display: flex; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary { position: relative; top: 0; }
}
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .filter-box { min-width: 240px; }
    .promo-side { display: none; }
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        grid-template-areas:
            "img info remove"
            "img qty total";
        gap: 10px 14px;
        padding: 14px;
    }
    .cart-item-img { grid-area: img; width: 70px; height: 70px; }
    .cart-item-info { grid-area: info; min-width: 0; }
    .cart-item-info h3 { font-size: .92rem; line-height: 1.35; }
    .cart-item-qty { grid-area: qty; }
    .cart-item-total { grid-area: total; text-align: right; font-size: 1rem; min-width: 0; }
    .cart-item-remove { grid-area: remove; justify-self: end; width: 36px; height: 36px; }
    .form-grid { grid-template-columns: 1fr; }
    /* Galerija i media — spriječi prelijevanje na Safari (iPhone) */
    .product-detail-media, .product-detail-info { min-width: 0; max-width: 100%; }
    .product-gallery, .gallery-main { width: 100%; min-width: 0; max-width: 100%; }
    .gallery-stage { width: 100%; max-width: 100%; }
    /* Dugmad: qty + dodaj u red, ali bez prelijevanja */
    .detail-actions { flex-wrap: wrap; }
    .detail-actions .btn { flex: 1 1 auto; min-width: 0; }
    .qty-selector { flex-shrink: 0; }
}

/* ---------- ACCOUNT ---------- */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.account-layout > * { min-width: 0; }
.account-content { min-width: 0; max-width: 100%; }
.account-nav { position: sticky; top: 100px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.account-nav-link { padding: 13px 18px; border-radius: 12px; font-weight: 600; color: var(--gray-700); transition: all .2s; }
.account-nav-link:hover { background: var(--orange-soft); color: var(--orange); }
.account-nav-link.active { background: var(--orange); color: #fff; }
.account-nav-link.logout { color: var(--red); margin-top: 8px; border-top: 1px solid var(--gray-100); border-radius: 0 0 12px 12px; }
.account-nav-link.logout:hover { background: #fde8e8; color: var(--red); }
.account-block { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 22px; min-width: 0; }
.account-block h2 { font-size: 1.3rem; margin-bottom: 20px; }
.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-row { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--gray-100); border-radius: 14px; transition: box-shadow .25s; }
.order-row:hover { box-shadow: var(--shadow); }
.order-row-main { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.order-row-main strong { font-family: var(--font-display); }
.order-date { font-size: .82rem; color: var(--gray-500); }
.order-total { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }

/* ---------- KONTAKT ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 22px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); margin-bottom: 14px; transition: all .3s var(--ease); }
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.contact-card strong { display: block; font-size: .82rem; color: var(--gray-500); font-weight: 600; }
.contact-card a { font-weight: 700; font-family: var(--font-display); transition: color .2s; }
.contact-card a:hover { color: var(--orange); }

/* Account nav mobile — fixed bottom bar trigger + bottom sheet, vidljiv samo na <769px */
.account-nav-mobile { display: none; }
.acc-dd-backdrop { display: none; }

@media (max-width: 768px) {
    .account-layout { grid-template-columns: 1fr; }

    /* Sakrij desktop sidebar na mobilnoj */
    .account-nav { display: none !important; }

    /* Trigger fixed na dnu ekrana */
    .account-nav-mobile {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        pointer-events: none;
    }

    /* Trigger button — bottom bar prilijepljen za dno, zaobljen samo gore */
    .acc-dd-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
        background: #fff;
        border: none;
        border-top: 3px solid var(--orange);
        border-radius: 24px 24px 0 0;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: var(--ink);
        cursor: pointer;
        text-align: left;
        box-shadow: 0 -10px 30px rgba(0,0,0,.12);
        pointer-events: auto;
    }
    .acc-dd-current {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--ink);
    }
    .acc-dd-arrow {
        width: 22px;
        height: 22px;
        color: var(--orange);
        flex-shrink: 0;
        animation: accArrowBounce 2s ease-in-out infinite;
    }
    @keyframes accArrowBounce {
        0%, 100% { transform: translateY(0); opacity: .85; }
        50%      { transform: translateY(-4px); opacity: 1; }
    }
    body.acc-dd-open .acc-dd-arrow {
        animation: none;
        transform: rotate(180deg);
        transition: transform .3s var(--ease);
    }

    /* Padding na dnu stranice da fixed trigger ne pokriva sadržaj */
    body.account-page-mobile main,
    body.account-page-mobile .section { padding-bottom: 110px; }

    /* Backdrop */
    .acc-dd-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s var(--ease), visibility .25s;
    }
    body.acc-dd-open .acc-dd-backdrop { opacity: 1; visibility: visible; }

    /* Bottom sheet lista */
    .acc-dd-list {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        max-height: 75vh;
        background: #fff;
        border-radius: 24px 24px 0 0;
        padding: 14px 16px calc(28px + env(safe-area-inset-bottom));
        margin: 0;
        list-style: none;
        z-index: 999;
        transform: translateY(100%);
        transition: transform .3s var(--ease);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 -8px 32px rgba(0,0,0,.18);
        box-sizing: border-box;
    }
    body.acc-dd-open .acc-dd-list {
        transform: translateY(0);
    }
    .acc-dd-list::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        background: var(--gray-300);
        border-radius: 100px;
        margin: 0 auto 16px;
    }

    .acc-dd-list li {
        padding: 14px 18px;
        border-radius: 14px;
        font-weight: 600;
        font-size: .95rem;
        color: var(--gray-700);
        cursor: pointer;
        list-style: none;
        margin-bottom: 2px;
        transition: background .15s, color .15s;
    }
    .acc-dd-list li:active { background: var(--orange-soft); }
    .acc-dd-list li.active { background: var(--orange); color: #fff; }
    .acc-dd-list li.logout { color: var(--red); margin-top: 8px; border-top: 1px solid var(--gray-100); border-radius: 0 0 14px 14px; padding-top: 16px; }

    .contact-layout { grid-template-columns: 1fr; }
    .order-row { flex-wrap: wrap; }

    /* FIX: spreči horizontal overflow na mobilnoj */
    .account-block { padding: 18px 14px; }
    .account-block h2 { font-size: 1.1rem; }
    .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .wishlist-item { padding: 10px; }
    .wishlist-name { font-size: .82rem; }
    .wishlist-price { font-size: 1rem; }
    .loyalty-stats { gap: 10px; }
    .ls-stat { padding: 12px; }
    .ls-value { font-size: 1.1rem; }
    .address-grid { grid-template-columns: 1fr; gap: 10px; }

    .order-items-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }
}

@media (max-width: 420px) {
    .wishlist-grid { grid-template-columns: 1fr; }
    .account-block { padding: 16px 12px; }
}

/* ---------- CHECKOUT: info blok plaćanja (samo pouzeće) ---------- */
.payment-info-box { display: flex; flex-direction: column; gap: 4px; }
.pi-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 2px solid var(--gray-100); border-radius: 14px; margin-bottom: 10px; background: var(--gray-50); }
.pi-row:last-child { margin-bottom: 0; }
.pi-ico { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.pi-row strong { display: block; font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px; }
.pi-row small { color: var(--gray-500); font-size: .85rem; line-height: 1.5; }

/* ============================================================
   GIVEAWAY (nagradna igra)
   ============================================================ */
.giveaway-hero { padding: 50px 0 70px; background: linear-gradient(160deg, var(--cream), #fff); }
.gw-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: stretch; }
.gw-info { display: flex; flex-direction: column; }
.gw-badge { display: inline-block; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; font-family: var(--font-display); padding: 8px 18px; border-radius: 100px; font-size: .85rem; margin-bottom: 18px; align-self: flex-start; }
.gw-info h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 16px; }
.gw-sub { font-size: 1.25rem; color: var(--orange); font-weight: 700; font-family: var(--font-display); margin-bottom: 18px; }
.gw-desc { color: var(--gray-700); line-height: 1.7; margin-bottom: 28px; }
.gw-prizes { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); flex: 1; display: flex; flex-direction: column; }
.gw-prizes h3 { font-size: 1.15rem; margin-bottom: 18px; }
.gw-prizes ul { display: flex; flex-direction: column; gap: 18px; }
.gw-prizes li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); font-size: 1.02rem; }
.gw-prizes li svg { width: 21px; height: 21px; color: var(--green); flex-shrink: 0; }
.gw-deadline { margin-top: 18px; color: var(--gray-600); }
.gw-deadline strong { color: var(--orange); }
.gw-trust { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--gray-100); display: flex; flex-direction: column; gap: 18px; }
.gw-trust-title { font-size: 1.05rem; font-family: var(--font-display); margin-bottom: 2px; }
.gw-trust-item { display: flex; align-items: center; gap: 11px; font-size: .95rem; color: var(--gray-700); font-weight: 500; }
.gw-trust-item span { font-size: 1.25rem; }

.gw-form-wrap { display: flex; flex-direction: column; justify-content: flex-end; }
.gw-form-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl); padding: 0 0 32px; box-shadow: var(--shadow-lg); overflow: hidden; }
.gw-form-highlight { background: linear-gradient(100deg, var(--black), #1f1f1f); padding: 24px 30px; display: flex; align-items: baseline; gap: 12px; }
.gw-hl-amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.gw-hl-text { color: #cfcfcf; font-size: .95rem; font-weight: 500; }
.gw-form-card h3 { font-size: 1.4rem; text-align: center; margin: 22px 0 18px; }
.gw-form-card form { padding: 0 30px; }
.gw-form-card .form-field { margin-bottom: 14px; }
.gw-count { background: var(--orange-soft); color: var(--orange-dark); text-align: center; font-weight: 600; font-size: .92rem; padding: 11px 16px; margin: 20px 30px 0; border-radius: 100px; }
.gw-steps { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 4px; padding: 20px 0 4px; border-top: 1px solid var(--gray-100); }
.gw-step { display: flex; align-items: center; gap: 14px; }
.gw-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-size: .95rem; }
.gw-step strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.gw-step small { color: var(--gray-500); font-size: .82rem; }
.gw-note { font-size: .78rem; color: var(--gray-500); text-align: center; margin-top: 12px; }
.gw-note a { color: var(--orange); text-decoration: underline; }

.gw-success { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border-radius: var(--radius-xl); padding: 50px 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.gw-check { width: 84px; height: 84px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 22px; animation: checkPop .6s var(--ease); }
.gw-check svg { width: 42px; height: 42px; }
.gw-success h1 { font-size: 2rem; margin-bottom: 12px; }
.gw-success > p { color: var(--gray-600); line-height: 1.7; max-width: 480px; margin: 0 auto; }
.gw-share-box { background: var(--cream); border-radius: var(--radius-lg); padding: 26px; margin: 28px 0; }
.gw-share-box label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 10px; text-align: left; }
.gw-share-input { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.gw-share-input input { flex: 1; min-width: 0; padding: 13px 20px; border: 2px solid var(--gray-200); border-radius: 100px; background: #fff; font-size: .9rem; }
.gw-share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.gw-share-btn {
    flex: 1; min-width: 140px;
    padding: 14px 22px;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: .92rem;
    transition: all .25s var(--ease);
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.gw-share-btn.wa { background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.gw-share-btn.fb { background: #1877f2; color: #fff; box-shadow: 0 6px 18px rgba(24,119,242,.3); }
.gw-share-btn:hover { transform: translateY(-2px); }
.gw-share-btn.wa:hover { box-shadow: 0 10px 24px rgba(37,211,102,.45); }
.gw-share-btn.fb:hover { box-shadow: 0 10px 24px rgba(24,119,242,.45); }

@media (max-width: 520px) {
    .gw-share-input { flex-direction: column; }
    .gw-share-input button { width: 100%; }
    .gw-share-input input { width: 100%; text-align: center; }
    .gw-share-btn { flex: 1 1 100%; min-width: 0; }
    .gw-share-box { padding: 18px; }
}

/* ---------- GIVEAWAY BANNER (naslovna) ---------- */
.gw-banner { background: linear-gradient(100deg, #0f0f0f, #2a2a2a); color: #fff; border-radius: var(--radius-xl); padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0; position: relative; overflow: hidden; border: 1px solid rgba(255,122,0,.35); }
.gw-banner::before { content: '🎁'; position: absolute; right: 30px; top: 50%; transform: translateY(-50%); font-size: 7rem; opacity: .07; pointer-events: none; }
.gw-banner-text { position: relative; flex: 1; }
.gw-banner-text .eyebrow { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.gw-banner-text h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 8px 0 6px; color: #fff; }
.gw-banner-text p { color: #b8b8b8; font-size: .98rem; }
.gw-banner .btn { flex-shrink: 0; position: relative; box-shadow: none; }
.gw-banner .btn:hover { box-shadow: 0 8px 24px rgba(255,122,0,.3); }

/* Pobjednici giveaway-a */
.gw-winners { background: linear-gradient(160deg, var(--cream), #fff); border: 1px solid var(--gray-100); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow); }
.gw-winners-head { text-align: center; margin-bottom: 32px; }
.gw-winners-head .eyebrow { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; }
.gw-winners-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 8px 0 6px; }
.gw-winners-head p { color: var(--gray-500); font-size: .98rem; }
.gw-winners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.gw-winner-card { background: #fff; border: 2px solid var(--gray-100); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.gw-winner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gw-winner-card.place-1 { border-color: var(--orange); background: linear-gradient(180deg, var(--orange-soft), #fff); transform: scale(1.05); }
.gw-winner-card.place-1:hover { transform: scale(1.05) translateY(-4px); }
.gw-winner-medal { font-size: 2.8rem; line-height: 1; margin-bottom: 12px; }
.gw-winner-place { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin-bottom: 6px; }
.gw-winner-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); }

@media (max-width: 600px) {
    .gw-winners { padding: 28px 20px; }
    .gw-winners-grid { grid-template-columns: 1fr; gap: 14px; }
    .gw-winner-card.place-1 { transform: scale(1); }
    .gw-winner-card.place-1:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    .gw-grid { grid-template-columns: 1fr; gap: 24px; }
    .gw-form-wrap { order: -1; }
    .gw-share-buttons { flex-direction: column; }
    .gw-banner { flex-direction: column; text-align: center; padding: 24px; }
    .gw-banner::before { display: none; }
}

/* ===== AVATAR / NALOG ===== */
.account-hero-head { display: flex; align-items: center; gap: 20px; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; flex-shrink: 0; overflow: hidden; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar.lg { width: 90px; height: 90px; font-size: 2rem; }
.avatar-upload-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; min-width: 0; }
.avatar-upload-field { flex: 1; min-width: 0; max-width: 100%; }
.avatar-upload-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.avatar-upload-field input[type="file"] { max-width: 100%; width: 100%; font-size: .85rem; }
.avatar-upload-field .hint { display: block; color: var(--gray-500); font-size: .8rem; margin-top: 4px; word-wrap: break-word; }

/* Sigurnost */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.security-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px; }
.security-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.security-card .form-field { margin-bottom: 12px; }

/* Wishlist */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.wishlist-item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow); }
.wishlist-item > a { display: block; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--gray-50); margin-bottom: 12px; }
.wishlist-item img { width: 100%; height: 100%; object-fit: contain; }
.wishlist-name { font-weight: 600; font-size: .92rem; color: var(--ink); display: block; margin-bottom: 4px; line-height: 1.3; }
.wishlist-price { color: var(--orange); font-weight: 700; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; }
.wishlist-actions { display: flex; align-items: center; gap: 8px; }
.wishlist-actions .btn { flex: 1; }
.wishlist-remove { font-size: 1.1rem; padding: 6px; border-radius: 8px; transition: background .2s; }
.wishlist-remove:hover { background: var(--gray-100); }

/* Wishlist srce dugme (na proizvodu) */
.wishlist-heart { width: 54px; min-width: 54px; flex: 0 0 54px; flex-shrink: 0; border: 2px solid var(--gray-200); border-radius: 14px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: all .2s var(--ease); }
.wishlist-heart svg { width: 24px; height: 24px; color: var(--gray-500); transition: all .2s var(--ease); }
.wishlist-heart:hover { border-color: #e63946; }
.wishlist-heart:hover svg { color: #e63946; }
.wishlist-heart.active { border-color: #e63946; background: #fff0f1; }
.wishlist-heart.active svg { color: #e63946; fill: #e63946; }

/* Auth stranice (reset šifre) */
.auth-section { padding: 60px 0; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-sub { color: var(--gray-600); margin-bottom: 22px; line-height: 1.6; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; }
.auth-switch a { color: var(--orange); }
.auth-success { text-align: center; }
.auth-success-icon { font-size: 3rem; margin-bottom: 14px; }
.auth-success h1 { margin-bottom: 10px; }
.auth-success p { color: var(--gray-600); line-height: 1.6; }

@media (max-width: 600px) {
    .security-grid { grid-template-columns: 1fr; }
    .account-hero-head { flex-direction: column; text-align: center; }
}

/* ===== RECENZIJE ===== */
.detail-rating .stars svg.empty { fill: var(--gray-200); }
.detail-rating .stars svg.filled { fill: #ffb800; }
a.rating-text { color: var(--orange); text-decoration: underline; }
.reviews-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--gray-100); }
.reviews-section > h2 { font-size: 1.6rem; margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.reviews-avg { font-size: 1rem; background: #fff7ed; color: var(--orange-dark); padding: 5px 14px; border-radius: 100px; font-weight: 700; }
.reviews-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.reviews-list { display: flex; flex-direction: column; gap: 18px; }
.review-item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-author { font-weight: 700; font-family: var(--font-display); }
.review-stars span.on { color: #ffb800; } .review-stars span.off { color: var(--gray-200); }
.review-date { font-size: .8rem; color: var(--gray-400); }
.review-comment { margin-top: 10px; color: var(--gray-700); line-height: 1.6; }
.reviews-empty { color: var(--gray-500); padding: 30px; text-align: center; background: var(--gray-50); border-radius: var(--radius-lg); }
.review-form-box { background: var(--cream); border-radius: var(--radius-xl); padding: 28px; position: sticky; top: 100px; }
.review-form-box form { display: block; }
.review-form-box .btn-block { margin-top: 18px; width: 100%; }
.review-form-box h3 { font-size: 1.2rem; margin-bottom: 16px; }
.star-rating { margin-bottom: 14px; }
.star-rating label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.stars-input { display: flex; gap: 4px; }
.star-pick { font-size: 1.9rem; color: var(--gray-200); cursor: pointer; transition: color .15s; line-height: 1; }
.star-pick.on { color: #ffb800; }
@media (max-width: 768px) { .reviews-layout { grid-template-columns: 1fr; } .review-form-box { position: relative; top: 0; } }

/* ===== ADRESE ===== */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.address-card { position: relative; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.address-card.is-default { border-color: var(--orange); }
.address-badge { position: absolute; top: 14px; right: 14px; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.address-label { display: block; margin-bottom: 8px; font-family: var(--font-display); }
.address-card p { color: var(--gray-700); line-height: 1.6; font-size: .92rem; }
.address-actions { display: flex; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); font-size: .85rem; }
.address-actions a { color: var(--orange); }
.address-actions a.del { color: #e63946; margin-left: auto; }
.address-add { background: var(--gray-50); border-radius: var(--radius-lg); padding: 18px 22px; }
.address-add summary { cursor: pointer; font-weight: 600; color: var(--orange); }

/* ===== LOYALTY POPUST ===== */
.loyalty-box { background: linear-gradient(135deg, #fff7ed, #fff); border: 2px solid #ffd9b3; border-radius: 14px; padding: 16px; margin: 16px 0; }
.loyalty-box.unlocked { background: linear-gradient(135deg, #ecfdf5, #fff); border-color: #6ee7b7; }
.loyalty-box.invite { background: linear-gradient(135deg, #fef3c7, #fff); border-color: #fcd34d; }
.loyalty-head { display: flex; gap: 12px; align-items: flex-start; }
.loyalty-icon { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.loyalty-head strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.loyalty-head small { color: var(--gray-600, #555); font-size: .82rem; display: block; line-height: 1.45; }
.loyalty-head a { color: var(--orange, #ff7a00); text-decoration: underline; font-weight: 600; }
.loyalty-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; background: #fff; border-radius: 10px; cursor: pointer; border: 2px solid #d1fae5; transition: border-color .2s; }
.loyalty-check:hover { border-color: #10b981; }
.loyalty-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: #10b981; flex-shrink: 0; }
.loyalty-check span { font-size: .9rem; }
.loyalty-progress-bar { background: rgba(255,122,0,.15); height: 10px; border-radius: 100px; overflow: hidden; margin-top: 10px; }
.loyalty-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange, #ff7a00), #ffa500); transition: width .4s; }
.loyalty-progress-text { font-size: .8rem; color: var(--gray-600, #555); margin-top: 6px; text-align: right; }

/* Loyalty stranica u nalogu */
.loyalty-status { background: #fff; border: 1px solid var(--gray-100, #f0f0f0); border-radius: var(--radius-xl, 16px); padding: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.loyalty-status.unlocked { background: linear-gradient(135deg, #ecfdf5, #fff); border-color: #6ee7b7; }
.loyalty-status.progress-card { display: block; }
.loyalty-status .ls-icon { font-size: 3rem; line-height: 1; }
.loyalty-status h3 { font-size: 1.25rem; margin-bottom: 6px; }
.loyalty-status p { color: var(--gray-600, #555); font-size: .92rem; max-width: 500px; }
.loyalty-status .btn { margin-left: auto; }
.loyalty-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.ls-stat { background: var(--gray-50, #f8f8f9); padding: 18px; border-radius: 12px; text-align: center; }
.ls-label { font-size: .78rem; color: var(--gray-500, #777); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.ls-value { font-size: 1.4rem; color: var(--orange, #ff7a00); font-family: var(--font-display, sans-serif); }
@media (max-width: 600px) {
    .loyalty-stats { grid-template-columns: 1fr; }
    .loyalty-status { flex-direction: column; align-items: flex-start; text-align: left; }
    .loyalty-status .btn { margin-left: 0; }
}

/* Naslovna invite banner */
.loyalty-invite-banner { background: linear-gradient(100deg, var(--orange, #ff7a00), #ff9a40); color: #fff; padding: 22px 28px; border-radius: var(--radius-xl, 16px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 24px 0; box-shadow: 0 10px 30px rgba(255,122,0,.22); }
.loyalty-invite-banner .lib-icon { font-size: 2.4rem; line-height: 1; }
.loyalty-invite-banner h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.loyalty-invite-banner p { color: rgba(255,255,255,.92); font-size: .92rem; max-width: 580px; }
.loyalty-invite-banner .btn { background: #fff; color: var(--orange, #ff7a00); margin-left: auto; }
.loyalty-invite-banner .btn:hover { background: #ffe8d1; }
@media (max-width: 700px) { .loyalty-invite-banner { flex-direction: column; align-items: flex-start; } .loyalty-invite-banner .btn { margin-left: 0; } }

/* ========== TOUCH UREĐAJI I MOBILNE ŠIRINE ========== */
/* Na uređajima bez hover-a, sve što je sakriveno do hover-a mora biti odmah vidljivo */
@media (hover: none), (max-width: 768px) {
    .product-fav { opacity: 1 !important; transform: translateY(0) !important; }
    .product-quickadd { opacity: 1 !important; transform: translateY(0) !important; }

    /* Isključi hover transformacije koje se "zaljepe" na touch uređajima
       (kad tap-neš a ne klikneš tačno, browser ostavlja :hover state) */
    .product-card:hover { transform: none !important; box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,.06)) !important; }
    .product-card:hover .product-thumb img { transform: none !important; }
    .cat-card:hover { transform: none !important; box-shadow: none !important; }
    .cat-card:hover .emoji,
    .cat-card:hover .cat-icon { transform: none !important; }

    /* Tap feedback — kartica se "stisne" kad pritisneš */
    .product-card:active { transform: scale(0.98); transition: transform .1s ease; }
    .cat-card:active { transform: scale(0.97); transition: transform .1s ease; }
}
