/* HoR Product Pages — Detective product skin v0.7.3 (VISUAL ONLY) */
body.hor-pp-detective-product .woocommerce-breadcrumb { display:none !important; }
body.hor-pp-detective-product .site-main,
body.hor-pp-detective-product main,
body.hor-pp-detective-product .content-area { overflow:visible; }

.hor-det{
  --det-ink:#201b17;
  --det-muted:#65503d;
  --det-paper:#f6ead4;
  --det-paper-2:#ead7b9;
  --det-red:#b92d25;
  --det-red-dark:#8d211c;
  --det-yellow:#f0ce59;
  --det-cork:#6d472e;
  --det-cork-dark:#4d301f;
  --det-line:#b18e65;
  --det-shadow:0 14px 34px rgba(42,24,12,.18);
  width:min(1180px,calc(100% - 28px));
  max-width:1180px;
  margin:0 auto;
  color:var(--det-ink);
}
.hor-det *, .hor-det *::before, .hor-det *::after{box-sizing:border-box}
.hor-det__hero,.hor-det__below{position:relative}

/* HERO — bliżej pierwszego, przejrzystego projektu */
.hor-det__hero{
  display:grid;
  grid-template-columns:minmax(340px,.9fr) minmax(420px,1.1fr);
  gap:18px;
  padding:18px;
  border-radius:18px 18px 0 0;
  background:
    radial-gradient(circle at 18% 20%,rgba(255,255,255,.06) 0 2px,transparent 3px),
    linear-gradient(135deg,#805737,#65422a 62%,#593925);
  background-size:30px 30px,auto;
  box-shadow:var(--det-shadow);
  overflow:hidden;
}
.hor-det__hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(0,0,0,.05),transparent 18%,transparent 82%,rgba(0,0,0,.05));
}
.hor-det__case-visual{
  position:relative;z-index:1;min-height:505px;padding:40px 30px 24px;
  border-radius:12px;
  background:linear-gradient(rgba(255,255,255,.10),rgba(255,255,255,.03)),#b99a70;
  box-shadow:0 14px 28px rgba(24,12,5,.24),inset 0 0 0 1px rgba(57,34,18,.18);
  transform:rotate(-.25deg);
}
.hor-det__case-visual::before,.hor-det__case-visual::after{
  content:"";position:absolute;width:70px;height:48px;background:rgba(243,224,187,.78);box-shadow:0 3px 10px rgba(0,0,0,.12)
}
.hor-det__case-visual::before{left:-12px;top:74px;transform:rotate(-12deg)}
.hor-det__case-visual::after{right:-17px;bottom:64px;transform:rotate(10deg)}
.hor-det__cover-wrap{
  height:423px;display:flex;align-items:center;justify-content:center;overflow:hidden;
  border-radius:4px;background:#f3e6cf;box-shadow:0 10px 23px rgba(35,20,10,.28)
}
.hor-det__cover-wrap img{width:100%;height:100%;object-fit:contain;display:block}
.hor-det__stamp{position:absolute;z-index:4;color:var(--det-red);font-family:Georgia,serif;font-weight:900;letter-spacing:.08em;text-transform:uppercase;border:2px solid currentColor;padding:6px 10px 4px;transform:rotate(-5deg);background:rgba(245,230,200,.76)}
.hor-det__stamp small{display:block;margin-top:2px;font-size:8px;letter-spacing:.14em;color:#463326;text-align:center}
.hor-det__stamp--archive{top:13px;left:18px}
.hor-det__case-no{position:absolute;z-index:4;top:14px;right:18px;width:61px;height:61px;border:2px solid #3e342a;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(244,231,205,.82);color:#30271f;font:700 8px/1.05 Georgia,serif;letter-spacing:.05em;text-align:center;transform:rotate(4deg)}
.hor-det__case-no strong{font-size:21px}
.hor-det__fingerprint{position:absolute;z-index:3;width:72px;height:72px;right:18px;bottom:13px;opacity:.14;border:5px double #201a16;border-radius:46% 54% 50% 50% / 60% 60% 40% 40%;transform:rotate(16deg)}

.hor-det__hero-paper{
  position:relative;z-index:1;align-self:stretch;padding:30px 32px 25px;border-radius:10px;
  background:radial-gradient(circle at 18% 8%,rgba(145,104,56,.06),transparent 28%),linear-gradient(110deg,#fbf2e1,#f0ddbc);
  box-shadow:0 14px 27px rgba(35,20,10,.21),inset 0 0 0 1px rgba(103,76,42,.16)
}
.hor-det__hero-paper::before{content:"";position:absolute;top:0;left:0;right:0;height:6px;opacity:.22;background:repeating-linear-gradient(90deg,#9b784f 0 7px,transparent 7px 16px)}
.hor-det__red-stamp{display:inline-block;margin:0 0 9px;padding:5px 10px 4px;color:#fff;background:var(--det-red);font:900 11px/1.1 Georgia,serif;letter-spacing:.08em;transform:rotate(-1.5deg);box-shadow:0 3px 0 rgba(100,20,15,.14)}
.hor-det__eyebrow{display:block;margin-bottom:6px;color:#715741;font-size:10px;font-weight:900;letter-spacing:.11em}
.hor-det__hero h1{margin:0!important;color:#1c1916!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(34px,3.6vw,52px)!important;line-height:.98!important;letter-spacing:-.035em!important;font-weight:900!important}
.hor-det__hero h2{margin:8px 0 10px!important;color:var(--det-red)!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(20px,2.1vw,29px)!important;line-height:1.06!important;font-weight:900!important;border-bottom:2px solid rgba(185,45,37,.46);padding-bottom:9px}
.hor-det__lead{margin:0 0 14px;color:#3f3328;font-size:14px;line-height:1.5;max-width:62ch}
.hor-det__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0 0 15px}
.hor-det__facts>span{min-height:58px;display:flex;flex-direction:column;justify-content:center;padding:8px 6px;border:1px solid #b99c73;border-radius:8px;background:rgba(255,255,255,.52);text-align:center}
.hor-det__facts b{font-size:12px;line-height:1.1}.hor-det__facts small{margin-top:3px;color:#755d48;font-size:8px}.hor-det__facts-highlight{background:#f2d262!important;border-color:#d9b743!important}
.hor-det__purchase{display:grid;grid-template-columns:minmax(130px,.34fr) minmax(250px,.66fr);gap:10px;align-items:stretch}
.hor-det__price{display:flex;align-items:center;justify-content:center;min-height:57px;padding:8px 14px;border-radius:7px;background:var(--det-red);color:#fff;font:900 29px/1 Georgia,serif;box-shadow:0 5px 12px rgba(114,26,22,.18)}
.hor-det__price .amount{color:#fff!important}
.hor-det__cart form.cart{display:flex!important;gap:8px!important;margin:0!important;height:100%}
.hor-det__cart .quantity{margin:0!important}.hor-det__cart .quantity input{height:100%;min-height:54px;border:1px solid #c8a57b;background:#fff8ec}
.hor-det__cart button.single_add_to_cart_button{flex:1;min-height:57px;border:0!important;border-radius:7px!important;background:linear-gradient(#d83a30,#b8241d)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;text-transform:uppercase;letter-spacing:.03em;box-shadow:0 5px 13px rgba(89,22,18,.22)!important}
.hor-det__stock{min-height:57px;display:flex;align-items:center;justify-content:center;padding:10px 13px;border:1px solid rgba(182,44,37,.30);border-radius:7px;background:rgba(255,248,238,.82);color:#8f2a24;font-weight:850;font-size:13px}
.hor-det__stock p{margin:0!important;color:inherit!important}
.hor-det__purchase-notes{display:flex;gap:11px;flex-wrap:wrap;margin-top:9px;color:#5d4938;font-size:9px;font-weight:750}

/* BODY — bardziej spokojny, modułowy */
.hor-det__below{margin-top:0;padding:16px 16px 28px;border-radius:0 0 18px 18px;background:linear-gradient(#70482f,#65402a);box-shadow:var(--det-shadow)}
.hor-det__paper-title{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:13px;border-bottom:1px solid rgba(113,82,48,.18);padding-bottom:9px}
.hor-det__paper-title span,.hor-det__steps h2,.hor-det__folder h2,.hor-det__for-whom h2,.hor-det__video-section h2,.hor-det__case-summary h2{margin:0!important;color:#211b17!important;font-family:Georgia,"Times New Roman",serif!important;font-weight:900!important}
.hor-det__paper-title span{font-size:25px}.hor-det__paper-title small{color:#68523f;font-size:10px;text-align:right}
.hor-det__steps,.hor-det__folder,.hor-det__for-whom,.hor-det__video-section,.hor-det__preview,.hor-det__case-summary,.hor-det__final-cta{position:relative;margin-bottom:14px;padding:18px;background:linear-gradient(110deg,#f6e9cf,#ead6b7);border:1px solid #98734f;border-radius:8px;box-shadow:0 7px 17px rgba(38,20,9,.15)}
.hor-det__steps::before,.hor-det__folder::before,.hor-det__for-whom::before,.hor-det__preview::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background:repeating-linear-gradient(0deg,transparent 0 27px,rgba(91,63,34,.16) 28px 29px)}

/* 5 kroków */
.hor-det__step-grid{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
.hor-det__step-grid article{min-height:122px;padding:11px 14px;text-align:center;border-right:1px dashed #b28a60}
.hor-det__step-grid article:last-child{border-right:0}
.hor-det__step-grid b{width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;margin-bottom:8px;border-radius:50%;background:var(--det-red);color:#fff;font-size:14px;box-shadow:0 3px 8px rgba(133,32,27,.18)}
.hor-det__step-grid strong{display:block;margin-bottom:4px;font-size:12px;line-height:1.25}.hor-det__step-grid span{color:#5f4a38;font-size:9.6px;line-height:1.45}

/* zawartość + grupy */
.hor-det__split{display:grid;grid-template-columns:1.04fr .96fr;gap:14px}.hor-det__folder h2,.hor-det__for-whom h2{font-size:25px!important}.hor-det__folder>p{margin:5px 0 12px;color:#654f3d;font-size:10px}
.hor-det__evidence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;position:relative}.hor-det__evidence-list span{min-height:49px;display:flex;align-items:center;padding:9px 11px 9px 29px;border:1px solid #d0b48d;border-radius:4px;background:#f9eed9;color:#403126;font-size:10px;line-height:1.3}.hor-det__evidence-list span::before{content:"•";position:absolute;margin-left:-18px;color:var(--det-red);font-size:20px}
.hor-det__notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:11px;position:relative}.hor-det__notes-grid article{min-height:103px;padding:13px;background:#f1d46a;border:1px solid #d5b755;box-shadow:0 5px 10px rgba(60,36,14,.10);transform:rotate(-.25deg)}.hor-det__notes-grid article:nth-child(even){transform:rotate(.3deg)}.hor-det__notes-grid strong{display:block;margin-bottom:5px;color:#241e18;font-size:11px}.hor-det__notes-grid span{color:#4e402f;font-size:10px;line-height:1.4}

/* TEASER — jawnie nie demo produktu */
.hor-det__video-section{display:grid;grid-template-columns:.62fr 1.38fr;gap:18px;align-items:center;background:linear-gradient(115deg,#2a231e,#171411);color:#fff;border-color:#21170f}
.hor-det__video-section h2{color:#f4e4c6!important;font-size:27px!important}.hor-det__video-section p{margin:7px 0 0;color:#d8c5a7;font-size:11px;line-height:1.55}.hor-det__video-section p strong{color:#fff1d5}.hor-det__label{display:inline-block;margin-bottom:6px;color:#efca4f;font-size:8.5px;font-weight:900;letter-spacing:.13em}.hor-det__video-frame{position:relative;padding-top:56.25%;overflow:hidden;border-radius:7px;background:#000;box-shadow:0 8px 20px rgba(0,0,0,.25)}.hor-det__video-frame iframe,.hor-det__video-frame video{position:absolute;inset:0;width:100%;height:100%;border:0}

/* PREVIEW — prawdziwe materiały */
.hor-det__preview{padding-bottom:16px}.hor-det__viewer{position:relative;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.5fr);gap:12px;align-items:stretch}.hor-det__stage-wrap{min-height:350px;border-radius:7px;background:#edddbd;border:1px solid #b59064}.hor-det__stage{height:100%;border-radius:6px!important;background:#fbf5e9!important}.hor-det__stage .hor-pp__preview-stage-image{height:100%;min-height:325px;padding:10px}.hor-det__stage .hor-pp__preview-stage-image img{width:100%;height:100%;max-height:390px;object-fit:contain}.hor-det__thumbs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;align-content:start;overflow:visible!important}.hor-det__thumbs .hor-pp__preview-thumb{width:100%!important;min-width:0!important;height:99px!important;border-radius:5px!important;background:#f5e8d1!important;border-color:#b9966e!important}.hor-det__thumbs .hor-pp__preview-thumb.is-active{border-color:var(--det-red)!important;box-shadow:0 0 0 2px rgba(182,44,37,.13)}.hor-det__thumbs .hor-pp__preview-thumb img{object-fit:contain!important;background:#fffaf0}.hor-det .hor-pp__preview-side-nav{background:#f9edda!important;color:#3c2c21!important;border:1px solid #a78158!important}.hor-det .hor-pp__preview-stage-zoom{background:var(--det-red)!important;color:#fff!important;border-radius:999px!important;font-size:11px!important}

/* PODSUMOWANIE + CTA */
.hor-det__case-summary{display:grid;grid-template-columns:1.35fr .65fr;gap:16px;align-items:center}.hor-det__case-summary h2{margin-top:3px!important;font-size:25px!important}.hor-det__case-summary p{margin:7px 0 0;color:#5a4738;font-size:10.5px;line-height:1.58}.hor-det__solo-note{padding:16px;background:#f1d46d;border:1px solid #d2b44e;box-shadow:0 5px 12px rgba(60,38,14,.10);transform:rotate(-.5deg)}.hor-det__solo-note strong{display:block;margin-bottom:5px;font-family:Georgia,serif;font-size:17px}.hor-det__solo-note span{color:#493c2e;font-size:10px;line-height:1.45}
.hor-det__final-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:0;background:linear-gradient(110deg,#251e19,#15110f);border-color:#1c1410;color:#fff}.hor-det__final-cta span{color:#eecb54;font-size:8px;font-weight:900;letter-spacing:.13em}.hor-det__final-cta strong{display:block;margin:3px 0;color:#fff;font-family:Georgia,serif;font-size:22px}.hor-det__final-cta p{margin:0;color:#cdbb9f;font-size:10px}.hor-det__cta-link{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:0 20px;border-radius:7px;background:linear-gradient(#d83a30,#b8241d);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:900;text-transform:uppercase}

body.hor-pp-detective-product .hor-pp__lightbox{background:rgba(15,11,8,.92)}body.hor-pp-detective-product .hor-pp__lightbox-image{background:#f6ead4}

@media(max-width:980px){
  .hor-det__hero{grid-template-columns:1fr}.hor-det__case-visual{min-height:440px}.hor-det__cover-wrap{height:370px}.hor-det__facts{grid-template-columns:repeat(2,minmax(0,1fr))}.hor-det__step-grid{grid-template-columns:repeat(5,210px);overflow-x:auto;padding-bottom:6px}.hor-det__split,.hor-det__video-section,.hor-det__case-summary{grid-template-columns:1fr}.hor-det__viewer{grid-template-columns:1fr}.hor-det__thumbs{grid-template-columns:repeat(6,120px);overflow-x:auto!important}.hor-det__thumbs .hor-pp__preview-thumb{height:92px!important}
}
@media(max-width:640px){
  .hor-det{width:min(100% - 10px,1180px)}.hor-det__hero{padding:9px;gap:9px;border-radius:13px 13px 0 0}.hor-det__case-visual{min-height:338px;padding:36px 14px 16px}.hor-det__cover-wrap{height:292px}.hor-det__hero-paper{padding:21px 16px 18px}.hor-det__hero h1{font-size:34px!important}.hor-det__hero h2{font-size:21px!important}.hor-det__purchase{grid-template-columns:1fr}.hor-det__cart form.cart{flex-direction:column}.hor-det__below{padding:9px 9px 21px}.hor-det__steps,.hor-det__folder,.hor-det__for-whom,.hor-det__video-section,.hor-det__preview,.hor-det__case-summary,.hor-det__final-cta{padding:14px;margin-bottom:9px}.hor-det__paper-title{align-items:flex-start;flex-direction:column;gap:3px}.hor-det__paper-title small{text-align:left}.hor-det__evidence-list,.hor-det__notes-grid{grid-template-columns:1fr}.hor-det__stage-wrap{min-height:310px}.hor-det__stage .hor-pp__preview-stage-image{min-height:285px}.hor-det__final-cta{align-items:flex-start;flex-direction:column}.hor-det__cta-link{width:100%}
}


/* v0.7.3 — readability pass: typography aligned with the other HoR product pages */
.hor-det__eyebrow{font-size:13px;line-height:1.35}
.hor-det__lead{font-size:16.5px;line-height:1.62}
.hor-det__facts b{font-size:14.5px;line-height:1.2}
.hor-det__facts small{font-size:11.5px;line-height:1.25}
.hor-det__stock{font-size:15px;line-height:1.4}
.hor-det__purchase-notes{font-size:13.5px;line-height:1.45}

.hor-det__paper-title span{font-size:28px}
.hor-det__paper-title small{font-size:14.5px;line-height:1.45}

.hor-det__step-grid strong{font-size:15px;line-height:1.3}
.hor-det__step-grid span{font-size:14px;line-height:1.55}

.hor-det__folder h2,.hor-det__for-whom h2{font-size:28px!important}
.hor-det__folder>p{font-size:15px;line-height:1.55}
.hor-det__evidence-list span{font-size:14.5px;line-height:1.45}
.hor-det__notes-grid strong{font-size:15px;line-height:1.3}
.hor-det__notes-grid span{font-size:14px;line-height:1.55}

.hor-det__video-section h2{font-size:29px!important}
.hor-det__video-section p{font-size:15px;line-height:1.6}
.hor-det__label{font-size:11.5px;line-height:1.35}

.hor-det .hor-pp__preview-stage-zoom{font-size:13px!important}

.hor-det__case-summary h2{font-size:28px!important}
.hor-det__case-summary p{font-size:15px;line-height:1.65}
.hor-det__solo-note strong{font-size:20px;line-height:1.25}
.hor-det__solo-note span{font-size:14.5px;line-height:1.55}
.hor-det__final-cta span{font-size:11.5px;line-height:1.35}
.hor-det__final-cta strong{font-size:27px;line-height:1.2}
.hor-det__final-cta p{font-size:14.5px;line-height:1.5}
.hor-det__cta-link{font-size:13.5px;line-height:1.2}

@media(max-width:640px){
  .hor-det__lead{font-size:15.5px;line-height:1.58}
  .hor-det__paper-title span{font-size:25px}
  .hor-det__paper-title small{font-size:13.5px}
  .hor-det__step-grid strong{font-size:14.5px}
  .hor-det__step-grid span{font-size:13.5px}
  .hor-det__folder>p,.hor-det__evidence-list span,.hor-det__notes-grid span,.hor-det__video-section p,.hor-det__case-summary p,.hor-det__solo-note span,.hor-det__final-cta p{font-size:14px}
}


/* =========================================================
   v0.9.2 — DETECTIVE PURCHASE ALIGNMENT
   Wyłącznie prezentacja natywnych akcji WooCommerce.
========================================================= */
.hor-det__purchase {
  grid-template-columns: minmax(150px,.34fr) minmax(0,.66fr);
  align-items: stretch;
}
.hor-det__cart form.cart {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px !important;
  height: auto;
  margin: 0 !important;
}
.hor-det__cart .quantity {
  flex: 0 0 100%;
  margin: 0 !important;
}
.hor-det__cart form.cart > button,
.hor-det__cart form.cart > .button,
.hor-det__cart form.cart > a.button,
.hor-det__cart form.cart > a[class*="buy"],
.hor-det__cart form.cart > button[class*="buy"] {
  flex: 1 1 180px;
  width: auto !important;
  max-width: none !important;
  min-height: 57px;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  box-sizing: border-box;
}
.hor-det__cart form.cart > a:not(.button):not([class*="buy"]) {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  margin: 5px auto 0 !important;
  text-align: center;
}
.hor-det__purchase-notes {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(113,82,48,.18);
  justify-content: center;
  text-align: center;
}

@media (max-width: 760px) {
  .hor-det__purchase { grid-template-columns: 1fr; }
  .hor-det__cart form.cart > button,
  .hor-det__cart form.cart > .button,
  .hor-det__cart form.cart > a.button,
  .hor-det__cart form.cart > a[class*="buy"],
  .hor-det__cart form.cart > button[class*="buy"] {
    flex-basis: 100%;
  }
}
