/* DP product card v4 (was an inline <style> in snippets/products_container/grid_format.html.twig).
   Do not reformat: order and specificity must stay identical. */


/* ================================================================
   CARD
   ================================================================ */

.dpmp-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e3e8ee;
    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(20, 35, 55, .055);

    transition:
        box-shadow .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.dpmp-product-card:hover {
    transform: translateY(-2px);

    border-color: #d5dde6;

    box-shadow:
        0 8px 22px rgba(20, 35, 55, .10);
}


/* ================================================================
   PRODUCT IMAGE AREA
   ================================================================ */

.dpmp-product-card__visual {
    position: relative;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    background: #f8fafc;

    line-height: 0;
}


/* MerchantPro native grid image */

.dpmp-product-card__visual .grid-image {
    width: 100% !important;
    min-width: 0 !important;
}

.dpmp-product-card__visual .grid-image__link {
    display: block !important;

    width: 100% !important;
}

.dpmp-product-card__visual .grid-image__image-wrapper {
    display: block !important;

    position: relative !important;

    width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;
}

.dpmp-product-card__visual .grid-image__image {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 !important;
}


/* ================================================================
   DISCOUNT
   ================================================================ */

.dpmp-product-card__discount {
    position: absolute;

    top: 8px;
    right: 8px;

    z-index: 20;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 32px;
    min-height: 23px;

    padding: 4px 6px;

    border-radius: 6px;

    background: #ef2b18;

    color: #fff;

    font: 700 9px/1 Arial, sans-serif;
}


/* ================================================================
   BODY
   ================================================================ */

.dpmp-product-card__body {
    display: flex;

    flex: 1 1 auto;

    flex-direction: column;

    min-width: 0;

    padding: 12px 12px 11px;
}


/* ================================================================
   CATEGORY
   ================================================================ */

.dpmp-product-card__category {
    display: block;

    overflow: hidden;

    margin: 0 0 4px;

    color: #7a8796;

    font: 500 8px/1.25 Arial, sans-serif;

    text-decoration: none;

    text-transform: uppercase;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* ================================================================
   PRODUCT NAME
   ================================================================ */

.dpmp-product-card__name {
    display: -webkit-box;

    overflow: hidden;

    min-height: 36px;

    margin: 0 0 7px;

    color: #142235;

    font: 700 14px/1.3 Arial, sans-serif;

    text-decoration: none;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dpmp-product-card__name:hover {
    color: #142235;
}


/* ================================================================
   PRICE
   ================================================================ */

.dpmp-product-card__price {
    margin: 0 0 5px;

    color: #ed2919;
}

.dpmp-product-card__price .price,
.dpmp-product-card__price [class*="price"] {
    line-height: 1.15;
}


/* ================================================================
   STOCK
   ================================================================ */

.dpmp-product-card__stock {
    display: flex;

    align-items: center;

    gap: 5px;

    min-height: 15px;

    margin: 0 0 6px;

    color: #3f5366;

    font: 500 10px/1.2 Arial, sans-serif;
}

.dpmp-product-card__stock-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #1eaa61;
}

.dpmp-product-card__stock-dot--out {
    background: #e62b20;
}


/* ================================================================
   RATING
   ================================================================ */

.dpmp-product-card__rating {
    display: flex;

    align-items: center;

    gap: 4px;

    min-height: 15px;

    margin-bottom: 5px;
}

.dpmp-product-card__rating-count {
    color: #7b8794;

    font: 400 9px/1 Arial, sans-serif;
}


/* ================================================================
   DESCRIPTION
   ================================================================ */

.dpmp-product-card__description {
    display: -webkit-box;

    overflow: hidden;

    margin: 0 0 6px;

    color: #687789;

    font: 400 10px/1.35 Arial, sans-serif;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ================================================================
   VARIANTS
   ================================================================ */

.dpmp-product-card__variants {
    overflow: hidden;

    margin-bottom: 5px;
}


/* ================================================================
   LINE OPTIONS
   ================================================================ */

.dpmp-product-card__line-options {
    overflow: hidden;

    margin-bottom: 5px;
}



/* ================================================================
   DESKTOP
   ================================================================ */

@media screen and (min-width: 768px) {

    .dpmp-product-card {
        border-radius: 14px;
    }

    .dpmp-product-card__body {
        padding: 15px;
    }

    .dpmp-product-card__name {
        min-height: 39px;

        font-size: 15px;
    }

    .dpmp-product-card__button {
        min-height: 42px;

        font-size: 12px;
    }

    .dpmp-product-card__category {
        font-size: 9px;
    }

}


/* ================================================================
   MOBILE
   ================================================================ */

@media screen and (max-width: 767px) {

    .dpmp-product-card {
        border-radius: 9px;

        box-shadow:
            0 2px 7px rgba(20, 35, 55, .055);
    }

    .dpmp-product-card:hover {
        transform: none;

        box-shadow:
            0 2px 7px rgba(20, 35, 55, .055);
    }


    /* ------------------------------------------------------------
       IMAGE
       ------------------------------------------------------------ */

    .dpmp-product-card__visual {
        width: 100% !important;

        min-height: 0 !important;

        background: #f8fafc !important;
    }

    .dpmp-product-card__visual .grid-image__image-wrapper {
        width: 100% !important;

        min-height: 118px !important;
    }

    .dpmp-product-card__visual .grid-image__image {
        width: 100% !important;
        height: 100% !important;

        object-fit: contain !important;
    }


    /* ------------------------------------------------------------
       BODY
       ------------------------------------------------------------ */

    .dpmp-product-card__body {
        padding: 9px 9px 9px;
    }


    /* ------------------------------------------------------------
       CATEGORY
       ------------------------------------------------------------ */

    .dpmp-product-card__category {
        margin-bottom: 3px;

        font-size: 7px;
    }


    /* ------------------------------------------------------------
       PRODUCT NAME
       ------------------------------------------------------------ */

    .dpmp-product-card__name {
        min-height: 32px;

        margin-bottom: 5px;

        font-size: 11.5px;

        line-height: 1.35;
    }


    /* ------------------------------------------------------------
       PRICE
       ------------------------------------------------------------ */

    .dpmp-product-card__price {
        margin-bottom: 4px;
    }


    /* ------------------------------------------------------------
       STOCK
       ------------------------------------------------------------ */

    .dpmp-product-card__stock {
        min-height: 14px;

        margin-bottom: 5px;

        font-size: 9px;
    }

    .dpmp-product-card__stock-dot {
        width: 6px;
        height: 6px;

        flex-basis: 6px;
    }


    /* ------------------------------------------------------------
       RATING
       ------------------------------------------------------------ */

    .dpmp-product-card__rating {
        min-height: 13px;

        margin-bottom: 4px;
    }

    .dpmp-product-card__rating-count {
        font-size: 8px;
    }


    /* ------------------------------------------------------------
       DESCRIPTION
       ------------------------------------------------------------ */

    .dpmp-product-card__description {
        display: none !important;
    }


    /* ------------------------------------------------------------
       VARIANTS
       ------------------------------------------------------------ */

    .dpmp-product-card__variants {
        max-height: 28px;

        margin-bottom: 3px;

        overflow: hidden;
    }


    /* ------------------------------------------------------------
       LINE OPTIONS
       
       Pe mobile nu încărcăm cardul cu:
       - consultanță
       - informații secundare
       - serii / game
       
       Aceste informații rămân disponibile pe pagina produsului.
       ------------------------------------------------------------ */

    .dpmp-product-card__line-options {
        display: none !important;
    }




    /* ------------------------------------------------------------
       DISCOUNT
       ------------------------------------------------------------ */

    .dpmp-product-card__discount {
        top: 6px;
        right: 6px;

        min-width: 30px;
        min-height: 21px;

        padding: 3px 5px;

        border-radius: 5px;

        font-size: 8px;
    }

}


/* ================================================================
   SMALL PHONES
   ================================================================ */

@media screen and (max-width: 380px) {

    .dpmp-product-card__body {
        padding: 8px 7px 8px;
    }

    .dpmp-product-card__visual .grid-image__image-wrapper {
        min-height: 105px !important;
    }

    .dpmp-product-card__name {
        font-size: 11px;

        min-height: 30px;
    }


}


/* ================================================================
   VERY SMALL PHONES
   ================================================================ */

@media screen and (max-width: 340px) {

    .dpmp-product-card__visual .grid-image__image-wrapper {
        min-height: 96px !important;
    }

    .dpmp-product-card__body {
        padding: 7px 6px 7px;
    }

    .dpmp-product-card__name {
        font-size: 10.5px;
    }

}


/* ================================================================
   DEPOZIT POLICARBONAT
   PRODUCT CARD V5 — LUXURY / PREMIUM / RESPONSIVE
   Final override over V4. MerchantPro logic remains intact.
   ================================================================ */

.dpmp-product-card{
    --pc-navy:#0f2f4d;
    --pc-blue:#2867ad;
    --pc-blue-dark:#174a80;
    --pc-gold:#b79a68;
    --pc-red:#e43b2f;
    --pc-green:#1ea65e;
    --pc-muted:#728396;
    --pc-line:#dfe7ee;

    border:1px solid var(--pc-line) !important;
    border-radius:20px !important;

    background:
        linear-gradient(180deg,#ffffff 0%,#fdfefe 100%) !important;

    box-shadow:
        0 10px 28px rgba(16,45,73,.07),
        0 2px 8px rgba(16,45,73,.035) !important;

    overflow:hidden !important;
    isolation:isolate;

    transform:translateZ(0);
    transition:
        transform .24s cubic-bezier(.2,.7,.2,1),
        box-shadow .24s ease,
        border-color .24s ease !important;
}

.dpmp-product-card::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:0;
    pointer-events:none;

    background:
        linear-gradient(
            115deg,
            transparent 24%,
            rgba(255,255,255,.52) 42%,
            transparent 60%
        );

    transform:translateX(-135%);
    transition:transform .72s cubic-bezier(.2,.7,.2,1);
}

.dpmp-product-card > *{
    position:relative;
    z-index:1;
}

.dpmp-product-card__visual{
    min-height:250px !important;

    background:
        radial-gradient(circle at 50% 30%,#ffffff 0%,#f7f9fb 68%,#f2f5f8 100%) !important;

    border-bottom:1px solid #e8edf2 !important;

    overflow:hidden !important;
}

.dpmp-product-card__visual .grid-image,
.dpmp-product-card__visual .grid-image__link,
.dpmp-product-card__visual .grid-image__image-wrapper{
    height:100% !important;
    min-height:250px !important;
}

.dpmp-product-card__visual .grid-image__image{
    width:100% !important;
    height:100% !important;
    min-height:250px !important;

    padding:16px !important;
    box-sizing:border-box !important;

    object-fit:contain !important;

    transition:
        transform .32s cubic-bezier(.2,.7,.2,1),
        filter .32s ease !important;
}

.dpmp-product-card__discount{
    top:14px !important;
    right:14px !important;

    min-width:44px !important;
    min-height:27px !important;

    padding:5px 9px !important;

    border:1px solid rgba(255,255,255,.74) !important;
    border-radius:999px !important;

    background:linear-gradient(135deg,#ef4a39,#cf281e) !important;

    color:#fff !important;

    box-shadow:
        0 8px 18px rgba(210,47,36,.22),
        inset 0 1px 0 rgba(255,255,255,.24) !important;

    font-size:10px !important;
    font-weight:850 !important;
}

.dpmp-product-card__body{
    padding:18px 18px 16px !important;
}

.dpmp-product-card__category{
    width:max-content;
    max-width:100%;

    margin:0 0 9px !important;
    padding:5px 8px !important;

    border-radius:999px !important;

    background:#f1f5f9 !important;

    color:#61758a !important;

    font-size:9px !important;
    font-weight:760 !important;
    letter-spacing:.055em !important;
}

.dpmp-product-card__name{
    min-height:44px !important;

    margin:0 0 11px !important;

    color:#102e49 !important;

    font-size:15px !important;
    line-height:1.42 !important;
    font-weight:820 !important;
    letter-spacing:-.012em !important;

    -webkit-line-clamp:2 !important;
}

.dpmp-product-card__price{
    display:flex;
    align-items:baseline;
    flex-wrap:wrap;
    gap:7px;

    min-height:34px;

    margin:0 0 10px !important;

    color:#173f70 !important;
}

.dpmp-product-card__price .price,
.dpmp-product-card__price [class*="price"]{
    font-weight:850 !important;
}

.dpmp-product-card__stock{
    min-height:20px !important;

    margin:0 0 9px !important;

    color:#526679 !important;

    font-size:10px !important;
    font-weight:650 !important;
}

.dpmp-product-card__stock-dot{
    width:8px !important;
    height:8px !important;
    flex:0 0 8px !important;

    background:var(--pc-green) !important;

    box-shadow:0 0 0 4px rgba(30,166,94,.10);
}

.dpmp-product-card__stock-dot--out{
    background:#e33c32 !important;
    box-shadow:0 0 0 4px rgba(227,60,50,.10);
}

.dpmp-product-card__rating{
    margin-bottom:8px !important;
}

.dpmp-product-card__description{
    margin:0 0 9px !important;

    color:#6b7c8f !important;

    font-size:10.5px !important;
    line-height:1.5 !important;

    -webkit-line-clamp:2 !important;
}

.dpmp-product-card__variants{
    margin-bottom:7px !important;
}

.dpmp-product-card__line-options{
    max-height:38px;
    margin-bottom:8px !important;

    color:#6f7f91 !important;

    overflow:hidden !important;
}

.dpmp-product-card__actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 48px !important;
    align-items:stretch !important;
    gap:10px !important;

    width:100% !important;

    margin-top:auto !important;
    padding-top:14px !important;

    box-sizing:border-box !important;
}

.dpmp-product-card__button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:9px !important;

    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;

    padding:10px 16px !important;

    border-radius:12px !important;

    font:800 13px/1.15 Arial,sans-serif !important;
    letter-spacing:.005em !important;
    white-space:nowrap !important;
    text-align:center !important;
    text-decoration:none !important;

    box-sizing:border-box !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease !important;
}

.dpmp-product-card__button > span{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    font-size:17px !important;
    line-height:1 !important;

    transition:transform .18s ease !important;
}

.dpmp-product-card__button--primary{
    border:1px solid #205a99 !important;

    background:
        linear-gradient(145deg,var(--pc-blue),var(--pc-blue-dark)) !important;

    color:#fff !important;

    box-shadow:
        0 10px 20px rgba(36,95,174,.18),
        inset 0 1px 0 rgba(255,255,255,.18) !important;
}

.dpmp-product-card__button--primary:hover{
    background:
        linear-gradient(145deg,#225c9d,#123e6d) !important;

    color:#fff !important;

    transform:translateY(-1px) !important;

    box-shadow:
        0 13px 24px rgba(24,72,121,.22),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.dpmp-product-card__button--primary:hover > span{
    transform:translateX(2px) !important;
}

.dpmp-product-card__button--disabled{
    border:1px solid #dce3ea !important;

    background:#eef2f5 !important;

    color:#748294 !important;

    box-shadow:none !important;
}

/* Secondary WhatsApp action */
.dpmp-product-card__whatsapp{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:0 !important;

    width:48px !important;
    min-width:48px !important;
    height:48px !important;
    min-height:48px !important;

    margin:0 !important;
    padding:0 !important;

    border:1px solid #c9ead6 !important;
    border-radius:12px !important;

    background:
        linear-gradient(145deg,#f3fcf6,#e5f7ec) !important;

    color:#16864b !important;

    text-decoration:none !important;

    box-shadow:
        0 8px 17px rgba(22,134,75,.09) !important;

    box-sizing:border-box !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease,
        border-color .18s ease !important;
}

.dpmp-product-card__whatsapp svg{
    flex:0 0 auto !important;

    width:20px !important;
    height:20px !important;

    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.8 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}

.dpmp-product-card__whatsapp-label{
    display:none !important;
}

@media (hover:hover) and (pointer:fine){
    .dpmp-product-card:hover{
        transform:
            perspective(1000px)
            translateY(-7px)
            rotateX(1deg) !important;

        border-color:#cbd9e5 !important;

        box-shadow:
            0 24px 52px rgba(16,45,73,.14),
            0 7px 18px rgba(16,45,73,.06) !important;
    }

    .dpmp-product-card:hover::before{
        transform:translateX(135%);
    }

    .dpmp-product-card:hover
    .dpmp-product-card__visual
    .grid-image__image{
        transform:scale(1.035);
        filter:saturate(1.03) contrast(1.01);
    }

    .dpmp-product-card__whatsapp:hover{
        transform:translateY(-2px);
        background:#e8f9ef;
        box-shadow:0 10px 20px rgba(22,134,75,.12);
    }
}

/* TABLET */
@media screen and (min-width:768px) and (max-width:1100px){
    .dpmp-product-card__visual,
    .dpmp-product-card__visual .grid-image,
    .dpmp-product-card__visual .grid-image__link,
    .dpmp-product-card__visual .grid-image__image-wrapper,
    .dpmp-product-card__visual .grid-image__image{
        min-height:220px !important;
    }

    .dpmp-product-card__body{
        padding:15px !important;
    }
}

/* MOBILE */
@media screen and (max-width:767px){

    .dpmp-product-card{
        border-radius:14px !important;

        box-shadow:
            0 7px 18px rgba(16,45,73,.075) !important;
    }

    .dpmp-product-card::before{
        display:none !important;
    }

    .dpmp-product-card__visual{
        min-height:150px !important;
    }

    .dpmp-product-card__visual .grid-image,
    .dpmp-product-card__visual .grid-image__link,
    .dpmp-product-card__visual .grid-image__image-wrapper,
    .dpmp-product-card__visual .grid-image__image{
        min-height:150px !important;
    }

    .dpmp-product-card__visual .grid-image__image{
        padding:8px !important;
    }

    .dpmp-product-card__discount{
        top:7px !important;
        right:7px !important;

        min-width:34px !important;
        min-height:21px !important;

        padding:3px 6px !important;

        font-size:8px !important;
    }

    .dpmp-product-card__body{
        padding:10px !important;
    }

    .dpmp-product-card__category{
        margin-bottom:6px !important;
        padding:4px 6px !important;

        font-size:7px !important;
    }

    .dpmp-product-card__name{
        min-height:34px !important;

        margin-bottom:7px !important;

        font-size:11.5px !important;
        line-height:1.36 !important;
    }

    .dpmp-product-card__price{
        min-height:28px;
        margin-bottom:6px !important;
    }

    .dpmp-product-card__stock{
        margin-bottom:6px !important;
        font-size:8.5px !important;
    }

    .dpmp-product-card__description,
    .dpmp-product-card__line-options{
        display:none !important;
    }

    /*
       MOBILE ACTIONS — canonical final layout.
       The stronger selector intentionally beats MerchantPro's native
       .product__actions flex rules without adding a separate patch block.
    */
    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions{
        display:flex !important;
        flex-direction:column !important;
        flex-wrap:nowrap !important;
        align-items:stretch !important;
        justify-content:flex-start !important;

        grid-template-columns:none !important;

        width:100% !important;
        min-width:0 !important;

        margin:0 !important;
        margin-top:auto !important;
        padding:14px 0 0 !important;

        gap:9px !important;

        box-sizing:border-box !important;
    }

    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions
    > .dpmp-product-card__button{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        min-height:50px !important;

        margin:0 !important;
        padding:11px 16px !important;

        border-radius:12px !important;

        font-size:16px !important;
        line-height:1.1 !important;

        white-space:nowrap !important;
        text-align:center !important;

        box-sizing:border-box !important;
    }

    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions
    > .dpmp-product-card__button > span{
        flex:0 0 auto !important;

        margin-left:3px !important;

        font-size:18px !important;
        line-height:1 !important;
    }

    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions
    > .dpmp-product-card__whatsapp{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        height:44px !important;
        min-height:44px !important;

        margin:0 !important;
        padding:0 14px !important;

        gap:8px !important;

        border:1px solid #bfe5ce !important;
        border-radius:12px !important;

        background:
            linear-gradient(180deg,#f5fdf8 0%,#e9f8ef 100%) !important;

        color:#13834a !important;

        font:800 13px/1 Arial,sans-serif !important;

        box-shadow:0 6px 15px rgba(19,131,74,.08) !important;

        box-sizing:border-box !important;
    }

    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions
    > .dpmp-product-card__whatsapp svg{
        flex:0 0 19px !important;

        width:19px !important;
        height:19px !important;
    }

    html body #main.default
    .product--grid
    .product__actions.dpmp-product-card__actions
    .dpmp-product-card__whatsapp-label{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;

        min-width:0 !important;

        white-space:nowrap !important;
        overflow:hidden !important;
        text-overflow:ellipsis !important;
    }

    .dpmp-product-card:hover{
        transform:none !important;
    }
}

/* SMALL PHONES */
@media screen and (max-width:380px){
    .dpmp-product-card__visual,
    .dpmp-product-card__visual .grid-image,
    .dpmp-product-card__visual .grid-image__link,
    .dpmp-product-card__visual .grid-image__image-wrapper,
    .dpmp-product-card__visual .grid-image__image{
        min-height:132px !important;
    }

    .dpmp-product-card__body{
        padding:8px !important;
    }

    .dpmp-product-card__name{
        font-size:10.5px !important;
    }
}


/* ================================================================
   PRODUCT CARD V6 — DISCOUNT VISIBILITY + STARS BESIDE STOCK
   ================================================================ */

/* Discount must always remain fully visible above image/native overlays */
.dpmp-product-card__visual{
    overflow:visible !important;
}

.dpmp-product-card__visual .grid-image{
    position:relative !important;
    z-index:1 !important;
    overflow:hidden !important;
}

.dpmp-product-card__discount{
    top:12px !important;
    right:12px !important;

    z-index:999 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:48px !important;
    max-width:none !important;

    height:28px !important;
    min-height:28px !important;

    padding:0 10px !important;

    overflow:visible !important;

    border:2px solid #fff !important;
    border-radius:999px !important;

    background:linear-gradient(135deg,#f14435 0%,#d5261d 100%) !important;

    color:#fff !important;

    box-shadow:
        0 7px 18px rgba(213,38,29,.26),
        inset 0 1px 0 rgba(255,255,255,.22) !important;

    font:850 11px/1 Arial,sans-serif !important;
    letter-spacing:-.01em !important;

    white-space:nowrap !important;
    text-indent:0 !important;
    clip:auto !important;
    clip-path:none !important;
    opacity:1 !important;
    visibility:visible !important;
}

/* Stock + stars share one clean row */
.dpmp-product-card__meta-row{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;

    gap:10px !important;

    min-height:24px !important;

    margin:0 0 10px !important;
}

.dpmp-product-card__meta-row .dpmp-product-card__stock{
    flex:0 1 auto !important;

    min-height:0 !important;
    margin:0 !important;

    white-space:nowrap !important;
}

.dpmp-product-card__stars{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    gap:1px !important;

    flex:0 0 auto !important;

    white-space:nowrap !important;
}

.dpmp-product-card__star{
    display:inline-block !important;

    color:#d8dee5 !important;

    font-size:13px !important;
    line-height:1 !important;

    text-shadow:none !important;
}

.dpmp-product-card__star.is-active{
    color:#f3a51f !important;

    text-shadow:
        0 1px 2px rgba(185,112,0,.10) !important;
}

.dpmp-product-card__stars .dpmp-product-card__rating-count{
    margin-left:4px !important;

    color:#7d8c9b !important;

    font-size:9px !important;
    font-weight:650 !important;
}

/* Hide old native rating block if theme duplicates one elsewhere */
.dpmp-product-card > .dpmp-product-card__rating,
.dpmp-product-card__body > .dpmp-product-card__rating{
    display:none !important;
}

/* Mobile */
@media screen and (max-width:767px){

    .dpmp-product-card__discount{
        top:7px !important;
        right:7px !important;

        min-width:38px !important;

        height:23px !important;
        min-height:23px !important;

        padding:0 7px !important;

        border-width:1.5px !important;

        font-size:8.5px !important;
    }

    .dpmp-product-card__meta-row{
        gap:5px !important;

        min-height:19px !important;

        margin-bottom:7px !important;
    }

    .dpmp-product-card__star{
        font-size:10px !important;
    }

    .dpmp-product-card__stars .dpmp-product-card__rating-count{
        display:none !important;
    }
}

/* Narrow mobile: save horizontal space but keep stars */
@media screen and (max-width:380px){

    .dpmp-product-card__meta-row{
        gap:3px !important;
    }

    .dpmp-product-card__star{
        font-size:9px !important;
    }

    .dpmp-product-card__stock{
        font-size:8px !important;
    }
}

/* ================================================================
   PRODUCT CARD V7 — INTERACTIVE RATING + COUNT + AVERAGE
   Uses MerchantPro native aggregated rating data.
   Clicking a star opens the native product reviews section.
   ================================================================ */

.dpmp-product-card__stars-wrap{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:6px !important;
    flex:0 0 auto !important;
    white-space:nowrap !important;
}

.dpmp-product-card__stars{
    display:flex !important;
    align-items:center !important;
    gap:1px !important;
}

.dpmp-product-card__star{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:15px !important;
    height:18px !important;

    color:#d8dee5 !important;

    font-size:14px !important;
    line-height:1 !important;

    text-decoration:none !important;

    transition:
        color .14s ease,
        transform .14s ease !important;

    cursor:pointer !important;
}

.dpmp-product-card__star.is-active{
    color:#f2a51f !important;
}

/* Hover preview: stars become gold from left to the hovered position */
@media(hover:hover) and (pointer:fine){
    .dpmp-product-card__stars:hover .dpmp-product-card__star{
        color:#f2a51f !important;
    }

    .dpmp-product-card__star:hover ~ .dpmp-product-card__star{
        color:#d8dee5 !important;
    }

    .dpmp-product-card__star:hover{
        transform:translateY(-1px) scale(1.08) !important;
    }
}

.dpmp-product-card__rating-summary{
    display:inline-flex !important;
    align-items:baseline !important;
    gap:3px !important;

    color:#64788c !important;

    font-size:9px !important;
    line-height:1 !important;

    text-decoration:none !important;
}

.dpmp-product-card__rating-summary strong{
    color:#173f70 !important;
    font-size:10px !important;
    font-weight:850 !important;
}

.dpmp-product-card__rating-summary span{
    color:#8090a0 !important;
    font-weight:650 !important;
}

.dpmp-product-card__rating-summary:hover{
    color:#174f88 !important;
}

@media screen and (max-width:767px){

    .dpmp-product-card__stars-wrap{
        gap:4px !important;
    }

    .dpmp-product-card__star{
        width:12px !important;
        height:15px !important;
        font-size:11px !important;
    }

    .dpmp-product-card__rating-summary{
        font-size:8px !important;
    }

    .dpmp-product-card__rating-summary strong{
        font-size:9px !important;
    }
}

@media screen and (max-width:380px){

    .dpmp-product-card__rating-summary{
        display:none !important;
    }

    .dpmp-product-card__star{
        width:11px !important;
        font-size:10px !important;
    }
}
/* ===================== CARD ACTIONS — WIDTH/HEIGHT LOCK (inceput) =====================
   Carduri produs: CTA principal uniform (latime + inaltime) si WhatsApp fix, in grid stabil.
   Doar CSS. Nu atinge markup, href, JS, logica, breakpointurile existente (mobil <=767 rămâne neatins).
   ==================================================================================== */
@media screen and (min-width:768px){

  .product--grid .product__actions.dpmp-product-card__actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 48px !important;
    align-items:stretch !important;
    gap:10px !important;
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  .product--grid .product__actions.dpmp-product-card__actions > .dpmp-product-card__button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;

    margin:0 !important;
    padding:0 14px !important;

    line-height:1 !important;
    white-space:nowrap !important;
    text-align:center !important;

    box-sizing:border-box !important;
  }

  .product--grid .product__actions.dpmp-product-card__actions > .dpmp-product-card__button > span{
    flex:0 0 auto !important;
  }

  .product--grid .product__actions.dpmp-product-card__actions > .dpmp-product-card__whatsapp{
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;

    height:48px !important;
    min-height:48px !important;
    max-height:48px !important;

    flex:0 0 48px !important;
    flex-shrink:0 !important;

    margin:0 !important;
    box-sizing:border-box !important;
  }
}

/* tablet 768-1100: coloana CTA e mai îngustă -> padding/gap mai mici, ca textul sa incapa pe un rand */
@media screen and (min-width:768px) and (max-width:1100px){
  .product--grid .product__actions.dpmp-product-card__actions > .dpmp-product-card__button{
    gap:5px !important;
    padding:0 8px !important;
    font-size:12.5px !important;
  }

  .product--grid .product__actions.dpmp-product-card__actions > .dpmp-product-card__button > span{
    font-size:15px !important;
    margin-left:2px !important;
  }
}
/* ===================== CARD ACTIONS — WIDTH/HEIGHT LOCK (sfarsit) ===================== */


/* ==== DP 2026-10-23: reguli de ordine preluate din grid_item (deduplicare CSS 12x) ==== */
.dpmp-product-card__body > .dpmp-product-card__name{
    order:1 !important;
}

.dpmp-product-card__body > .dpmp-product-card__price{
    order:2 !important;
}

.dpmp-product-card__body > .dpmp-product-card__meta-row{
    order:3 !important;
}

.dpmp-product-card__body > .dpmp-product-card__category{
    order:4 !important;
}

.dpmp-product-card__body > .dpmp-product-card__description{
    order:5 !important;
}

.dpmp-product-card__body > .dpmp-product-card__variants{
    order:6 !important;
}

.dpmp-product-card__body > .dpmp-product-card__line-options{
    order:7 !important;
}

.dpmp-product-card__body > .dpmp-product-card__actions{
    order:8 !important;
}