.site-main{
    background-color: #F3F8F9;
}
.woocommerce{
    display: grid;
    grid-template-columns: minmax(0,67%) minmax(0, 33%);
    grid-template-rows: auto;
    column-gap: 20px;
}
.woocommerce-notices-wrapper{
    grid-column: span 2;
}
.woocommerce-cart-form, .cart-collaterals{
    grid-column: span 1;
}
.page-header h1{
    margin: 0 0 40px;
}

@media (max-width:991px){
    .woocommerce{
        grid-template-columns: minmax(0,1fr);
        row-gap: 20px;
    }
    .woocommerce-notices-wrapper,
    .woocommerce-cart-form, .cart-collaterals{
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width:767px){
    .page-header h1{
        margin: 0 0 20px;
    }
}

/* CART FORMA - PROIZVODI */
.woocommerce-cart-form{
    display: flex;
    flex-flow: column nowrap;
    justify-content: start;
    align-items: stretch;
    row-gap: 20px;
}
.woocommerce .wc_coupon_message_wrap{
    order: 1;
    padding: 0 !important;
}
/* --SHOP TABLE */
.woocommerce table.shop_table.cart{
    margin: 0;
    border: 1px solid #A7C5CC;
    border-radius: 0;
    background: white;
}
.woocommerce table.shop_table.cart thead{
    display: none;
}
.woocommerce table.shop_table.cart tr{
    display: grid;
    grid-template-columns: minmax(0, 8%) minmax(0, 13%) minmax(0, 1fr) minmax(0, 100px) minmax(0, 19%);
    grid-template-rows: auto;
    column-gap: 20px;
    width: 100%;
    padding: 30px;
    align-items: center;
    border-bottom: 1px solid #A7C5CC;
}
.woocommerce table.shop_table.cart tr:last-child{
    display: block;
    border-bottom: none;
    padding: 30px;
}

.woocommerce table.shop_table.cart tr td{
    border: none;
    padding: 0;
    line-height: 1;
    grid-column: span 1;
}
.woocommerce table.shop_table.cart tr .product-price{
    display: none;
}
.woocommerce table.shop_table.cart tr .product-remove a{
    width: 60%;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid #5B7980;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px !important;
    line-height: 22px !important;
    font-weight: 300 !important;
    color: #5B7980 !important;
}
.woocommerce table.shop_table.cart tr .product-thumbnail img{
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #333333;
    border-radius: 0;
}
.woocommerce table.shop_table.cart tr .product-name a{
    font-weight: 500;
    font-size: 14px;
    line-height: 1.43;
    color: #333333;
}
.woocommerce table.shop_table.cart tr .product-name .variation-wrap{
    margin-top: 12px;
}

.woocommerce table.shop_table.cart tr .product-name a:hover{
    color: #5B7980
}
.woocommerce table.shop_table.cart tr .product-subtotal{
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 32px;
    text-align: right;
    color: #333333;
}
.woocommerce table.shop_table.cart tr .product-subtotal:before{
    content: "Ukupno:";
    position: relative;
    display: block;
    line-height: 16px;
    margin-bottom: 12px;
}

.woocommerce table.shop_table.cart tr .product-quantity{
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 32px;
    text-align: center;
    color: #333333;
}
.woocommerce table.shop_table.cart tr .product-quantity:before{
    content: "Količina:";
    position: relative;
    display: block;
    line-height: 16px;
    margin-bottom: 12px;
    width: 100%;
}
.woocommerce table.shop_table.cart tr .product-quantity:has(input[type="hidden"]):before{
    display: none;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity{
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.woocommerce table.shop_table.cart tr .product-quantity .quantity button{
    width:30px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #A7C5CC;
    background: white;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity button.plus{
    border-width: 1px 1px 1px 0;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity button.minus{
    border-width: 1px 0 1px 1px;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity input{
    width: 40px;
    padding: 7px;
    background: white;
    border: 1px solid #A7C5CC;
    border-width: 1px 0;
    border-radius: 0;

    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #333333;
    outline: none;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity input[max="1"]{
    border-width: 1px;
    cursor: not-allowed;
    pointer-events: none;
}

/* Uklanjanje spinnera (strelice gore i dole) za nubmer input polje */
.woocommerce table.shop_table.cart tr .product-quantity .quantity input::-webkit-inner-spin-button,
.woocommerce table.shop_table.cart tr .product-quantity .quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce table.shop_table.cart tr .product-quantity .quantity input {
    -moz-appearance: textfield;
}


.woocommerce table.shop_table.cart tr:not(.cart_item) td{
    display: flex;
    flex-flow: row-reverse nowrap;
    justify-content: space-between;
    align-items: start;
    column-gap: 3%;
}
.woocommerce table.shop_table.cart .coupon{
    flex: 1;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: stretch;
    column-gap: 10px;
    row-gap: 5px;
    padding-left: 3%;
    border-left: 1px solid #A7C5CC;
}
.woocommerce table.shop_table.cart .coupon input{
    flex: 1;
    margin: 0 !important;
    padding: 11px 13px !important;
    font-weight: 300;
    font-size: 14px;
    line-height: 100%;
    border: 1px solid #A7C5CC !important;
}
.woocommerce table.shop_table.cart .coupon button[name="apply_coupon"]{
    padding: 11px 30px;
    background-color: #A7C5CC;
    background-image: url("../img/dugme-ukras-levo.svg"),
                      url("../img/dugme-ukras-desno.svg");
    background-size: auto 100%, auto 100%;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-clip: border-box;
    border: none;
    outline: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
}
.woocommerce table.shop_table.cart .coupon .coupon-error-notice{
    width: 100%;
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.25;
    color: #5B7980;
}
.woocommerce table.shop_table.cart button[name="update_cart"]{
    padding: 11px 30px;
    background-color: #5B7980 !important;
    background-image: url("../img/dugme-ukras-levo.svg"),
                      url("../img/dugme-ukras-desno.svg") !important;
    background-size: auto 100%, auto 100%;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-clip: border-box;
    border: none;
    outline: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 1 !important;
}
@media (max-width:767px){
    .woocommerce table.shop_table.cart tr{
        grid-template-columns: minmax(0, 100px) minmax(0,1fr);
        grid-template-rows: auto;
        column-gap: 20px;
        row-gap: 20px;
        padding: 20px;
        position: relative;
    }
    .woocommerce table.shop_table.cart tr .product-remove{
        position: absolute;
        top: 20px;
        right: 10px;
        width: 20px;
        height: 20px;
    }
    .woocommerce table.shop_table.cart tr .product-remove a{
        width: 100%;
        font-size: 14px !important;
        line-height: 14px !important;
    }
    .woocommerce table.shop_table.cart tr .product-name a:not(:last-child){
        margin-top: 20px;
    }
    .woocommerce table.shop_table.cart tr:last-child {
        padding: 20px;
    }
    .woocommerce table.shop_table.cart tr:not(.cart_item) td {
        flex-flow: column-reverse nowrap;
        justify-content: start;
        align-items: stretch;
        row-gap: 20px;
    }
    .woocommerce table.shop_table.cart .coupon {
        padding: 0;
        border-left: none;
    }
    .woocommerce table.shop_table.cart .coupon:before{
        content: "Promo kod";
        position: relative;
        display: block;
        width: 100%;
        font-weight: 500;
        font-size: 20px;
        line-height: 1.4;
        text-align: center;
        color: #333333;
        padding-bottom: 15px;
        border-bottom: 1px solid #A7C5CC;
        margin-bottom: 10px;
    }
}
@media (max-width:576px){
    .woocommerce table.shop_table.cart .coupon {
        flex-flow: column nowrap;
        align-items: stretch;
        row-gap: 10px;
    }
}



/* --CART TOTALS - SUMMARY */
.woocommerce .cart-collaterals .cart_totals{
    float: none;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #A7C5CC;
    padding: 30px 30px 50px;
}
.woocommerce .cart-collaterals .cart_totals h2{
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    color: #333333;
    border-bottom: 1px solid #A7C5CC;
    padding: 0 0 30px;
    margin: 0 0 20px;
}
.woocommerce .cart-collaterals .cart_totals table{
    margin: 0;
    border: none;
    width: 100%;
}
.woocommerce .cart-collaterals .cart_totals table tr{
    display: flex;
    justify-content: space-between;
    align-items: start;
    column-gap: 20px;
    flex-flow: row nowrap;
}
.woocommerce .cart-collaterals .cart_totals table tr:not(:last-child){
    margin-bottom: 24px;
}
.woocommerce .cart-collaterals .cart_totals table tr.order-total{
    flex-flow: column nowrap;
    align-items: center;
}

.woocommerce .cart-collaterals .cart_totals table tr th{
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #333333;
    padding: 0;
    border: none;
    width: auto;
}
.woocommerce .cart-collaterals .cart_totals table tr th:after{
    content: ":";
}
.woocommerce .cart-collaterals .cart_totals table tr td{
    padding: 0;
    border: none;
    text-align: right;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    width: auto;
    max-width: 70%;
}
.woocommerce .cart-collaterals .cart_totals table tr.order-total{
    padding: 50px 0;
    border-top: 1px solid #A7C5CC;
    text-align: center;
}
.woocommerce .cart-collaterals .cart_totals table tr.order-total td{
    margin-top: 5px;
    font-size: 20px;
    line-height: 1;
}
.woocommerce .cart-collaterals .cart_totals table tr.order-total td strong{
    font-weight: 500 !important;
}
.woocommerce-cart .wc-proceed-to-checkout{
    padding: 0;
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
    position: relative;
    display: block;
    padding: 11px 30px 11px 66px;
    width: 100%;
    background-color: #5B7980 !important;
    background-image: url("../img/dugme-ukras-levo.svg"),
    url("../img/dugme-ukras-desno.svg") !important;
    background-size: auto 100%, auto 100%;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    background-clip: border-box;
    border: none;
    outline: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
}
.woocommerce-cart .wc-proceed-to-checkout{
    display: flex;
    justify-self: center;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:before{
    content: url("../img/shipping-fast.svg");
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 27px;
    transform: translateY(-50%);
    margin-top: 2px;
    padding-right: 12px;
    border-right: 1px solid #FFFFFF;
}
.woocommerce .shipping-calculator-button{
    color: #90CC93 !important;
}
.woocommerce .shipping-calculator-form{
    text-align: left;
}
.woocommerce .shipping-calculator-form p{
    padding: 0;
}
.woocommerce .shipping-calculator-form label{
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #333333;
}
.woocommerce form .shipping-calculator-form .form-row .input-text,
.woocommerce form .shipping-calculator-form .form-row .select2-selection{
    border-color: #A7C5CC;
    border-radius: 0;
}
.select2-results__option{
    font-size: 12px;
    line-height: 20px;
    color: #333333;
}
.select2-container .select2-dropdown{
    border-color: #A7C5CC;
}
.woocommerce button[name="calc_shipping"]{
    padding: 11px 30px;
    background-color: #90CC93 !important;
    background-image: url("../img/dugme-ukras-levo.svg"),
    url("../img/dugme-ukras-desno.svg") !important;
    background-size: auto 100%, auto 100%;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
    font-weight: 500;
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    width: 100%;
    margin-top: 10px;
}

