:root { --gold: #c5a059; --dark: #050505; --card: #0c0c0c; --gray: #888; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', sans-serif; background: var(--dark); color: #fff; line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }

/* PRILAGOĐENI KLIZAČ (SCROLLBAR) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

#preloader { position: fixed; inset: 0; background: var(--dark); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
.loader-logo-wrapper { width: 140px; height: 140px; margin-bottom: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #111; border: 2px solid var(--gold); overflow: hidden; }
.loader-logo-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* PAMETNO ZAGLAVLJE (STICKY HEADER) */
header { padding: 20px 0; position: fixed; width: 100%; z-index: 1000; background: rgba(5,5,5,0.4); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.03); transition: background 0.4s ease, padding 0.4s ease; }
header.scrolled { background: rgba(5,5,5,0.98); padding: 12px 0; border-bottom: 1px solid var(--gold); }

nav { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; position: relative; }
.logo { font-weight: 900; letter-spacing: 4px; text-transform: uppercase; font-size: 0.9rem; color: #fff; text-decoration: none; }
.logo span { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 20px; list-style: none; transition: 0.3s; }
.nav-links a { color: #fff; text-decoration: none; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.6; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--gold); }
.lang-switch { display: flex; gap: 10px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 20px; }
.lang-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 0.65rem; font-weight: 700; opacity: 0.3; transition: 0.3s; }
.lang-btn.active { opacity: 1; color: var(--gold); }

/* DUGME ZA MOBILNI MENI */
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--gold); font-size: 1.8rem; cursor: pointer; padding-left: 15px; }

.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; }
#hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, var(--dark) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-content h1 { font-family: 'Baskervville', serif; font-size: clamp(2.2rem, 8vw, 4.5rem); margin-bottom: 15px; }
.tagline { color: var(--gold); text-transform: uppercase; letter-spacing: 6px; font-size: 0.7rem; margin-bottom: 20px; display: block; font-weight: 600; }

.section-padding { padding: 130px 20px 60px; max-width: 1200px; margin: 0 auto; }
.section-title { font-family: 'Baskervville', serif; font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 60px; text-align: center; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 30px; height: 1px; background: var(--gold); }

/* TRAKA ZA PRETRAGU I SORTIRANJE */
.controls-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; flex-wrap: wrap; gap: 15px; background: #0c0c0c; padding: 15px 25px; border-radius: 6px; border: 1px solid #1a1a1a; }
.search-input, .sort-select { background: #111; border: 1px solid #333; color: #fff; padding: 10px 15px; border-radius: 4px; font-family: 'Inter', sans-serif; outline: none; transition: 0.3s; font-size: 0.85rem; }
.search-input:focus, .sort-select:focus { border-color: var(--gold); }
.search-input { flex: 1; max-width: 350px; }
.sort-select { cursor: pointer; }

.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }

.product-card { background: var(--card); border: 1px solid #111; padding: 30px 20px; text-align: center; cursor: pointer; transition: 0.4s; display: flex; flex-direction: column; justify-content: space-between; height: 530px; position: relative; }
.product-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-image { height: 260px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.product-image img { max-width: 85%; max-height: 85%; object-fit: contain; }
.price { color: var(--gold); font-weight: 700; font-size: 1.3rem; margin-bottom: 15px; font-family: 'Baskervville', serif; }
.btn-detail { background: transparent; border: 1px solid #222; color: #fff; padding: 12px; text-transform: uppercase; font-size: 0.65rem; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-detail:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.registry-section { padding: 100px 20px 60px; max-width: 1000px; margin: 0 auto; }
.lit-list { border-top: 1px solid #111; }
.lit-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #111; position: relative; transition: background 0.3s ease, padding-left 0.3s ease; border-radius: 4px; }
.lit-item:hover { background: rgba(197, 160, 89, 0.05); padding-left: 25px; }

.lit-add-btn { background: transparent; border: 1px solid #222; color: var(--gold); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.lit-add-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: scale(1.1); }
.lit-add-btn.added { background: var(--gold); color: #000; border-color: var(--gold); }

.lit-img-zoom { width: 45px; height: 65px; object-fit: cover; border-radius: 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.5); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; position: relative; z-index: 1; }
.lit-img-zoom:hover { transform: scale(2.2); box-shadow: 0 10px 20px rgba(0,0,0,0.8); z-index: 10; }

.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.policy-card { background: #0c0c0c; border: 1px solid #151515; padding: 40px; transition: transform 0.4s ease; cursor: default; }
.policy-card:hover { transform: translateY(-5px); border-color: #222; }
.policy-card h3 { font-size: 0.75rem; margin-bottom: 20px; color: var(--gold); text-transform: uppercase; letter-spacing: 3px; }
.policy-card ul { list-style: none; font-size: 0.8rem; color: var(--gray); }
.policy-card li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.policy-card li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

footer { padding: 80px 20px; background: #050505; border-top: 1px solid #111; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-col h4 { color: #fff; text-transform: uppercase; margin-bottom: 25px; font-size: 0.7rem; letter-spacing: 3px; }
.footer-col p { color: #555; font-size: 0.75rem; margin-bottom: 8px; line-height: 1.8; }
.contact-link { color: #fff; text-decoration: none; border-bottom: 1px solid #222; transition: 0.3s; }
.contact-link:hover { color: var(--gold); border-color: var(--gold); }

#b2b-submit { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(150px); background: #fff; color: #000; padding: 18px 40px; font-weight: 800; text-transform: uppercase; cursor: pointer; z-index: 2000; transition: 0.5s; display: flex; align-items: center; gap: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-radius: 4px; }
#b2b-submit:hover { background: var(--gold); }
#b2b-submit.show { transform: translateX(-50%) translateY(0); }

/* FLOATING DUGMAD (WHATSAPP I POVRATAK NA VRH) */
.float-btn { position: fixed; bottom: 30px; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2000; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.5); text-decoration: none; }
.wa-btn { right: 30px; background: #25D366; color: #fff; }
.wa-btn svg { width: 26px; height: 26px; fill: currentColor; }
.wa-btn:hover { transform: scale(1.1); }
.up-btn { right: 95px; background: var(--card); color: var(--gold); border: 1px solid var(--gold); font-size: 20px; opacity: 0; pointer-events: none; }
.up-btn.show { opacity: 1; pointer-events: auto; }
.up-btn:hover { background: var(--gold); color: #000; }

/* TOAST OBAVEŠTENJE (USPEŠNO DODATO) */
#toast { visibility: hidden; min-width: 250px; background-color: var(--gold); color: #000; text-align: center; border-radius: 4px; padding: 16px; position: fixed; z-index: 4000; left: 50%; bottom: 30px; transform: translateX(-50%); font-weight: bold; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0; transition: opacity 0.5s, bottom 0.5s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
#toast.show { visibility: visible; opacity: 1; bottom: 100px; }

#product-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.98); z-index: 3000; justify-content: center; align-items: center; backdrop-filter: blur(10px); }
.modal-wrapper { background: #080808; display: flex; max-width: 900px; width: 95%; border: 1px solid #111; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-image-side { flex: 1; background: #050505; padding: 40px; display: flex; align-items: center; justify-content: center; }
.modal-image-side img { max-width: 100%; max-height: 400px; object-fit: contain; } 
.modal-info-side { flex: 1; padding: 50px; }
.modal-close { position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; color: #444; transition: 0.3s; z-index: 10; }
.modal-close:hover { color: var(--gold); transform: scale(1.2); }

/* =========================================
   NOVI DEO: RESPONZIVNOST I OPTIMIZACIJA 
   ========================================= */

/* 1. TABLETI (Između Desktopa i Mobilnog) */
@media (max-width: 1024px) {
    .featured-grid, .product-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    nav { padding: 0 15px; }
    .hero-content h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
}

/* 2. MOBILNI TELEFONI I MALI TABLETI */
@media (max-width: 768px) { 
    .nav-right { gap: 10px; }
    .mobile-menu-btn { display: block; }
    
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(5,5,5,0.98); padding: 20px 0; border-bottom: 1px solid var(--gold); text-align: center; backdrop-filter: blur(15px); z-index: 999; }
    .nav-links.active { display: flex; }
    .nav-links li { padding: 15px 0; }
    .nav-links a { font-size: 0.9rem; }
    
    /* Prekidači za jezik centrirani u meniju */
    .lang-switch { justify-content: center; border-left: none; padding-left: 0; margin-top: 15px; }
    
    .modal-wrapper { flex-direction: column; } 
    .featured-grid, .product-grid { grid-template-columns: 1fr; } 
    
    /* Skinuta fiksna visina sa kartica da ne bi pucale! */
    .product-card { height: auto; min-height: 480px; padding: 20px 15px; }
    
    .controls-bar { flex-direction: column; width: 100%; } 
    .search-input { max-width: 100%; width: 100%; } 
    .sort-select { width: 100%; }
    
    /* Popravljen Modal */
    .modal-info-side { padding: 25px 20px; text-align: center; }
    .modal-info-side h2 { font-size: 1.4rem !important; }
    .modal-image-side { padding: 20px; }
    .modal-image-side img { max-height: 250px; } 
    
    .lit-item { flex-direction: column; text-align: center; gap: 15px; padding: 20px 10px; }
    .footer-container { flex-direction: column; text-align: center; gap: 30px; }
    .footer-col { text-align: center !important; }
    
    /* Popravka donje gužve (Preklapanje dugmadi) */
    #b2b-submit { 
        width: 90%; 
        padding: 15px 15px; 
        font-size: 0.8rem; 
        bottom: 20px; 
        justify-content: center; 
    }
    /* Podižemo WhatsApp i Up dugmad iznad B2B trake */
    .float-btn { bottom: 85px; width: 45px; height: 45px; } 
    .wa-btn { right: 15px; }
    .up-btn { right: 70px; }
}

/* 3. JAKO MALI EKRANI (Stariji ili uski telefoni) */
@media (max-width: 400px) {
    .up-btn { display: none; } /* Gasimo strelicu za gore da ne smeta kliku na WhatsApp */
    .hero-content h1 { font-size: 2.2rem; }
}