/* Villora Preview v1.2: a real, resized desktop/mobile viewport, not just a label. */
.vdp-live-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border:2px solid #3047d3;border-radius:9px;background:white;color:#3047d3;text-decoration:none;font-weight:800;margin:6px 0 6px 10px}
.vdp-live-link:hover{background:#eef1ff}
.vdp-virtual-page{width:100%;padding:18px clamp(10px,2vw,32px) 44px;box-sizing:border-box}
.vdp-shell{width:100%;max-width:1560px;margin:0 auto 20px;box-sizing:border-box;font-family:inherit}
.vdp-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;background:#192744;color:#fff;padding:16px 20px;border-radius:16px 16px 0 0}
.vdp-title{display:flex;flex-direction:column;gap:3px;min-width:185px;flex:1 1 190px}
.vdp-title strong{font-size:clamp(15px,1.35vw,19px);line-height:1.4;overflow-wrap:anywhere}
.vdp-title small{font-size:12px;color:#d0dbef}
.vdp-toggle{display:flex;gap:8px;flex-wrap:wrap}
.vdp-toggle button{cursor:pointer;border:1px solid #8996b6;border-radius:10px;background:transparent;color:#fff;padding:11px 16px;font:inherit;font-size:14px;font-weight:800;min-height:44px}
.vdp-toggle button.is-active{background:#ffdb80;border-color:#ffdb80;color:#142449}
.vdp-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap}
.vdp-actions a{color:#fff;text-decoration:none;font-size:13px;font-weight:800}
.vdp-actions a.vdp-buy{background:#ffdb80;color:#182744;padding:11px 18px;border-radius:9px}
.vdp-stage{display:flex;align-items:flex-start;justify-content:center;padding:22px;box-sizing:border-box;background:#e1e7f3;border:1px solid #cbd5e8;overflow:hidden;min-width:0}
.vdp-viewport{position:relative;width:100%;max-width:1280px;min-width:0;height:860px;overflow:hidden;display:flex;justify-content:center;align-items:flex-start}
.vdp-frame{position:absolute;top:0;left:50%;margin-left:-640px;height:860px;width:1280px;border:0;background:#fff;transform-origin:top center;box-shadow:0 7px 27px rgba(20,30,60,.2)}
.vdp-shell[data-mode=mobile] .vdp-viewport{max-width:390px}
.vdp-shell[data-mode=mobile] .vdp-frame{margin-left:-195px;height:780px}
.vdp-help{font-size:12px;color:#62718e;margin:13px 3px}
.vdp-help a{font-weight:800}
.vdp-alert{padding:24px;background:#f5f7fb;border:1px solid #dce2ed;border-radius:10px}
@media(max-width:760px){
 .vdp-virtual-page{padding:12px 8px 30px}
 .vdp-toolbar{padding:14px;gap:14px}
 .vdp-title{flex-basis:100%}
 .vdp-toggle{width:100%}
 .vdp-toggle button{flex:1}
 .vdp-actions{gap:12px}
 .vdp-stage{padding:8px}
 .vdp-help{line-height:1.6}
}

/* Optional per-product descriptive content underneath responsive preview */
.vdp-description{max-width:100%;margin:0;padding:20px 24px 24px;background:#fff;color:#24314d;border:1px solid #d9e0ec;border-top:0;border-radius:0 0 12px 12px;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.vdp-description p{margin:0 0 12px}.vdp-description p:last-child{margin-bottom:0}
@media(max-width:600px){.vdp-description{padding:18px;font-size:14px}}

/* v1.4 — compact toolbar: the actual theme preview is the visual priority. */
.vdp-virtual-page{padding-top:8px;padding-left:clamp(6px,1vw,16px);padding-right:clamp(6px,1vw,16px)}
.vdp-shell{max-width:1700px}
.vdp-toolbar{padding:10px 14px;gap:9px 16px;border-radius:12px 12px 0 0}
.vdp-title{flex:1 1 220px;min-width:0;gap:0}
.vdp-title strong{font-size:clamp(14px,1.1vw,16px);line-height:1.3}
.vdp-title small{font-size:10px;line-height:1.3}
.vdp-toggle{gap:5px}
.vdp-toggle button{padding:7px 11px;min-height:34px;border-radius:7px;font-size:12px;line-height:1.25}
.vdp-actions{gap:9px 13px}
.vdp-actions a{font-size:11px;line-height:1.3}
.vdp-actions a.vdp-buy{padding:8px 12px;border-radius:7px}
.vdp-stage{padding:8px}
@media(max-width:760px){
 .vdp-virtual-page{padding:6px 3px 20px}
 .vdp-toolbar{padding:9px 10px;gap:8px}
 .vdp-title{flex:1 1 100%;gap:0}
 .vdp-title strong{font-size:14px;line-height:1.3}
 .vdp-title small{font-size:10px}
 .vdp-toggle{width:auto;flex:0 0 auto;gap:5px}
 .vdp-toggle button{flex:0 0 auto;font-size:11px;padding:7px 9px;min-height:32px}
 .vdp-actions{flex:1 1 auto;justify-content:flex-end;gap:7px 10px}
 .vdp-actions a{font-size:10px}
 .vdp-actions a.vdp-buy{padding:7px 9px}
 .vdp-stage{padding:4px}
}
@media(max-width:430px){
 .vdp-title{flex-basis:100%}
 .vdp-toggle button{font-size:11px}
 .vdp-actions{justify-content:flex-start}
 .vdp-toolbar{gap:7px}
}

/* v1.5: white minimalist toolbar, all five actions on one line. */
.vdp-toolbar{background:#fff;color:#182744;border:1px solid #e0e5ef;border-bottom:0;padding:10px 12px;gap:7px 12px;box-shadow:none}
.vdp-title{flex:1 1 180px}
.vdp-title strong{color:#192744;font-size:13px}
.vdp-title small{color:#65738b;font-size:10px}
.vdp-toggle,.vdp-actions{flex-wrap:nowrap;white-space:nowrap;align-items:center;gap:5px}
.vdp-toggle button{background:#f5f7fb;border:1px solid #d6deec;color:#263856;min-height:30px;padding:5px 9px;font-size:11px;border-radius:6px}
.vdp-toggle button.is-active{background:#263fbd;border-color:#263fbd;color:#fff}
.vdp-actions a{color:#263856;font-size:11px;font-weight:700;padding:5px 3px;text-decoration:none}
.vdp-actions a:hover{text-decoration:underline;color:#263fbd}
.vdp-actions a.vdp-buy{background:#263fbd;color:#fff;padding:7px 10px;border-radius:6px}
.vdp-actions a.vdp-buy:hover{background:#1b328f;text-decoration:none}
.vdp-stage{background:#f6f8fb;padding:5px}
@media(max-width:760px){
 .vdp-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;padding:9px 7px;gap:7px 4px}
 .vdp-title{flex:1 0 100%;width:100%;min-width:0}
 .vdp-title strong{font-size:12px}
 .vdp-title small{font-size:9px}
 .vdp-toggle{width:auto;flex:0 0 auto;gap:3px}
 .vdp-toggle button{flex:0 0 auto;min-height:27px;padding:5px 6px;font-size:10px}
 .vdp-actions{display:flex;flex:1 1 auto;justify-content:space-between;min-width:0;flex-wrap:nowrap;gap:3px}
 .vdp-actions a{font-size:9px;padding:5px 2px}
 .vdp-actions a.vdp-buy{padding:6px 5px}
 .vdp-stage{padding:3px}
}
@media(max-width:375px){
 .vdp-toolbar{padding:7px 4px;gap:4px 2px}
 .vdp-toggle button{font-size:9px;padding:5px 4px}
 .vdp-actions a{font-size:8px;padding:4px 1px}
 .vdp-actions a.vdp-buy{padding:6px 3px}
}

/* v1.6 — editorial description panel after the demo frame. */
.vdp-shell .vdp-description {background:#fff;border:1px solid #e1e6ef;border-top:0;border-radius:0 0 14px 14px;margin:0;padding:32px clamp(18px,4vw,54px) 38px;color:#24314d;box-shadow:0 10px 24px rgba(21,35,68,.035)}
.vdp-description-inner{max-width:1000px;margin:0 auto}
.vdp-description h2{font-size:clamp(20px,2.4vw,29px);line-height:1.3;font-weight:800;margin:0 0 14px;color:#172540}
.vdp-description-copy{font-size:15px;line-height:1.9;color:#53627b;white-space:normal}
.vdp-description-copy p{margin:0 0 13px}
.vdp-description-copy p:last-child{margin-bottom:0}
@media(max-width:600px){.vdp-shell .vdp-description{padding:22px 19px 26px}.vdp-description-copy{font-size:13px;line-height:1.8}}

/* v1.7 - compact editorial copy beneath theme preview */
.vdp-shell .vdp-description{padding:20px clamp(14px,2.5vw,32px) 24px}
.vdp-shell .vdp-description h2{font-size:clamp(15px,1.5vw,19px);line-height:1.35;margin:0 0 9px;font-weight:750}
.vdp-shell .vdp-description .vdp-description-copy,.vdp-shell .vdp-description .vdp-description-copy p{font-size:13px;line-height:1.65}
.vdp-shell .vdp-description .vdp-description-copy p{margin:0 0 9px}
@media(max-width:600px){.vdp-shell .vdp-description{padding:16px 15px 19px}.vdp-shell .vdp-description h2{font-size:15px;margin-bottom:8px}.vdp-shell .vdp-description .vdp-description-copy,.vdp-shell .vdp-description .vdp-description-copy p{font-size:12px;line-height:1.6}}

/* v1.8 — purchase call-to-action directly below the product description */
.vdp-shell .vdp-bottom-purchase{display:flex;align-items:center;justify-content:flex-start;margin-top:17px;padding-top:14px;border-top:1px solid #e5e9f2}
.vdp-shell .vdp-bottom-cart{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 17px;min-height:40px;border-radius:8px;background:#2c45cd;color:#fff!important;text-decoration:none;font-size:12px;line-height:1.3;font-weight:800;transition:background .15s ease}
.vdp-shell .vdp-bottom-cart:hover,.vdp-shell .vdp-bottom-cart:focus{background:#1c318c;color:#fff!important;text-decoration:none}
@media(max-width:600px){.vdp-shell .vdp-bottom-purchase{margin-top:12px;padding-top:12px}.vdp-shell .vdp-bottom-cart{font-size:12px;padding:10px 14px;min-height:38px}}

/* v2.0: additional themes beneath product description. */
.vdp-shell .vdp-related{background:#fff;border:1px solid #e1e6ef;border-top:1px solid #e9edf4;padding:20px clamp(14px,2.5vw,32px) 28px;color:#1b2943}
.vdp-related-heading{margin-bottom:13px}.vdp-shell .vdp-related h2{font-size:clamp(16px,1.5vw,20px);line-height:1.3;margin:0;font-weight:800}
.vdp-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.vdp-related-card{border:1px solid #e1e7f1;border-radius:12px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-width:0}
.vdp-related-image{display:block;background:#f1f4fa;aspect-ratio:16/10;overflow:hidden}
.vdp-related-image img{display:block;width:100%;height:100%;object-fit:cover}
.vdp-related-body{display:flex;flex-direction:column;gap:9px;flex:1;padding:12px}
.vdp-shell .vdp-related h3{margin:0;font-size:13px;line-height:1.4;font-weight:750}
.vdp-related h3 a{text-decoration:none;color:#1b2943}.vdp-related h3 a:hover{color:#2c45cd}
.vdp-related-price{font-size:13px;font-weight:800;color:#2c45cd;margin-top:auto}
.vdp-related-price del{color:#8b94a5;font-size:11px}
.vdp-related-button{font-size:12px;font-weight:800;text-decoration:none!important;color:#2c45cd!important}
@media(max-width:820px){.vdp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){.vdp-shell .vdp-related{padding:16px 12px 21px}.vdp-related-grid{gap:9px}.vdp-related-body{padding:10px}.vdp-shell .vdp-related h3{font-size:12px}.vdp-related-price,.vdp-related-button{font-size:11px}}

/* v2.1 — balanced laptop desktop preview; retain 1280px responsive breakpoint inside iframe. */
@media(min-width:900px){
 .vdp-shell[data-mode=desktop] .vdp-viewport{max-width:1100px;}
 .vdp-shell[data-mode=desktop] .vdp-stage{padding:18px 12px;background:#f6f8fb;}
}

/* v2.2 — laptop/desktop only: align toolbar, demo and description to one shared width.
   Mobile breakpoint (<900px) deliberately retains all v2.1 styles. */
@media (min-width:900px) {
  .vdp-virtual-page .vdp-shell,
  .vdp-shell { width:100%; max-width:1100px; margin-left:auto; margin-right:auto; }
  .vdp-shell .vdp-toolbar,
  .vdp-shell .vdp-stage,
  .vdp-shell .vdp-description,
  .vdp-shell .vdp-related { box-sizing:border-box; width:100%; max-width:100%; }
  .vdp-shell .vdp-toolbar { padding:9px 13px; gap:8px 12px; flex-wrap:nowrap; }
  .vdp-shell .vdp-title { flex:1 1 auto; min-width:0; }
  .vdp-shell .vdp-title strong { font-size:12px; }
  .vdp-shell .vdp-toggle,
  .vdp-shell .vdp-actions { flex:0 0 auto; }
  .vdp-shell .vdp-toggle button { min-height:29px; padding:5px 8px; }
  .vdp-shell .vdp-actions a { font-size:10px; }
  .vdp-shell .vdp-stage { padding:9px; }
  .vdp-shell[data-mode=desktop] .vdp-viewport { max-width:100%; }
  .vdp-shell .vdp-description { border-radius:0; }
  .vdp-shell .vdp-description-inner { max-width:none; }
}
