/* ============================================
   CUSTOM CART STYLES
   ============================================ */

.hunter-custom-cart {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: auto;
    width: 100%;
    max-width: 600px;
    height: calc(100vh - 150px);
    background: #fff;
    z-index: 9999 !important;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    font-family: Gotham, Arial, sans-serif;
}

@media (max-width: 768px) {
    .hunter-custom-cart {
        height: 100% !important;
    }
}

body.hunter-cart-open .hunter-custom-cart {
    transform: translateX(0);
}

body.hunter-cart-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #02051159;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 4444;
    cursor: pointer;
}

body.hunter-cart-open .hunter-menu-cart-link svg:nth-of-type(2) {
    display: none !important;
}

.hunter-menu-cart-link:last-of-type {
  display: none;
}

body.hunter-cart-open .elementor-element-166d3f5::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #02051159;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 4444;
    pointer-events: none;
}

body.hunter-cart-open nav,
body.hunter-cart-open header,
body.hunter-cart-open .elementor-element-4552042b,
body.hunter-cart-open .elementor-element-06a75c7,
body.hunter-cart-open .elementor-element-57c9503,
body.hunter-cart-open .hunter-custom-cart {
    z-index: 9999 !important;
}


.hunter-cart-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.hunter-cart-back {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px; 
}

.hunter-cart-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    width: 100%;
}

@media (min-width: 768px) {
    .hunter-cart-body {
        width: 600px;
    }
}

.hunter-cart-items {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

@media (max-width: 768px) {
    .hunter-cart-items {
        max-height: 40vh !important;
    }
}

.hunter-cart-items::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.hunter-cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hunter-cart-item:last-child {
    border-bottom: none;
}

.hunter-cart-item-image {
    flex-shrink: 0;
    width: 138px;
    height: 176px;
}

.hunter-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hunter-cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
       min-height: 176px;
    height: 100%;
}

.hunter-cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.hunter-cart-item-title {
    flex: 1;
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #0B0B0B;
}

.hunter-cart-item-title a {
    color: #0B0B0B;
    text-decoration: none;
    font-weight: 500;
}

.hunter-cart-item-currency {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #0B0B0B;
}

.hunter-cart-item-remove {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 180%;
    letter-spacing: -0.02em;
    color: #CB0202 !important;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.hunter-cart-item-remove:hover {
    color: #CB0202;
}

.hunter-cart-item-size {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.02em;
    margin-top: 5px;
    color: #0B0B0B;
}

.hunter-cart-item-size span {
     text-transform: uppercase;
}

.hunter-cart-item-price {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hunter-price-original {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #0B0B0B;
}

.hunter-price-discount {
    font-family: Gotham, Arial, sans-serif;
    font-size: 12px;
    color: #0B0B0B !important;
    margin-top: 2px;
    font-weight: 500;
}

.hunter-price-divider {
    border: 1px solid rgba(11, 11, 11, 0.15);
    border-top: none;
    border-left: none;
    border-right: none;
    margin: 5px 0;
    width: 100%;
}

.hunter-price-final-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hunter-price-final {
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -0.02em;
    color: #0B0B0B;
    margin-top: 2px;
}

/* Mobile styles */
@media (max-width: 767px) {
    .hunter-cart-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hunter-cart-item-title {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .hunter-cart-item-remove-desktop {
        display: none;
    }
    
    .hunter-cart-item-remove-mobile {
        display: block;
    }
    
    .hunter-price-final-wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .hunter-cart-item-remove-mobile {
        display: none;
    }
    
    .hunter-cart-item-remove-desktop {
        display: block;
    }
}

.hunter-cart-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.hunter-cart-subtotal,
.hunter-cart-shipping {
    font-size: 16px !important;
    font-weight: 500 !important;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    height: 19px;
    font-family: Gotham, Arial, sans-serif;
}

.hunter-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-family: Gotham, Arial, sans-serif;
    font-weight: 500;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.hunter-cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;

}
.hunter-menu-cart-link svg:not(:first-of-type) {
    display: none !important;
}

.hunter-button {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: center;
    text-decoration: none;
    font-family: Gotham, Arial, sans-serif;
    font-size: 16px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.hunter-button-secondary {
    background-color: #fff;
    color: #0B0B0B;
    border: 1px solid #0B0B0B;
    border-radius: 100px;
}

.hunter-button-secondary:hover {
    background-color: #f5f5f5;
    color: #0B0B0B;
}

.hunter-button-primary {
    background-color: #0B0B0B;
    color: #fff !important;
    border: none;
    border-radius: 100px;
}

.hunter-button-primary:hover {
    background-color: #333;
    color: #fff !important;
}

.hunter-cart-empty {
    text-align: center;
    padding: 40px 20px;
    font-family: Gotham, Arial, sans-serif;
}

.hunter-cart-item.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* Menu cart link styling */
.hunter-menu-cart-link {
    color: #000;
    font-family: Gotham, Arial, sans-serif;
    position: relative;
}

.hunter-menu-cart-link:hover {
    color: #000;
    text-decoration: none;
}

.hunter-menu-cart-link .elementor-icon-list-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
}

.hunter-menu-cart-link .elementor-icon-list-icon svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
    max-width: 20px;
    max-height: 20px;
}

.hunter-menu-cart-count {
    background: #0B0B0B;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 20px;
    z-index: 10;
    margin-left: 0px !important;
}

@media (min-width: 768px) {
.elementor-widget .elementor-icon-list-items .hunter-menu-cart-count {
 margin-left: 5px !important;   
}

}


@media screen and (max-width: 768px) {
  .custom-opening-uloguj-se ul li:first-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .custom-opening-uloguj-se ul li:first-child svg {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}


@media (min-width: 768px) {
    .hunter-custom-cart {
        top: 84.4px;
        bottom: auto;
        height: calc(100vh - 89.4px);
    }
}
