.dup-upsell-area {
    margin-top: 20px;
    width: 100%;
}

.dup-upsell-card {
    background: var(--dup-upsell-card-bg, #fbfbfb);
    border: 1px solid #e5e1de;
    padding: 24px 26px 18px;
    margin: 0 0 20px;
    box-sizing: border-box;
}

.dup-upsell-heading {
    border-bottom: 1px solid #e6e2df;
    margin-bottom: 4px;
    padding-bottom: 14px;
}

.dup-upsell-heading h4 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: none !important;
    color: #222;
}

.dup-upsell-heading p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.dup-upsell-table-head,
.dup-upsell-product {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 90px 122px 176px;
    gap: 14px;
    align-items: center;
}

.dup-upsell-table-head {
    padding: 13px 0 9px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #222;
}

.dup-upsell-product {
    padding: 14px 0;
    border-top: 1px solid #ece8e5;
}

.dup-upsell-products .dup-upsell-product:first-child {
    border-top: 0;
}

.dup-product-main {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.dup-product-image {
    width: 70px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.dup-product-image img {
    display: block;
    max-width: 100%;
    max-height: 82px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dup-product-name-wrap {
    min-width: 0;
}

.dup-product-name {
    display: block;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    color: #222;
    text-decoration: none;
}

.dup-product-name:hover {
    color: #bda16a;
}


.dup-product-price {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.dup-product-price del {
    display: none !important;
}

.dup-product-price ins {
    text-decoration: none !important;
    background: transparent !important;
}

.dup-quantity {
    display: inline-grid;
    grid-template-columns: repeat(3, 38px);
    width: 116px;
    height: 38px;
    border: 1px solid #e3dfdc;
    background: #fff;
    box-sizing: border-box;
}

.dup-qty-btn,
.dup-qty-input {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 36px !important;
    min-height: 36px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #222 !important;
    text-align: center !important;
    padding: 0 !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
}

.dup-qty-btn {
    font-size: 17px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

.dup-qty-btn:hover {
    background: #f5f2ef !important;
}

.dup-qty-input {
    font-size: 14px !important;
    font-weight: 600;
    border-left: 1px solid #ece8e5 !important;
    border-right: 1px solid #ece8e5 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.dup-qty-input::-webkit-outer-spin-button,
.dup-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.dup-add-button.button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px !important;
    border: 1px solid #bda16a !important;
    border-radius: 0 !important;
    background: #bda16a !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: .15px;
    text-transform: uppercase;
    white-space: normal;
}

.dup-add-button.button:hover,
.dup-add-button.button:focus {
    background: #aa8f59 !important;
    border-color: #aa8f59 !important;
    color: #fff !important;
}

/* Stil global alternativ: similar butonului „Actualizează coșul”. */
.dup-upsell-area.dup-button-cart .dup-add-button.button {
    background: #f3f0f0 !important;
    border-color: #f3f0f0 !important;
    color: #292929 !important;
}

.dup-upsell-area.dup-button-cart .dup-add-button.button:hover,
.dup-upsell-area.dup-button-cart .dup-add-button.button:focus {
    background: #e8e4e4 !important;
    border-color: #e8e4e4 !important;
    color: #222 !important;
}

.dup-add-button[disabled] {
    opacity: .65;
    cursor: wait;
}

.dup-inline-message {
    min-height: 0;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
    color: #b42318;
}

@media (max-width: 1199px) and (min-width: 769px) {
    .dup-upsell-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dup-upsell-table-head,
    .dup-upsell-product {
        grid-template-columns: minmax(205px, 1fr) 76px 112px 156px;
        gap: 10px;
    }

    .dup-product-main {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 10px;
    }

    .dup-product-image {
        width: 60px;
        height: 74px;
    }
}

@media (max-width: 768px) {
    .dup-upsell-area {
        margin-top: 18px;
    }

    .dup-upsell-card {
        padding: 18px 16px 6px;
        margin-bottom: 18px;
    }

    .dup-upsell-heading {
        padding-bottom: 12px;
        margin-bottom: 0;
    }

    .dup-upsell-heading h4 {
        font-size: 17px;
    }

    .dup-upsell-heading p {
        font-size: 13px;
    }

    .dup-upsell-table-head {
        display: none;
    }

    .dup-upsell-product {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 14px;
        align-items: center;
        padding: 18px 0;
        border-top: 1px solid #e6e2df;
    }

    .dup-upsell-products .dup-upsell-product:first-child {
        border-top: 0;
    }

    .dup-product-main {
        grid-column: 1 / -1;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
    }

    .dup-product-image {
        width: 82px;
        height: 94px;
    }

    .dup-product-image img {
        max-height: 94px;
    }

    .dup-product-name {
        font-size: 15px;
        line-height: 1.4;
    }

    .dup-product-price {
        grid-column: 1;
        grid-row: 2;
        font-size: 15px;
    }

    .dup-product-quantity {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .dup-product-action {
        grid-column: 1 / -1;
    }

    .dup-add-button.button {
        min-height: 46px;
        font-size: 12px !important;
    }
}

@media (max-width: 420px) {
    .dup-product-main {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 11px;
    }

    .dup-product-image {
        width: 68px;
        height: 84px;
    }

    .dup-product-image img {
        max-height: 84px;
    }

    .dup-quantity {
        grid-template-columns: repeat(3, 36px);
        width: 110px;
    }

    .dup-qty-btn,
    .dup-qty-input {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
    }
}
