/* Save as: css/minicart.css in your theme folder */
/* Cart Icon Container */
.site-cart {
    position: relative;
    display: inline-block;
}
/* Minicart Dropdown */
.custom-minicart-wrapper {
    position: absolute;
    top: 100%;
    right: -5rem;
    width: 51rem;
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    margin-top: 10px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid #F1F0EE;
    padding: 4rem;
    /* border-radius: 40px; */
    border-top-right-radius: 0;
}
.site-cart.cart-hover .custom-minicart-wrapper {
    opacity: 1;
    visibility: visible;
}
.custom-minicart-wrapper.updating {
    pointer-events: none;
    opacity: 0.7;
}
/* Products List */
.custom-minicart-products {
    max-height: 400px;
    overflow-y: auto;
}
/* Individual Product Item */
.minicart-item {
    display: flex;
    gap: 12px;
    padding: 4rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: opacity 0.3s ease;
}
.minicart-item:first-child {
    padding-top: 0;
}
.minicart-item:last-child {
    border-bottom: none;
}
.minicart-item.removing {
    opacity: 0.3;
    pointer-events: none;
}
/* Remove Button */
.minicart-item-remove {
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    order: 1;
    font-weight: 200;
    opacity: 0.6;
    color: #00131D;
    font-size: 1.2rem;
}
.minicart-item-remove:hover,
.minicart-item-remove:focus,
.minicart-item-remove:focus-visible {
    opacity: 1;
    background: transparent;
    color: #00131D;
}
/* Product Image */
.minicart-item-image {
    flex-shrink: 0;
    width: 13rem;
}
.minicart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.minicart-item-image a {
    display: block;
}
/* Product Info */
.minicart-item-info {
    flex: 1;
    min-width: 0;
    order: 3;
}
.minicart-item-name {}
.minicart-item-name a {
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.minicart-item-name a:hover {}
.minicart-item-price {
    margin: 1rem 0;
    font-size: 1.2rem;
}
.minicart-item-price .amount {
    font-weight: 500;
}
/* Quantity Controls */
.minicart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0 5px;
}
.minicart-item-quantity:hover {
  color: var(--tumesinine);
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 2rem;
    font-weight: 100;
color: var(--tumesinine);
}
.qty-btn:hover {
    font-weight: 200;
    background-color: transparent !important;
    color: var(--tumesinine);
}
.qty-btn:active {}
input[type="number"] {
    text-align: center;
    /* numbri tekst keskele */
    -moz-appearance: textfield;
    /* Firefox â€“ eemaldab nooled */
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    /* Chrome/Safari â€“ eemaldab nooled */
    margin: 0;
}
.qty-input {
    width: 25px !important;
    height: 32px;
    border: none !important;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    background: #fff;
    color: #333;
    padding: 0 !important;
    text-align: center;
}
.qty-input:focus {
    outline: none;
}
/* Footer */
.minicart-footer {
    padding: 20px 0 0;
    border-top: 1px solid #f0f0f0;
}
.minicart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1.2rem;
}
.minicart-subtotal-amount {
    font-weight: 500;
    font-size: 1.5rem;
}
.minicart-view-cart {
    /* text-align: center; */
    padding: 1.2rem 6.4rem;
    color: white !important;
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    transition: all .5s;
}
.minicart-view-cart:hover {
    color: #fff;
}
a.minicart-view-cart.round-btn:hover {
    padding-left: 5rem;
}
a.minicart-view-cart.round-btn svg {
      transition: all .5s;
}
a.minicart-view-cart.round-btn:hover svg {
    transform: translateX(.5rem);
}
/* Empty Cart */
.minicart-empty {
    text-align: center;
}
.minicart-empty p {
    margin: 0;
    color: #999;
    font-size: 14px;
}
/* Scrollbar */
.custom-minicart-products::-webkit-scrollbar {
    width: 6px;
}
.custom-minicart-products::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.custom-minicart-products::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.custom-minicart-products::-webkit-scrollbar-thumb:hover {
    background: #999;
}
/* Mobile Responsive */
@media (max-width: 480px) {
    .custom-minicart-wrapper {
        width: 100vw;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
        border-radius: 0;
    }
    .site-cart.cart-hover .custom-minicart-wrapper {
        transform: translateX(-50%) translateY(0);
    }
    .custom-minicart-wrapper::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .minicart-item-image {
        width: 50px;
        height: 50px;
    }
    .minicart-item-price {
        font-size: 13px;
    }
}
.site-cart {
    position: absolute;
    right: 5rem;
}
.custom-minicart-wrapper,
.custom-minicart-wrapper a {
    color: var(--tumesinine);
}
.site-cart svg {
    width: 2rem;
}
.cart-icon {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    padding-right: 0;
    text-decoration: none;
    color: #333;
}
.cart-count {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 200;
}

.minicart-item-content {
    padding: 2rem;
}
.minicart-qty-remove-wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.minicart-item-name {
    font-size: 1.2rem;
}

.minicart-extra-info {
    display: flex;
    padding: 2rem 0;
    font-size: 1.2rem;
    gap: 3rem;
    flex-wrap: wrap;
}
.minicart-extra-info span {
    display: flex;
    padding: 2rem 0;
    font-size: 1.2rem;
    gap: 2rem;
    flex-wrap: wrap;
}