/* Opći stilovi */
:root {
    --primary-color: #0c370d; /* Tamno zelena */
    --secondary-color: #8B4513; /* Zemljana smeđa */
    --accent-color: #D4AF37; /* Zlatna */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --bg-light: #d4af372c;
    --bg-dark: #2c3e50;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5em;
    color: var(--light-text-color);
}

h2 {
    font-size: 2.5em;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c09f2d; /* Tamnija nijansa zlatne */
}

/* Header - Hero sekcija */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Puna visina ekrana */
    background: url('img/pozadina.webp') no-repeat center center/cover; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Tamni overlay za bolju čitljivost teksta */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    width: 100%;
}

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 2.5em;
    color: var(--light-text-color);
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light-text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero-text {
    flex-grow: 1; /* Omogućuje da tekst zauzme središnji dio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 80px; /* Dodatni padding da ne bude previše nisko */
}

.hero-text p {
    font-size: 1.5em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Sekcije - opći stil */
.section {
    padding: 80px 0;
}

.section:nth-of-type(even) {
    background-color: var(--bg-light);
}

/* O Parfemu sekcija */
.about-section {
    background-color: white;
    text-align: center;
}

/* Mirisne Note sekcija */
.notes-section {
    background-color: var(--bg-light);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.note-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
}

.note-card h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.note-card ul {
    list-style: none;
    padding: 0;
}

.note-card li {
    margin-bottom: 10px;
    color: var(--text-color);
}

.concentration {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    font-style: italic;
    color: var(--secondary-color);
}

/* Kupite MIRS sekcija */
.buy-section {
    background-color: white;
    text-align: center;
}

.product-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.product-bottle {
    max-width: 250px;
    height: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.product-details {
    text-align: center;
}

.product-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
}

.product-details .price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.add-to-cart {
    margin-top: 20px;
}

/* Kontakt sekcija */
.contact-section {
    background-color: var(--bg-dark);
    color: var(--primary-color);
}

.contact-section h2 {
    color: var(--text-color);
}

.contact-section p {
    text-align: center;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    color: rgba(10, 9, 9, 0.7);
    font-family: var(--font-body);
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(58, 50, 50, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.contact-form .btn {
    align-self: center; 
}
/* Stilovi za "O nama" sekciju */
.about-us-section {
    background-color: var(--bg-light); 
    text-align: center;
    padding: 80px 0;
}

.about-us-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.about-us-section p {
    max-width: 800px;
    margin: 0 auto 15px auto; 
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responzivni dizajn */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }

    .navbar .logo {
        margin-bottom: 20px;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links li {
        margin-left: 0;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    h2 {
        font-size: 2em;
    }

    .product-info {
        flex-direction: column;
    }

    .product-bottle {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 15px;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .section {
        padding: 60px 0;
    }

    .note-card {
        padding: 20px;
    }
}
.product-slider-container {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px; /* Maksimalna širina cijelog slidera */
    width: 100%;
}

.thumbnail-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 100px; /* Širina sličica */
    height: 100px; /* Visina sličica */
    object-fit: cover; /* Pokrij cijeli prostor, obrezati ako je potrebno */
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.thumbnail:hover {
    border-color: #aaa;
    transform: scale(1.02);
}

.thumbnail.active {
    border-color: #4CAF50; /* Boja aktivne sličice */
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.4);
}

.main-image-display {
    flex-grow: 1; /* Glavna slika zauzima preostali prostor */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden; /* Osigurava da slika ne iskače van okvira */
}

#mainProductImage {
    max-width: 100%;
    max-height: 500px; /* Maksimalna visina glavne slike */
    width: auto;
    height: auto;
    display: block; /* Ukloni dodatni prostor ispod slike */
    border-radius: 8px;
}

/* Responzivni dizajn */
@media (max-width: 768px) {
    .product-slider-container {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .thumbnail-column {
        flex-direction: row; /* Sličice idu u red */
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .thumbnail {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    .product-slider-container {
        padding: 15px;
    }
}
/* MIRS Quiz Section */
.mirs-quiz-section {
    background-color: var(--bg-light);
    text-align: center;
    padding: 80px 0;
}

.mirs-quiz-section h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.quiz-intro {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--text-color);
}

#quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.quiz-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question-text {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    min-height: 70px; /* Osigurava prostor za pitanje */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.quiz-option {
    background-color: #f8f8f8;
    border: 2px solid #eee;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--text-color);
}

.quiz-option:hover {
    background-color: #eef;
    border-color: var(--primary-color);
}

.quiz-option.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

#next-question-btn {
    align-self: flex-end; /* Poravnava gumb desno */
}

#quiz-result h3 {
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 20px;
}

.result-text {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color);
}

.secondary-btn {
    background-color: #6c757d;
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

/* Prilagodbe za responzivnost kviza */
@media (max-width: 768px) {
    #quiz-container {
        padding: 30px;
    }

    .question-text {
        font-size: 1.3em;
        min-height: 60px;
    }

    .quiz-option {
        padding: 12px 15px;
        font-size: 1em;
    }

    #next-question-btn {
        align-self: stretch; /* Gumb zauzima cijelu širinu na mobilnom */
    }

    .secondary-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    #quiz-result .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.interactive-pyramid-section {
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: var(--bg-light); /* Pozadina sekcije */
}

.pyramid-container {
    position: relative;
    max-width: 800px;
    margin: 30px auto 30px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* POZADINSKA SLIKA PIRAMIDE */
    background: 
        url("img/piramida-pozadina.png") no-repeat center center;
    background-size:55% auto; /* Veličina pozadinske slike piramide */
    background-position-y: 0%;
    background-color: var(--bg-light); /* Boja ispod slike */

    padding: 40px 20px 80px 20px; /* Povećan donji padding zbog vizuala */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Elegantan shadow */
}

/* Stil za pojedine slojeve piramide (Top, Middle, Base) */
.pyramid-layer {
    width: 90%; /* Smanjujemo širinu da otkrijemo sliku piramide sa strane */
    padding: 10px 0;
    text-align: center;
    box-sizing: border-box;
    border-bottom: none; 
    
    /* Prozirna pozadina slojeva da se vidi slika piramide */
    background-color: rgba(255, 255, 255, 0); 
    border-radius: 5px;
    margin-bottom: 15px;
    z-index: 5; /* Osigurava da su note iznad pozadinske slike */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Suptilno razdvajanje slojeva */
}

.pyramid-layer:last-child {
    margin-bottom: 0;
}


/* Stil za pojedinu notu (Clickable/Hoverable button) */
.note-item {
    display: inline-block;
    padding: 10px 18px;
    margin: 5px 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
    position: relative;
    
    /* Boje za bolju čitljivost */
    background-color: var(--bg-dark); 
    color: var(--light-text-color); /* Svijetli tekst na tamnoj pozadini */
}

.note-item:hover {
    background-color: var(--secondary-color); /* Zlatna boja na hover */
    color: var(--text-color); /* Tamni tekst na zlatnoj pozadini */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.5); /* Zlatni sjaj */
}

/* Skriva originalni info div, koristi se samo za prijenos podataka */
.note-item .note-info {
    display: none;
}


/* BOČICA PARFEMA (Prekriva vizualno piramidu i vodi na kupnju) */

.perfume-bottle-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.pyramid-bottle {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pyramid-bottle:hover {
    transform: scale(1.05);
}

.bottle-click-prompt {
    position: absolute;
    bottom: 50px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.perfume-bottle-overlay:hover .bottle-click-prompt {
    opacity: 1;
    visibility: visible;
    transform: translateY(-10px); /* Blagi pomak prema gore */
}


/* KARTICA ZA PRIKAZ DETALJA NOTE (Ispod piramide) */

.note-details-card {
    min-height: 250px; 
    width: 100%;
    background-color: white;
    border: 1px dashed var(--secondary-color); /* Zlatni isprekidani okvir */
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#detail-name {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
}

#detail-image {
    max-height: 100px;
    width: auto;
    border-radius: 4px;
    margin: 10px auto;
}

#detail-desc {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 5px;
}

#detail-role {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* MEDIA QUERIES ZA RESPONSIVNOST */
@media (max-width: 600px) {
    .pyramid-container {
        padding: 10px 10px 10px 10px;
        background-size: 100% auto;
    }
    
    .pyramid-layer {
        width: 100%;
        padding: 15px 5px;
    }

    .note-item {
        font-size: 0.9em;
        margin: 4px 2px;
        padding: 8px 8px;
    }

    .perfume-bottle-overlay {
        width: 150px;
    }

    .bottle-click-prompt {
        font-size: 0.8em;
        bottom: 30px;
        padding: 6px 10px;
    }
}