/* Editing file "/media/templates/site/vmbasic/css/user.css" in template "vmbasic". */
.vm-product-container .availability {
  text-align: right;
}
.availability img.availability {
  max-width: 160px;
}
.com-content-article .badge.bg-warning {
  display: none;
}
a {
  color: #ec2027;
  text-decoration: none;
}
a:hover {
  color: #ec2027;
  text-decoration: none;
}
/* Sidebar Categories */
.categories_sidebar .vm-menu .accordion-item a {
    color: black;
  text-transform: uppercase;
}
.categories_sidebar .vm-submenu {
  background-color: white !important;
}
.categories_sidebar .border-bottom {
  border-radius: 0;
}
.categories_sidebar .vm-submenu .border-bottom {
  border: none !important;
}
.categories_sidebar .vm-submenu .border-bottom a {
  text-transform: lowercase;
}
.copyright {
    order: 6;
    width: 100%;
}
.kartice {
    width: 100%;
    height: 30px;
    display: block;
    margin-bottom: 10px;
}

.hzzo_tekst {
    text-align: center;
    margin-bottom: 5px;
}

.hzzo_img {
    width: 40px;
    margin: 0 auto;
}

.halmed_img {
    width: 180px;
    margin: 0 auto 10px;
}

/* --- Browse availability badge --- */
.vm-browse-availability .availability img {
    max-width: 60%;
    height: auto;
    margin: 0;
    ;
}

.vm-browse-availability .availability {
    text-align: right;
    margin: 0;
}

/* --- Open/close animation --- */
.kategorije_proizvoda_menu {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.kategorije_proizvoda_menu.open {
    transform: scaleY(1);
    opacity: 1;
    max-height: 200em;
    overflow: visible;
}

/* --- "Kategorije proizvoda" header: red --- */
.kategorije_proizvoda_header {
    color: #ec2027 !important;
  font-size: 20px;
  
}

.kategorije_proizvoda_header::before {
    filter: invert(22%) sepia(82%) saturate(1200%) hue-rotate(340deg) brightness(90%) contrast(95%);
}

/* --- Category row layout: link fills row, button on right --- */
.kategorije_proizvoda_menu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.kategorije_proizvoda_menu li>a {
    flex: 1;
    text-transform: uppercase;
}

.kategorije_proizvoda_menu li>.collapse,
.kategorije_proizvoda_menu li>.collapsing {
    width: 100%;
}

/* --- Category row hover: light red --- */
.kategorije_proizvoda_menu .border-bottom a {
    color: #000 !important;
}

.kategorije_proizvoda_menu .border-bottom:hover {
    background-color: #ffe8e8 !important;
  color: #ec2027;
}

.kategorije_proizvoda_menu .border-bottom:hover>a {
    color: #ec2027  !important;
}

/* --- Active main category: red --- */
.kategorije_proizvoda_menu>ul>li.active>a,
.kategorije_proizvoda_menu li.active>a,
.categories_sidebar .vm-menu li.active>a {
    color: #ec2027  !important;
    font-weight: 600;
}
.kategorije_proizvoda_menu .border-bottom:hover {
	background-color: #f0f0f0;
	transition: .3s;
}

/* --- Subcategory accordion toggle button --- */
.vm-menu-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #c0392b;
    line-height: 1;
}

.vm-menu-btn:hover {
    color: #922b21;
}

/* Rotate arrow when expanded */
.vm-menu-btn:not(.collapsed) svg {
    transform: rotate(180deg);
}

/* --- Subcategory list (accordion) --- */
.kategorije_proizvoda_menu .vm-submenu {
    border-top: 1px solid #f0d0d0;
}

.kategorije_proizvoda_menu .vm-submenu li {
    padding: 5px 2rem;
    display: block;
}

/* --- Active subcategory: red --- */
.kategorije_proizvoda_menu .vm-submenu li.active a {
    color: #c0392b !important;
    font-weight: 600;
}

/* --- Subcategory hover --- */
.kategorije_proizvoda_menu .vm-submenu .border-bottom:hover {
    background-color: #ffe8e8 !important;
}

.kategorije_proizvoda_menu .vm-submenu .border-bottom:hover a {
    color: #c0392b !important;
}

.product-container {
    padding: 15px !important;
    transition: box-shadow 0.2s ease;
}

.product-container:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* --- Cart count badge --- */
.cart-icon-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.cart-count-badge {
    display: none;
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ec2027;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .cart-count-badge {
        display: flex;
    }

    .vmCartModule .total_products {
        display: none;
    }

    .kartice p {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .kartice img {
        float: none !important;
    }
}

.vm-product-descr-container-1 h2 {
    font-size: 18px !important;
    line-height: 23px !important;
    text-align: left !important;
    font-weight: 500;
}

.vm-product-descr-container-1 a {
    color: #000 !important;
}

.vm-product-descr-container-1 a:hover {
    text-decoration: underline;
}

.vm-product-descr-container-1 {
    min-height: 70px !important;
}

.vm-product-media-container {
    min-height: 240px;
}

/* --- Chosen dropdowns --- */
.chosen-container {
    font-size: 0.9rem;
}

.chosen-container-single .chosen-single {
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    background-image: none;
    border-color: #ccc;
    padding: 8px 12px;
    height: auto;
    line-height: 1.4;
}

.chosen-container-single .chosen-single div b {
    background-position: 0 6px;
}

.chosen-container-active.chosen-with-drop .chosen-single {
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    background-image: none;
}

.chosen-container .chosen-drop {
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.chosen-container .chosen-results {
    padding: 4px 0;
}

.chosen-container .chosen-results li {
    padding: 8px 14px;
    line-height: 1.4;
}

.chosen-container .chosen-results li+li {
    border-top: 1px solid #f0f0f0;
}

.chosen-container .chosen-results li.highlighted {
    background: #f5f5f5;
    background-image: none;
    color: #333;
}

/* --- Native select fallback (when Chosen doesn't initialize) --- */
select.vm-chzn-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    width: 100%;
    cursor: pointer;
    color: #333;
}
select.vm-chzn-select:focus {
    outline: none;
    border-color: #aaa;
}

/* --- Product details button --- */
.vm-details-button {
    margin-top: 8px;
}

.vm-details-button .product-details,
.buttonBar-right button {
    display: block;
    width: 100%;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    max-width: unset;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vm-details-button .product-details:hover,
.buttonBar-right button:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
    color: #333 !important;
    text-decoration: none;
}

.buttonBar-right button {
    margin-bottom: 10px;
}

/* --- Add to cart bar --- */
.addtocart-bar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.addtocart-bar .quantity-box {
    display: flex;
    align-items: center;
}

.addtocart-bar .quantity-input {
    width: 44px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
}

.addtocart-bar .quantity-controls {
    display: flex;
    flex-direction: column;
    margin-left: 4px;
}

.addtocart-bar input.quantity-plus,
.addtocart-bar input.quantity-minus {
    width: 22px;
    height: 17px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-image: none !important;
    color: #555 !important;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-size: 20px;
}

.addtocart-bar input.quantity-plus {
    border-bottom: none;
}

.addtocart-bar input.quantity-plus:hover,
.addtocart-bar input.quantity-minus:hover {
    background: #f5f5f5 !important;
    border-color: #aaa;
}

.addtocart-bar span.addtocart-button {
    flex: 1;
    display: flex;
}

.addtocart-bar .quantity-controls+span.addtocart-button {
    margin-left: 4px;
}

.addtocart-bar .quantity-box:has(input[type="hidden"]) {
    display: none;
}

.addtocart-bar input.addtocart-button {
    flex: 1;
    height: 34px;
    padding: 9px 10px !important;
    border: 1px solid rgb(32, 160, 216) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgb(128, 208, 244) !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.addtocart-bar input.addtocart-button:hover {
    background: transparent !important;
    border-color: rgb(32, 160, 216) !important;
}

/* --- Notify button --- */
.addtocart-bar a.notify {
    display: block;
    width: 100%;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.addtocart-bar a.notify:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
    color: #333 !important;
    text-decoration: none;
}

/* --- Add to cart disabled --- */
.addtocart-area span.addtocart-button-disabled {
    display: none !important;
}

.vm-browse-availability,
.addtocart-area,
.vm-details-button {
    margin-top: 8px;
}

.vm-browse-availability {
    margin-bottom: 10px;
}

.addtocart-area form {
    margin: 0;
}

.vm3pr-1 .vm-customfields-wrap {
    min-height: 10px !important;
}

.vm3pr-1 .addtocart-area {
    min-height: 50px !important;
}

.vm-product-details-container .vm-product-meta-row .product-field {
    margin-bottom: 8px !important;
}

.horizontal-separator {
    background: none !important;
}

.PricesalesPrice {
    font-size: 17px !important;
    color: black !important;
}

/* --- H4 section/module titles --- */
.category-view h4,
.discontinued-view h4,
.recent-view h4,
.top-2 .module-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-size: 1.6rem !important;
    font-weight: 400;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
    padding-left: 12px !important;
}

.category-view h4::before,
.category-view h4::after,
.discontinued-view h4::before,
.discontinued-view h4::after,
.recent-view h4::before,
.recent-view h4::after,
.top-2 .module-title::before,
.top-2 .module-title::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #ccc;
    flex-shrink: 0;
}

.products-view h4 {
    display: none;
}

.mod-footer .footer2 {
    display: none;
}

/* --- CTA front page modules --- */
.cta-fp .btn {
    background: linear-gradient(135deg, rgb(32, 160, 216), rgb(128, 208, 244));
    border: 1px solid transparent;
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-fp .btn:hover {
    background: transparent;
    border: 1px solid rgb(32, 160, 216);
    color: rgb(32, 160, 216);
}

/* --- Social/brand icons --- */
.fab, .fa-brands, .icon-joomla {
    font-size: 22px;
    margin-right: 10px;
}

/* --- Sort order dropdown --- */
.orderlistcontainer {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
    margin: 0 !important;
}

.orderlistcontainer .title {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 2px;
}

.orderlistcontainer div.activeOrder {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    padding: 8px 28px 8px 12px !important;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    min-width: 160px;
}

.orderlistcontainer div.activeOrder::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
}

.orderlistcontainer a {
    color: #333 !important;
    text-decoration: none !important;
}

.orderlistcontainer div.orderlist {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
    border-radius: 0 !important;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.orderlistcontainer div.orderlist div {
    border-top: 1px solid #f0f0f0;
    padding: 0 !important;
}

.orderlistcontainer div.orderlist div:first-child {
    border-top: none;
}

.orderlistcontainer div.orderlist div a {
    display: block;
    padding: 8px 14px !important;
    line-height: 1.4;
    color: #333 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.orderlistcontainer div.orderlist div:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
}

/* --- Results per page select --- */
#limit {
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 8px 10px;
    font-size: 0.9rem;
    height: auto;
    line-height: 1.4;
}

.orderby-displaynumber {
    border: none !important;
}

/* --- Category search box --- */
.vm-store-category-search .input-group {
    flex-wrap: nowrap;
}

.vm-store-category-search input[name="keyword"] {
    border: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none !important;
    background: #fff;
    padding: 8px 12px;
    font-size: 0.9rem;
    height: auto;
    line-height: 1.4;
}

.vm-store-category-search input[name="keyword"]:focus {
    border-color: #aaa;
    box-shadow: none !important;
    outline: none;
}

.vm-store-category-search .input-group-append input[type="submit"] {
    border: 1px solid #ccc !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.9rem;
    padding: 8px 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vm-store-category-search .input-group-append input[type="submit"]:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
}

/* --- Pagination --- */
.vm-pagination {
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 16px;
    margin-bottom: 30px;
}

.vm-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left !important;
}

.vm-pagination ul li {
    display: block !important;
}

.vm-pagination .pagenav {
    display: inline-block;
    padding: 7px 12px !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #aaa !important;
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
}

.vm-pagination a.pagenav {
    color: #333 !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.vm-pagination a.pagenav:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
    text-decoration: none;
}

.vm-page-counter {
    font-size: 0.85rem;
    color: #999;
    float: none !important;
    white-space: nowrap;
}

/* --- Subcategory card titles --- */
.category.floatleft .spacer {
    padding-top: 12px;
}

.category.floatleft h2 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin-top: 10px !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
    text-align: center;
}

.category.floatleft h2 a {
    color: #000 !important;
    text-decoration: none;
}

.category.floatleft h2 a:hover {
    color: #c0392b !important;
    text-decoration: none;
}

/* --- VirtueMart search form (subcategory pages) --- */
.virtuemart_search .vm-search-custom-search-input {
    display: flex;
    flex-wrap: nowrap;
}

.virtuemart_search input.inputbox {
    flex: 1;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.virtuemart_search input.inputbox:focus {
    border-color: #aaa !important;
    box-shadow: none !important;
    outline: none;
}

.virtuemart_search input.button {
    border: 1px solid #ccc !important;
    border-left: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    padding: 8px 14px !important;
    line-height: 1.4 !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.virtuemart_search input.button:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
}

.virtuemart_search .vm-search-descr {
    display: none;
}

/* ================================================================
   PRODUCT DETAIL VIEW
   ================================================================ */

/* Task 1 — no hover shadow on product detail page */
.productdetails-view.product-container,
.productdetails-view.product-container:hover,
.productdetails.product-container,
.productdetails.product-container:hover {
    box-shadow: none !important;
}

/* Task 3 — back-to-category flat button (overrides VirtueMart a.product-details styles) */
.back-to-category a {
    display: inline-block !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.875rem !important;
    padding: 6px 14px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.back-to-category a:hover {
    background: #f5f5f5 !important;
    background-image: none !important;
    border-color: #aaa !important;
    color: #000 !important;
}

/* Task 4 — SVG icon links (print/email) */
.icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    margin-right: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.icons a:hover {
    color: #000;
}

/* Task 5 — ask-a-question flat button (overrides VirtueMart a.ask-a-question styles) */
.ask-a-question a {
    display: inline-block !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    padding: 6px 14px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    margin-top: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ask-a-question a:hover {
    background: #f5f5f5 !important;
    background-image: none !important;
    border-color: #aaa !important;
    color: #000 !important;
}

/* Task 6 — additional image thumbnails min 150px */
.additional-images .floatleft {
    min-width: 150px;
}

.additional-images .floatleft img {
    min-width: 150px;
    width: 150px;
    height: auto;
}

@media (max-width: 767px) {
    .product-container.productdetails-view.productdetails {
        padding: 0 !important;
    }

    .product-container.productdetails-view.productdetails .row > * {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .additional-images .floatleft {
        min-width: 100px;
    }

    .additional-images .floatleft img {
        min-width: 100px;
        width: 100px;
        height: auto;
    }
}

/* Task 8 — sales price row: label + value inline */
.PricesalesPrice.vm-display {
  display: flex !important;
  flex-direction: row;
    align-items: baseline !important;
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.PricesalesPrice {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    display: block;
    margin-top: 12px;
    margin-bottom: 12px;
}
.productdetails-view .PricesalesPrice.vm-display {
  flex-direction: column;
  margin-bottom: 0;
}
.productdetails-view .PricesalesPrice.vm-display .PricesalesPrice{
   margin-top: 0;
}
/* Task 9 — product fields + box column */
.vm-product-meta-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.vm-product-meta-row .product-fields {
    margin: 0 !important;
    padding: 0 !important;
}

.vm-product-meta-row .product-fields .clear {
    display: none;
}

.vm-product-meta-row .product-field {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    column-gap: 8px !important;
    row-gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vm-product-meta-row .product-field-desc {
    flex-basis: 100%;
    font-size: 0.85rem;
    color: #555;
}

.vm-product-meta-row .product-box {
    color: #333 !important;
    font-size: 0.9rem;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4;
}

/* Task 10 — hide Product SKU label */
.product-field-display .product-field-label {
    display: none;
}

/* product-fields-title — medium weight */
.product-fields-title,
.product-fields-title strong {
    font-weight: 500 !important;
}



/* product-field-type-P — both inner elements on one line, no margins */
.product-field.product-field-type-P {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-field.product-field-type-P>* {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* product-related-products — title styled like category h4 with side lines */
.product-related-products>.product-fields-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 14px;
    min-width: unset !important;
}

.product-related-products>.product-fields-title-wrapper::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #ccc;
    flex-shrink: 0;
}

.product-related-products .product-fields-title,
.product-related-products .product-fields-title strong {
    color: #000 !important;
    font-size: 1.6rem !important;
    font-weight: 400 !important;
}

.product-related-products .hasTooltip {
    display: none !important;
}

/* product-related-products — 4 columns (type R: per-field wrapper; type RC: siblings) */
.product-related-products .product-field {
    width: 25%;
    float: left;
    box-sizing: border-box;
}

.product-related-products .product-field .product-container {
    width: 100% !important;
    float: none;
}

.product-related-products .product-container {
    width: 25%;
    float: left;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #e0e0e0;
}

.product-related-products .PricesalesPrice.vm-display {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
}

.product-related-products .PricesalesPrice.vm-display .vm-price-desc {
    font-size: 13px;
    color: #666;
}

.product-related-products span.PricesalesPrice {
    font-size: 17px !important;
    font-weight: 700 !important;
}

.product-related-products::after,
.product-related-products .product-field-display::after {
    content: '';
    display: table;
    clear: both;
}

.product-fields-title-wrapper {
    min-width: unset !important;
    padding: 8px 0 0 0 !important;
}

/* product-neighbours — outline arrow links */
.product-neighbours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 16px !important;
    gap: 8px;

}

.product-neighbours a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #555;
    font-size: 0.875rem;
    text-decoration: none;
    border: none !important;
    padding: 5px 0;
    background: none !important;
    background-image: none !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transition: color 0.2s ease;
}

.product-neighbours a:hover {
    color: #000;
}

.product-neighbours a svg {
    flex-shrink: 0;
}

/* cart module — icon colour inherits from button */
.vmCartModule .btn svg {
    display: inline-block;
    vertical-align: middle;
}

/* cart dropdown — wider, offset below header line */
.vmCartModule .dropdown-menu {
    min-width: 320px;
    margin-top: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.vmCartModule .product_name a {
    color: #000 !important;
}

.vmCartModule .product_row:hover .product_name {
    text-decoration: underline;
}

.vmCartModule .quantity {
    font-weight: 700;
}

/* --- Product description tabs --- */
.product-description .nav-tabs {
    border-bottom: 1px solid #ccc;
    gap: 0;
}

.product-description .nav-tabs .nav-link {
    border-radius: 0 !important;
    border: 1px solid transparent;
    border-bottom: none;
    color: #555;
    font-size: 0.9rem;
    padding: 8px 20px;
    background: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.product-description .nav-tabs .nav-link:hover {
    color: #000;
    background: #f5f5f5;
    border-color: #e0e0e0;
    border-bottom-color: transparent;
}

.product-description .nav-tabs .nav-link.active {
    color: #000;
    background: #fff;
    border-color: #ccc;
    border-bottom-color: #fff;
    font-weight: 500;
}

.product-description .tab-content {
    border: 1px solid #ccc;
    border-top: none;
    padding: 20px;
}

[data-rlta-element=container][data-rlta-state=ready][data-rlta-theme=neutral][data-rlta-type=tabs]>[data-rlta-element=button-list]>[data-rlta-element=button] {
    border-radius: 0;
}

[data-rlta-element="panel"] {
    padding: 20px;
}

.product-field-type-P .product-fields-title {
    font-size: 100% !important;
}

#fancybox-outer {
    padding: 30px !important;
}

/* ================================================================
   CART PAGE
   ================================================================ */

/* 1 — login form inputs */
#com-form-login input[type="text"],
#com-form-login input[type="password"],
#com-form-login .form-control {
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    font-size: 0.9rem;
    padding: 8px 12px !important;
    appearance: none;
    -webkit-appearance: none;
}

#com-form-login input[type="text"]:focus,
#com-form-login input[type="password"]:focus,
#com-form-login .form-control:focus {
    border: 1px solid #aaa !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

#com-form-login .btn-primary,
#com-form-login button[type="submit"],
#com-form-login input[type="submit"] {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #222 !important;
    background-image: none !important;
    border-color: #222 !important;
    color: #fff !important;
    transition: background 0.2s ease;
}

#com-form-login .btn-primary:hover,
#com-form-login button[type="submit"]:hover,
#com-form-login input[type="submit"]:hover {
    background: #000 !important;
    border-color: #000 !important;
}

#com-form-login {
    margin-bottom: 24px;
}

#com-form-login a {
    font-size: 12px;
}

/* 2 — billto/shipto edit buttons */
.billto-shipto a.details {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 0;
    background: #fff;
    color: #333 !important;
    font-size: 0.875rem;
    padding: 6px 14px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.billto-shipto a.details:hover {
    background: #f5f5f5;
    border-color: #aaa;
    color: #000;
    text-decoration: none;
}

/* checkout submit button */
#checkoutFormSubmit,
input#checkoutFormSubmit,
button#checkoutFormSubmit,
button#checkoutFormSubmit2 {
    border: 1px solid #222 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #222 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 1rem !important;
    padding: 10px 28px !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#checkoutFormSubmit:hover,
input#checkoutFormSubmit:hover,
button#checkoutFormSubmit:hover,
button#checkoutFormSubmit2:hover {
    background: #000 !important;
    border-color: #000 !important;
}

/* ================================================================
   ADDRESS EDIT FORM (#userForm)
   ================================================================ */

/* form width */
@media (min-width: 768px) {
    #userForm {
        max-width: 50%;
    }
}

/* remove default fieldset styling */
#userForm fieldset {
    border: none;
    padding: 0;
    margin: 0 0 16px 0;
}

#userForm fieldset legend.userfields_info {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

/* table layout */
#userForm table.adminForm {
    width: 100%;
    border-collapse: collapse;
}

#userForm table.adminForm tr {
    border: none;
}

#userForm table.adminForm td {
    padding: 5px 8px 5px 0;
    vertical-align: middle;
    border: none;
    background: none;
}

#userForm table.adminForm td.key {
    width: 160px;
    white-space: nowrap;
}

#userForm table.adminForm td.key label {
    font-size: 0.875rem;
    color: #444;
}

/* inputs */
#userForm input[type="text"],
#userForm input[type="email"],
#userForm input[type="tel"],
#userForm input[type="password"],
#userForm select,
#userForm textarea {
    border-radius: 0 !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: #fff !important;
    padding: 7px 10px !important;
    font-size: 0.9rem;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease;
}

#userForm input[type="text"]:focus,
#userForm input[type="email"]:focus,
#userForm input[type="tel"]:focus,
#userForm input[type="password"]:focus,
#userForm select:focus,
#userForm textarea:focus {
    border-color: #aaa !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
}

/* required asterisk */
#userForm .asterisk {
    color: #c0392b;
}

/* control buttons */
#userForm .control-buttons {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#userForm .control-buttons button[type="submit"],
#userForm .control-buttons button.vm-button-correct {
    border: 1px solid #222 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #222 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    padding: 8px 22px !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#userForm .control-buttons button[type="submit"]:hover,
#userForm .control-buttons button.vm-button-correct:hover {
    background: #000 !important;
    border-color: #000 !important;
}

#userForm .control-buttons button[type="reset"],
#userForm .control-buttons button.default {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    padding: 8px 22px !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#userForm .control-buttons button[type="reset"]:hover,
#userForm .control-buttons button.default:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
}

/* TOS fieldset */
.vm-fieldset-tos {
    margin-top: 24px !important;
}

.vm-fieldset-tos .cart_tos,
.vm-fieldset-tos span {
    font-weight: 600;
}

/* customer note textarea */
#customer_note_field,
textarea.customer_note_field,
.customer_note_field textarea {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    background: #fff !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.5;
    width: 100%;
    resize: vertical;
}

#customer_note_field:focus,
textarea.customer_note_field:focus,
.customer_note_field textarea:focus {
    border-color: #aaa !important;
    outline: none !important;
    box-shadow: none !important;
}

/* coupon input + button */
input.coupon {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 6px 12px !important;
    font-size: 0.9rem !important;
    line-height: 1.4;
}

input.coupon:focus {
    border-color: #aaa !important;
    outline: none !important;
    box-shadow: none !important;
}

span.details-button input.details-button,
input.details-button {
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
    font-size: 0.9rem !important;
    padding: 6px 14px !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

span.details-button input.details-button:hover,
input.details-button:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
}

/* cart product image — gap between image and name */
.vm-cart-item-name .cart-images {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.vm-cart-item-name .cart-images img {
    max-width: 150px;
    height: auto;
}

.vm-cart-item-name a {
    vertical-align: middle;
    color: #000 !important;
    text-decoration: none;
}

.vm-cart-item-name a:hover {
    text-decoration: underline;
}

/* 4 — cart table header: no background, compact padding */
.cart-summary tr th {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    padding: 5px 10px !important;
    vertical-align: middle;
}

/* 5 — cart table cell padding */
.cart-summary tr td {
    padding: 10px !important;
    vertical-align: middle;
}

/* 6 — quantity update / delete icon buttons */
.vm-cart-item-quantity {
    white-space: nowrap;
    vertical-align: middle !important;
}

.vm-cart-item-quantity .quantity-input {
    vertical-align: middle;
}

.vm-cart-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px;
    cursor: pointer;
    color: #555;
    line-height: 1;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.vm-cart-btn.vm2-add_quantity_cart {
    width: 34px;
    height: 34px;
}

.vm-cart-btn:hover {
    color: #000;
}

.vm2-add_quantity_cart svg {
    width: 22px;
    height: 22px;
}

.vm2-remove_from_cart:hover {
    color: #c0392b;
}

/* --- Add to cart popup buttons (padded.php via FancyBox) --- */
a.continue_link {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    background-image: none !important;
    border-color: #ccc !important;
    color: #333 !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

a.continue_link:hover {
    background: #f5f5f5 !important;
    border-color: #aaa !important;
    color: #000 !important;
    text-decoration: none;
}

a.showcart {
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #222 !important;
    background-image: none !important;
    border-color: #222 !important;
    color: #fff !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

a.showcart:hover {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
    text-decoration: none;
}

.vm-shipment-plugin-single,
.vm-payment-plugin-single {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.vm-shipment-plugin-single:hover,
.vm-shipment-plugin-single label:hover,
.vm-payment-plugin-single label:hover {
    cursor: pointer;
}

.vm-payment-plugin-single label {
    line-height: 15px;
}

.vmshipment {
    display: flex;
    flex-direction: column;
}

.vmshipment_description,
.vmpayment_description {
    font-size: 12px !important;
}

/* --- Footer: social_bottom column last in row --- */
.moduletable.social_bottom {
    order: 4;
}

@media only screen and (max-width : 767px) {
  .kategorije_proizvoda_menu {
    width: 100%;
    margin-left: -12px;
    margin-top: 20px;
  }
  .product-related-products .product-field {
    width: calc(100% - 36px);
    float: none;
    margin-bottom: 20px;
  }
.kategorije_proizvoda {
  display: none;
}
}
@media only screen and (max-width : 991px) {
  .main-search {
    display: block !important;
  position: absolute;
    top: 47px;
    padding: 10px 12px;
    background-color: white;
  }
    .cart-module button:nth-child(2) {
        display: none;
  }
  .page {
    padding-top: 103px;
  }

}
@media only screen and (min-width : 991px) and (max-width : 1199px) {
  .page {
      padding-top: 70px;
  }

}
@media only screen and (min-width : 1200px) {
  .main-menu .hide-lg {
    display: none;
  }
}
@media only screen and (max-width : 1200px) {
  .mod-menu .hide-lg {
    margin-left: 20px;
  }
}
.top--banner.desktop {
  margin-top: -45px;
}

.productdetails-view.productdetails .spacer-buy-area {
    padding-left: 0;
}

.productdetails-view.productdetails .product-short-description {
    margin-top: 20px;
}

/* --- Ask a question link --- 
div.ask-a-question {
    margin-top: 30px;
}*/

/* --- Sidebar categories menu --- */
.categories_sidebar .vm-menu li > a {
    display: flex;
    align-items: center;
    width: 100%;
}
.categories_sidebar .vm-menu li > a .vm-menu-btn {
    margin-left: auto;
    flex-shrink: 0;
}

.productdetails-view span.vm-price-desc {
  font-weight: 400;
}
.productdetails-view .custom_field_C_container {
  margin-bottom: 10px;
}

.vm-price-notes {
    display: none;
}

.productdetails-view .vm-price-notes {
    display: block;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
}

.price-omnibus {
    display: none;
}

.productdetails-view .price-omnibus,
.discontinued-view .price-omnibus {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
    text-align: left;
}

span.price-crossed,
span.price-crossed .PricebasePriceWithTax,
.PricediscountAmountTt {
    text-align: left;
    margin-bottom: 10px;
}

.productdetails-view.productdetails .addtocart-bar {
  margin: 10px 0 20px;
}

/* --- Product image badges overlay --- */
.vm-product-media-container {
    position: relative;
}

.product-badges-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-badge {
    display: inline-block;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
  background-color: white;
}

.productdetails-view .product-field-type-S {
    display: none !important;
}

/* ── Cart redesign ───────────────────────────────────────── */
.cart-top-bar,
.cart-bottom-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #ddd;
}
.cart-bottom-bar {
    border-bottom: none;
    border-top: 1px solid #ddd;
    margin-top: 16px;
    margin-bottom: 0;
}
.cart-bar-total {
    font-size: 1.2rem;
    font-weight: 600;
}
.cart-bar-total .PricesalesPrice { display: inline; }
.cart-view .PricesalesPrice.vm-display.vm-price-value { margin: 0; }
.cart-top-bar .checkout-button-top,
.cart-bottom-bar .checkout-button-top { padding: 0; border-top: none; }

.cart-items-list {
    display: flex;
    flex-direction: column;
}
.cart-item {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}
.cart-item-image { width: 120px; }
.cart-item-image img { max-width: 120px; }
.cart-item-title { font-weight: 600; margin-bottom: 8px; }
.cart-item-title a { color: inherit; text-decoration: none; }
.cart-item-title a:hover { text-decoration: underline; }
.cart-item-actions { display: flex; align-items: center; gap: 6px; }
.cart-item-actions .quantity-input { width: 40px; text-align: center; }
.qty-btn { min-width: 28px; font-size: 1rem; line-height: 1; }
.cart-item-prices { text-align: right; min-width: 100px; }
.cart-item-prices .line-through { display: block; color: #888; }
.cart-item-discount,
.cart-item-tax { display: flex; flex-direction: row; align-items: center; gap: 4px; font-size: 12px; color: #888; }
.cart-item-discount,
.cart-item-tax { justify-content: flex-end; }
.cart-item-discount:has(.vm-nodisplay) { display: none; }

.cart-summary-section { margin-top: 20px; }
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}
.cart-summary-row.sectiontableentry1 {
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}
.cart-summary-row.cart-row-shipment,
.cart-summary-row.cart-row-payment { justify-content: space-between; }
.cart-summary-row.sectiontableentry2 {
    font-size: 1.1rem;
    font-weight: 600;
    border-top: none;
    border-bottom: none;
    padding-top: 10px;
    margin-top: 4px;
    justify-content: flex-end;
}
.cart-summary-value { text-align: right; }

@media (max-width: 767px) {
    .cart-top-bar,
    .cart-bottom-bar { flex-direction: column; align-items: stretch; }
    .cart-top-bar .checkout-button-top,
    .cart-bottom-bar .checkout-button-top { text-align: center; }
    .cart-item { grid-template-columns: 130px 1fr; }
    .cart-item-prices { grid-column: 1 / -1; text-align: left; }
}

.vm-payment-shipment-select.vm-shipment-select {
  padding-right: 20px;
}

.vm-product-media-container {
  padding-right: 20px;
}

.sidebar-left {
  position: sticky;
  top: 60px;
  align-self: flex-start;
}

.product-related-products,
.product-related-categories {
  border-top: none !important;
}

.product-description .title {
  display: none;
}

.vm-product-container {
  position: relative;
}

#sekcija-opisa {
  scroll-margin-top: 100px;
}

.btn-opis-proizvoda {
  position: absolute;
  top: 30px;
  right: 0;
  padding: 7px 16px;
  border: 1px solid rgb(32, 160, 216);
  background: rgb(128, 208, 244);
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-opis-proizvoda:hover {
  background: transparent;
  border-color: rgb(32, 160, 216);
  color: #333;
  text-decoration: none;
}

.blog .badge.bg-warning {
  display: none;
}

/* ── VM Products Module ─────────────────────────────────── */
.vm-products-module .vm-product-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 992px) {
  .vm-products-module .vm-product-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 25px;
  }
}

.vm-products-module .product-container {
  border: 1px solid #e0e0e0;
  padding: 15px !important;
  transition: box-shadow 0.2s ease;
  width: auto !important;
  max-width: none !important;
  flex: none !important;
}

.vm-products-module .product-container:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.vm-products-module .vm-product-title {
  font-size: 18px !important;
  line-height: 23px !important;
  font-weight: 500;
  margin-bottom: 8px;
}

.vm-products-module .vm-product-title a {
  color: #000 !important;
  text-decoration: none;
}

.vm-products-module .vm-product-title a:hover {
  text-decoration: underline;
}

.vm-products-module .vm-simple-price-display {
  flex-direction: column;
  gap: 2px;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left;
}

.vm-products-module .PricesalesPrice.vm-display {
  margin: 0 !important;
}

.vm-products-module .PricesalesPrice.vm-display .PricesalesPrice {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.vm-products-module .PricesalesPrice.vm-display::before {
  content: "Cijena: ";
  font-size: 0.8rem;
  color: #888;
}

.vm-products-module .PricebasePriceWithTax.vm-display .PricebasePriceWithTax {
  text-decoration: line-through;
  color: #888;
  font-size: 0.85rem;
}

.vm-products-module .PricebasePriceWithTax.vm-display::before {
  content: "Redovna cijena: ";
  font-size: 0.8rem;
  color: #888;
}