/* Override Tailwind preflight that sets img/svg to display:block,
   which breaks inline alignment in the Metronic theme. */
.svg-icon svg,
.kt-footer img,
.modal-title svg {
    display: inline;
}

/* --- Product cards --- */

.product-col {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.product-col:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Column wrapper needs equal height for button alignment */
.product-col .product-content {
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-col .product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100%;
    height: 280px;
    border-radius: 6px;
    background-color: #f3f4f6;
}

.product-col .product-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.product-col .product-content .product-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

.product-col .product-content .product-price {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 10px;
}

.product-col .product-content .product-price span {
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-col .product-content .product-price .sale-price {
    color: #ff5e00;
    font-weight: 600;
}

.product-col .product-content .product-desc {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
}

.product-col .product-content .product-action {
    margin-top: auto;
    padding-top: 12px;
}

/* Equal-height columns so product cards align */
.product-col .product-content .product-action .btn {
    font-size: 13px;
}

/* Product columns: make col a flex container so cards stretch to equal height */
.col-md-4:has(.product-col) {
    display: flex;
    margin-bottom: 24px;
}

/* Hide empty <a> tags left by browser restructuring nested anchors */
.col-md-4:has(.product-col) > a:empty {
    display: none;
}

/* --- Category section headers --- */

.kt-widget__body > .row > .col-md-12 > h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
    margin-top: 12px;
}

.kt-widget__body > hr {
    border-top: 2px solid var(--ordolio-default-primary);
    opacity: 0.25;
    margin-top: 8px;
    margin-bottom: 4px;
}

/* --- Cart modal --- */

#modal-cart .modal-title,
.webshop-modal-title {
    font-size: 20px;
    font-weight: 800;
}

#modal-cart .modal-header,
.webshop-modal-header {
    background-color: #f7f7f7;
}

.cart-row {
    border-bottom: 1px solid var(--ordolio-default-light);
    border-radius: 8px;
    margin: 15px 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-row div {
    padding: 0 15px;
}

.cart-row img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cart-row .name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.cart-row .price {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 10px;
}

@keyframes bang {
    from {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.total-row .price,
.total-row .title {
    font-size: 18px;
    font-weight: 500;
}

.product-row .product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
}

.product-row .product-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.kt-header__brand-logo img,
div.kt-header-mobile__logo img {
    width: 80px;
    height: 100%;
    object-fit: cover;
    margin-top: 10px;
}

.webshop-top-banner {
    height: 200px;
    width: 100%;
    background-position: center top;
    background-size: cover;
    border-radius: 8px;
    position: relative;
}

.webshop-top-banner::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35); /* Change the color and opacity as needed */
}

.webshop-top-banner .title {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 35px;
    font-weight: 800;
    color: #fff;
}

.image_list li {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: solid 1px #e8e8e8;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    cursor: pointer;
    padding: 15px;
    -webkit-transition: all 200ms ease;
    -moz-transition: all 200ms ease;
    -ms-transition: all 200ms ease;
    -o-transition: all 200ms ease;
    transition: all 200ms ease;
    overflow: hidden;
    height: 165px;
}
.image_list li:last-child {
    margin-bottom: 0;
}
.image_list li:hover {
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
}
.image_list li img {
    max-width: 100%;
}

.image_selected {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% + 15px);
    height: 525px;
    -webkit-transform: translateX(-15px);
    -moz-transform: translateX(-15px);
    -ms-transform: translateX(-15px);
    -o-transform: translateX(-15px);
    transform: translateX(-15px);
    border: solid 1px #e8e8e8;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 15px;
}
.image_selected img {
    max-width: 100%;
}

@media only screen and (max-width: 1199px) {
    .image_list li {
        height: 130px;
    }
    .image_selected {
        height: 420px;
    }
}

@media only screen and (max-width: 991px) {
    .image_list {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding-top: 15px;
    }
    .image_list li {
        width: calc(33.33333333% - 10px);
        height: 220px;
        margin-bottom: 0px;
    }
    .image_list li:not(:last-child) {
        margin-right: 15px;
    }
    .image_selected {
        width: 100%;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
        -o-transform: none;
        transform: none;
    }
}

@media only screen and (max-width: 767px) {
    .image_list li {
        height: 160px;
    }
}

@media only screen and (max-width: 575px) {
    .image_list li {
        height: calc((100vw - 30px) / 3 - 15px);
    }
    .image_selected {
        height: calc(100vw - 30px);
    }
}

.progress {
    position: relative;
}

.progress span {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 800;
    position: absolute;
    top: 10px;
    left: 0;
    text-shadow: 0 0 1rem #000;
}

.cart-modal-actions {
    gap: 0.5rem;
}
