/* ÓPTICA FIJA — Ficha de producto (override single-product). Maqueta = web/tienda/producto.html. Aislado en .of-pdp */
:root{--of-red:#E02B20;--of-red-dark:#B81F17;--of-black:#000;--of-ink:#1A1A1A;--of-muted:#6B6B6B;--of-white:#fff;--of-surface:#F7F6F5;--of-border:#E6E4E1;--ok:#1F9D57;}
.of-pdp{font-family:'Albert Sans',Helvetica,Arial,sans-serif;color:var(--of-ink);background:#fff;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
.of-pdp *{box-sizing:border-box}
.of-pdp a{color:inherit;text-decoration:none}
.of-pdp img{max-width:100%;display:block}
.of-pdp button{font-family:inherit}
.of-pdp .wrap{max-width:1240px;margin:0 auto;padding:0 clamp(16px,4vw,40px)}
.of-pdp .sec-h{font-size:clamp(1.3rem,2.4vw,1.7rem);font-weight:800;margin:0 0 4px}
.of-pdp .sec-sub{color:var(--of-muted);margin:0 0 20px}

/* top: galería + info */
.of-pdp .pdp-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:42px;padding:30px 0 36px}
.of-pdp .pdp-gallery{position:sticky;top:18px;align-self:start}
.of-pdp .pdp-main{position:relative;aspect-ratio:1;background:var(--of-surface);border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.of-pdp .pdp-main img{max-width:86%;max-height:86%;object-fit:contain;mix-blend-mode:multiply;cursor:zoom-in}
.of-pdp .pdp-thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.of-pdp .pdp-thumbs .th{width:74px;height:74px;border:1px solid var(--of-border);border-radius:10px;background:var(--of-surface);cursor:pointer;padding:6px;display:flex;align-items:center;justify-content:center;transition:border-color .2s}
.of-pdp .pdp-thumbs .th img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.of-pdp .pdp-thumbs .th.on,.of-pdp .pdp-thumbs .th:hover{border-color:var(--of-red)}
.of-pdp .zoom-btn{position:absolute;bottom:12px;right:12px;width:42px;height:42px;border:0;border-radius:10px;background:#fff;color:var(--of-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 9px rgba(0,0,0,.16);transition:background .2s,color .2s;z-index:2}
.of-pdp .zoom-btn svg{width:20px;height:20px}
.of-pdp .zoom-btn:hover{background:var(--of-red);color:#fff}
/* sellos de oferta (Bonus Service / Plan Renove) sobre la imagen de la ficha */
.of-pdp .of-pdp-overlay{position:absolute;inset:0;z-index:5;pointer-events:none}
.of-pdp .of-pdp-overlay a{pointer-events:auto;display:block}
.of-pdp .of-pdp-overlay .overlay-left,.of-pdp .of-pdp-overlay .overlay-right{position:absolute;top:14px;width:108px;max-width:30%}
.of-pdp .of-pdp-overlay .overlay-left{left:14px}
.of-pdp .of-pdp-overlay .overlay-right{right:14px}
.of-pdp .of-pdp-overlay img{width:100%;max-width:100%;max-height:none;height:auto;object-fit:contain;mix-blend-mode:normal !important;cursor:pointer;filter:drop-shadow(0 2px 6px rgba(0,0,0,.18))}

.of-pdp .pdp-brand{font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--of-red);margin-bottom:8px}
.of-pdp .pdp-title{font-size:clamp(1.5rem,2.8vw,2.1rem);font-weight:800;line-height:1.15;margin:0 0 16px}
.of-pdp .pdp-price{font-size:2rem;font-weight:800;margin:0 0 12px;color:var(--of-ink)}
.of-pdp .pdp-price .woocommerce-Price-amount{font-weight:800}
.of-pdp .pdp-price del{color:var(--of-muted);font-weight:600;font-size:1.1rem;margin-right:10px;opacity:1}
.of-pdp .pdp-price ins{text-decoration:none;color:var(--of-red)}
.of-pdp .pdp-price .iva{font-size:.9rem;font-weight:600;color:var(--of-muted);margin-left:8px}
.of-pdp .pdp-avail{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.of-pdp .pdp-stock{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:.95rem;padding:7px 13px;border-radius:999px}
.of-pdp .pdp-stock.in{background:rgba(31,157,87,.1);color:var(--ok)}
.of-pdp .pdp-stock.out{background:var(--of-surface);color:var(--of-muted)}
.of-pdp .pdp-stock .dot{width:8px;height:8px;border-radius:50%;background:currentColor}
.of-pdp .pdp-delivery{display:inline-flex;align-items:center;gap:8px;color:var(--of-ink);font-weight:600;font-size:.92rem}
.of-pdp .pdp-delivery svg{width:19px;height:19px;color:var(--of-red)}
.of-pdp .pdp-delivery b{color:var(--of-red)}
/* badges de confianza/oferta (garantía, cashback, regalo, recogida segura…) */
.of-pdp .pdp-badges{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}
.of-pdp .pdp-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--of-border);background:var(--of-surface);border-radius:10px;padding:8px 13px;font-size:.86rem;font-weight:600;color:var(--of-ink);line-height:1.2}
.of-pdp .pdp-badge svg{width:18px;height:18px;flex:0 0 18px;color:var(--of-red)}
/* tira de confianza universal (envío, recogida, envío seguro, garantía) */
.of-pdp .pdp-trust{display:flex;flex-wrap:wrap;gap:12px 24px;margin:18px 0 4px;padding:16px 0 0;border-top:1px solid var(--of-border)}
.of-pdp .pdp-trust-item{display:inline-flex;align-items:center;gap:9px;font-size:.88rem;font-weight:600;color:var(--of-ink)}
.of-pdp .pdp-trust-item svg{width:20px;height:20px;flex:0 0 20px;color:var(--of-red)}
.of-pdp .pdp-short{color:#333;line-height:1.65;margin:0 0 22px;border-top:1px solid var(--of-border);padding-top:18px}
.of-pdp .pdp-short p{margin:0 0 10px}
.of-pdp .pdp-meta{display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--of-muted);font-size:.9rem;margin:0 0 22px}
.of-pdp .pdp-meta b{color:var(--of-ink);font-weight:700}
.of-pdp .pdp-meta a{color:var(--of-red);font-weight:600}

/* compra (formulario WooCommerce restyleado) */
.of-pdp .pdp-buy{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.of-pdp form.cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
/* ocultar inyecciones de plugins en la zona de compra (calculadora Cetelem + stock duplicado) */
.of-pdp .pdp-buy .stock,.of-pdp #eCalculadoraCetelemDiv,.of-pdp form.cart .e-calculadora-cetelem,.of-pdp form.cart>.woocommerce-variation-price{display:none !important}
.of-pdp form.cart .quantity{order:1}.of-pdp form.cart .single_add_to_cart_button{order:2}
.of-pdp .qty,.of-pdp form.cart .quantity{display:inline-flex;align-items:center;border:1px solid var(--of-border);border-radius:10px;overflow:hidden}
.of-pdp .qty button,.of-pdp .qstep{width:44px;height:50px;border:0;background:#fff;font-size:1.3rem;color:var(--of-ink);cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center}
.of-pdp .qty button:hover,.of-pdp .qstep:hover{color:var(--of-red)}
.of-pdp .qty input,.of-pdp form.cart .quantity input.qty{width:50px;height:50px;border:0;text-align:center;font:inherit;font-weight:700;outline:none;-moz-appearance:textfield;background:#fff}
.of-pdp .qty input::-webkit-outer-spin-button,.of-pdp .qty input::-webkit-inner-spin-button,.of-pdp form.cart .quantity input.qty::-webkit-outer-spin-button,.of-pdp form.cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.of-pdp .addcart,.of-pdp .single_add_to_cart_button{flex:1;min-width:200px;height:50px;border:2px solid var(--of-red) !important;background:var(--of-red) !important;color:#fff !important;border-radius:10px !important;font-weight:700;font-size:1.0625rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;transition:background .2s,color .2s;text-decoration:none;text-transform:none;letter-spacing:0;box-shadow:none !important}
.of-pdp .addcart svg,.of-pdp .single_add_to_cart_button svg{width:20px;height:20px}
.of-pdp .addcart:hover,.of-pdp .single_add_to_cart_button:hover{background:#fff !important;color:var(--of-red) !important}

/* contenido enriquecido de la descripción */
.of-pdp #tab-desc{max-width:820px}
.of-pdp #tab-desc h2,.of-pdp #tab-desc h3{font-weight:800;font-size:1.18rem;line-height:1.25;margin:26px 0 11px;color:var(--of-ink)}
.of-pdp #tab-desc h2:first-child,.of-pdp #tab-desc h3:first-child{margin-top:0}
.of-pdp #tab-desc p{margin:0 0 14px}
.of-pdp #tab-desc strong{color:var(--of-ink);font-weight:700}
.of-pdp #tab-desc ul{margin:0 0 18px;padding:0;list-style:none}
.of-pdp #tab-desc ul li{position:relative;padding-left:26px;margin-bottom:9px}
.of-pdp #tab-desc ul li::before{content:"";position:absolute;left:5px;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--of-red)}
.of-pdp #tab-desc .pdp-lead{font-size:1.12rem;color:var(--of-ink);line-height:1.6;font-weight:500;border-left:0;margin-bottom:20px}
.of-pdp #tab-desc .pdp-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0;border:1px solid var(--of-border);border-radius:12px;overflow:hidden;margin:6px 0 20px}
.of-pdp #tab-desc .pdp-specs div{display:flex;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid var(--of-border);font-size:.95rem}
.of-pdp #tab-desc .pdp-specs div:nth-last-child(-n+1){border-bottom:0}
.of-pdp #tab-desc .pdp-specs dt,.of-pdp #tab-desc .pdp-specs b{color:var(--of-muted);font-weight:600}
.of-pdp #tab-desc .pdp-specs dd,.of-pdp #tab-desc .pdp-specs span{margin:0;font-weight:700;text-align:right;color:var(--of-ink)}
.of-pdp .addcart.added{animation:pdppop .4s ease}
@keyframes pdppop{0%{transform:scale(1)}30%{transform:scale(.96)}60%{transform:scale(1.03)}100%{transform:scale(1)}}
.of-pdp .pdp-fav{width:50px;height:50px;flex:0 0 50px;border:1px solid var(--of-border);border-radius:10px;background:#fff;color:var(--of-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .2s,color .2s}
.of-pdp .pdp-fav svg{width:21px;height:21px;transition:fill .2s,stroke .2s}
.of-pdp .pdp-fav:hover{border-color:var(--of-red)}.of-pdp .pdp-fav:hover svg{stroke:var(--of-red)}
.of-pdp .pdp-fav.on svg{fill:var(--of-red);stroke:var(--of-red)}.of-pdp .pdp-fav.on{border-color:var(--of-red)}

/* Cetelem */
.of-pdp .cetelem{margin-top:22px;padding:18px 20px;border:1px solid var(--of-border);border-radius:12px;background:var(--of-surface)}
.of-pdp .cet-top{font-weight:700;margin-bottom:10px}
.of-pdp .cet-logo{font-weight:800;color:#0a7d3b}
.of-pdp .cet-calc{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px;font-size:1.02rem}
.of-pdp .cet-calc strong{color:var(--ok);font-size:1.45rem}
.of-pdp .cet-legal{font-size:.78rem;color:var(--of-muted);line-height:1.5}
.of-pdp .cet-dd{position:relative;display:inline-block}
.of-pdp .cet-dd-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--of-border);border-radius:8px;padding:6px 11px;font:inherit;font-weight:800;background:#fff;cursor:pointer;color:var(--of-ink)}
.of-pdp .cet-dd-btn svg{width:13px;height:13px;color:var(--of-muted);transition:transform .2s}
.of-pdp .cet-dd.open .cet-dd-btn{border-color:var(--of-red)}
.of-pdp .cet-dd.open .cet-dd-btn svg{transform:rotate(180deg)}
.of-pdp .cet-dd-menu{position:absolute;left:0;top:calc(100% + 5px);min-width:74px;background:#fff;border:1px solid var(--of-border);border-radius:9px;box-shadow:0 12px 28px rgba(0,0,0,.14);padding:5px;list-style:none;margin:0;z-index:30;opacity:0;visibility:hidden;transform:translateY(-5px);transition:opacity .15s,transform .15s,visibility 0s linear .15s}
.of-pdp .cet-dd.open .cet-dd-menu{opacity:1;visibility:visible;transform:none;transition:opacity .15s,transform .15s}
.of-pdp .cet-dd-menu li{padding:8px 12px;border-radius:6px;cursor:pointer;font-weight:700}
.of-pdp .cet-dd-menu li:hover{background:var(--of-surface);color:var(--of-red)}
.of-pdp .cet-dd-menu li.sel{background:var(--of-red);color:#fff}

/* tabs */
.of-pdp .pdp-tabs{border-top:1px solid var(--of-border);padding-top:8px}
.of-pdp .tabnav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.of-pdp .tabnav button{border:0;background:none;padding:14px 4px;margin-right:22px;font:inherit;font-weight:700;font-size:1.05rem;color:var(--of-muted);cursor:pointer;position:relative}
.of-pdp .tabnav button.on{color:var(--of-ink)}
.of-pdp .tabnav button.on::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--of-red);border-radius:3px}
.of-pdp .tabpanel{display:none;max-width:880px;line-height:1.7;color:#333;padding-bottom:10px}
.of-pdp .tabpanel.on{display:block;animation:pdptabIn .3s ease}
@keyframes pdptabIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.of-pdp .tabpanel p{margin:0 0 14px}
.of-pdp .spec-title{font-weight:800;font-size:1.3rem;margin:4px 0 20px;color:var(--of-ink)}
.of-pdp .pdp-faq{display:grid;gap:18px;max-width:820px}
.of-pdp .pdp-faq-item h4{margin:0 0 6px;font-weight:700;font-size:1.05rem;color:var(--of-ink)}
.of-pdp .pdp-faq-item p{margin:0;color:#555;line-height:1.65}
.of-pdp .spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:820px}
.of-pdp .srow{background:var(--of-surface);border-radius:14px;padding:16px 20px}
.of-pdp .srow .k{display:block;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--of-red);margin-bottom:7px}
.of-pdp .srow .v{display:block;font-size:1.06rem;font-weight:700;color:var(--of-ink);line-height:1.4}
@media(max-width:680px){.of-pdp .spec-grid{grid-template-columns:1fr}}
.of-pdp .rev-note{background:var(--of-surface);border-radius:12px;padding:22px;color:var(--of-muted)}
.of-pdp #tab-rev .comment-form input,.of-pdp #tab-rev .comment-form textarea{border:1px solid var(--of-border);border-radius:8px;padding:10px;font:inherit;width:100%;max-width:520px}
.of-pdp #tab-rev .comment-form input[type=submit],.of-pdp #tab-rev .submit{width:auto;background:var(--of-red);color:#fff;border:0;border-radius:8px;padding:11px 22px;font-weight:700;cursor:pointer}

/* comparador */
.of-pdp .comparador{margin:46px 0;padding:26px;background:var(--of-surface);border-radius:16px}
.of-pdp .cmp-cands{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 14px;scrollbar-width:thin;scrollbar-color:#D9C3C0 transparent}
.of-pdp .cmp-cands::-webkit-scrollbar{height:9px}
.of-pdp .cmp-cands::-webkit-scrollbar-track{background:#EEE5E4;border-radius:9px}
.of-pdp .cmp-cands::-webkit-scrollbar-thumb{background:#DCC4C1;border-radius:9px;border:2px solid var(--of-surface)}
.of-pdp .cmp-cands::-webkit-scrollbar-thumb:hover{background:var(--of-red)}
.of-pdp .cmp-cand{flex:0 0 150px;position:relative;background:#fff;border:1px solid var(--of-border);border-radius:12px;padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:border-color .2s,box-shadow .2s}
.of-pdp .cmp-cand:hover{border-color:var(--of-red)}
.of-pdp .cmp-cand input{position:absolute;opacity:0;pointer-events:none}
.of-pdp .cmp-box{position:absolute;top:10px;right:10px;width:22px;height:22px;border:2px solid var(--of-border);border-radius:6px;background:#fff;z-index:2;transition:background .2s,border-color .2s}
.of-pdp .cmp-box::after{content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform .15s}
.of-pdp .cmp-cand input:checked~.cmp-box{background:var(--of-red);border-color:var(--of-red)}
.of-pdp .cmp-cand input:checked~.cmp-box::after{transform:rotate(45deg) scale(1)}
.of-pdp .cmp-cand:has(input:checked){border-color:var(--of-red);box-shadow:0 0 0 1px var(--of-red)}
.of-pdp .cmp-imw{height:90px;display:flex;align-items:center;justify-content:center;background:var(--of-surface);border-radius:8px}
.of-pdp .cmp-imw img{max-width:80%;max-height:80%;object-fit:contain;mix-blend-mode:multiply}
.of-pdp .cmp-nm{font-size:.82rem;font-weight:500;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.1em}
.of-pdp .cmp-pr{font-weight:800}
.of-pdp .cmp-result{margin-top:22px}
.of-pdp .cmp-result>*{animation:pdpcmpIn .35s ease}
@keyframes pdpcmpIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.of-pdp .cmp-empty{color:var(--of-muted);background:#fff;border:1px dashed var(--of-border);border-radius:12px;padding:26px;text-align:center}
.of-pdp .cmp-tablewrap{overflow-x:auto}
.of-pdp table.cmp{border-collapse:collapse;width:100%;min-width:520px;background:#fff;border-radius:12px;overflow:hidden}
.of-pdp table.cmp th,.of-pdp table.cmp td{border:1px solid var(--of-border);padding:14px;text-align:left;vertical-align:top}
.of-pdp table.cmp thead th{background:#fff;width:auto;min-width:170px}
.of-pdp table.cmp tbody th{background:var(--of-surface);font-weight:700;width:150px;white-space:nowrap}
.of-pdp .cmp-col-img{height:90px;display:flex;align-items:center;justify-content:center}
.of-pdp .cmp-col-img img{max-height:90px;max-width:120px;object-fit:contain;mix-blend-mode:multiply}
.of-pdp .cmp-col-nm{font-weight:700;font-size:.92rem;margin-top:8px;line-height:1.3}
.of-pdp .cmp-feat-tag{display:inline-block;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--of-red);margin-bottom:6px}
.of-pdp .cmp-x{float:right;border:0;background:none;color:var(--of-muted);font-size:1.2rem;cursor:pointer;line-height:1}
.of-pdp .cmp-x:hover{color:var(--of-red)}
.of-pdp .av-in{color:var(--ok);font-weight:700}.of-pdp .av-out{color:var(--of-muted);font-weight:700}

/* relacionados */
.of-pdp .relacionados{margin:46px 0 60px}
.of-pdp .relgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.of-pdp .card{position:relative;min-width:0;background:transparent;border-radius:12px;padding:0;display:flex;flex-direction:column;transition:background .28s ease}
.of-pdp .card:hover{background:var(--of-surface)}
.of-pdp .card-link{display:block;color:inherit}
.of-pdp .card .imgwrap{position:relative;aspect-ratio:1;background:var(--of-surface);border-radius:12px;overflow:hidden}
.of-pdp .card .imgwrap>img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:82%;max-height:82%;width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply}
.of-pdp .card .fav{position:absolute;top:14px;right:0;width:40px;height:42px;border:0;padding:0;border-radius:10px 0 0 10px;background:#fff;color:var(--of-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:-2px 3px 9px rgba(0,0,0,.15);z-index:3}
.of-pdp .card .fav svg{width:19px;height:19px;transition:stroke .22s ease,fill .22s ease}
.of-pdp .card .fav:hover svg{stroke:var(--of-red)}.of-pdp .card .fav.on svg{fill:var(--of-red);stroke:var(--of-red)}
.of-pdp .card .info{padding:14px 4px 6px}
.of-pdp .card .nm{font-size:.92rem;line-height:1.35;font-weight:500;color:var(--of-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.55em;margin-bottom:8px;transition:color .28s ease}
.of-pdp .card:hover .nm{color:var(--of-red)}
.of-pdp .card-specs{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:4px}
.of-pdp .card-specs .cspec{display:flex;align-items:baseline;gap:6px;font-size:.78rem;line-height:1.3;min-width:0}
.of-pdp .card-specs .sk{color:var(--of-muted);flex:0 0 auto}
.of-pdp .card-specs .sk::after{content:":"}
.of-pdp .card-specs .sv{color:var(--of-ink);font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.of-pdp .card .pr{font-weight:800;font-size:1.2rem;line-height:1.1}
.of-pdp .card .pr del{color:var(--of-muted);font-weight:600;font-size:.8rem;margin-right:6px;opacity:1}
.of-pdp .card .pr ins{text-decoration:none;color:var(--of-red)}
.of-pdp .card .brand{margin-top:5px;font-size:.72rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--of-red)}
.of-pdp .card .foot{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:10px}
.of-pdp .card .cart{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:10px;background:#fff;color:var(--of-ink);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 2px 9px rgba(0,0,0,.15);transition:background .24s ease,color .24s ease;font-size:0}
.of-pdp .card .cart svg{width:19px;height:19px}.of-pdp .card .cart:hover{background:var(--of-red);color:#fff}
.of-pdp .card .cart.added{background:var(--of-red);color:#fff;animation:pdppop .42s ease}
.of-pdp .badge-oos{position:absolute;top:10px;left:10px;background:#5b5b5b;color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:5px 9px;border-radius:7px;z-index:2}
.of-pdp .card.oos .imgwrap>img{opacity:.42;filter:grayscale(.3)}
.of-pdp .card.oos .nm,.of-pdp .card.oos .pr{color:var(--of-muted)}.of-pdp .card.oos .brand{color:#C39B98}.of-pdp .card.oos .cart{display:none}

/* lightbox */
.of-pdp-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.86);z-index:100;display:none;align-items:center;justify-content:center;padding:28px;opacity:0;transition:opacity .25s ease}
.of-pdp-lightbox.open{display:flex;opacity:1}
.of-pdp-lightbox img{max-width:92%;max-height:92%;object-fit:contain;border-radius:8px;background:#fff;animation:pdplbIn .3s ease}
@keyframes pdplbIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.of-pdp-lightbox .lb-close{position:absolute;top:18px;right:22px;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:1.9rem;cursor:pointer;line-height:1}
.of-pdp-lightbox .lb-close:hover{background:rgba(255,255,255,.3)}

@media(max-width:900px){.of-pdp .pdp-top{grid-template-columns:1fr;gap:24px}.of-pdp .pdp-gallery{position:static}.of-pdp .relgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.of-pdp .relgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.of-pdp .pdp-buy .addcart,.of-pdp .single_add_to_cart_button{order:3;flex:1 1 100%}.of-pdp .pdp-price{font-size:1.7rem}.of-pdp .comparador{padding:18px}.of-pdp table.cmp tbody th{width:120px}}

/* ===== Aviso "Notifícame cuando haya existencias" (back-in-stock notifier) — estilado al rediseño ===== */
.of-pdp .cwginstock-subscribe-form{margin:14px 0 0;max-width:480px}
.of-pdp .cwginstock-panel-primary,.of-pdp .panel.cwginstock-panel-primary{border:1px solid var(--of-border) !important;border-radius:14px !important;background:#fff !important;box-shadow:none !important;overflow:hidden;margin:0}
.of-pdp .cwginstock-panel-heading,.of-pdp .panel-heading.cwginstock-panel-heading{background:var(--of-surface) !important;color:var(--of-ink) !important;border:0 !important;border-bottom:1px solid var(--of-border) !important;padding:13px 16px !important;font-weight:800;font-size:1rem;border-radius:0 !important}
.of-pdp .cwginstock-panel-heading h4,.of-pdp .cwginstock-panel-heading .panel-title,.of-pdp .cwginstock-panel-heading *{font-size:1.02rem;font-weight:800;color:var(--of-ink) !important;margin:0;text-shadow:none}
.of-pdp .pdp-buy{align-items:flex-start}
.of-pdp .pdp-buy .cwginstock-subscribe-form{margin-top:0}
.of-pdp .cwginstock-panel-body,.of-pdp .panel-body.cwginstock-panel-body{padding:16px !important;background:#fff !important}
.of-pdp .cwgstock_name,.of-pdp .cwgstock_email{width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid var(--of-border);border-radius:10px;font-size:.95rem;margin:0 0 10px;background:#fff;color:var(--of-ink)}
.of-pdp .cwgstock_name:focus,.of-pdp .cwgstock_email:focus{outline:none;border-color:var(--of-red);box-shadow:0 0 0 3px rgba(224,43,32,.12)}
.of-pdp .cwgstock_button{display:block;width:100%;background:var(--of-red) !important;color:#fff !important;border:0 !important;border-radius:10px !important;padding:12px 18px !important;font-weight:800;font-size:.98rem;cursor:pointer;transition:background .15s;text-shadow:none;box-shadow:none}
.of-pdp .cwgstock_button:hover{background:var(--of-ink) !important}
.of-pdp .cwg_iagree_checkbox{font-size:.84rem;color:var(--of-muted);margin:2px 0 12px;display:flex;gap:8px;align-items:flex-start;line-height:1.4}
.of-pdp .cwg_iagree_checkbox a{color:var(--of-red);text-decoration:underline;text-underline-offset:2px}
.of-pdp .cwginstock_output{font-size:.9rem;margin-top:8px}
