/* --- OSNOVNI STILOVI I "SVEŽA LAVANDA" PALETA BOJA --- */
:root {
    --bg-color: #F7F7FD;
    --surface-color: #FFFFFF;
    --primary-color: #8A79F1;
    --primary-hover-color: #7362d3;
    --accent-color: #8A79F1;
    --text-color: #4B427E;
    --text-muted-color: #88898c;
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Nunito', sans-serif;
    --border-radius: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --container-padding: 80px 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-hover-color); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-family-headings); color: var(--text-color); font-weight: 700; }
section { padding-top: var(--container-padding); padding-bottom: var(--container-padding); }

/* --- HEADER --- */
header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8e8f3;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-family-headings); font-size: 1.8em; }
.logo strong { color: var(--accent-color); }

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}
.nav-links li { margin-left: 30px; }
.nav-links a { color: var(--text-color); font-weight: 600; }
.nav-links a:hover { color: var(--accent-color); }

.header-contact {
    margin-left: 40px;
    font-weight: 600;
}
.header-contact i {
    color: var(--primary-color);
    margin-right: 8px;
}
.header-contact a {
    color: var(--text-color);
}
.header-contact a:hover {
    color: var(--primary-color);
}

.cart-icon {
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    position: relative;
    margin-left: 40px;
}
.cart-icon .snipcart-items-count { background-color: var(--accent-color); color: #fff; position: absolute; top: -8px; right: -12px; font-size: 0.7em; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }

/* --- HERO SEKCIJA --- */
.hero-interactive {
    padding: 200px 0 150px;
    text-align: center;
    background: transparent;
    margin-top: 70px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.hero-interactive h1 { font-size: 4em; color: var(--primary-color); text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
.hero-interactive p { font-size: 1.25em; color: var(--text-color); margin: 15px 0 40px; }

@keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(138, 121, 241, 0.7); } 70% { transform: scale(1.05); box-shadow: 0 0 0 20px transparent; } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
.btn-primary { display: inline-block; background-color: var(--primary-color); color: white; padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; animation: pulse 2s infinite; position: relative; z-index: 2; margin-top: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-primary:hover { background-color: var(--primary-hover-color); animation: none; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* --- KATEGORIJE KARTICE --- */
.brands-section { background-color: transparent; text-align: center; padding-top: 0; padding-bottom: 0; }
.brands-section .section-title { margin-bottom: 15px; font-size: 2.8em; }
.section-subtitle { font-size: 1.1em; color: var(--text-muted-color); margin-bottom: 50px; max-width: 500px; margin: 0 auto 50px auto; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.brand-card { background-color: var(--surface-color); padding: 40px 20px; border-radius: var(--border-radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text-color); transition: all 0.3s ease; }
.brand-card:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(138, 121, 241, 0.2); color: var(--primary-color); }
.brand-card i { font-size: 3.5em; margin-bottom: 20px; display: block; transition: transform 0.3s ease; }
.brand-card:hover i { transform: scale(1.1); }
.brand-card h3 { font-family: var(--font-family-body); font-weight: 700; font-size: 1.4em; }

/* --- RAZMACI IZMEĐU SEKCIJA --- */
#ostale-kategorije, #popularni-proizvodi, #pogodnosti, .filters-wrapper { margin-top: 100px; }

/* --- POPULARNI PROIZVODI --- */
#popularni-proizvodi { background-color: var(--surface-color); padding: var(--container-padding); position: relative; z-index: 2; box-shadow: var(--shadow); border-radius: var(--border-radius); }
#popularni-proizvodi .section-title { text-align: center; margin-bottom: 50px; font-size: 2.8em; color: var(--text-color); }
.view-all-products { text-align: center; margin-top: 50px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-secondary { display: inline-block; background-color: var(--primary-color); color: white; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background-color 0.3s ease; border: none; cursor: pointer; }
.btn-secondary:hover { background-color: var(--primary-hover-color); }

/* --- POGODNOSTI --- */
.features-section { background-color: var(--surface-color); position: relative; z-index: 2; border-radius: var(--border-radius); padding: var(--container-padding); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.feature-card i { font-size: 2.5em; color: var(--primary-color); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.3em; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted-color); font-size: .9em; }

/* --- KONTAKT --- */
.contact-section { background-color: transparent; position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.contact-info h3 { font-size: 2em; margin-bottom: 20px; }
.contact-info p { margin-bottom: 30px; color: var(--text-muted-color); }
.info-item { display: flex; align-items: center; margin-bottom: 20px; }
.info-item i { font-size: 1.5em; color: var(--primary-color); width: 40px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #e8e8f3; border-radius: var(--border-radius); font-family: var(--font-family-body); font-size: 1em; background-color: var(--surface-color); color: var(--text-color); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); }
.contact-form .cta-button { width: 100%; padding: 15px; background: var(--accent-color); font-size: 1.1em; border-radius: var(--border-radius); border: none; color: white; cursor: pointer; }

/* --- FOOTER --- */
footer { text-align: center; padding: 30px 0; margin-top: 40px; background-color: rgba(232, 232, 243, 0.8); backdrop-filter: blur(5px); position: relative; z-index: 2; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-info, .footer-credit { flex-basis: 45%; text-align: left; }
.footer-credit { text-align: right; }
.footer-credit p, .footer-info p { margin: 0; color: var(--text-muted-color); font-size: .9em; }
.footer-credit a, .footer-info a { color: var(--text-color); }

/* --- ZAGLAVLJE DRUGIH STRANICA --- */
.page-header { padding: 120px 0 60px; background-color: var(--surface-color); text-align: left; margin-top: 70px; border-bottom: 1px solid #e8e8f3; position: relative; z-index: 2; }
.breadcrumbs { font-size: .9em; color: var(--text-muted-color); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-muted-color); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary-color); }
.page-header h1 { font-size: 3.5em; }
.page-header p { font-size: 1.1em; color: var(--text-muted-color); margin-top: 10px; max-width: 600px; }

/* --- DUGME ZA POVRATAK --- */
.back-to-home-wrapper { padding-bottom: 40px; padding-top: 0; }
.back-to-home { display: inline-block; padding: 10px 20px; background-color: var(--surface-color); color: var(--text-color); border: 1px solid #e8e8f3; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all .3s ease; }
.back-to-home:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.back-to-home i { margin-right: 8px; }

/* --- FILTERI ZA KATEGORIJE --- */
.filters-wrapper { padding-top: 0; padding-bottom: 50px; }
.category-filters { text-align: center; padding: 10px 0; }
.filter-label { font-weight: 600; margin-right: 15px; color: var(--text-color); }
.filter-btn { background-color: var(--surface-color); border: 1px solid #e8e8f3; padding: 10px 20px; margin: 5px; border-radius: 50px; font-family: var(--font-family-body); font-size: .9em; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.filter-btn:hover { background-color: #f0f0f0; border-color: #ddd; }
.filter-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

/* --- STRANICA SA PROIZVODIMA --- */
.shop-layout { display: grid; grid-template-columns: 1fr; padding-top: 0; padding-bottom: 60px; background-color: transparent; position: relative; z-index: 2; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.product-card { background-color: var(--surface-color); border-radius: var(--border-radius); overflow: hidden; text-align: center; transition: all 0.3s ease; border: 1px solid #e8e8f3; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.product-card h3 { font-size: 1.1em; margin: 0 0 15px; min-height: 50px; display: flex; align-items: center; justify-content: center; flex-grow: 1; }
.product-card .price { font-size: 1.1em; font-weight: 700; color: var(--text-color); margin-bottom: 20px; }
.add-to-cart-btn { display: block; width: 100%; background-color: var(--primary-color); color: #fff; padding: 12px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; transition: background-color .3s ease; margin-top: auto; border-radius: 8px; }
.add-to-cart-btn:hover { background-color: var(--primary-hover-color); }

/* --- PAGINACIJA --- */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.pagination a { color: var(--text-color); padding: 10px 15px; border: 1px solid #e8e8f3; border-radius: 8px; text-decoration: none; }
.pagination a:hover { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.pagination a.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

/* --- RESPONSIVNOST --- */
@media (max-width: 992px) { .nav-links { display: none; } /* Sakriva linkove na manjim ekranima, treba dodati hamburger meni */ }
@media (max-width: 768px) { .hero-interactive h1 { font-size: 2.5em; } .features-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; } .footer-content { flex-direction: column; text-align: center; } .footer-info, .footer-credit { flex-basis: 100%; text-align: center; } }
@media (max-width: 600px) { .brand-grid { grid-template-columns: 1fr 1fr; } }

/* --- POMOĆNA DUGMAD --- */
.viber-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #7360F2; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 1000; transition: transform .3s ease; }
.viber-fab:hover { transform: scale(1.1); }
.viber-fab i { color: #fff; font-size: 28px; }
.back-to-top-btn { position: fixed; bottom: 30px; left: 30px; width: 50px; height: 50px; background-color: var(--text-color); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 10px rgba(0,0,0,0.15); z-index: 999; font-size: 20px; text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; }
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: var(--primary-color); }

/* --- STILOVI ZA PARTIKLE --- */
.mouse-particle { position: absolute; pointer-events: none; opacity: 0; transform: scale(.5); animation: fadeOutAndGrow 1.5s forwards ease-out; font-size: 20px; line-height: 1; color: var(--primary-color); text-shadow: 0 0 5px rgba(0,0,0,0.1); z-index: 9999; }
@keyframes fadeOutAndGrow { 0% { opacity: 0; transform: scale(.5); filter: hue-rotate(0deg); } 20% { opacity: 1; transform: scale(1); } 80% { opacity: .8; transform: scale(1.2) translateY(-20px); filter: hue-rotate(180deg); } 100% { opacity: 0; transform: scale(1.5) translateY(-50px); filter: hue-rotate(360deg); } }