/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    --primary-color: #004085;
    --secondary-color: #f39c12;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --font-main: 'Roboto', sans-serif;
    
    --header-height: 90px;
    --top-bar-height: 46px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 0; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. TOP BAR (CRNA TRAKA)
   ========================================= */
.top-bar {
    background-color: #1a1a1a;
    color: #ccc;
    font-size: 13px;
    height: var(--top-bar-height);
    display: flex; 
    align-items: center;
    position: relative; 
    z-index: 102;
}
.top-bar .container { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.top-bar-left span { margin-right: 20px; }
.top-bar-left i { margin-right: 5px; color: var(--white); }
.top-bar-right { display: flex; align-items: center; gap: 15px; }
.social-icons a { margin: 0 5px; color: #ccc; }
.social-icons a:hover { color: var(--white); }
.lang-search { display: flex; align-items: center; gap: 10px; }
.lang-active { color: var(--white); font-weight: bold; }
.search-btn { background: none; border: none; cursor: pointer; color: var(--white); }

/* =========================================
   3. MAIN HEADER (STICKY)
   ========================================= */
.main-header {
    background: #ffffff;
    height: var(--header-height);
    width: 100%;
    
    /* Sticky pozicija - lepi se za vrh kad skroluješ */
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    
    z-index: 1000; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.main-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.logo-img-2 { height: 50px; width: auto; }

/* NAVIGACIJA */
.navbar { display: flex; align-items: center; gap: 20px; }
.nav-menu { display: flex; gap: 30px; align-items: center; margin: 0; padding: 0; }
.nav-menu a { font-size: 15px; font-weight: 600; color: #333; text-transform: uppercase; padding: 10px 0; position: relative; }
.nav-menu a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary-color); transition: width 0.3s ease; }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-color); }
.nav-menu i { font-size: 10px; margin-left: 5px; color: #999; transition: 0.3s; }
.nav-menu li:hover>a i { transform: rotate(180deg); color: var(--primary-color); }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu { background-color: #fff; min-width: 220px; z-index: 1000; transition: all 0.3s ease; list-style: none; padding: 0; margin: 0; border-bottom: 3px solid var(--primary-color); }
.dropdown-menu li { border-bottom: 1px solid #f0f0f0; }
.dropdown-menu a { display: block; padding: 12px 20px; font-size: 14px; color: #333; text-transform: capitalize; }
.dropdown-menu a:hover { background-color: #f8f9fa; color: #004085; }

/* HAMBURGER */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { width: 25px; height: 3px; margin: 5px auto; background-color: #333; transition: 0.3s; }
.header-search i { font-size: 18px; color: var(--primary-color); cursor: pointer; margin-left: 10px; }

/* =========================================
   4. HERO SLIDER
   ========================================= */
.hero-slider { position: relative; width: 100%; height: 600px; overflow: hidden; background-color: #000; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out; display: flex; align-items: center; z-index: 1; }
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: -1; }
.hero-content { color: #fff; max-width: 700px; transform: translateY(30px); opacity: 0; transition: all 0.8s ease-out 0.5s; padding-left: 5%; }
.slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-content h1 { font-size: 48px; margin-bottom: 20px; text-transform: uppercase; }
.hero-content p { font-size: 18px; margin-bottom: 30px; color: #f0f0f0; }
.prev-btn, .next-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); border: none; color: white; font-size: 24px; padding: 15px; cursor: pointer; z-index: 10; transition: 0.3s; }
.prev-btn:hover, .next-btn:hover { background: rgba(0, 64, 133, 0.8); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }

/* =========================================
   5. SECTIONS & SLIKE
   ========================================= */
.section { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }

.row, .history-wrapper {
    display: flex; 
    flex-wrap: wrap; 
    gap: 40px; 
    align-items: center; 
}
.col-text, .col-image, .history-left, .history-text, .history-image { 
    flex: 1; 
    min-width: 300px;
}

.col-image img, .history-image img { 
    width: 100%; 
    height: auto; 
    display: block;
    border: none;
    box-shadow: none; 
}

.section-title { font-size: 28px; text-transform: uppercase; color: var(--text-dark); padding-bottom: 10px; }
.divider-line { width: 60px; height: 3px; background-color: var(--primary-color); margin-bottom: 25px; }
.divider-line.center { margin: 0 auto 40px auto; }
.text-center { text-align: center; }

.btn-primary { background-color: var(--primary-color); color: #fff; padding: 12px 30px; border-radius: 4px; font-weight: bold; }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 10px 25px; border-radius: 4px; font-weight: bold; display: inline-block; margin-top: 15px; }
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; }
.btn-outline-dark { border: 2px solid #333; color: #333; padding: 10px 25px; border-radius: 50px; font-weight: bold; display: inline-block; margin-top: 15px; }
.btn-outline-dark:hover { background: #333; color: #fff; }

/* =========================================
   PRODUCTS GRID (SA SMOOTH HOVEROM)
   ========================================= */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.product-card { 
    background: #fff; 
    border-radius: 4px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); 
    
    /* Glavna tranzicija za karticu */
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    
    display: flex; 
    flex-direction: column; 
    cursor: pointer; /* Da se vidi da je klikabilno */
}

/* Hover efekt za celu karticu */
.product-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15); 
}

/* Slika */
.product-img { 
    height: 250px; 
    overflow: hidden; 
    width: 100%;
}

.product-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease; /* Sporiji zoom za sliku (izgleda skuplje) */
}

.product-card:hover .product-img img { 
    transform: scale(1.1); /* Malo jači zoom */
}

/* Info deo */
.product-info { 
    padding: 25px 20px; 
    text-align: center; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

.product-info h3 { 
    font-size: 18px; 
    margin: 0; 
    color: #333; 
    transition: color 0.3s ease;
}

/* Tekst i Ikonica (Link) */
.read-more { 
    font-size: 13px; 
    font-weight: 700; /* Malo deblji font */
    color: var(--primary-color); 
    text-transform: uppercase; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    margin-top: auto; 
    
    /* SMOOTH TRANZICIJA BOJE */
    transition: color 0.3s ease; 
}

.read-more i { 
    margin-left: 8px;
    font-size: 12px;
    
    /* SMOOTH KRETANJE STRELICE */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
}

/* --- HOVER EFEKTI NA TEKST --- */

/* 1. Kad pređeš preko kartice, naslov malo potamni/poplavi */
.product-card:hover .product-info h3 {
    color: var(--primary-color);
}

/* 2. Kad pređeš preko kartice, strelica klizi u desno */
.product-card:hover .read-more i { 
    transform: translateX(10px); /* Klizi 10px desno */
}

/* 3. Kad pređeš baš preko teksta "Read More", promeni boju */


.feature-list { list-style: none; padding: 0; margin-top: 20px; }
.feature-list li { margin-bottom: 10px; display: flex; align-items: center; color: #555; }
.feature-list i { color: var(--primary-color); margin-right: 15px; font-size: 18px; }

/* FOOTER */
.main-footer { background-color: #1e1e1e; color: #b0b0b0; font-size: 15px; border-top: 5px solid var(--primary-color); }
.footer-top { padding: 70px 0 40px; }
.footer-top .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-col { flex: 1; min-width: 280px; margin-bottom: 20px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 15px; text-transform: uppercase; }
.footer-line { width: 50px; height: 3px; background-color: var(--primary-color); margin-bottom: 25px; }
.footer-links li { margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.footer-links a:hover { color: var(--white); padding-left: 10px; }
.contact-info li { display: flex; gap: 15px; margin-bottom: 15px; }
.footer-bottom { background-color: #151515; padding: 25px 0; border-top: 1px solid #2a2a2a; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background-color: #333; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: 0.3s; }
.footer-social a:hover { background-color: var(--primary-color); transform: translateY(-3px); }

/* SEARCH OVERLAY (PROZIRAN & BLUR) */
.search-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Polu-providna crna */
    backdrop-filter: blur(8px); /* Blur efekat */
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { position: relative; width: 80%; max-width: 600px; transform: scale(0.9); transition: transform 0.3s ease; }
.search-overlay.open .search-box { transform: scale(1); }
.search-box input { width: 100%; padding: 20px; font-size: 24px; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.5); color: #fff; outline: none; text-align: center; }
.search-box input:focus { border-bottom: 2px solid #fff; }
.close-search { position: absolute; top: -50px; right: 0; font-size: 40px; color: rgba(255,255,255,0.7); cursor: pointer; transition: 0.3s; }
.close-search:hover { color: #fff; transform: rotate(90deg); }
.search-results { width: 100%; background: #fff; margin-top: 20px; border-radius: 8px; max-height: 300px; overflow-y: auto; display: none; }
.search-results.active { display: block; }
.search-item { display: block; padding: 15px 20px; border-bottom: 1px solid #eee; color: #333; text-align: left; transition: 0.2s; }
.search-item:hover { background-color: #f0f4f8; padding-left: 25px; color: var(--primary-color); }


/* --- NOVI GRID ZA LISTU PROIZVODA (Ovo si tražio) --- */
.catalog-grid {
    display: grid;
    /* Desktop: 4 kolone jednake širine */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 80px;
    align-items: stretch; /* Da kartice budu iste visine */
}

/* RESPONSIVE ZA LISTU (MOBILNI) */
@media (max-width: 992px) {
    .catalog-grid {
        /* Mobilni: 2 kolone */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
}

/* =========================================
   6. RESPONSIVENESS (MOBILNI FIX)
   ========================================= */

@media (min-width: 993px) {
    /* Desktop Dropdown - Radi na Hover */
    .dropdown-menu { 
        position: absolute; top: 100%; left: 0; 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); 
        opacity: 0; visibility: hidden; 
        transform: translateY(20px); 
        display: block; 
        border-top: 3px solid var(--primary-color); 
        background: #fff;
    }
    .dropdown:hover .dropdown-menu { 
        opacity: 1; visibility: visible; transform: translateY(0); 
    }
}

@media (max-width: 992px) {
    /* 1. HAMBURGER DUGME */
    .hamburger { 
        display: block; 
        cursor: pointer; 
        z-index: 1002; 
        margin-left: 15px;
    }
    
    .bar { 
        width: 25px; 
        height: 3px; 
        background-color: #333; 
        margin: 5px auto; 
        transition: 0.3s; 
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* 2. MOBILNI MENI - IZLAZI S DESNE STRANE */
    .nav-menu { 
        position: fixed; 
        left: auto; /* Resetujemo levo */
        right: -100%; /* Sakriveno desno */
        top: 90px; 
        flex-direction: column; 
        background-color: #ffffff; 
        width: 100%; /* Može i manja širina, npr 80% */
        height: calc(100vh - 90px); 
        text-align: left; 
        transition: 0.4s ease-in-out; 
        box-shadow: -10px 10px 10px rgba(0, 0, 0, 0.1); 
        padding: 0; 
        overflow-y: auto; 
        display: flex;
        align-items: flex-start;
    }

    .nav-menu.active { 
        right: 0; /* Uklizava */
        left: auto;
    }

    .nav-menu li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-menu a { padding: 20px; display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 16px; }
    .nav-menu i { font-size: 14px; transition: transform 0.3s; }
    
    /* 3. DROPDOWN (SAMO NA KLIK) */
    .dropdown.active > a i { transform: rotate(180deg); color: var(--primary-color); }
    .dropdown-menu { 
        position: static; 
        width: 100%; 
        box-shadow: none; 
        background-color: #f8f9fa; 
        padding-left: 20px; 
        display: none; 
        opacity: 1; 
        visibility: visible; 
        transform: none; 
        border: none;
    }
    .dropdown.active .dropdown-menu { display: block; }

    /* 4. POPRAVKE ZA HEADER NA MOBILNOM */
    /* .top-bar SE SADA VIDI (uklonjen display:none) */
    
    /* Podešavamo visinu da sve stane */
    .main-header { position: sticky; top: 0; height: 90px; }
    body { padding-top: 0; } 

    /* Layout popravke */
    .top-bar .container { flex-direction: column; gap: 5px; padding: 5px 0; height: auto; }
    .top-bar { height: auto; padding: 5px 0; }
    
    .hero-content h1 { font-size: 32px; }
    .history-wrapper { flex-direction: column; text-align: center; }
    .history-image { order: -1; margin-bottom: 20px; }
    .row { flex-direction: column; }
    .col-image { order: -1; margin-bottom: 20px; }
    
    /* Animacije na mobilnom */
    .reveal, .reveal-left, .reveal-right { transform: translateY(30px); }
}

/* =========================================
   7. STILOVI ZA DETALJNU STRANICU (KAO NA VIDEU)
   ========================================= */

/* Raspored - Dve kolone (Slika levo, Tekst desno) */
.product-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.detail-left {
    flex: 1;
    min-width: 300px; /* Da se ne suzi previše */
}

.detail-right {
    flex: 1;
    min-width: 300px;
}

/* Galerija Slika (Leva strana) */
.main-image-container {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    position: relative;
    height: 400px; /* Fiksna visina da slika ne skače */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Male sličice ispod (Thumbnails) */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.thumb-img {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    object-fit: contain;
    padding: 5px;
    transition: 0.3s;
    background: #fff;
}

.thumb-img:hover {
    border-color: var(--primary-color);
}

.thumb-img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 64, 133, 0.2);
}

/* Desna strana - Naslov, Kod, Opis */
.detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

.detail-code {
    font-size: 18px;
    color: #e74c3c; /* Crvena boja za kod (kao na videu) */
    font-weight: bold;
    margin-bottom: 20px;
    display: block;
    background: #f9f9f9;
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
}

.detail-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Naslov sekcije (npr. "Dodatne Informacije") */
.section-header {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: bold;
    border-left: 5px solid var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Tabela Specifikacija (Ovo je ono najbitnije sa videa) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.spec-table tr {
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.spec-table tr:hover {
    background-color: #fcfcfc;
}

.spec-table td {
    padding: 15px 10px;
    font-size: 15px;
    color: #555;
}

.spec-key {
    font-weight: 600;
    width: 40%;
    color: #333;
}

/* Dugme za povratak (Gore levo) */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    margin-bottom: 20px;
}

.back-btn:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

/* Dugme "Saznaj više" na listi proizvoda (Card view) */
.read-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    margin-top: auto; /* Gura dugme na samo dno */
    background: #fff;
    border-top: 1px solid #eee;
    color: #004085; /* Tvoja plava boja */
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    cursor: pointer;
}
.read-more-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.profile-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* RESPONSIVE ZA MOBILNI */
@media (max-width: 768px) {
    .product-detail-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .detail-title {
        font-size: 24px;
    }
}

/* =========================================
   NOVO: STILOVI ZA DETALJNU STRANICU
   ========================================= */

/* Raspored - Dve kolone */
.product-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.detail-left { flex: 1; min-width: 300px; }
.detail-right { flex: 1; min-width: 300px; }

/* Velika slika */
.main-image-container {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    position: relative;
    height: 400px; /* Fiksna visina */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.detail-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Male sličice (Thumbnails) */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 15px; justify-content: center; }

.thumb-img {
    width: 70px; height: 70px; border: 1px solid #ddd;
    border-radius: 4px; cursor: pointer; object-fit: contain;
    padding: 5px; transition: 0.3s; background: #fff;
}
.thumb-img.active, .thumb-img:hover { border-color: #004085; box-shadow: 0 0 0 2px rgba(0, 64, 133, 0.2); }

/* Naslovi i Kod */
.detail-title { font-size: 32px; font-weight: 700; margin-bottom: 10px; color: #222; }
.detail-code { 
    font-size: 18px; color: #e74c3c; /* Crvena boja */ 
    font-weight: bold; margin-bottom: 20px; 
    display: inline-block; background: #f9f9f9; 
    padding: 5px 15px; border-radius: 4px; 
}
.detail-desc { color: #666; margin-bottom: 30px; font-size: 16px; }

/* Tabela Specifikacija */
.section-header { 
    background: #f8f9fa; padding: 12px 20px; font-weight: bold; 
    border-left: 5px solid #004085; margin-top: 30px; margin-bottom: 20px; 
    text-transform: uppercase; font-size: 14px; 
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.spec-table tr { border-bottom: 1px solid #eee; }
.spec-table td { padding: 15px 10px; font-size: 15px; color: #555; }
.spec-key { font-weight: 600; width: 40%; color: #333; }

/* Dugme Nazad */
.back-btn { 
    display: inline-flex; align-items: center; gap: 8px; 
    color: #666; font-weight: 600; text-decoration: none; 
    font-size: 14px; margin-bottom: 20px; transition: 0.3s; 
}
.back-btn:hover { color: #004085; transform: translateX(-5px); }

/* Responsive za detalje */
@media (max-width: 768px) {
    .product-detail-wrapper { flex-direction: column; gap: 30px; }
    .main-image-container { height: 300px; }
    .detail-title { font-size: 24px; }
}

/* =================================================================
   PREMIUM STIL ZA LISTU PROIZVODA (SIGURAN KOD - NE KVARI INDEX)
   ================================================================= */

/* 1. GRID RASPORED (4 Desktop, 2 Mobilni) - FORSIRANO */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important; /* Uvek 4 na velikom */
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
    align-items: stretch;
}

/* 2. DIZAJN KARTICE - MODERAN IZGLED */
.profile-card {
    background: #ffffff;
    border: 1px solid #edf2f7; /* Vrlo nežna ivica */
    border-radius: 12px;       /* Zaobljeniji uglovi */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* Smooth tranzicija za sve */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); /* Skroz blaga senka u startu */
}

/* HOVER EFEKAT NA KARTICU */
.profile-card:hover {
    transform: translateY(-7px); /* Kartica ide malo gore */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Jaka, meka senka */
    border-color: #004085; /* Ivica postaje plava */
}

/* 3. PROSTOR ZA SLIKU */
.card-img-wrapper {
    height: 240px; /* Malo viši prostor za sliku */
    padding: 30px; /* Više prostora oko slike */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #f7f7f7;
    position: relative;
    overflow: hidden; /* Bitno za zoom efekat */
}

.profile-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease; /* Sporiji, lepši zoom */
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05)); /* Mala senka ispod samog profila */
}

/* ZOOM EFEKAT NA SLIKU */
.profile-card:hover .profile-img {
    transform: scale(1.12); /* Slika se uvećava */
}

/* 4. INFO DEO (NAZIV I KOD) */
.card-info {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* KOD BADGE (Ono plavo "Code: 1234") */
.code-badge {
    background: #f0f7ff;
    color: #004085;
    padding: 6px 14px;
    border-radius: 50px; /* Pilula oblik */
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    border: 1px solid #dce9f9;
}

/* NAZIV PROIZVODA */
.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.5;
    text-transform: uppercase; /* Velika slova deluju urednije */
}

/* 5. DUGME "SAZNAJ VIŠE" */
.read-more-btn {
    margin-top: auto; /* Gura dugme na samo dno */
    padding: 15px;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    color: #004085;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

/* Hover na dugme (kad pređeš preko cele kartice) */
.profile-card:hover .read-more-btn {
    background: #004085;
    color: #ffffff;
}

.profile-card:hover .read-more-btn i {
    transform: translateX(5px); /* Strelica ide desno */
}

/* 6. LINK PREKO CELE KARTICE */
.profile-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* =================================================================
   RESPONSIVE (MOBILNI - DA NE BUDE SITNO)
   ================================================================= */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* FIKSNO 2 KOLONE */
        gap: 15px; /* Manji razmak */
        margin-top: 20px;
    }

    .card-img-wrapper {
        height: 160px; /* Manja visina slike na telefonu */
        padding: 15px;
    }

    .card-info {
        padding: 15px 10px;
    }

    .profile-name {
        font-size: 13px; /* Malo manji font da stane u red */
    }

    .code-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .read-more-btn {
        padding: 12px;
        font-size: 11px;
    }
}