* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f5f0;
    color: #3a3a3a;
    line-height: 1.6;
}

header {
    background-color: #5d7262;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-nav button {
    background-color: rgba(255,255,255,0.8);
    border: none;
    color: #5d7262;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-nav button:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #5d7262;
    margin-bottom: 1.5rem;
}

.divider {
    width: 100px;
    height: 3px;
    background-color: #c7b8a1;
    margin: 1rem auto 2rem;
}

.content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.highlight {
    font-weight: 600;
    color: #5d7262;
    font-style: italic;
}

.cta-button {
    background-color: #5d7262;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #3a4a3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.jewelry-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.2rem;
    color: #5d7262;
    margin-bottom: 1rem;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2rem 0;
}

.category {
    padding: 10px 20px;
    background-color: #f9f5f0;
    border-radius: 30px;
    border: 1px solid #c7b8a1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5d7262;
}

.category:hover, .category.active {
    background-color: #5d7262;
    color: white;
    border-color: #5d7262;
}

.jewelry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.jewelry-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center;
}

.jewelry-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.item-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.jewelry-item h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    color: #3a3a3a;
}

.price {
    color: #5d7262;
    font-weight: 600;
    padding-bottom: 1.2rem;
    font-size: 1.1rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    position: relative;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.8rem;
    color: #5d7262;
    cursor: pointer;
}

.modal-image {
    flex: 1;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.modal-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #5d7262;
    margin-bottom: 0.5rem;
}

.modal-price {
    font-size: 1.4rem;
    color: #5d7262;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

#modal-description {
    margin-bottom: 2rem;
    line-height: 1.7;
}

footer {
    background-color: #5d7262;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 2rem;
}

.footer-section {
    margin-bottom: 2rem;
    min-width: 200px;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px; /* Možete podesiti željenu visinu */
}

.slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.jewelry-item {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.jewelry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.item-image {
  position: relative;
  height: 250px; /* Fiksna visina za sve slike */
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #f9f5f0;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 5px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-details {
    padding: 0 15px;
}

#modal-title {
    font-family: 'Playfair Display', serif;
    color: #5d7262;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-price {
    color: #5d7262;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

#modal-description {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #5d7262;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.2s;
}

.close-button:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }
    
    .modal-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    #modal-title {
        font-size: 1.5rem;
    }
}

/* Responsivne prilagodbe */
@media (max-width: 768px) {
  .item-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .item-image {
    height: 180px;
  }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.2rem;
    }
    
    .slider {
        height: 300px;
    }
    
    .jewelry-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .modal-content {
        flex-direction: column;
        width: 90%;
    }
    
    .modal-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.8rem;
    }
    
    .slider {
        height: 200px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .jewelry-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .category {
        flex: 0 0 auto;
    }
}
