/* Essential Oils Section Styles */
.essential-oils {
    padding: 4rem 2rem;
    background-color: #fcfcfc;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 2.25rem;
    font-weight: 300;
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase; /* Naslov velikim slovima */
}

.section-description {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    color: #666;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    line-height: 1.8; /* Povećan razmak između redova */
    letter-spacing: 0.01em;
}

/* Blend Category Styles */
.blend-category {
    margin-bottom: 4rem;
}

.blend-category-title {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 300; /* Tanji font za naslove */
    color: #2c2c2c;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Šuplji dijamant icon stilovi - manji i iza teksta */
.hexagon-icon {
    position: relative;
    display: inline-block;
    width: 0.4em; /* Još manji */
    height: 0.4em; /* Još manji */
    background: transparent;
    border: 1px solid #2c2c2c; /* Ista debljina kao i font */
    transform: rotate(45deg);
    margin-left: 0.5em; /* Margin s lijeve strane da bude iza teksta */
}

.blend-category-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    color: #666;
    font-weight: 300; /* Tanji font za opise */
}

.droplet-container {
    display: flex;
    gap: 0.25rem;
}

.droplet-icon {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

/* Product Grid Styles */
.oils-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1280px;
}

/* Product Card Styles */
.oil-item {
    background: white;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Dodana sjena */
}

.oil-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.image-container {
    position: relative;
    padding-top: 100%;
    background: white;
}

.oil-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: white;
}

.oil-item:hover .oil-image {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Product Details Styles */
.oil-details {
    padding: 1.5rem;
}

.oil-details h4 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 400; /* Tanji font za naslove proizvoda */
    color: #2c2c2c;
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.01em;
}

.volume {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.75rem 0;
}

.price {
    font-size: 1rem;
    font-weight: 400; /* Tanji font za cijene */
    color: #2c2c2c;
    margin: 0 0 1rem 0;
}

.blend-character {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    font-style: italic;
    line-height: 1.5;
    font-weight: 300; /* Tanji font za opise */
}

/* Button Styles */
.favorite-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
}

.oil-item:hover .favorite-icon {
    opacity: 1;
    transform: translateY(0);
}

.favorite-icon:hover {
    transform: scale(1.1);
    background: #fff5f6;
}

.favorite-icon i {
    color: #ff4d6d;
    font-size: 1rem;
}

.add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    color: #2c2c2c;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(100%);
    font-weight: 300; /* Tanji font za gumb */
}

.oil-item:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
    background: #2c2c2c;
    color: white;
}

.add-to-cart:hover {
    background: #2c2c2c !important;
    color: white;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 500px;
    margin: 10vh auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal .close:hover {
    color: #2c2c2c;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300; /* Tanji font */
}

.modal label:hover {
    background: #f9f9f9;
}

.modal input[type="radio"] {
    margin: 0;
}

.modal input[type="submit"] {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300; /* Tanji font */
}

.modal input[type="submit"]:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background: #2c2c2c;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    font-weight: 300; /* Tanji font */
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Dodatni stilovi za modalne prozore za eterična ulja */

/* Stilizacija naslova i cijene u modalnom prozoru */
.modal h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0 0 0.5rem 0;
}

.modal-price {
    font-size: 1.1rem;
    font-weight: 400;
    color: #2c2c2c;
    margin: 1rem 0;
}

/* Stilizacija količine */
.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector p {
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.quantity-btn:hover {
    background: #f9f9f9;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
}

/* Stilizacija submit gumba */
.submit-btn {
    background: #2c2c2c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.submit-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

/* Dodavanje klase za modal-open stanje tijela stranice */
body.modal-open {
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .essential-oils {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .oils-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        margin: 5vh 1rem;
    }
}

@media (max-width: 480px) {
    .oils-grid {
        grid-template-columns: 1fr;
    }
}
