#order-standard_cart .products .sg-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid #d6e3ef;
    border-radius: .9rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(20, 52, 80, .05);
}
#order-standard_cart .products .row > [class*="col-"]:has(> .sg-product-card) {
    display: flex;
    padding-bottom: 1.2rem;
}
#order-standard_cart .products .sg-product-card { width: 100%; }
#order-standard_cart .products .sg-product-card::before,
#order-standard_cart .products .sg-product-card::after { display: none; }
#order-standard_cart .products .sg-product-card > header {
    order: 1;
    padding: 1rem 1.05rem .55rem;
    background: #fff;
    color: #173c63;
    text-align: left;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 700;
}
#order-standard_cart .products .sg-product-card > header .qty {
    display: inline-block;
    margin-top: .15rem;
    font-size: .75rem;
    font-weight: 500;
}
#order-standard_cart .products .sg-product-card > .product-desc {
    order: 2;
    display: block;
    flex: 1;
    float: none;
    width: 100%;
    padding: 0 1.05rem .9rem;
    color: #314e66;
    font-size: .9rem;
    line-height: 1.52;
    text-align: left;
    overflow-wrap: anywhere;
}
#order-standard_cart .products .sg-product-card > .product-desc p:last-child { margin-bottom: 0; }
#order-standard_cart .products .sg-product-card > footer {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1rem;
    padding: .9rem 1.05rem 1rem;
    border-top: 1px solid #dce7f2;
    background: #f5f9fd;
}
#order-standard_cart .sg-product-card .product-pricing {
    float: none;
    min-height: 0;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #37546f;
    text-align: left;
}
#order-standard_cart .sg-product-card .product-pricing .price {
    color: #143d62;
    font-size: 1.25rem;
    font-weight: 750;
}
#order-standard_cart .sg-product-card .btn-order-now {
    margin: 0;
    padding: .65rem .85rem;
    background: #075f9f;
    border-color: #075f9f;
    color: #fff;
    font-weight: 650;
    border-radius: .45rem;
}
#order-standard_cart .sg-product-card .btn-order-now:hover { background: #064d81; }

.sg-product-photo {
    order: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf4fb;
}
.sg-product-photo-button {
    display: grid;
    place-items: center;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    min-height: 0;
    cursor: zoom-in;
}
#order-standard_cart .sg-product-photo img,
#order-standard_cart .sg-product-photo picture,
#order-standard_cart .sg-product-photo > a {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 0;
    min-width: 0;
    object-fit: contain;
    margin: 0 !important;
}
.sg-product-photo-button:focus-visible { outline: 3px solid #075f9f; outline-offset: -4px; }
.sg-product-viewer {
    max-width: min(860px, 94vw);
    max-height: 92vh;
    border: 1px solid #d6e3ef;
    border-radius: .7rem;
    padding: .9rem;
    background: #fff;
    color: #173c63;
}
.sg-product-viewer::backdrop { background: rgba(12, 30, 48, .7); }
.sg-product-viewer img { display: block; max-width: 100%; max-height: 68vh; margin: auto; }
.sg-product-viewer p { margin: .7rem 0; }
.sg-product-viewer-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.sg-product-viewer-actions button { border: 1px solid #b7cadb; border-radius: .35rem; padding: .4rem .7rem; color: #173c63; background: #f5f9fd; }


#order-standard_cart .sg-product-card .sg-product-details-button {
    margin-left: auto;
    padding: .58rem .7rem;
    background: #fff;
    border: 1px solid #a9c3d9;
    border-radius: .45rem;
    color: #17456a;
    font-weight: 650;
}
.sg-product-details {
    width: min(850px, 94vw);
    max-height: 92vh;
    overflow: auto;
    padding: 1rem;
    border: 1px solid #d6e3ef;
    border-radius: .8rem;
    background: #fff;
    color: #173c63;
}
.sg-product-details::backdrop { background: rgba(12, 30, 48, .72); }
.sg-product-details [hidden] { display: none !important; }
.sg-details-top { display: flex; justify-content: flex-end; margin-bottom: .65rem; }
.sg-details-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem; }
.sg-details-layout:has(.sg-details-media[hidden]) { grid-template-columns: 1fr; }
.sg-details-media { min-width: 0; }
.sg-details-media img { display: block; width: 100%; max-height: 55vh; object-fit: contain; border-radius: .5rem; background: #edf4fb; }
.sg-details-gallery { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .6rem; }
.sg-details-body h2 { margin: .15rem 0 .8rem; font-size: clamp(1.3rem, 3vw, 1.9rem); color: #173c63; }
.sg-details-description, .sg-details-price { white-space: pre-line; overflow-wrap: anywhere; }
.sg-details-description { line-height: 1.55; color: #314e66; }
.sg-details-stock { color: #37546f; font-size: .88rem; }
.sg-details-order { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; border-top: 1px solid #d6e3ef; padding-top: .85rem; }
.sg-details-price { font-size: 1.15rem; font-weight: 750; }
.sg-product-details button { border: 1px solid #a9c3d9; border-radius: .4rem; padding: .45rem .7rem; color: #173c63; background: #f5f9fd; }
.sg-product-details [data-details-order] { color: #fff; background: #075f9f; border-color: #075f9f; font-weight: 650; }
.sg-product-details button:focus-visible, .sg-product-details-button:focus-visible { outline: 3px solid #075f9f; outline-offset: 3px; }
@media (max-width: 650px) {
    .sg-details-layout { grid-template-columns: 1fr; }
    .sg-details-media img { max-height: 42vh; }
}
