@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins";
}

body {
    background: #F9F9F9;
    height: 100vh;
    width: 100%;
}


.header {
    background-color: #87CEEB;
    color: #ffffff;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.scrolling-text-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
  }
  
  .scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 35s linear infinite;
    font-size: 18px;
    color: #ffffff;
  }
  
  @keyframes scrollText {
    from {
      transform: translateX(100%);
    }
    to {
      transform: translateX(-100%);
    }
  }

.icons {
    display: flex;
    gap: 20px;
    font-size: 1.2em;
     margin: 20px;
}

.icons i:hover {
    color: #007bff;
    transform: scale(1.2); 
}

.nav-menu {
    background-color: #ffffff;
    padding: 20px 0;
    color: #333;
    position: relative; 
    display: flex;
    justify-content: center; 
    align-items: center; 
}

.nav-menu-container {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-menu ul li {
    list-style: none;
    position: relative;
}

.nav-menu ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px; 
    transition: color 0.3s, background-color 0.3s; 
}

.nav-menu ul li a:hover {
    color: #87CEEB;
    background-color: rgba(135, 206, 235, 0.2);
}

.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    font-size: 14px;
    display: none;
    position: fixed; 
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px; 
    border-radius: 5px;
    z-index: 10;
    left: 0; 
    width: 100vw;
}

.has-submenu:hover .submenu {
    display: block; 
}

.submenu {
    display: block;
    
}

.submenu-column {
    margin-bottom: 10px;
    padding: 10px;
}

.submenu-column h3 {
    margin: 0 0 5px; 
    font-size: 1.1em; 
    font-weight: bold; 
}

.submenu-column ul {
    list-style: none;
    padding: 0;
}

.submenu-column ul li {
    margin: 5px 0;
}

.submenu-column ul li a {
    color: #333;
    text-decoration: none;
    padding: 8px 10px; 
    display: block; 
    transition: color 0.3s, background-color 0.3s; 
}

.submenu-column ul li a:hover {
    color: #87CEEB;
    background-color: rgba(135, 206, 235, 0.2);
}

.burger-menu {
    color: #ffffff;
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .nav-menu-container {
        display: none;
        flex-direction: column;
        align-items: flex-start; 
        padding-left: 20px;
    }

    .nav-menu-container.show {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start; 
        width: 100%; 
    }

    .nav-menu ul li {
        width: 100%; 
    }

    .nav-menu ul li a {
        display: block;
        text-align: left; 
        padding-left: 10px; 
        width: 100%; 
    }

    .has-submenu .submenu {
        position: static;
        display: none;
        width: 100%; 
    }

    .has-submenu.show .submenu {
        display: block;
    }
}
.hidden {
    display: none;
}

#search-form-container {
    position: absolute;
    top: 12px; 
    right: 15px;
    background-color: white;
    padding: 1px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


#search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

#search-form input[type="text"]:focus {
    border-color: #007bff; /
}

#search-form button[type="submit"] {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#search-form button[type="submit"]:hover {
    background-color: #0056b3;
}


/* */
.custom-dropdown {
    position: relative;
    width: 260px; 
    border: 1px solid #ddd;
    border-radius: 8px; 
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease; 
}

.custom-dropdown .selected-option {
    display: flex;
    align-items: center;
    padding: 8px; 
    font-size: 14px;
    color: #333;
    font-weight: 500; 
    background: #f9f9f9; 
    border-radius: 8px;
    transition: background 0.3s ease;
}

.custom-dropdown .selected-option:hover {
    background: #f0f0f0; 
}

.custom-dropdown .dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    z-index: 100;
    transition: all 0.3s ease; 
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 10px; 
    cursor: pointer;
    font-size: 14px; 
    transition: background 0.3s ease;
}

.dropdown-option:hover {
    background: #f0f0f0;
}

.option-image {
    width: 170px; 
    height: 120px;
    margin-right: 12px; 
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.dropdown-option span {
    font-size: 14px;
    color: #252525; 
    font-weight: 400;
}

/* */

.product-container {
    display: flex;
    gap: 40px;
    margin: 20px auto;
    max-width: 1400px;
    border-radius: 8px;
    padding: 20px;
    flex-wrap: wrap;
}


.product-images {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    background-color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumbnail:hover {
    border-color: #007bff;
}

.product-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.product-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #252525;
}
.product-sifra {
    font-size: 14px;
    font-weight: solid;
    margin-bottom: 5px;
    color: #4e4e4e;
}

.cijena {
    font-size: 18px;
    color: #252525;
    font-weight: bold;
    margin-bottom: 10px;
}

.opis p {
    line-height: 1.2;
    color: #555;
    font-size: 14px;
}

form {
    display: block;
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    margin-right: 10px
}

select {
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    width: 180px;
    margin-bottom: 12px;
}

select:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

button[type="submit"] {
    padding: 8px 32px;
    color: #007bff;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #007bff;
    border-radius: 5px;
    background: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

button[type="submit"]:hover {
    background-color: #007bff;
    color: white;
}

.additional-details {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.tablink {
    background-color: #ddd;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex: 1;
    text-align: center;
    margin: 5px;
    border-radius: 4px;
}

.tablink:hover,
.tablink.active {
    background-color: #333;
    color: #fff;
}

.tabcontent {
    display: none;
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
}

.tabcontent.active {
    display: block;
}


@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .thumbnail-images {
        gap: 5px;
    }

    .thumbnail {
        width: 90px;
        height: 90px;
    }

    .product-name {
        font-size: 20px;
    }

    .cijena {
        font-size: 18px;
    }

    .opis p {
        font-size: 14px;
    }

    button[type="submit"] {
        padding: 12px 32px;
        font-size: 14px;
    }

    .tablink {
        padding: 10px;
        margin: 2px;
    }

    .tabcontent {
        padding: 10px;
    }

    .tabcontent img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        width: 40px;
        height: 40px;
    }

    .product-name {
        font-size: 20px;
    }

    .cijena {
        font-size: 18px;
    }

    .opis p {
        font-size: 10px;
    }

    button[type="submit"] {
        padding: 12px 32px;
        font-size: 14px;
    }

    .tablink {
        font-size: 10px;
        padding: 4px 6px;
    }

    .tabcontent h3 {
        font-size: 10px;
    }

    .tabcontent p {
        font-size: 9px;
    }
}

.quantity-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; 
}

.quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 22px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #bbb;
}

#quantity {
    width: 65px;
    text-align: center;
    font-size: 16px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

@media (max-width: 600px) {
    .quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    #quantity {
        width: 50px;
        font-size: 16px;
    }

    .quantity-container {
        gap: 5px;
    }
}

.sold-out {
    font-size: 18px;
    font-weight: bold;
    color: red;
    margin-top: 15px;
}


/* FOOTER */
.site-footer {
    background-color: #89cff0;
    padding: 45px 0 20px;
    font-size: 15px;
    line-height: 24px;
    color: #252525;
}

.site-footer .containerfooter {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: #89CFF0;
    text-decoration: none;
}

.site-footer h6 {
    color: #252525;
    font-size: 16px;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 2px;
}

.site-footer p {
    color: #252525;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
}

.footer-links {
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    display: block;
}

.footer-links a {
    color: #252525;
}

.footer-links a:active, .footer-links a:focus, .footer-links a:hover {
    color: #fff;
    text-decoration: none;
}
.copyright-text {
    margin: 0;
}

.copyright-text .highlight {
    font-weight: bold;
    color: #0f4279;
}

.social-icons {
    list-style: none;
    padding: 0;
    margin: 15px auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons li {
    display: flex;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.15);
    background-color: #89CFF0;
}

.social-icon {
    width: 28px;
    height: 28px;
    fill: #252525;
    transition: fill 0.3s ease;
}

.social-icons a:hover .social-icon {
    fill: white;
}
/* Responsiveeee */
@media (max-width: 991px) {
    .site-footer .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding-bottom: 0;
    }

    .site-footer .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .site-footer .col-md-6, .site-footer .col-md-3 {
        max-width: 100%;
        flex: 0 0 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        gap: 10px;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }
}

.site-footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer .col-md-6, .site-footer .col-md-3 {
    flex: 1;
    padding: 0 15px;
}

.site-footer hr {
    border-top-color: #bbb;
    opacity: 0.5;
    margin: 10px;
}
@media (max-width: 480px) {
    .social-icons {
        justify-content: center;
        gap: 8px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }

    .social-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .site-footer .col-md-6 {
        order: 1;
    }

    .site-footer .col-md-3 {
        order: 2;
    }

    .site-footer .col-md-4 {
        order: 3;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 80vw;
    height: 80vh;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* vidi cijelu sliku */
    border-radius: 10px;
    background-color: #f5f5f5;
}
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    user-select: none;
    transition: 0.3s;
    border: none;
    background: none;
}

.prev:hover, .next:hover {
    color: #bbb;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 90%;
    }

    .prev, .next {
        font-size: 16px;
        padding: 12px;
    }
}