﻿/* KISMET WEB ORDER CARD LAYOUT FIX V1 */

/* Single image, product information and quantity */
.web-order-page .web-product-card {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    gap: 12px 18px !important;
    padding: 18px !important;
}

.web-order-page .web-product-image {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 150px !important;
    height: 165px !important;
    max-width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.web-order-page .web-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    box-sizing: border-box;
}

.web-order-page .web-product-copy {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100%;
}

.web-order-page .web-product-copy h3 {
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
}

.web-order-page .product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.web-order-page .web-product-card .qty-controls {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start !important;
    justify-self: start !important;
    min-width: 0;
    max-width: 100%;
}

.web-order-page .qty-controls input {
    width: 60px;
    min-width: 0;
}

/* Narrow cards and mobile screens */
@media (max-width: 1100px) {
    .web-order-page .web-product-card {
        grid-template-columns: 110px minmax(0,1fr) !important;
        gap: 10px 14px !important;
    }
    .web-order-page .web-product-image {
        width: 110px !important;
        height: 125px !important;
    }
}

@media (max-width: 560px) {
    .web-order-page .web-product-card {
        grid-template-columns: 100px minmax(0,1fr) !important;
        padding: 12px !important;
    }
    .web-order-page .web-product-image {
        width: 100px !important;
        height: 115px !important;
    }
    .web-order-page .qty-controls input {
        width: 52px;
    }
}
