.single-product-naslov {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 28px;
}

.single-product-cijena {
    font-size: 20px;
    font-weight: 1000;
    color: #fff;
    background: #b88941;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(184,137,65,0.10);
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 24px;
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
    text-shadow: 0 2px 8px rgba(184,137,65,0.08);
}

.custom-accordion {
    width: 100%;
    max-width: 500px;
    margin: 30px 0;
}

.accordion-item {
    background: #dcbe93;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    color: #3c3c3c;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #c8a165;
}

.accordion-icon {
    font-size: 22px;
    color: white;
    margin-left: 16px;
    transition: transform 0.2s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* "+" se pretvara u "x" */
}

.accordion-content {
    display: none;
    padding: 20px 24px 20px 24px;
    font-size: 16px;
    font-family: Lato, sans-serif;
    color: #444;
    background: #fcf8f3;
    border-top: 1px solid #f4ece2;
    animation: fadeIn 0.3s;
}

.accordion-item.active .accordion-content {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.check-item {
    display: flex;
    align-items: center;
    font-size: 17px;
    color: #1a2330;
    margin-bottom: 14px;
}

.icon-item {
  display: flex;
  align-items: center;
  font-size: 17px;
  color: rgba(24, 24, 24, 0.8);
  margin-bottom: 14px;
}

.icon-badge {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.tab-title {
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 10px;
    text-transform: uppercase;
}

.technical-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.technical-details {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    line-height: 28px;
    font-family: 'Open Sans', sans-serif;
}

.filteri-form {
    background-color: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70vw;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}

.filteri-css-fix {
    margin-left: 10px;
    margin-right: 10px;
}

@media (max-width: 1740px) {
    .filteri-css-fix {
        margin-left: 8px;
        margin-right: 8px;
    }

    .filteri-form {
        width: 80vw;
    }
}

@media (max-width: 1480px) {
    .filteri-css-fix {
        margin-left: 5px;
        margin-right: 5px;
    }

    .filteri-form {
        width: 85vw;
    }
}

@media screen and (max-width: 1268px) {
    /* Adjust the filter form container with more height */
    .filteri-form {
        min-height: unset;
        width: 90vw;
        padding: 16px;
        min-height: 950px;
    }

    /* Product options container */
    .product-option {
        display: block;
        width: 100%;
        position: relative;
        z-index: 101;
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margin */
    }

    /* First dropdown (sort by price) specific styling */
    .product-option .dropdown:first-child {
        margin-top: -450px; /* Remove top margin from first filter */
        padding-top: 0; /* Remove top padding from first filter */
    }

    /* Style for each dropdown container with more breathing room */
    .product-option .dropdown {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin: 0; /* Increased bottom margin */
        float: none;
        display: block;
        position: relative;
        z-index: 102;
    }

    /* Input and select styles with consistent spacing */
    .product-option input,
    .product-option select {
        width: 100%;
        margin-bottom: 10px; /* Increased bottom margin */
        position: relative;
        z-index: 103;
        background-color: #ffffff;
        height: 45px; /* Slightly larger input fields */
    }

    /* Label styling with more space */
    .product-option label {
        display: block;
        margin-bottom: 0px; /* Increased margin */
        padding: 5px 0;
        font-size: 14px; /* Slightly larger font */
    }

    /* Button container with better positioning */
    .floatleft {
        float: none;
        width: 100%;
        display: block;
        margin-bottom: 20px;
        position: relative;
        z-index: 102;
    }

    /* Filter button with improved styling */
    .floatleft .btn {
        width: 100%;
        display: block;
        margin-top: 50px; /* Increased top margin */
        position: relative;
        z-index: 103;
        height: 50px; /* Larger button */
        font-size: 16px; /* Larger font size */
    }

    /* Ensure proper stacking context */
    .clearfix::after {
        content: "";
        clear: both;
        display: table;
    }

    /* Add space between form elements */
    .product-option > * {
        margin-bottom: 20px; /* Increased spacing */
    }
}

.icon-item-css-fix {
    margin-bottom: 20px;
}

@media (max-width: 1199px) {
  .button-add-to-cart-css-fix {
    margin-bottom: 20px !important;
    padding: 15px 30px;
    font-size: 16px;
  }
}

.custom-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.custom-header-logo {
    flex: 0 0 auto;
    font-family: Arial, Helvetica, sans-serif;
}

.custom-header-logo img {
    max-height: 48px;
    width: auto;
    display: block;
    margin-left: -10px;
}

.custom-header-menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
}

.custom-header-menu ul {
    display: flex;
    gap: 32px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
    margin-left: -32px;
}

@media (max-width: 1000px) {
    .custom-header-menu ul {
        gap: 12px;
    }
}

.custom-header-menu li {
    display: block;
    position: relative;
}

.custom-header-menu a {
    text-decoration: none;
    color: #232323;
    font-weight: 500;
    font-size: 1.12rem;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: Arial, Helvetica, sans-serif;
}

.custom-header-menu a:hover, .custom-header-menu a.active {
    color: #bfa15a;
}

/* Dropdown styles - improved look */
.has-dropdown {
    position: relative;
}

.has-dropdown > .dropdown-menu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 105%;
    min-width: 320px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(50, 50, 93, 0.13), 0 1.5px 8px rgba(0,0,0,0.07);
    z-index: 99;
    padding: 20px 0 5px 0;
    flex-direction: column;
    animation: dropdown-fade-in 250ms ease;
}

/* Fade-in effect */
@keyframes dropdown-fade-in {
    from { opacity: 0; transform: translateY(10px) translateX(-50%);}
    to { opacity: 1; transform: translateY(0) translateX(-50%);}
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
    display: flex;
}

/* Optional: arrow on top of the dropdown */
.has-dropdown > .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0px -2px 2px rgba(0,0,0,0.05));
}

/* Dropdown items */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    color: #232323;
    background: transparent;
    border-radius: 7px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
    position: relative;
    text-decoration: none;
    outline: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background: linear-gradient(90deg, #f9f7f1 60%, #fff 100%);
    color: #bfa15a;
    padding-left: 16px;
}

/* Optional: subtle divider between items */
.dropdown-menu li:not(:last-child) a {
    border-bottom: 1px solid #f0f0f0;
}

/* Optional: add an icon to the left on hover */
.dropdown-menu a::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0;
    border-right: 0 solid #bfa15a;
    transition: width 0.18s, margin-right 0.18s;
}
.dropdown-menu a:hover::before,
.dropdown-menu a:focus::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: #bfa15a;
    border-right: none;
}

/* Accessibility: focus support */
.has-dropdown > a:focus + .dropdown-menu,
.dropdown-menu a:focus {
    display: flex;
    outline: none;
}

.dropdown-menu li {
    margin-top: -10px;
}

/* Responsive: dropdown fits on mobile */
@media (max-width: 600px) {
    .has-dropdown > .dropdown-menu {
        min-width: 150px;
        font-size: 0.98rem;
    }
    .dropdown-menu a {
        padding: 10px 14px;
    }
}

.single-product-fix-proizvod {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .single-product-fix-proizvod {
        width: 90vw;
        min-width: 0;
        max-width: 99vw;
        margin-left: 50%;
        transform: translateX(-50%);
        box-sizing: border-box;
        display: block;
    }
}

.product-shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.product-sidebar {
    width: 360px;
    min-width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 32px 18px 18px 18px;
    box-shadow: 0 6px 18px 0 rgba(60,60,60,0.09);
    margin-right: 0;
    position: sticky;
    z-index: 3;
    flex-shrink: 0;
}

@media (min-width: 801px) and (max-width: 1600px) {
    .product-sidebar {
        margin-left: 10px;
    }
}

@media (min-width: 1601px) {
    .product-sidebar {
        margin-left: 20px;
    }
}

.product-sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-sidebar-form label {
    font-size: 15px;
    color: #715e39;
    font-weight: 600;
    margin-bottom: 0px;
}

.product-sidebar-form select,
.product-sidebar-form input[type="number"] {
    height: 38px;
    border-radius: 6px;
    border: 1.5px solid #e4d5b8;
    background: #fcf8f3;
    font-size: 15px;
    padding: 6px 10px;
    transition: border-color 0.2s;
}

.product-sidebar-form select:focus,
.product-sidebar-form input[type="number"]:focus {
    border-color: #b9985c;
    outline: none;
}

.product-sidebar-btn {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    background: #b9985c;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.product-sidebar-btn:hover {
    background: #a47636;
    color: #fff;
}

.product-main {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    /* prevent overflow on mobile */
}

@media (max-width: 1100px) {
    .product-shop-layout {
        gap: 8px;
    }
    .product-sidebar {
        width: 240px;
        min-width: 140px;
        padding: 24px 8px 8px 8px;
    }
    .pt-80 {
        padding-top: 20px;
    }
    .pb-80 {
        padding-bottom: 20px;
    }
}

@media (max-width: 800px) {
    .product-shop-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .product-sidebar {
        width: 100%;
        min-width: 0;
        border-radius: 0;
        box-shadow: none;
        position: static;
        margin-bottom: 22px;
        padding: 16px 0 8px 0;
    }
    .product-main {
        width: 100%;
        min-width: 0;
    }
    .product-sidebar-form label {
        font-size: 14px;
        color: #715e39;
        font-weight: 600;
        margin-bottom: 0;
        padding-left: 4px;
        margin-left: 5%;
    }
    .product-sidebar-form select,
    .product-sidebar-form input[type="number"] {
        font-size: 15px;
        height: 40px;
        border-radius: 7px;
        background: #fcf8f3;
        border: 1px solid #e6d6b8;
        padding: 8px 10px;
        width: 90%;
        margin-left: 5%;
        box-sizing: border-box;
        margin-bottom: 3px;
    }
    .product-sidebar-btn {
        margin-top: 12px;
        font-size: 16px;
        height: 60px;
        border-radius: 8px;
        width: 60%;
        margin-left: 20%;
        margin-bottom: 10px;
    }
}

@media (max-width: 650px) {
    .product-sidebar {
        padding: 8px 0 8px 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }
    .product-sidebar-form {
        gap: 10px;
    }
    .product-sidebar-group {
        gap: 4px;
        margin-bottom: 0;
    }
    .product-sidebar-form label {
        font-size: 14px;
        color: #715e39;
        font-weight: 600;
        margin-bottom: 0;
        padding-left: 4px;
        margin-left: 5%;
    }
    .product-sidebar-form select,
    .product-sidebar-form input[type="number"] {
        font-size: 15px;
        height: 40px;
        border-radius: 7px;
        background: #fcf8f3;
        border: 1px solid #e6d6b8;
        padding: 8px 10px;
        width: 90%;
        margin-left: 5%;
        box-sizing: border-box;
        margin-bottom: 3px;
    }
    .product-sidebar-btn {
        margin-top: 12px;
        font-size: 16px;
        height: 60px;
        border-radius: 8px;
        width: 60%;
        margin-left: 20%;
        margin-bottom: 10px;
    }
}

@media (max-width: 450px) {
    .product-sidebar {
        padding: 4px 0 4px 0;
    }
    .product-sidebar-form label {
        font-size: 13px;
        padding-left: 2px;
    }
    .product-sidebar-form select,
    .product-sidebar-form input[type="number"] {
        font-size: 14px;
        height: 36px;
        border-radius: 6px;
        padding: 7px 8px;
    }
    .product-sidebar-btn {
        font-size: 14px;
        height: 38px;
    }
}

.pagination-responsive-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}
.pagination-responsive {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 auto;
}
.pagination-link, .pagination-ellipsis {
    display: inline-block;
    min-width: 36px;
    padding: 8px 14px;
    margin: 0 2px;
    font-size: 1rem;
    border-radius: 4px;
    background: #f2f2f2;
    color: #c8a165;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    border: 1px solid #c8a165;
    text-align: center;
}
.pagination-link.active {
    background: #c8a165;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
    border-color: #c8a165;
}
.pagination-link:hover:not(.active) {
    background: #c8a165;
    color: white;
    transform: scale(1.05);
}
.pagination-ellipsis {
    background: transparent;
    border: none;
    color: #888;
    cursor: default;
    min-width: 18px;
    padding: 8px 0;
}
@media (max-width: 600px) {
    .pagination-responsive-wrapper {
        font-size: 0.9rem;
    }
    .pagination-responsive {
        gap: 4px;
    }
    .pagination-link, .pagination-ellipsis {
        min-width: 32px;
        padding: 6px 10px;
        font-size: 0.9rem;
        transform: scale(0.9);
    }
}

/* Search bar */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
    padding: 15px;
    background-color: #c8a165;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative; /* Ensure child absolute positioning is relative to this */
}

#search-input {
    width: 350px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

#search-button {
    padding: 12px 14px;
    margin-left: 15px;
    margin-top: -2px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#search-button:hover {
    transform: scale(1.05);
    background-color: #25a159;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* ========== AUTOCOMPLETE FIX ========== */
#autocomplete-list,
.autocomplete-items {
    position: absolute;
    left: 0;
    right: auto;
    margin: 0;

    /* --- KEY PART: anchor to input field --- */
    top: calc(50% + 10px); /* 50% of .search-bar + half input height, adjust if needed */
    /* Find the input and center under it */
    min-width: 350px;
    max-width: 350px;

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(60, 60, 60, 0.18), 0 1.5px 8px rgba(120, 120, 120, 0.12);
    box-sizing: border-box;
    min-height: 0;
    max-height: 320px;
    overflow-y: auto;
    font-size: 1rem;
    z-index: 10000;

    /* Center horizontally under input */
    left: 50%;
    transform: translateX(-50%);
}

/* Each suggestion item */
.autocomplete-item {
    padding: 12px 18px;
    cursor: pointer;
    color: #5e4c2a;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid #f4e2c0;
    background: transparent;
}
.autocomplete-item:last-child {
    border-bottom: none;
}

/* Highlight on hover or active */
.autocomplete-item:hover,
.autocomplete-item.active {
    background: #f2e5c1;
    color: #b88f3f;
}

@media (max-width: 600px) {
    #autocomplete-list,
    .autocomplete-items {
        max-width: 95vw;
        min-width: 0;
        font-size: 0.97rem;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .autocomplete-item {
        padding: 10px 12px;
    }
}

.heading-banner-title h1 {
  font-size: 24px;
  line-height: 32px;
  padding: 42px 0 38px;
}

.heading-banner-title h1 {
    position: relative;
    color: #fff;
    font-size: 45px;
    font-weight: 900;
    line-height: 33px;
    margin-bottom: 0;
    padding: 134px 0 101px;
    text-align: center;
    text-transform: uppercase;
}

.bl-rasvjeta-seo-section {
    max-width: 900px;
    margin: 44px auto 26px auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.bl-rasvjeta-seo-section h1 {
    font-size: 2.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.4em;
    color: #232323;
}

.bl-rasvjeta-seo-section h2 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #b99a5e;
    margin-bottom: 1.2em;
    letter-spacing: 0.5px;
}

.bl-rasvjeta-seo-section p {
    color: #232323;
    font-size: 1.06rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 740px;
}

@media (max-width: 600px) {
    .bl-rasvjeta-seo-section {
        padding: 0 2vw;
    }
    .bl-rasvjeta-seo-section h1 {
        font-size: 1.25rem;
    }
    .bl-rasvjeta-seo-section h2 {
        font-size: 1rem;
    }
    .bl-rasvjeta-seo-section p {
        font-size: 0.93rem;
    }
}

h1, h2, h3, a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h4, p, span, button {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}