/* Lango/Liupka Mobile 3-Dot Action Menu & Filter Styling */

/* 1. Mobile Product Card 3-Dot Actions */
.btn-mobile-actions {
    position: relative;
    z-index: 105;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin-top: 5px;
    padding: 0;
    font-size: 16px;
    color: #333333;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease-in-out;
    display: none;
}

@media (max-width: 991px) {
    .btn-mobile-actions {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .btn-mobile-actions,
    .hidden-md.hidden-lg.btn-mobile-actions {
        display: none !important;
    }
}

.btn-mobile-actions i {
    line-height: 1;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.btn-mobile-actions:focus,
.btn-mobile-actions:active {
    background-color: #ffffff;
    border-color: #dcdcdc;
    color: #333333;
    outline: none;
}

/* Color red ONLY when card is active (.mobile-hover-active) */
.mobile-hover-active .btn-mobile-actions,
.mobile-hover-active .btn-mobile-actions:hover,
.mobile-hover-active .btn-mobile-actions:focus,
.mobile-hover-active .btn-mobile-actions:active {
    background-color: #ff0033;
    border-color: #e3002b;
    color: #ffffff;
    outline: none;
}

/* Mobile Responsive Hover & Action Drawer Handling */
@media (max-width: 991px) {
    /* Override native sticky touch :hover effects on mobile */
    .product-item-opt-2 .product-item-info:hover .btn-cart,
    .product-item-opt-2 .product-item-info:hover .div-animation,
    .product-item-opt-2:hover .product-item-actions .btn,
    .product-item:hover .product-item-actions .btn {
        opacity: 0;
        visibility: hidden;
        transform: translate(0, 120px);
    }

    .product-item-opt-2 .product-item-info:hover .btn-cart {
        transform: translate(0, 42px);
    }

    .product-item-opt-2 .product-item-photo:hover img,
    .product-item-opt-2 .product-item-info:hover .product-item-photo img {
        transform: none;
    }

    /* ONLY reveal actions when .mobile-hover-active is set via 3-dot button */
    .product-item-opt-2.mobile-hover-active .product-item-info .btn-cart,
    .product-item-opt-2.mobile-hover-active .product-item-info .div-animation,
    .product-item-opt-2.mobile-hover-active .product-item-actions,
    .product-item.mobile-hover-active .product-item-actions,
    .product-item-opt-2.mobile-hover-active .product-item-actions .btn,
    .product-item.mobile-hover-active .product-item-actions .btn {
        opacity: 1;
        visibility: visible;
        transform: translate(0, 0) scale(1);
        display: block;
    }

    .product-item-opt-2.mobile-hover-active .product-item-photo img,
    .product-item.mobile-hover-active .product-item-photo img {
        transform: scale(1.1);
        transition: transform 0.35s ease;
    }

    /* Compare button positioning & touch isolation */
    .btn-compare-item {
        z-index: 90;
    }

    .product-item-actions .btn-compare-item,
    .product-item-photo > .btn-compare-item {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .product-item-opt-2.mobile-hover-active .btn-compare-item,
    .product-item.mobile-hover-active .btn-compare-item,
    .product-item-opt-2.mobile-hover-active .product-item-photo > .btn-compare-item,
    .product-item.mobile-hover-active .product-item-photo > .btn-compare-item {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}


/* 2. Single Sticky "Filtriraj" Button with White Background & Dark Gray Text */
.filter-apply-wrapper-desktop {
    position: sticky;
    bottom: 15px;
    z-index: 1000;
    margin-top: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px 0;
    backdrop-filter: blur(4px);
    border-radius: 4px;
    transition: bottom 0.25s ease-in-out;
}

/* Position sticky button above compare bar when compare bar is visible */
body.has-compare-bar .filter-apply-wrapper-desktop {
    bottom: 75px;
}

.js-apply-filters-btn {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #2b2b2b;
    font-weight: 600;
    text-transform: uppercase;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.js-apply-filters-btn:hover,
.js-apply-filters-btn:focus,
.js-apply-filters-btn:active {
    background-color: #f7f7f7;
    border-color: #999999;
    color: #2b2b2b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.js-apply-filters-btn.filter-changed {
    background-color: #f03;
    border-color: #f03;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 51, 0.35);
}

.js-apply-filters-btn.filter-changed:hover,
.js-apply-filters-btn.filter-changed:focus,
.js-apply-filters-btn.filter-changed:active {
    background-color: #d9022c;
    border-color: #d9022c;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 0, 51, 0.45);
}

/* 3. Expandable Filter Items Styling */
.filter-expand-wrapper {
    margin-top: 6px;
    margin-bottom: 4px;
}

.btn-toggle-filter-items {
    background: transparent;
    border: none;
    color: #f03;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease-in-out;
    outline: none;
}

.btn-toggle-filter-items:hover,
.btn-toggle-filter-items:focus {
    color: #d9022c;
    text-decoration: underline;
    outline: none;
}

/* 4. Remove Red Font Coloring on Checked Filter Checkbox Labels */
.block-filter .filter-options-content .item label input[type=checkbox]:checked + span,
.catalog-view_op1 .block-filter .filter-options-content .item label input[type=checkbox]:checked + span {
    color: #555555 !important;
}

.header-opt-8 .header-content .user-icon {
    background-color: #f03;
}

/* ==========================================================================
   Seznam s kljukicami (npr. sklop "Zakaj kupiti pri nas" na produktni strani)
   ========================================================================== */
ul.seznam-kljukice,
.desc-short ul.seznam-kljukice,
.item-desc ul.seznam-kljukice {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0;
  padding-inline-start: 0;
  margin-top: 0.5em;
  margin-bottom: 1em;
}

ul.seznam-kljukice > li,
.desc-short ul.seznam-kljukice > li,
.item-desc ul.seznam-kljukice > li {
  list-style: none !important;
  list-style-type: none !important;
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.6em;
  line-height: 1.5;
}

ul.seznam-kljukice > li::before,
.desc-short ul.seznam-kljukice > li::before,
.item-desc ul.seznam-kljukice > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #FF0033;
  font-weight: 700;
}


/* ==========================================================================
   5. Swipebox Fullscreen Gallery Zoom & Pan Controls (TICKET-4)
   ========================================================================== */
#swipebox-zoom-controls {
    position: absolute;
    top: 0;
    right: 62px;
    z-index: 10000;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    pointer-events: auto;
}

@media (max-width: 799px) {
    #swipebox-zoom-controls {
        right: 52px;
        gap: 4px;
        padding: 0 4px;
    }
}

.swipebox-zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    background: rgba(20, 20, 20, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

#swipebox-zoom-reset.swipebox-zoom-btn {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.swipebox-zoom-btn:hover:not(:disabled),
.swipebox-zoom-btn:focus:not(:disabled) {
    background: #ff0033;
    border-color: #ff0033;
    color: #ffffff;
    outline: none;
}

.swipebox-zoom-btn:disabled,
.swipebox-zoom-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

#swipebox-slider .slide {
    overflow: hidden;
}

#swipebox-slider .slide img {
    transform-origin: center center;
    transition: transform 0.12s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

#swipebox-slider .slide img.is-zoomed {
    cursor: grab;
}

#swipebox-slider .slide img.is-panning {
    cursor: grabbing;
    transition: none !important;
}
