/* Duplex egységes termékkártyák – főoldal és kategóriaoldalak */
:root {
    --dx-red: #ed1724;
    --dx-blue: #064f9c;
    --dx-ink: #17263a;
    --dx-green: #12933a
}

.sh-products,.archive-results .products {
    align-items: stretch!important;
    gap: 18px!important
}

.sh-product,.archive-results .product {
    background: #fff!important;
    border: 1px solid #e0e8f0!important;
    border-radius: 16px!important;
    box-shadow: 0 7px 24px #10243c0b!important;
    overflow: hidden;
    display: flex!important;
    flex-direction: column!important;
    text-align: left!important;
    min-width: 0;
    transition: box-shadow .2s,transform .2s
}

.sh-product:hover,.archive-results .product:hover {
    box-shadow: 0 13px 29px #10243c19!important;
    transform: translateY(-2px)
}

.archive-results .product {
    padding: 16px!important
}

.sh-product .sh-photo,.archive-results .product .picture {
    height: auto!important;
    min-height: 0!important;
    aspect-ratio: 1.18!important;
    max-height: 240px!important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 12px!important;
    flex-shrink: 0
}

.sh-product .sh-photo img,.archive-results .product .picture img {
    width: 100%;
    height: 100%;
    max-height: 230px;
    object-fit: contain!important
}

.archive-results .product .details {
    display: flex!important;
    flex: 1;
    flex-direction: column!important;
    align-items: stretch!important;
    text-align: left!important;
    gap: 8px!important;
    padding: 0!important
}

.sh-product .sh-product-name,.archive-results .product .details h2 {
    font-size: 17px!important;
    line-height: 1.38!important;
    font-weight: 750!important;
    color: var(--dx-ink)!important;
    min-height: 3.8em!important;
    margin: 0!important;
    display: block!important
}

.archive-results .product .details h2 a {
    color: var(--dx-ink)!important;
    text-decoration: none!important
}

.sh-product .sh-product-cats,.archive-results .archive-categories {
    font-size: 13px!important;
    line-height: 1.45!important;
    min-height: 2.8em!important;
    margin: 0!important;
    color: #52627a !important;
}

.sh-product .sh-product-sku,.archive-results .archive-sku {
    font-size: 12px!important;
    color: var(--dx-blue)!important;
    overflow-wrap: anywhere!important;
    margin: 0!important
}

.sh-product .sh-price,.archive-results .archive-price,.archive-results .archive-gross {
    font-size: 14px!important;
    line-height: 1.4!important;
    font-weight: 400!important;
    color: #263449!important;
    margin: 0!important
}

.sh-product .sh-price b,.archive-results .archive-price strong {
    color: #087c35!important;
    font-size: 20px!important;
    font-weight: 800!important
}

.archive-results .archive-gross strong {
    color: var(--dx-ink)!important;
    font-size: 16px!important;
    font-weight: 800!important
}

.archive-results .archive-badges {
    top: 13px!important;
    left: 13px!important;
    gap: 6px!important
}

.archive-results .archive-badges span,.sh-product .sh-product-badges span {
    border-radius: 5px!important;
    padding: 5px 8px!important;
    font-size: 12px!important;
    line-height: 1.2!important
}

/* V101: badge background comes from the product editor inline color. */
.archive-results .archive-add,.archive-results .product .details>a.view {
    margin-top: auto!important;
    padding-top: 12px!important;
    width: 100%!important;
    display: flex!important;
    align-items: center;
    gap: 8px!important
}

.archive-results .archive-add input[type=number] {
    width: 45px!important;
    /* min-width:68px!important; */
    height: 44px!important;
    border: 1px solid #d4dfea!important;
    border-radius: 8px!important;
    padding: 6px 8px!important;
    font-size: 14px!important;
    background: white!important;
    color: #17263a!important
}

.archive-results .archive-add .view,.archive-results .product .details>a.view,.sh-product .sh-buy {
    background: var(--dx-red)!important;
    color: #fff!important;
    border: 0!important;
    border-radius: 9px!important;
    min-height: 44px!important;
    padding: 10px 12px!important;
    font-weight: 750!important;
    font-size: 14px!important;
    text-decoration: none!important;
    box-shadow: 0 6px 14px #ed17241f!important;
    text-align: center!important;
    justify-content: center!important;
    flex: 1!important;
    width: auto!important;
    max-width: none!important;
    cursor: pointer!important
}

.archive-results .archive-add .view:hover,.archive-results .product .details>a.view:hover,.sh-product .sh-buy:hover {
    background: #c9101c!important
}

.archive-results .product .details>a.view {
    margin-top: auto!important;
    display: flex!important;
    align-self: stretch!important
}

.archive-results .product .details>a.view::before,.archive-results .archive-add .view::before {
    content: "🛒";
    font-size: 15px
}

.archive-results .archive-add .view::before {
    content: "🛒"
}

.archive-results .archive-sidebar .archive-cat.active {
    border-left-color: var(--dx-red)
}

@media(max-width: 600px) {
    .archive-results .product {
        padding:10px!important
    }

    .archive-results .product .picture {
        aspect-ratio: 1!important
    }

    .archive-results .product .details h2,.sh-product .sh-product-name {
        font-size: 14px!important;
        min-height: 4em!important
    }

    .archive-results .archive-add {
        flex-wrap: wrap
    }

    .archive-results .archive-add input[type=number] {
        width: 60px!important;
        min-width: 60px!important
    }

    .archive-results .archive-add .view {
        font-size: 12px!important
    }

    .archive-results .archive-price strong {
        font-size: 17px!important
    }
}


/* FŐOLDAL – ugyanaz a kártyaelrendezés, mint a kategóriaoldalon. */
.sh-home .sh-product {padding:16px!important;gap:8px!important;}
.sh-home .sh-product .sh-photo {aspect-ratio:1.18!important;height:auto!important;max-height:240px!important;min-height:0!important;margin:0 0 12px!important;}
.sh-home .sh-product .sh-product-name {font-size:17px!important;line-height:1.38!important;font-weight:750!important;min-height:3.8em!important;margin:0!important;text-decoration:none!important;color:var(--dx-ink)!important;}
.sh-home .sh-product .sh-product-cats {font-size:13px!important;line-height:1.45!important;min-height:2.8em!important;margin:0!important;color:#65758c!important;}
.sh-home .sh-product .sh-price {font-size:14px!important;line-height:1.4!important;margin:0!important;}
.sh-home .sh-product .sh-price b {font-size:20px!important;font-weight:800!important;color:var(--dx-green)!important;}
.sh-home .sh-product .sh-price:nth-of-type(2) b {font-size:16px!important;color:var(--dx-ink)!important;}
.sh-home .sh-product .sh-product-sku {margin:0!important;color:var(--dx-blue)!important;font-size:12px!important;}
.sh-home .sh-product .sh-cart-form {display:flex!important;gap:12px!important;align-items:stretch!important;margin-top:auto!important;width:100%!important;padding-top:12px!important;}
.sh-home .sh-product .sh-qty-label {display:block!important;flex:0 0 62px!important;min-width:0!important;}
.sh-home .sh-product .sh-qty-label input {box-sizing:border-box!important;width:100%!important;height:44px!important;padding:6px 7px!important;border:1px solid #d4dfea!important;border-radius:9px!important;background:white!important;color:var(--dx-ink)!important;font-size:15px!important;}
.sh-home .sh-product .sh-buy {display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:100%!important;min-height:44px!important;padding:10px 12px!important;line-height:1.25!important;border-radius:9px!important;background:var(--dx-red)!important;color:white!important;text-align:center!important;font-size:14px!important;font-weight:750!important;}
.sh-home .sh-product .sh-cart-form .sh-buy {flex:1 1 0!important;min-width:0!important;}
.sh-home .sh-product > a.sh-buy {margin-top:auto!important;flex:0 0 auto!important;}
.sh-home .sh-product .sr-only {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
@media(max-width:650px){.sh-home .sh-product{padding:10px!important}.sh-home .sh-product .sh-product-name{font-size:14px!important;min-height:4em!important}.sh-home .sh-product .sh-cart-form{gap:6px!important}.sh-home .sh-product .sh-qty-label{flex-basis:52px!important}.sh-home .sh-product .sh-buy{font-size:12px!important;padding:8px 6px!important}}


/* V125 – kosár gombok: WCAG AA kontraszt fehér szöveggel. */
:root {--dx-red:#C81020;}
.archive-results .archive-add .view,.archive-results .product .details>a.view,.sh-product .sh-buy,.sh-home .sh-product .sh-buy {background:#C81020 !important;color:#fff !important;}
.archive-results .archive-add .view:hover,.archive-results .product .details>a.view:hover,.sh-product .sh-buy:hover,.sh-home .sh-product .sh-buy:hover {background:#A80D1A !important;color:#fff !important;}
/* Világosabb, adminban megadott badge-hátterekhez sötét felirat.
   A termék saját háttérszínét nem írjuk felül. */
.archive-results .archive-badges span[style*="#4095D9" i],.sh-product .sh-product-badges span[style*="#4095D9" i],
.archive-results .archive-badges span[style*="#E66A00" i],.sh-product .sh-product-badges span[style*="#E66A00" i] {color:#111827 !important;text-shadow:none !important;}
