/* PNGMagic Product Details V5 FINAL
   Uses shared style-v33.css for the SAME homepage/category header + footer.
   This file styles only product-detail content.
*/

.pd5-page{background:#f7fbff;color:#102750;padding-bottom:30px}
.pd5-container{width:min(1420px,calc(100% - 40px));margin-inline:auto}

/* Search block directly under the shared header */
.pd5-search-hero{padding:20px 0 12px;background:linear-gradient(180deg,#f4f9ff 0%,#f7fbff 100%);border-bottom:1px solid #e9f0f8}
.pd5-search-box{max-width:1050px;margin:0 auto;display:grid;grid-template-columns:auto 1fr auto;align-items:center;background:#fff;border:1px solid #dce8f5;border-radius:14px;min-height:58px;padding:5px 6px 5px 18px;box-shadow:0 10px 28px rgba(31,74,125,.07)}
.pd5-search-icon{font-size:24px;color:#4c6f96;margin-right:9px}
.pd5-search-box input{border:0;outline:0;background:transparent;font-size:15px;color:#243c5f;min-width:0;height:46px}
.pd5-search-box input::placeholder{color:#8291a6}
.pd5-search-box button{height:46px;border:0;border-radius:10px;background:#0875ff;color:#fff;padding:0 29px;font-weight:700;cursor:pointer}
.pd5-search-hints{max-width:1050px;margin:9px auto 0;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#78889e}
.pd5-search-hints a{background:#edf5ff;color:#35658f;text-decoration:none;padding:5px 9px;border-radius:999px}

.pd5-breadcrumb{display:flex;align-items:center;gap:8px;padding:14px 0 12px;font-size:12px;color:#6e7f96;white-space:nowrap;overflow:hidden}
.pd5-breadcrumb a{color:#405775;text-decoration:none;font-weight:400}
.pd5-breadcrumb>span:last-child{overflow:hidden;text-overflow:ellipsis}

/* Main product */
.pd5-product{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);gap:17px;align-items:stretch}
.pd5-preview-card,.pd5-side-card,.pd5-section,.pd5-bundle,.pd5-info-card,.pd5-premium-cta{background:#fff;border:1px solid #e5edf7;border-radius:16px;box-shadow:0 7px 24px rgba(31,70,125,.045)}

.pd5-preview-card{position:relative;overflow:hidden;min-height:560px;padding:14px;display:flex;flex-direction:column}
.pd5-preview-stage{position:relative;flex:1;min-height:500px;border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pd5-preview-stage img{display:block;max-width:100%;max-height:650px;width:auto;height:auto;object-fit:contain}

/* Checker only for PNG creative assets */
.pd5-preview--png .pd5-preview-stage,.checker{
  background-color:#fff;
  background-image:
    linear-gradient(45deg,#e9eef4 25%,transparent 25%),
    linear-gradient(-45deg,#e9eef4 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#e9eef4 75%),
    linear-gradient(-45deg,transparent 75%,#e9eef4 75%);
  background-size:20px 20px;
  background-position:0 0,0 10px,10px -10px,-10px 0;
}

/* Background / wallpaper / photo: NEVER checkerboard */
.pd5-preview--regular .pd5-preview-stage{background:#f2f5f9}
.pd5-preview--regular .pd5-preview-stage img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain}

.pd5-preview-top{position:absolute;z-index:4;left:23px;top:23px;display:flex;gap:7px}
.pd5-preview-top span{padding:7px 10px;border-radius:8px;font-size:11px;font-weight:700}
.pd5-type-pill{background:#0875ff;color:#fff}
.pd5-transparent-pill{background:#15b75a;color:#fff}
.pd5-background-pill{background:#fff;color:#17416d;border:1px solid #d8e5f2}

.pd5-main-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(20,34,57,.72);color:#fff;text-decoration:none;font-size:31px;box-shadow:0 5px 13px rgba(0,0,0,.12)}
.pd5-main-arrow:hover{background:#0875ff;color:#fff}
.pd5-main-arrow--left{left:25px}
.pd5-main-arrow--right{right:25px}
.pd5-zoom-btn{position:absolute;z-index:5;right:24px;bottom:46px;border:0;border-radius:9px;background:rgba(18,31,52,.76);color:#fff;padding:10px 13px;cursor:pointer}
.pd5-preview-navigation-note{height:29px;display:flex;justify-content:space-between;align-items:flex-end;gap:15px;color:#7b8a9f;font-size:10px;padding:5px 4px 0}
.pd5-preview-navigation-note span:nth-child(2){font-weight:600;color:#536a86}

/* Right conversion panel */
.pd5-side-card{padding:21px}
.pd5-side-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}
.pd5-free-pill{background:#edf6ff;color:#0870df;border-radius:9px;padding:8px 11px;font-size:11px;font-weight:700}
.pd5-side-actions{display:flex;gap:8px}
.pd5-side-actions button{border:1px solid #dbe6f2;background:#fff;color:#18365f;border-radius:9px;padding:8px 11px;cursor:pointer}
.pd5-side-actions button[data-saved="1"]{color:#e92872;border-color:#ffc4d9;background:#fff7fa}
.pd5-side-card h1{font-size:28px;line-height:1.2;margin:2px 0 8px;color:#081f4e}
.pd5-description{font-size:13px;line-height:1.58;color:#5c6e87;margin:0 0 15px}
.pd5-meta-grid{display:grid;grid-template-columns:1fr 1fr;background:#f2f8ff;border-radius:12px;padding:7px 8px}
.pd5-meta-grid>div{display:grid;grid-template-columns:35px 1fr;grid-template-rows:auto auto;gap:0 8px;padding:8px}
.pd5-meta-grid i{grid-row:1/3;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e1efff;color:#0875ff;font-style:normal;font-weight:700}
.pd5-meta-grid small{font-size:10px;color:#718096}
.pd5-meta-grid strong{font-size:12px;color:#102955}
.pd5-meta-grid a{color:inherit;text-decoration:none}

.pd5-download-host{margin:14px 0 10px}
.pd5-download-host .btn,.pd5-download-host a,.pd5-download-host button{width:100%!important;min-height:54px!important;border-radius:9px!important;font-size:18px!important;font-weight:700!important;display:flex!important;align-items:center!important;justify-content:center!important}
.pd5-download-host .btn-primary,.pd5-download-host .download-btn,.pd5-download-host a.btn{background:#0875ff!important;border-color:#0875ff!important;color:#fff!important}
.pd5-trust-row{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:#4c6079;margin:10px 1px 15px}

.pd5-share-title{font-size:12px;font-weight:700;margin-bottom:10px}
.pd5-share-list{display:flex;gap:16px;flex-wrap:wrap}
.pd5-share-list a,.pd5-share-list button{border:0;background:transparent;padding:0;text-decoration:none;color:#2f405b;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;cursor:pointer}
.pd5-share-list b{width:39px;height:39px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:15px}
.pd5-share-list .wa b{background:#18b85a}.pd5-share-list .fb b{background:#1677e8}.pd5-share-list .pin b{background:#d9152b}.pd5-share-list .x b{background:#050505}.pd5-share-list .copy b{background:#e7eef7;color:#40516c}

.pd5-premium-inline{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;margin-top:16px;padding:11px 12px;border:1px solid #ffe0a2;background:#fff9eb;border-radius:10px;text-decoration:none;color:#1d385e}
.pd5-crown{font-size:25px;color:#ff9f0a}
.pd5-premium-inline small{display:block;color:#77869a;font-size:9px;margin-top:2px}
.pd5-premium-inline>b{background:#ff9f0a;color:#fff;border-radius:7px;padding:9px 11px;font-size:10px}

/* Common sections */
.pd5-section{margin-top:17px;padding:16px}
.pd5-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.pd5-section-head h2{font-size:18px;line-height:1.2;margin:0 0 3px;color:#0b2754}
.pd5-section-head p{font-size:11px;color:#728199;margin:0}
.pd5-section-head>a{font-size:11px;color:#0875ff;text-decoration:none;font-weight:600;white-space:nowrap}
.pd5-slider-shell{position:relative}
.pd5-image-row,.pd5-category-row{display:flex;gap:12px;overflow:hidden;scroll-behavior:smooth}
.pd5-image-card{flex:0 0 150px;text-decoration:none;color:#18345a}
.pd5-thumb{height:110px;border-radius:9px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f5f8fb}
.pd5-thumb img{width:100%;height:100%;object-fit:contain}
.pd5-image-card strong{display:block;margin-top:6px;font-size:11px;line-height:1.25;font-weight:500}
.pd5-slider-arrow{position:absolute;z-index:4;top:43%;transform:translateY(-50%);width:32px;height:32px;border:1px solid #dbe6f1;border-radius:50%;background:#fff;color:#31577f;box-shadow:0 4px 10px rgba(0,0,0,.08);cursor:pointer}
.pd5-slider-arrow.left{left:-12px}.pd5-slider-arrow.right{right:-12px}

/* Bundle — professional, not loud pink */
.pd5-bundle{margin-top:17px;padding:17px;display:grid;grid-template-columns:1.2fr .72fr .62fr;gap:19px;align-items:center;background:linear-gradient(90deg,#eff7ff 0%,#fff 52%,#f8fbff 100%);border-color:#dceafb}
.pd5-bundle-heading{display:flex;gap:12px}.pd5-bundle-icon{width:38px;height:38px;border-radius:10px;background:#0875ff;color:#fff;display:grid;place-items:center;font-size:17px}
.pd5-bundle-title-line{display:flex;align-items:center;gap:9px}.pd5-bundle-title-line h2{font-size:18px;margin:0}.pd5-bundle-title-line span{font-size:9px;background:#0875ff;color:#fff;padding:4px 8px;border-radius:999px}
.pd5-bundle-left p{font-size:11px;color:#667990;margin:4px 0 10px}
.pd5-bundle-thumbs{display:flex;gap:7px;align-items:center}.pd5-bundle-thumbs img,.pd5-bundle-thumbs span{width:70px;height:54px;background:#fff;border:1px solid #e0e8f2;border-radius:8px}.pd5-bundle-thumbs img{object-fit:contain}.pd5-bundle-thumbs span{display:grid;place-items:center;font-size:10px;font-weight:700}
.pd5-bundle-benefits{display:grid;gap:7px;color:#3e5875;font-size:11px}
.pd5-bundle-buy{background:#fff;border:1px solid #dce8f5;border-radius:11px;padding:14px;display:grid;gap:5px}
.pd5-bundle-buy small{color:#0875ff}.pd5-bundle-buy strong{font-size:13px}.pd5-bundle-buy a{text-align:center;text-decoration:none;background:#0875ff;color:#fff;border-radius:8px;padding:10px 11px;font-size:12px;font-weight:700}

/* Info cards */
.pd5-info-grid{display:grid;grid-template-columns:1.2fr .75fr .78fr;gap:14px;margin-top:17px}
.pd5-info-card{padding:16px}.pd5-info-card h2{font-size:15px;margin:0 0 10px}.pd5-info-card p{font-size:12px;line-height:1.6;color:#5f718a;margin:0}.pd5-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.pd5-tags a{background:#edf6ff;color:#0968d8;text-decoration:none;padding:6px 8px;border-radius:7px;font-size:10px}
.pd5-detail-list{margin:0}.pd5-detail-list div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid #eff3f8;font-size:11px}.pd5-detail-list div:last-child{border-bottom:0}.pd5-detail-list dt{font-weight:500;color:#748299}.pd5-detail-list dd{margin:0;font-weight:700;text-align:right}.pd5-detail-list a{color:inherit;text-decoration:none}

/* Categories */
.pd5-category-card{flex:0 0 215px;border:1px solid #e5edf6;border-radius:10px;overflow:hidden;background:#fff;text-decoration:none;color:#183458}
.pd5-category-card img{display:block;width:100%;height:108px;object-fit:cover}
.pd5-category-card strong{display:block;padding:9px 10px;font-size:12px}

/* More images */
.pd5-more-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.pd5-more-card{text-decoration:none;color:#19345b}
.pd5-more-card>span{height:120px;display:flex;align-items:center;justify-content:center;border-radius:9px;overflow:hidden;background:#f6f8fb}
.pd5-more-card img{width:100%;height:100%;object-fit:contain}
.pd5-more-card strong{display:block;margin-top:6px;font-size:10px;line-height:1.25;font-weight:500}

/* Premium CTA */
.pd5-premium-cta{margin-top:17px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(90deg,#eaf5ff,#f9fcff)}
.pd5-premium-cta>div{display:flex;align-items:center;gap:12px}.pd5-premium-cta>div>span{font-size:26px;color:#ff9f0a}.pd5-premium-cta p{margin:0}.pd5-premium-cta strong{display:block}.pd5-premium-cta small{display:block;color:#718099;margin-top:2px}.pd5-premium-cta>a{background:#0875ff;color:#fff;text-decoration:none;padding:11px 18px;border-radius:8px;font-weight:700;white-space:nowrap}

/* Zoom */
.pd5-modal[hidden]{display:none}
.pd5-modal{position:fixed;z-index:99999;inset:0;background:rgba(5,15,34,.9);display:flex;align-items:center;justify-content:center;padding:28px}
.pd5-modal img{max-width:92vw;max-height:90vh;object-fit:contain}
.pd5-modal button{position:absolute;right:20px;top:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#1b2d48;font-size:25px;cursor:pointer}

@media(max-width:1100px){
  .pd5-product{grid-template-columns:1fr 1fr}
  .pd5-bundle{grid-template-columns:1fr 1fr}.pd5-bundle-buy{grid-column:1/-1}
  .pd5-info-grid{grid-template-columns:1fr 1fr}.pd5-info-card:last-child{grid-column:1/-1}
  .pd5-more-grid{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:820px){
  .pd5-container{width:min(100% - 24px,1420px)}
  .pd5-product{grid-template-columns:1fr}
  .pd5-preview-card{min-height:430px}.pd5-preview-stage{min-height:390px}
  .pd5-side-card h1{font-size:24px}
  .pd5-bundle{grid-template-columns:1fr}.pd5-bundle-buy{grid-column:auto}
  .pd5-info-grid{grid-template-columns:1fr}.pd5-info-card:last-child{grid-column:auto}
  .pd5-more-grid{grid-template-columns:repeat(4,1fr)}
}
@media(max-width:560px){
  .pd5-container{width:min(100% - 18px,1420px)}
  .pd5-search-hero{padding:12px 0 7px}.pd5-search-box{min-height:52px;padding-left:12px;border-radius:11px}.pd5-search-box input{font-size:13px}.pd5-search-box button{height:42px;padding:0 18px}.pd5-search-hints{justify-content:flex-start;overflow:hidden;flex-wrap:nowrap;white-space:nowrap}
  .pd5-breadcrumb{font-size:11px}
  .pd5-preview-card,.pd5-side-card,.pd5-section,.pd5-bundle,.pd5-info-card,.pd5-premium-cta{border-radius:11px}
  .pd5-preview-card{padding:8px;min-height:350px}.pd5-preview-stage{min-height:320px}
  .pd5-preview-top{left:14px;top:14px}
  .pd5-main-arrow{width:37px;height:37px;font-size:28px}.pd5-main-arrow--left{left:13px}.pd5-main-arrow--right{right:13px}
  .pd5-zoom-btn{right:14px;bottom:42px}
  .pd5-side-card{padding:14px}.pd5-side-actions button span{display:none}.pd5-side-card h1{font-size:21px}.pd5-meta-grid{grid-template-columns:1fr}
  .pd5-premium-inline{grid-template-columns:auto 1fr}.pd5-premium-inline>b{grid-column:1/-1;text-align:center}
  .pd5-image-row,.pd5-category-row{overflow-x:auto;scrollbar-width:none}.pd5-image-row::-webkit-scrollbar,.pd5-category-row::-webkit-scrollbar{display:none}.pd5-slider-arrow{display:none}.pd5-image-card{flex-basis:125px}
  .pd5-bundle-thumbs img,.pd5-bundle-thumbs span{width:57px;height:50px}
  .pd5-more-grid{grid-template-columns:repeat(2,1fr)}.pd5-more-card>span{height:150px}
  .pd5-premium-cta{flex-direction:column;align-items:flex-start}.pd5-premium-cta>a{width:100%;text-align:center}
}

/* =========================================================
   V6 REFINEMENT — cleaner, more professional hierarchy
   ========================================================= */

.pd5-search-hero{
  padding:18px 0 14px;
}
.pd5-search-box{
  max-width:980px;
  min-height:56px;
  border-radius:13px;
  box-shadow:0 8px 24px rgba(31,74,125,.055);
}
.pd5-search-box input{
  font-size:14px;
}
.pd5-search-box button{
  min-width:112px;
}

/* Product area spacing and sizing closer to homepage/category system */
.pd5-product{
  gap:18px;
}
.pd5-preview-card{
  padding:12px;
  min-height:520px;
}
.pd5-preview-stage{
  min-height:496px;
}
.pd5-preview-stage img{
  max-height:620px;
}

/* Background/wallpaper/photo should fill the visual area naturally */
.pd5-preview--regular .pd5-preview-stage{
  background:#eef3f8;
}
.pd5-preview--regular .pd5-preview-stage img{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
}

/* Keep only the overlay arrows */
.pd5-main-arrow{
  width:40px;
  height:40px;
  font-size:29px;
  background:rgba(15,29,51,.68);
}
.pd5-main-arrow--left{left:20px}
.pd5-main-arrow--right{right:20px}

/* Stronger, cleaner information panel */
.pd5-side-card{
  padding:22px;
}
.pd5-side-card h1{
  font-size:27px;
  line-height:1.22;
  margin:0 0 9px;
  letter-spacing:-.25px;
}
.pd5-description{
  font-size:13px;
  line-height:1.62;
  margin-bottom:16px;
}
.pd5-meta-grid{
  padding:8px 9px;
  border-radius:13px;
}
.pd5-meta-grid>div{
  padding:9px 8px;
}
.pd5-meta-grid small{
  font-size:10px;
}
.pd5-meta-grid strong{
  font-size:12px;
  line-height:1.25;
}

.pd5-download-host{
  margin:15px 0 10px;
}
.pd5-download-host .btn,
.pd5-download-host a,
.pd5-download-host button{
  min-height:53px!important;
  font-size:17px!important;
}

.pd5-trust-row{
  margin:10px 2px 12px;
  gap:14px;
  font-size:11px;
}

.pd5-secondary-actions{
  display:flex;
  gap:9px;
  margin:0 0 15px;
}
.pd5-secondary-actions button{
  min-height:38px;
  border:1px solid #dce6f2;
  background:#fff;
  color:#18365f;
  border-radius:9px;
  padding:0 13px;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
}
.pd5-secondary-actions button:hover{
  border-color:#b9d2ee;
  background:#f7fbff;
}
.pd5-secondary-actions button[data-saved="1"]{
  color:#e92872;
  border-color:#ffc4d9;
  background:#fff7fa;
}

/* Social row visually secondary */
.pd5-share-title{
  margin-bottom:9px;
}
.pd5-share-list{
  gap:14px;
}
.pd5-share-list b{
  width:36px;
  height:36px;
}

/* Premium strip: calmer and more premium */
.pd5-premium-inline{
  margin-top:15px;
  border-color:#f2dfb8;
  background:linear-gradient(90deg,#fffaf0,#fff);
  box-shadow:none;
}
.pd5-premium-inline>b{
  background:#ff9800;
}

/* Similar images: larger, cleaner, more readable */
.pd5-section{
  padding:17px 18px;
}
.pd5-section-head{
  align-items:center;
  margin-bottom:14px;
}
.pd5-section-head h2{
  font-size:19px;
  letter-spacing:-.1px;
}
.pd5-section-head p{
  font-size:12px;
}
.pd5-image-card{
  flex:0 0 168px;
}
.pd5-thumb{
  height:122px;
  border-radius:10px;
}
.pd5-image-card strong{
  font-size:11px;
  line-height:1.35;
  margin-top:7px;
}

/* Bundle redesign */
.pd5-bundle{
  padding:18px 19px;
  grid-template-columns:1.22fr .72fr .64fr;
  gap:22px;
  background:linear-gradient(135deg,#f4f9ff 0%,#ffffff 58%,#f8fbff 100%);
  border:1px solid #dbe8f6;
}
.pd5-bundle-heading{
  align-items:flex-start;
}
.pd5-bundle-icon{
  width:42px;
  height:42px;
  border-radius:11px;
}
.pd5-bundle-title-line h2{
  font-size:18px;
  line-height:1.25;
}
.pd5-bundle-title-line span{
  font-size:9px;
  padding:4px 8px;
}
.pd5-bundle-left p{
  font-size:12px;
  line-height:1.5;
  max-width:650px;
  margin:5px 0 12px;
}
.pd5-bundle-thumbs{
  gap:8px;
}
.pd5-bundle-thumbs img,
.pd5-bundle-thumbs span{
  width:74px;
  height:58px;
}
.pd5-bundle-benefits{
  font-size:12px;
  gap:9px;
}
.pd5-bundle-buy{
  padding:16px;
  border-radius:12px;
}
.pd5-bundle-buy small{
  font-size:11px;
}
.pd5-bundle-buy strong{
  font-size:14px;
  line-height:1.35;
}
.pd5-bundle-buy a{
  margin-top:5px;
  padding:11px 12px;
  font-size:12px;
}

/* Info cards */
.pd5-info-grid{
  gap:15px;
}
.pd5-info-card{
  padding:17px;
}
.pd5-info-card h2{
  font-size:16px;
}
.pd5-info-card p{
  font-size:12px;
  line-height:1.65;
}
.pd5-tags a{
  font-size:10px;
  padding:6px 9px;
}

/* Related category cards */
.pd5-category-card{
  flex:0 0 225px;
}
.pd5-category-card img{
  height:112px;
}

/* Premium CTA */
.pd5-premium-cta{
  padding:16px 19px;
}
.pd5-premium-cta strong{
  font-size:15px;
}
.pd5-premium-cta small{
  font-size:11px;
}
.pd5-premium-cta>a{
  padding:11px 19px;
  font-size:12px;
}

/* Remove no-longer-used elements */
.pd5-search-hints,
.pd5-preview-top,
.pd5-zoom-btn,
.pd5-preview-navigation-note,
.pd5-side-top,
.pd5-modal{
  display:none!important;
}

@media(max-width:820px){
  .pd5-preview-card{min-height:410px}
  .pd5-preview-stage{min-height:386px}
  .pd5-image-card{flex-basis:150px}
}
@media(max-width:560px){
  .pd5-search-hero{padding:10px 0 8px}
  .pd5-search-box{min-height:50px}
  .pd5-search-box button{min-width:auto;padding:0 16px}
  .pd5-preview-card{min-height:330px}
  .pd5-preview-stage{min-height:310px}
  .pd5-side-card{padding:15px}
  .pd5-side-card h1{font-size:21px}
  .pd5-secondary-actions{margin-bottom:13px}
  .pd5-bundle{padding:15px}
  .pd5-bundle-thumbs img,.pd5-bundle-thumbs span{width:58px;height:50px}
}


/* =========================================================
   V7 FINAL FLOW + TYPOGRAPHY + PREVIEW FIX
   ========================================================= */

/* Match new category/home typography scale */
.pd5-breadcrumb{
  font-size:13px;
  padding-top:16px;
  padding-bottom:13px;
}

.pd5-product{
  grid-template-columns:minmax(0,1.08fr) minmax(450px,.92fr);
  gap:20px;
  align-items:stretch;
}

.pd5-side-card{
  padding:24px;
}

.pd5-side-card h1{
  font-size:30px;
  line-height:1.18;
  margin:0 0 12px;
  letter-spacing:-.35px;
  font-weight:700;
}

.pd5-description{
  font-size:15px;
  line-height:1.65;
  color:#5f7188;
  margin:0 0 18px;
}

.pd5-meta-grid{
  margin-bottom:2px;
}

.pd5-meta-grid>div{
  padding:10px 9px;
}

.pd5-meta-grid small{
  font-size:11px;
}

.pd5-meta-grid strong{
  font-size:13px;
  line-height:1.3;
}

.pd5-download-host .btn,
.pd5-download-host a,
.pd5-download-host button{
  min-height:56px!important;
  font-size:18px!important;
}

.pd5-trust-row{
  font-size:12px;
  line-height:1.45;
}

.pd5-secondary-actions button{
  min-height:40px;
  font-size:12px;
}

.pd5-share-title{
  font-size:13px;
}

.pd5-share-list a,
.pd5-share-list button{
  font-size:11px;
}

/* Main preview: fill the card for background/wallpaper/photo assets */
.pd5-preview-card{
  min-height:545px;
  padding:12px;
}

.pd5-preview-stage{
  min-height:521px;
  border-radius:12px;
}

/* Transparent PNG stays contained on checkerboard */
.pd5-preview--png .pd5-preview-stage img{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:650px;
  object-fit:contain;
}

/* Background / wallpaper / photo must fully cover the preview box */
.pd5-preview--regular .pd5-preview-stage{
  background:#eef3f8;
}

.pd5-preview--regular .pd5-preview-stage img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center center;
}

/* Prevent any visible white/blank strip around regular preview */
.pd5-preview--regular{
  padding:0;
  overflow:hidden;
}
.pd5-preview--regular .pd5-preview-stage{
  border-radius:16px;
  min-height:545px;
}
.pd5-preview--regular .pd5-main-arrow--left{left:18px}
.pd5-preview--regular .pd5-main-arrow--right{right:18px}

/* Section typography: same visual weight as category page */
.pd5-section{
  padding:20px;
  margin-top:20px;
}

.pd5-section-head{
  margin-bottom:16px;
}

.pd5-section-head h2{
  font-size:22px;
  line-height:1.2;
  font-weight:700;
  margin-bottom:4px;
}

.pd5-section-head p{
  font-size:13px;
  line-height:1.45;
}

.pd5-section-head>a{
  font-size:12px;
}

.pd5-image-card{
  flex:0 0 180px;
}

.pd5-thumb{
  height:132px;
}

.pd5-image-card strong{
  font-size:12px;
  line-height:1.35;
  margin-top:8px;
}

/* Cleaner two-column info area — no duplicate Image Details card */
.pd5-info-grid{
  grid-template-columns:1.3fr .9fr;
  gap:18px;
  margin-top:20px;
}

.pd5-info-card{
  padding:20px;
}

.pd5-info-card h2{
  font-size:20px;
  margin-bottom:12px;
}

.pd5-info-card p{
  font-size:14px;
  line-height:1.7;
}

.pd5-tags{
  margin-top:15px;
  gap:8px;
}

.pd5-tags a{
  font-size:11px;
  padding:7px 10px;
}

/* Bundle: more balanced and readable */
.pd5-bundle{
  margin-top:20px;
  padding:20px 22px;
  grid-template-columns:1.2fr .75fr .62fr;
  gap:24px;
}

.pd5-bundle-title-line h2{
  font-size:21px;
  font-weight:700;
}

.pd5-bundle-left p{
  font-size:13px;
  line-height:1.55;
  margin:6px 0 13px;
}

.pd5-bundle-benefits{
  font-size:13px;
  line-height:1.45;
}

.pd5-bundle-buy small{
  font-size:12px;
}

.pd5-bundle-buy strong{
  font-size:15px;
}

.pd5-bundle-buy a{
  font-size:13px;
  padding:12px 14px;
}

/* Related Categories */
.pd5-category-card{
  flex:0 0 235px;
}

.pd5-category-card img{
  height:120px;
}

.pd5-category-card strong{
  font-size:13px;
  padding:10px 11px;
}

/* Premium CTA sizing */
.pd5-premium-cta{
  margin-top:20px;
  padding:18px 21px;
}

.pd5-premium-cta strong{
  font-size:16px;
}

.pd5-premium-cta small{
  font-size:12px;
}

/* Overall vertical rhythm */
.pd5-search-hero{padding:17px 0 13px}
.pd5-breadcrumb + .pd5-product{margin-top:0}

/* Hide duplicate-details styling if any stale DOM appears */
.pd5-detail-list{display:none!important}

/* Responsive */
@media(max-width:1100px){
  .pd5-product{
    grid-template-columns:1fr 1fr;
  }
  .pd5-info-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:820px){
  .pd5-product{
    grid-template-columns:1fr;
  }
  .pd5-preview-card{
    min-height:420px;
  }
  .pd5-preview-stage{
    min-height:396px;
  }
  .pd5-preview--regular .pd5-preview-stage{
    min-height:420px;
  }
  .pd5-side-card h1{
    font-size:26px;
  }
  .pd5-description{
    font-size:14px;
  }
  .pd5-info-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .pd5-side-card{
    padding:16px;
  }
  .pd5-side-card h1{
    font-size:22px;
  }
  .pd5-description{
    font-size:13px;
  }
  .pd5-meta-grid small{
    font-size:10px;
  }
  .pd5-meta-grid strong{
    font-size:12px;
  }
  .pd5-preview-card{
    min-height:330px;
  }
  .pd5-preview-stage{
    min-height:306px;
  }
  .pd5-preview--regular .pd5-preview-stage{
    min-height:330px;
  }
  .pd5-section-head h2{
    font-size:19px;
  }
  .pd5-section-head p{
    font-size:12px;
  }
  .pd5-info-card h2{
    font-size:18px;
  }
  .pd5-info-card p{
    font-size:13px;
  }
  .pd5-bundle-title-line h2{
    font-size:19px;
  }
}


/* =========================================================
   V8 FINAL DESIGN — top-to-bottom refinement
   ========================================================= */

/* ---------- Main preview: shorter, cleaner, better balanced ---------- */
.pd5-product{
  grid-template-columns:minmax(0,1.03fr) minmax(470px,.97fr);
  gap:20px;
  align-items:stretch;
}
.pd5-preview-card{
  min-height:455px;
  height:455px;
}
.pd5-preview-stage{
  min-height:455px;
  height:455px;
}
.pd5-preview--regular .pd5-preview-stage{
  min-height:455px;
  height:455px;
}
.pd5-preview--regular .pd5-preview-stage img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.pd5-preview--png{
  padding:12px;
}
.pd5-preview--png .pd5-preview-stage{
  min-height:431px;
  height:431px;
}
.pd5-preview--png .pd5-preview-stage img{
  max-height:410px;
}

/* Perfectly centered overlay arrows */
.pd5-main-arrow{
  top:50%;
  width:42px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:30px;
  font-family:Arial,sans-serif;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(8,24,48,.70);
}
.pd5-main-arrow--left{left:18px}
.pd5-main-arrow--right{right:18px}

/* ---------- Right panel ---------- */
.pd5-side-card{
  padding:23px;
}
.pd5-side-card h1{
  font-size:29px;
  line-height:1.18;
  margin-bottom:10px;
}
.pd5-description{
  font-size:14px;
  line-height:1.65;
  margin-bottom:16px;
}
.pd5-meta-grid small{font-size:11px}
.pd5-meta-grid strong{font-size:13px}
.pd5-download-host .btn,
.pd5-download-host a,
.pd5-download-host button{
  min-height:54px!important;
  font-size:17px!important;
}
.pd5-trust-row{
  font-size:11.5px;
  margin:9px 1px 11px;
}

/* Save/Share as subtle utility actions */
.pd5-secondary-actions{
  gap:8px;
  margin-bottom:14px;
}
.pd5-secondary-actions button{
  border-radius:8px;
  min-height:38px;
  padding:0 12px;
  font-size:11px;
}

/* Professional social media row */
.pd5-share-block{
  border-top:1px solid #edf2f7;
  padding-top:13px;
}
.pd5-share-title{
  font-size:12px;
  color:#2b415f;
}
.pd5-share-list{
  gap:13px;
}
.pd5-share-list a,
.pd5-share-list button{
  min-width:52px;
  font-size:10px;
}
.pd5-share-list b{
  width:36px;
  height:36px;
  font-size:16px;
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 3px 10px rgba(20,45,75,.08);
}
.pd5-share-list b i{
  font-size:16px;
  line-height:1;
}
.pd5-share-list .copy b{
  background:#edf3f9;
  color:#25466a;
}

/* Premium inline */
.pd5-premium-inline{
  padding:11px 12px;
  margin-top:14px;
  background:linear-gradient(90deg,#fff8e8,#fffdf8);
}
.pd5-premium-inline strong{font-size:12px}
.pd5-premium-inline small{font-size:9.5px}

/* ---------- About: single row links, no repeated Popular Searches card ---------- */
.pd5-info-grid{
  display:block;
  margin-top:20px;
}
.pd5-about-full{
  width:100%;
}
.pd5-about-full h2{
  font-size:20px;
}
.pd5-about-full p{
  font-size:14px;
  line-height:1.68;
  max-width:1250px;
}
.pd5-about-full .pd5-tags{
  flex-wrap:nowrap;
  overflow-x:auto;
  white-space:nowrap;
  padding-bottom:2px;
  scrollbar-width:none;
}
.pd5-about-full .pd5-tags::-webkit-scrollbar{display:none}
.pd5-about-full .pd5-tags a{
  flex:0 0 auto;
  font-size:11px;
}

/* ---------- More Like This: 2-row carousel, bigger cards, hover title ---------- */
.pd5-section{
  overflow:hidden;
}
.pd5-image-row{
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(2, 168px);
  grid-auto-columns:220px;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  padding:1px 1px 2px;
}
.pd5-image-row::-webkit-scrollbar{display:none}
.pd5-image-card{
  width:220px;
  height:168px;
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:11px;
  background:#f4f7fa;
  text-decoration:none;
}
.pd5-thumb{
  width:100%;
  height:100%;
  border-radius:11px;
  position:relative;
  overflow:hidden;
}
.pd5-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.pd5-image-card:hover .pd5-thumb img{
  transform:scale(1.035);
}
.pd5-card-overlay{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:26px 11px 9px;
  background:linear-gradient(180deg,transparent,rgba(4,16,34,.82));
  color:#fff;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease;
}
.pd5-image-card:hover .pd5-card-overlay{
  opacity:1;
  transform:translateY(0);
}
.pd5-slider-arrow{
  top:50%;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:22px;
  z-index:5;
}

/* ---------- Bundle: highlighted but premium/professional ---------- */
.pd5-bundle{
  margin-top:20px;
  padding:22px 24px;
  grid-template-columns:1.18fr .72fr .64fr;
  gap:26px;
  background:linear-gradient(135deg,#f4f0ff 0%,#fbf8ff 52%,#eef6ff 100%);
  border:1px solid #dcd4fb;
  box-shadow:0 10px 28px rgba(91,72,160,.07);
}
.pd5-bundle-icon{
  width:46px;
  height:46px;
  border-radius:12px;
  background:linear-gradient(135deg,#6f5df5,#0875ff);
  box-shadow:0 7px 18px rgba(83,76,205,.20);
}
.pd5-bundle-icon i{
  font-size:19px;
}
.pd5-bundle-title-line h2{
  font-size:22px;
  color:#152a53;
}
.pd5-bundle-title-line span{
  background:#6f5df5;
}
.pd5-bundle-left p{
  font-size:13px;
  line-height:1.55;
  color:#5f6d83;
}
.pd5-bundle-thumbs img,
.pd5-bundle-thumbs span{
  width:78px;
  height:60px;
}
.pd5-bundle-benefits{
  font-size:13px;
  color:#415772;
}
.pd5-bundle-buy{
  border-color:#d9d8ee;
  background:rgba(255,255,255,.86);
}
.pd5-bundle-kicker{
  color:#6f5df5!important;
  font-weight:700;
  letter-spacing:.1px;
}
.pd5-bundle-buy strong{
  font-size:15px;
}
.pd5-bundle-buy a{
  background:linear-gradient(90deg,#6f5df5,#0875ff);
  box-shadow:0 7px 16px rgba(63,87,205,.13);
}

/* ---------- Related Categories ---------- */
.pd5-category-row{
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  padding:1px 1px 2px;
}
.pd5-category-row::-webkit-scrollbar{display:none}
.pd5-category-card{
  flex:0 0 240px;
  border-radius:11px;
  border:1px solid #e2e9f2;
  box-shadow:0 4px 13px rgba(30,64,110,.04);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.pd5-category-card:hover{
  transform:translateY(-2px);
  border-color:#c9d9eb;
  box-shadow:0 8px 20px rgba(30,64,110,.08);
}
.pd5-category-thumb{
  display:block;
  height:126px;
  overflow:hidden;
  background:#f4f7fa;
}
.pd5-category-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}
.pd5-category-card:hover .pd5-category-thumb img{
  transform:scale(1.025);
}
.pd5-category-name{
  display:block;
  padding:10px 12px 11px;
  font-size:13px;
  line-height:1.25;
  font-weight:600;
  color:#17335a;
}

/* ---------- Premium CTA: final professional treatment ---------- */
.pd5-premium-cta{
  margin-top:20px;
  padding:24px 26px;
  background:linear-gradient(120deg,#0d2c58 0%,#123d75 58%,#0a74ff 100%);
  color:#fff;
  border:0;
  box-shadow:0 12px 30px rgba(20,66,126,.14);
}
.pd5-premium-copy{
  display:flex;
  align-items:flex-start;
  gap:16px;
}
.pd5-premium-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.12);
  color:#ffd36a;
  font-size:26px;
}
.pd5-premium-kicker{
  display:block;
  margin-bottom:3px;
  color:#b9d7ff;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.pd5-premium-cta h2{
  margin:0 0 5px;
  color:#fff;
  font-size:22px;
  line-height:1.2;
}
.pd5-premium-cta p{
  margin:0;
  max-width:850px;
  color:#dbe8f7;
  font-size:13px;
  line-height:1.55;
}
.pd5-premium-benefits{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  margin-top:10px;
  color:#eaf4ff;
  font-size:11px;
}
.pd5-premium-cta>a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:170px;
  min-height:44px;
  background:#fff;
  color:#0b5fd6;
  border-radius:9px;
  font-size:12px;
  font-weight:700;
  box-shadow:0 6px 18px rgba(0,0,0,.10);
}

/* ---------- Responsive ---------- */
@media(max-width:1100px){
  .pd5-product{
    grid-template-columns:1fr 1fr;
  }
  .pd5-preview-card,
  .pd5-preview-stage,
  .pd5-preview--regular .pd5-preview-stage{
    height:430px;
    min-height:430px;
  }
  .pd5-preview--png .pd5-preview-stage{
    height:406px;
    min-height:406px;
  }
  .pd5-bundle{
    grid-template-columns:1fr 1fr;
  }
  .pd5-bundle-buy{
    grid-column:1/-1;
  }
}
@media(max-width:820px){
  .pd5-product{
    grid-template-columns:1fr;
  }
  .pd5-preview-card,
  .pd5-preview-stage,
  .pd5-preview--regular .pd5-preview-stage{
    height:390px;
    min-height:390px;
  }
  .pd5-preview--png .pd5-preview-stage{
    height:366px;
    min-height:366px;
  }
  .pd5-bundle{
    grid-template-columns:1fr;
  }
  .pd5-bundle-buy{
    grid-column:auto;
  }
  .pd5-premium-cta{
    flex-direction:column;
    align-items:flex-start;
  }
  .pd5-premium-cta>a{
    width:100%;
  }
}
@media(max-width:560px){
  .pd5-preview-card,
  .pd5-preview-stage,
  .pd5-preview--regular .pd5-preview-stage{
    height:310px;
    min-height:310px;
  }
  .pd5-preview--png .pd5-preview-stage{
    height:286px;
    min-height:286px;
  }
  .pd5-side-card h1{
    font-size:22px;
  }
  .pd5-image-row{
    grid-template-rows:repeat(2, 145px);
    grid-auto-columns:175px;
    gap:10px;
  }
  .pd5-image-card{
    width:175px;
    height:145px;
  }
  .pd5-card-overlay{
    opacity:1;
    transform:none;
    font-size:10px;
    padding:22px 8px 7px;
  }
  .pd5-bundle{
    padding:17px;
  }
  .pd5-bundle-title-line h2{
    font-size:19px;
  }
  .pd5-category-card{
    flex-basis:190px;
  }
  .pd5-category-thumb{
    height:105px;
  }
  .pd5-premium-cta{
    padding:20px;
  }
  .pd5-premium-cta h2{
    font-size:19px;
  }
}
