:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg); color: var(--text-main); line-height: 1.5; }

/* NAVBAR */
header { background: var(--card-bg); border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--accent); }
.btn-header { background: var(--primary); color: white; padding: 0.6rem 1.2rem; border-radius: 8px; text-decoration: none; font-weight: 500; cursor: pointer; border: none; font-family: inherit; }

/* HERO SLIDER */
.slider-container { position: relative; max-width: 1200px; margin: 1.5rem auto; height: 350px; overflow: hidden; border-radius: var(--radius); }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,0.85), transparent); display: flex; flex-direction: column; justify-content: center; padding: 3rem; color: white; }
.slide-overlay h1, .slide-overlay h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.slide-overlay p { font-size: 1.1rem; color: #cbd5e1; }

/* KATALOG I KATEGORIJE */
.catalog-section { max-width: 1200px; margin: 3rem auto; padding: 0 2rem; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 2rem; color: var(--primary); }

/* TRAKA S KATEGORIJAMA */
.category-filter { 
    display: flex; 
    justify-content: center; 
    gap: 0.6rem; 
    flex-wrap: wrap; 
    margin-bottom: 2.5rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.filter-btn { 
    background: #f1f5f9; 
    color: var(--text-main); 
    border: 1px solid #e2e8f0; 
    padding: 0.6rem 1.4rem; 
    border-radius: 30px; 
    font-weight: 600; 
    font-size: 0.9rem;
    cursor: pointer; 
    transition: all 0.2s; 
}
.filter-btn:hover, .filter-btn.active { 
    background: var(--accent); 
    color: white; 
    border-color: var(--accent);
}

/* GRID PROIZVODA */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.product-card { background: var(--card-bg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); }
.product-card.hidden { display: none; }

.img-box { height: 220px; width: 100%; background: #f1f5f9; position: relative; cursor: pointer; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.img-box:hover img { transform: scale(1.05); }

.img-box::after {
    content: "🔍 Povećaj";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.img-box:hover::after { opacity: 1; }

.badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 12px; text-transform: uppercase; z-index: 2; }

.info-box { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; }
.cat-tag { font-size: 0.75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; margin-bottom: 0.3rem; }
.prod-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.prod-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.2rem; flex-grow: 1; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f5f9; padding-top: 0.8rem; }
.price { font-weight: 700; font-size: 1.1rem; }
.btn-inquire { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); padding: 0.4rem 0.8rem; border-radius: 6px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.btn-inquire:hover { background: var(--accent); color: white; }

/* MODAL FORMA ZA UPIT */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex; }
.modal-content { background: white; padding: 2rem; border-radius: var(--radius); max-width: 500px; width: 100%; position: relative; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; border: none; background: none; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.6rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; }
.btn-submit { background: var(--accent); color: white; border: none; width: 100%; padding: 0.8rem; border-radius: 6px; font-weight: 600; cursor: pointer; }

/* LIGHTBOX PROZOR ZA SLIKE I VIDEO */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.active { display: flex; }
.lightbox-container { position: relative; max-width: 90%; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img, .lightbox-video { max-width: 85vw; max-height: 75vh; border-radius: var(--radius); box-shadow: 0 10px 25px rgba(0,0,0,0.5); object-fit: contain; outline: none; }
.lightbox-close { position: absolute; top: -40px; right: 0; color: white; font-size: 2.5rem; cursor: pointer; font-weight: 300; z-index: 2010; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
    z-index: 2010;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-counter { color: white; margin-top: 10px; font-size: 0.9rem; }

/* POPUP OBAVIJEST STILOVI */
.info-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}
.info-popup-overlay.active {
    display: flex;
}
.info-popup-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.3s ease-out;
}
@keyframes popupFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.info-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    cursor: pointer;
    border: none;
    background: none;
    color: #64748b;
}
.info-popup-badge {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.info-popup-title {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 0.8rem;
    font-weight: 700;
}
.info-popup-text {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    margin: 0 auto;
}
.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* FOOTER */
footer { background: var(--primary); color: white; padding: 3rem 2rem; text-align: center; margin-top: 4rem; }

/* Stil za manji, uredan tekst sidrene cijene */
.anchor-price-text {
    font-size: 0.75rem; /* Manji font */
    color: #777;        /* Diskretnija siva boja */
    margin-bottom: 10px; /* Razmak prema dolje do cijene i gumba */
}

/* Održava donju strukturu čistom */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}