/* ==========================================================================
   Onlyprint product page v3 — calmer layout
   Template: templates/catalog/_partials/pdp-v3.tpl · JS: assets/js/pdp-v3.js
   Everything is scoped to .op-pdp3 so other pages are unaffected.
   The configurator's own CSS (ppc-v2.css) is not modified; we only hide
   a few extra boxes around it once pdp-v3.js has run (.op-pdp3--ready).
   ========================================================================== */
.op-pdp3{
  --op-green:#afcb31;
  --op-green-dark:#8ea826;
  --op-green-light:#f3f7e3;
  --op-ink:#253237;
  --op-text:#474a4a;
  --op-muted:#7b7f7f;
  --op-border:#e3e6e4;
  --op-bg-soft:#f7f8f6;
  --op-radius:8px;
  --op-header-h:0px;                        /* height of the fixed site header, set by pdp-v3.js */
  --op-sticky-top:calc(var(--op-header-h) + 24px);
}

/* main has overflow:hidden in the theme, which disables position:sticky.
   overflow:clip clips the same way without creating a scroll container. */
body#product main{overflow:clip}

/* ---------- Hero ---------- */
.op-pdp3-hero{margin-bottom:56px}
.op-pdp3-intro{margin-bottom:22px}
.op-pdp3 .op-pdp3-intro .namne_details{margin:0 0 6px -6px}
.op-pdp3 .product-rating--wrapper:empty{display:none}
/* Trusted Shops star widget renders at a fixed ~12px; scale it up as a whole.
   (Its script moves the element out of .product-rating--wrapper, so target it via the intro.) */
.op-pdp3 .op-pdp3-intro etrusted-product-review-list-widget-product-star-extension{display:block;zoom:1.5;margin:2px 0 2px;min-height:24px}
.op-pdp3 .op-pdp3-intro etrusted-product-review-list-widget-product-star-extension.is-link{cursor:pointer}
.op-pdp3-intro__text{max-width:560px}
.op-pdp3 .op-pdp3-intro .product-description-short{margin-top:8px;padding-bottom:22px}
/* Values the old layout got from its .tab-pane / .product-information wrappers */
.op-pdp3 .op-pdp3-intro__text,
.op-pdp3 .op-pdp3-intro__text p{font-size:16px;line-height:24px;color:#363a41}
.op-pdp3 .op-pdp3-prose li{font-size:16px;line-height:24px}
.op-pdp3-intro__text p{margin:0 0 6px}
.op-pdp3-intro__text p:last-child{margin-bottom:0}

/* Configurator card: drop the extras that made it busy */
.op-pdp3--ready .ppc-switch-banner,
.op-pdp3--ready #product-configuration--trustedbadge-wrapper,
.op-pdp3--ready .configure-area--infobox-wrapper{display:none !important}
.op-pdp3 .op-pdp3-hero__config .blockreassurance_product:empty{display:none}

/* Compact reassurance (inside the configurator card after JS) */
.op-pdp3-assure{list-style:none;margin:0;padding:14px 18px 16px;border-top:1px solid var(--op-border);font-size:13.5px;line-height:1.4}
.op-pdp3-assure li{display:flex;align-items:center;gap:10px;padding:5px 0;color:var(--op-text)}
.op-pdp3-assure svg{width:18px;height:18px;flex:0 0 18px;color:var(--op-ink)}
.op-pdp3-assure a{color:var(--op-green-dark);text-decoration:underline;text-underline-offset:2px}
.op-pdp3-assure a:hover{color:var(--op-ink)}
.op-pdp3-hero__config > .content_info > .product-information > .op-pdp3-assure{border:1px solid var(--op-border);border-radius:var(--op-radius);margin-top:12px}

/* ---------- Body: nav + sections ---------- */
.op-pdp3-body{display:grid;grid-template-columns:220px minmax(0,1fr);gap:56px;border-top:1px solid var(--op-border);padding-top:40px}
.op-pdp3-nav{position:sticky;top:var(--op-sticky-top);align-self:start}
.op-pdp3-nav ul{list-style:none;margin:0;padding:0;border:1px solid var(--op-border);border-radius:var(--op-radius);overflow:hidden}
.op-pdp3-nav li + li{border-top:1px solid var(--op-border)}
.op-pdp3-nav a{display:block;padding:11px 16px 11px 14px;border-left:3px solid transparent;font-size:14px;color:var(--op-text);text-decoration:none;transition:background .15s,border-color .15s}
.op-pdp3-nav a:hover{background:var(--op-bg-soft);color:var(--op-ink)}
.op-pdp3-nav a.is-active{border-left-color:var(--op-green);font-weight:700;color:var(--op-ink);background:#fff}

.op-pdp3-sec{padding-bottom:40px;margin-bottom:40px;border-bottom:1px solid var(--op-border);scroll-margin-top:var(--op-sticky-top)}
.op-pdp3-sec:last-child{border-bottom:0;margin-bottom:0}
.op-pdp3-sec[hidden]{display:none}

.op-pdp3 .op-pdp3-h2,
.op-pdp3 .op-pdp3-prose h2{
  /* Same as the theme's product description h2: Interstate, italic, uppercase, green */
  font-family:'Interstate',sans-serif;font-style:italic;font-weight:700;text-transform:uppercase;
  font-size:24px;line-height:1.2;color:var(--op-green);margin:0 0 15px
}
.op-pdp3 .op-pdp3-prose h3{margin-top:26px}
.op-pdp3 .op-pdp3-prose h3:empty{display:none}
.op-pdp3 .op-pdp3-prose{max-width:760px}
.op-pdp3 .op-pdp3-prose p:empty{display:none}
.op-pdp3 .op-pdp3-prose img{max-width:100%;height:auto;border-radius:var(--op-radius)}
.op-pdp3 .op-pdp3-extra .op-pdp3-prose{max-width:none}
.op-pdp3 .op-pdp3-prose table{width:100%;max-width:520px;border-collapse:collapse;font-size:14px;margin:0 0 14px}
.op-pdp3 .op-pdp3-prose th,.op-pdp3 .op-pdp3-prose td{padding:7px 12px;border-bottom:1px solid var(--op-border);text-align:left}
.op-pdp3 .op-pdp3-prose tr:nth-child(even) td{background:var(--op-bg-soft)}

/* Order steps */
.op-pdp3-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.op-pdp3-steps li{display:flex;gap:12px;align-items:flex-start}
.op-pdp3-steps__n{flex:0 0 28px;height:28px;border-radius:4px;background:var(--op-green);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.op-pdp3-steps strong{display:block;color:var(--op-ink);font-size:15px;margin:3px 0 4px}
.op-pdp3-steps p{margin:0;font-size:13.5px;line-height:1.5;color:var(--op-muted)}

/* Upload explanation box (moved from the configurator by JS) */
.op-pdp3 [data-op-files-slot] .op-conv{margin:0;max-width:760px}

/* Attachments */
.op-pdp3-attach{list-style:none;margin:0;padding:0}
.op-pdp3-attach li{padding:8px 0;border-bottom:1px solid var(--op-border)}
.op-pdp3-attach a{font-weight:700;color:var(--op-green-dark)}
.op-pdp3-attach span{color:var(--op-muted);font-size:13px;margin-left:6px}
.op-pdp3-attach p{margin:4px 0 0;font-size:13.5px}

/* Related products */
.op-pdp3-related{border-top:1px solid var(--op-border);margin-top:48px;padding-top:40px}
.op-pdp3-related__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px}
.op-pdp3-related__card{display:block;text-decoration:none;color:var(--op-green-dark);font-weight:700;font-size:14px}
.op-pdp3-related__card img{display:block;width:100%;height:auto;border-radius:var(--op-radius);background:var(--op-bg-soft);margin-bottom:10px}
.op-pdp3-related__card:hover span{text-decoration:underline}

/* Advice banner */
.op-pdp3-cta{display:flex;align-items:center;gap:16px;margin:48px 0 24px;padding:18px 22px;background:var(--op-green-light);border-radius:var(--op-radius)}
.op-pdp3-cta svg{width:30px;height:30px;flex:0 0 30px;color:var(--op-green-dark)}
.op-pdp3-cta div{flex:1;min-width:0;font-size:13.5px;line-height:1.45}
.op-pdp3-cta strong{display:block;color:var(--op-ink);font-size:15px}
.op-pdp3-cta__btn{flex:0 0 auto;padding:9px 22px;border:2px solid var(--op-green);border-radius:4px;background:#fff;color:var(--op-ink) !important;font-weight:700;font-size:14px;text-decoration:none !important}
.op-pdp3-cta__btn:hover{background:var(--op-green);color:#fff !important}

.op-pdp3-hidden{display:none !important}

/* Lightbox for content images (pdp-v3.js initLightbox) */
.op-pdp3 .op-lb-thumb{cursor:zoom-in;transition:opacity .15s}
.op-pdp3 .op-lb-thumb:hover{opacity:.85}
.op-pdp3 .op-lb-thumb:focus-visible{outline:2px solid var(--op-green);outline-offset:3px}
html.op-lb-open{overflow:hidden}
.op-lb{position:fixed;inset:0;z-index:100000;background:rgba(20,24,26,.88);display:flex;align-items:center;justify-content:center;padding:4vh 3vw}
.op-lb__stage{max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center}
.op-lb__stage img{max-width:94vw;max-height:90vh;width:auto;height:auto;background:#fff;border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.4);cursor:zoom-in}
.op-lb.is-full{align-items:flex-start;justify-content:flex-start;overflow:auto;padding:0}
.op-lb.is-full .op-lb__stage{max-width:none;max-height:none;display:block;margin:auto}
.op-lb.is-full .op-lb__stage img{max-width:none;max-height:none;border-radius:0;cursor:zoom-out}
.op-lb__close{position:fixed;top:14px;right:18px;z-index:2;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#253237;font-size:28px;line-height:42px;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.3)}
.op-lb__close:hover{background:#afcb31;color:#fff}

/* ---------- Responsive ---------- */
@media (max-width:991px){
  .op-pdp3-hero{margin-bottom:32px}
  .op-pdp3-hero__config{margin-top:24px}
  .op-pdp3-body{display:block;padding-top:24px}
  /* Sticky chip bar on phones; the site header is not sticky on mobile. */
  .op-pdp3-nav{position:sticky;top:var(--op-header-h);z-index:50;margin:0 -15px 28px;padding:10px 0;background:#fff;border-bottom:1px solid var(--op-border);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .op-pdp3-nav::-webkit-scrollbar{display:none}
  .op-pdp3-sec{scroll-margin-top:calc(var(--op-header-h) + 70px)}
  .op-pdp3-nav ul{display:flex;border:0;border-radius:0;padding:0 15px;gap:8px;width:max-content}
  .op-pdp3-nav li + li{border-top:0}
  .op-pdp3-nav a{border:1px solid var(--op-border);border-radius:999px;padding:7px 14px;white-space:nowrap;font-size:13px}
  .op-pdp3-nav a.is-active{border-color:var(--op-green);background:var(--op-green-light)}
  .op-pdp3-steps{grid-template-columns:1fr;gap:16px}
  .op-pdp3 .op-pdp3-intro .namne_details{font-size:30px}
}
@media (max-width:575px){
  .op-pdp3-cta{flex-wrap:wrap}
  .op-pdp3-cta__btn{width:100%;text-align:center}
}
