/* EcoSolaris — „Produse alese pentru tine” sub coș (mu-plugin 124), pentru toți. v1.0 — 16.10.2026 */
.ecosp-rec{margin:26px 0 10px;clear:both}
.ecosp-rec h2{font-size:21px;font-weight:600;color:#1f2937;text-transform:none;letter-spacing:0;margin:0 0 12px}
.ecosp-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.ecosp-pc{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ecosp-pc > a:first-child{display:flex;flex-direction:column;gap:8px;color:#1f2937!important;text-decoration:none!important}
.ecosp-pc img{width:100%;aspect-ratio:1;object-fit:contain}
.ecosp-pn{font-size:13px;line-height:1.35;height:3.9em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.ecosp-pc:hover .ecosp-pn{color:#1a73e8}
.ecosp-pp{font-size:16px;font-weight:700;color:#1f2937;margin-top:auto}.ecosp-pp del{font-size:12px;color:#9ca3af;font-weight:400;display:block}.ecosp-pp ins{text-decoration:none;color:#e0531a}
.ecosp-add{display:block;text-align:center;background:#1a73e8;color:#fff!important;border-radius:6px;padding:8px;font-size:13px;font-weight:600;text-decoration:none!important}
.ecosp-add:hover{background:#1557b0}.ecosp-add.added{background:#16a34a}
@media (max-width:1024px){.ecosp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:768px){.ecosp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v1.1 — bandă orizontală ca la eMAG (până la 10 produse) */
.ecosp-grid{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/5);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.ecosp-pc{scroll-snap-align:start}
@media (max-width:1024px){.ecosp-grid{grid-auto-columns:calc((100% - 24px)/3)}}
@media (max-width:768px){.ecosp-grid{grid-auto-columns:46%}}
/* v1.2 — 5 rânduri × 5 produse (grilă, nu bandă) */
.ecosp-grid{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible;scroll-snap-type:none;padding-bottom:0}
@media (max-width:1024px){.ecosp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:768px){.ecosp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* v1.3 — eticheta de rate + voucher (ca la eMAG) */
.ecosp-pc{position:relative}
.ecosp-vch{position:absolute;top:10px;left:10px;z-index:2;background:#e0531a;color:#fff;font-size:11px;font-weight:700;border-radius:4px;padding:3px 7px}
.ecosp-rate{display:inline-flex;align-self:flex-start;align-items:center;gap:4px;background:#eef2ff;color:#3730a3;font-size:11.5px;font-weight:600;border-radius:4px;padding:2px 7px}
.ecosp-rate::before{content:"";width:10px;height:10px;border-radius:2px;background:#6366f1}
.ecosp-rate{margin-top:auto}.ecosp-pp{margin-top:2px}
/* v1.4 — inimioara în dreapta-sus pe „Produse alese pentru tine”: se înroșește + efect de „explozie” la apăsare */
.ecosp-pc .ecosp-heart{position:absolute;top:8px;right:8px;z-index:3}
.ecosp-pc .ecosp-heart a{width:34px!important;height:34px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:transform .15s}
.ecosp-pc .ecosp-heart a:hover{transform:scale(1.08)}
.ecosp-pc .ecosp-heart a.added::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48' stroke='%23e11d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E")!important}
.ecosp-pc .ecosp-heart a.added{background:#fff1f2!important}
.ecosp-pc .ecosp-heart a.eco-pop::after{border-color:#e11d48!important;box-shadow:0 0 0 0 rgba(225,29,72,.5),
  14px -14px 0 -10px #e11d48,-14px -14px 0 -10px #fb7185,14px 14px 0 -10px #fb7185,-14px 14px 0 -10px #e11d48,
  0 -19px 0 -10px #f43f5e,0 19px 0 -10px #f43f5e,19px 0 0 -10px #e11d48,-19px 0 0 -10px #fb7185;animation:ecospBurst .6s ease-out forwards}
@keyframes ecospBurst{0%{transform:scale(.6);opacity:1}70%{opacity:1}100%{transform:scale(1.7);opacity:0}}
.ecosp-pc .ecosp-vch{left:10px;right:auto}
@media (prefers-reduced-motion:reduce){.ecosp-pc .ecosp-heart a.eco-pop::after{animation:none}}
/* v1.5 — inimioara în dreapta-sus pe produsele din coș, pentru TOȚI (și tabelul clasic al adminului) */
.woocommerce-cart-form tr.cart_item{position:relative}
.woocommerce-cart-form tr.cart_item .ecosp-fav{position:absolute!important;top:8px;right:8px;z-index:3;display:block}
.woocommerce-cart-form tr.cart_item .ecosp-fav a{width:32px!important;height:32px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 4px rgba(0,0,0,.15)}
.woocommerce-cart-form tr.cart_item .ecosp-fav a.added{background:#fff1f2!important}
.woocommerce-cart-form tr.cart_item .ecosp-fav a.added::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48' stroke='%23e11d48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 21l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E")!important}
.woocommerce-cart-form tr.cart_item .ecosp-fav a.eco-pop::after{border-color:#e11d48!important;box-shadow:14px -14px 0 -10px #e11d48,-14px -14px 0 -10px #fb7185,14px 14px 0 -10px #fb7185,-14px 14px 0 -10px #e11d48,0 -19px 0 -10px #f43f5e,0 19px 0 -10px #f43f5e,19px 0 0 -10px #e11d48,-19px 0 0 -10px #fb7185;animation:ecospBurst .6s ease-out forwards}
.woocommerce-cart-form tr.cart_item td.product-subtotal{padding-right:48px!important}
/* v1.6 — dreapta rândului: inimioara, prețul, cantitatea „− 1 +” (ca la eMAG), pentru toți */
.woocommerce-cart-form tr.ecor-on td.product-quantity,.woocommerce-cart-form thead th.ecor-hide{display:none!important}
.woocommerce-cart-form tr.ecor-on td.product-subtotal{vertical-align:top!important;padding-top:48px!important;text-align:right!important;white-space:nowrap}
.woocommerce-cart-form tr.ecor-on td.product-subtotal .ecor-qty{display:flex;justify-content:flex-end;margin-top:10px}
.woocommerce-cart-form tr.ecor-on td.product-subtotal .ecor-qty .quantity{margin:0!important}
.eco-cos-emag tr.ecor-on td.product-subtotal{padding-top:46px!important}
/* v1.7 — portofelul (imaginea lui Marin) în fața textului de rate */
.ecosp-rate{gap:5px;padding:2px 8px 2px 4px}
.ecosp-rate::before{width:18px!important;height:18px!important;border-radius:0!important;background:url("portofel.png") center/contain no-repeat!important}
/* v1.8 — portofelul la mărime vizibilă */
.ecosp-rate{gap:7px;padding:3px 10px 3px 4px;font-size:12.5px;border-radius:6px;min-height:34px}
.ecosp-rate::before{width:28px!important;height:28px!important;flex:0 0 28px}
/* v1.9 — voucherul deasupra prețului, cu biletul portocaliu (imaginea lui Marin) */
.ecosp-pc .ecosp-vch{position:static!important;display:inline-flex;align-self:flex-start;align-items:center;gap:7px;margin-top:5px;background:#fff7ed;color:#c2410c;border:1px solid #fed7aa;font-size:12.5px;font-weight:700;border-radius:6px;padding:3px 10px 3px 4px;min-height:34px}
.ecosp-pc .ecosp-vch::before{content:"";width:30px;height:28px;flex:0 0 30px;background:url("voucher.png") center/contain no-repeat}
/* v2.0 — Discount (se aplică acum) roșu · Voucher (următoarea comandă) portocaliu; pot fi amândouă pe un produs */
.ecosp-pc .ecosp-vch.ecosp-disc{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.ecosp-pc .ecosp-vch + .ecosp-vch{margin-top:4px}
.ecosp-pc .ecosp-vch{white-space:normal;line-height:1.2}
/* v2.1 — prețul și butonul pe ACEEAȘI linie, ca la eMAG: preț stânga, buton albastru cu coș dreapta */
.ecosp-buy{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:6px;flex-wrap:wrap}
.ecosp-buy .ecosp-pp{margin:0!important;min-width:0;line-height:1.15}
.ecosp-buy .ecosp-add{flex:0 0 auto;width:44px;height:40px;padding:0!important;display:flex!important;align-items:center;justify-content:center;border-radius:6px;position:relative}
.ecosp-buy .ecosp-add span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.ecosp-buy .ecosp-add::before{content:"";width:22px;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.5L22 7H6.2'/%3E%3Cpath d='M14 9v5M11.5 11.5h5'/%3E%3C/svg%3E") center/contain no-repeat}
.ecosp-buy .ecosp-add.loading::before{opacity:.4}
.ecosp-buy .ecosp-add.added::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")}
.ecosp-buy .added_to_cart{flex:1 0 100%;font-size:12px;text-align:right}
/* v2.2 — prețul puțin mai mare */
.ecosp-buy .ecosp-pp{font-size:18px!important}
.ecosp-buy .ecosp-pp .amount,.ecosp-buy .ecosp-pp ins .amount{font-size:18px!important;font-weight:800}
.ecosp-buy .ecosp-pp del .amount{font-size:12px!important;font-weight:400}
/* v2.3 — butonul de coș mai alungit, cu bandă portocalie în stânga (ca „Continuă” de la eMAG) */
.ecosp-buy .ecosp-add{width:66px!important;overflow:hidden;padding-left:16px!important;transition:background .15s}
.ecosp-buy .ecosp-add::after{content:"";position:absolute;left:0;top:0;bottom:0;width:18px;background:#e0531a;clip-path:polygon(0 0,62% 0,100% 50%,62% 100%,0 100%);transition:width .2s}
.ecosp-buy .ecosp-add:hover::after{width:22px}
.ecosp-buy .ecosp-add.added::after{background:#15803d}
/* v2.4 — fără pastila de rate (sub 300 lei) prețul rămâne jos, aliniat */
.ecosp-pc .ecosp-buy{margin-top:auto}
