/* Sakrij običan menu na tabletima i mobilnim uređajima */
@media (max-width: 1024px) {
    .main-navigation {
        display: none !important;
    }
}
/* =============================================
   MOBILNI SLIDER KATEGORIJA (sa slikama)
   ============================================= */
@media (max-width: 768px) {
    .mobilni-kategorije-slider {
        padding: 10px 0 20px 0;
        background: transparent;
    }

    .kategorije-naslov {
        font-size: 16px;
        font-weight: 600;
        color: #2d3639;
        padding-left: 16px;
        margin-bottom: 8px;
    }

    .kategorije-wrapper {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 16px 10px 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .kategorije-wrapper::-webkit-scrollbar {
        display: none;
    }

    .kategorija-item {
        flex: 0 0 auto;
        width: 80px;
        text-align: center;
        text-decoration: none;
        scroll-snap-align: start;
        transition: transform 0.2s;
    }

    .kategorija-item:active {
        transform: scale(0.95);
    }

    .kategorija-slika {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #e8eaeb;
        background: #fff;
        display: block;
        margin: 0 auto;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: border-color 0.3s, box-shadow 0.3s;
    }

    .kategorija-item:hover .kategorija-slika {
        border-color: #1e7b8b;
        box-shadow: 0 4px 12px rgba(30,123,139,0.2);
    }

    .kategorija-placeholder {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: #1e7b8b;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
        margin: 0 auto;
    }

    .kategorija-naziv {
        display: block;
        font-size: 11px;
        color: #2d3639;
        margin-top: 4px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
}
    /* Naslov + strelica */
    .kategorije-naslov {
        font-size: 17px;
        font-weight: 500;
        color: #2d3639;
        text-align: center;
        margin-bottom: 10px;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .kategorije-naslov::after {
        content: "→";
        font-size: 20px;
        color: #1e7b8b;
        animation: strelicaTreperi 1.5s ease-in-out infinite;
        display: inline-block;
    }

    @keyframes strelicaTreperi {
        0%, 100% { opacity: 0.3; transform: translateX(0); }
        50% { opacity: 1; transform: translateX(4px); }
    }
/* =============================================
   MOBILNI BOTTOM BAR – KOMPLETAN (FINAL)
   ============================================= */

/* ---------- BOTTOM BAR ---------- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(45, 52, 54, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
    height: 48px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    pointer-events: none;
}

.mobile-bottom-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.product-bottom-bar {
    display: none;
}
.product-bottom-bar.visible {
    display: flex;
}

/* ---------- UNUTRAŠNJOST ---------- */
.bottom-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 6px;
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    position: relative;
    padding: 0 4px;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 9px;
}

.bottom-item:active {
    transform: scale(0.92);
}

.bottom-icon {
    font-size: 20px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.bottom-item:hover .bottom-icon {
    color: #fff;
}

.bottom-cart-count {
    position: absolute;
    top: 0px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(45, 52, 54, 0.92);
}

/* ---------- SINGLE PRODUCT – DUGME U BOTTOM BARU ---------- */
.bottom-product-actions {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 0 4px;
}

.bottom-product-actions .bottom-home {
    flex: 0 0 auto;
    padding: 0 4px;
}

.bottom-add-to-cart {
    flex: 1;
}


#mobileBottomBarProduct .bottom-add-to-cart .single_add_to_cart_button:hover,
#mobileBottomBarProduct .bottom-add-to-cart .button:hover,
#mobileBottomBarProduct .bottom-add-to-cart .single_add_to_cart_button.alt:hover,
#mobileBottomBarProduct .bottom-add-to-cart .button.alt:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.button:hover {
    background: #166a78 !important;
    background-color: #166a78 !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 16px rgba(30, 123, 139, 0.4) !important;
}

/* ---------- SINGLE PRODUCT – DUGME NA STRANICI ---------- */
body.single-product .single_add_to_cart_button,
body.single-product .woocommerce .single_add_to_cart_button,
body.single-product .woocommerce button.alt,
body.single-product .woocommerce #respond input#submit.alt,
body.single-product .woocommerce a.button.alt,
body.single-product .woocommerce button.button.alt,
body.single-product .woocommerce div.product form.cart .button,
body.single-product .woocommerce .cart .button,
body.single-product .woocommerce input[type="submit"],
body.single-product .woocommerce .button,
body.single-product .woocommerce a.button,
body.single-product form.cart .single_add_to_cart_button,
body.single-product .product .single_add_to_cart_button {
    background: #1e7b8b !important;
    background-color: #1e7b8b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(30, 123, 139, 0.3) !important;
    text-transform: none !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product .woocommerce .single_add_to_cart_button:hover,
body.single-product .woocommerce button.alt:hover,
body.single-product .woocommerce #respond input#submit.alt:hover,
body.single-product .woocommerce a.button.alt:hover,
body.single-product .woocommerce button.button.alt:hover,
body.single-product .woocommerce div.product form.cart .button:hover,
body.single-product .woocommerce .cart .button:hover,
body.single-product .woocommerce input[type="submit"]:hover,
body.single-product .woocommerce .button:hover,
body.single-product .woocommerce a.button:hover,
body.single-product form.cart .single_add_to_cart_button:hover,
body.single-product .product .single_add_to_cart_button:hover {
    background: #166a78 !important;
    background-color: #166a78 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(30, 123, 139, 0.4) !important;
}

/* ---------- MOBILNI – DUGME MANJE ---------- */
@media (max-width: 768px) {
    body.single-product .single_add_to_cart_button,
    body.single-product .woocommerce .single_add_to_cart_button,
    body.single-product .woocommerce button.alt,
    body.single-product .woocommerce #respond input#submit.alt,
    body.single-product .woocommerce a.button.alt,
    body.single-product .woocommerce button.button.alt,
    body.single-product .woocommerce div.product form.cart .button,
    body.single-product .woocommerce .cart .button,
    body.single-product .woocommerce input[type="submit"],
    body.single-product .woocommerce .button,
    body.single-product .woocommerce a.button,
    body.single-product form.cart .single_add_to_cart_button,
    body.single-product .product .single_add_to_cart_button {
        padding: 12px 20px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        width: 100% !important;
        text-align: center !important;
    }

    #mobileBottomBarProduct .bottom-add-to-cart .single_add_to_cart_button,
    #mobileBottomBarProduct .bottom-add-to-cart .button {
        padding: 5px 8px !important;
        font-size: 12px !important;
        min-height: 28px !important;
        border-radius: 8px !important;
    }
}

/* ---------- DROPDOWN MENI ---------- */
.bottom-dropdown-menu {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    background: rgba(45, 52, 54, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px 16px 0 0;
    padding: 10px 0 16px 0;
    max-height: 55vh;
    overflow-y: auto;
    transform: translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9998;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}

.bottom-dropdown-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.bottom-menu-list {
    list-style: none;
    margin: 0;
    padding: 0 4px;
}

.bottom-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bottom-menu-list li:last-child {
    border-bottom: none;
}

.bottom-menu-list a {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px;
    margin: 1px 0;
}

.bottom-menu-list a:hover {
    background: rgba(30, 123, 139, 0.25);
    color: #fff;
    padding-left: 22px;
}

.bottom-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
}

.bottom-menu-list .sub-menu a {
    padding: 10px 16px 10px 28px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.bottom-menu-list .sub-menu a:hover {
    padding-left: 34px;
    color: #fff;
    background: rgba(30, 123, 139, 0.15);
}

.bottom-dropdown-menu::-webkit-scrollbar {
    width: 4px;
}

.bottom-dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(30, 123, 139, 0.4);
    border-radius: 4px;
}

/* ---------- BODY PADDING ---------- */
body {
    padding-bottom: 58px !important;
}
/* =============================================
   DUGME U BOTTOM BARU – CILJAMO TAČNO TAJ ELEMENT
   ============================================= */

/* Ciljamo tačno taj <a> unutar bottom bara */
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button,
#mobileBottomBarProduct .bottom-add-to-cart a.button,
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button.alt,
#mobileBottomBarProduct .bottom-add-to-cart a.button.alt,
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button.button,
#mobileBottomBarProduct .bottom-add-to-cart a.button.button {
    background: #1e7b8b !important;
    background-color: #1e7b8b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 8px rgba(30, 123, 139, 0.3) !important;
    letter-spacing: 0.3px !important;
    min-height: 32px !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
    text-transform: none !important;
    cursor: pointer !important;
}

#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.button:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button.alt:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.button.alt:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.single_add_to_cart_button.button:hover,
#mobileBottomBarProduct .bottom-add-to-cart a.button.button:hover {
    background: #166a78 !important;
    background-color: #166a78 !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
    box-shadow: 0 4px 16px rgba(30, 123, 139, 0.4) !important;
}
/* Sprečava horizontalni skrol */
html,
body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Osiguraj da nijedan element ne izlazi van ekrana */
* {
    max-width: 100% !important;
    box-sizing: border-box !important;
}