/* ==========================================================================
   Single product (single-lh_product.php)
   ========================================================================== */

.lh-product__top{position:relative;overflow:hidden;padding:calc(var(--lh-header-h) + var(--lh-header-inset) + clamp(24px,3.4vw,52px)) 0 clamp(40px,5vw,80px)}
.lh-product__top .lh-container{position:relative}
.lh-product__grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:clamp(28px,5vw,92px);align-items:start}

/* Gallery */
.lh-gallery__stage{position:relative;border-radius:clamp(24px,2.6vw,36px);overflow:hidden;aspect-ratio:1/1;display:grid;place-items:center;box-shadow:var(--lh-sh-lg)}
.lh-gallery--leather .lh-gallery__stage{background:var(--lh-saddle-tint)}
.lh-gallery--linen .lh-gallery__stage{background:var(--lh-pine-tint)}
/* The picture is shown whole inside the fixed stage (object-fit: contain). */
.lh-gallery__main{width:100%;height:100%;object-fit:cover;padding:0px;transition:opacity .3s var(--lh-ease),transform .5s var(--lh-ease)}
.lh-gallery__main.is-swapping{opacity:0;transform:scale(.985)}
.lh-gallery__thumbs{list-style:none;display:flex;gap:12px;flex-wrap:wrap;margin:16px 0 0;padding:0}
.lh-thumb{display:block;width:84px;height:84px;padding:0;border:2px solid transparent;border-radius:var(--lh-r-md);overflow:hidden;background:var(--lh-fog);cursor:pointer;box-shadow:var(--lh-sh-sm);transition:border-color .2s,transform .25s var(--lh-ease)}
.lh-thumb img{width:100%;height:100%;object-fit:contain}
.lh-thumb:hover{transform:translateY(-3px)}
.lh-thumb.is-active{border-color:var(--lh-ink)}

/* Summary */
.lh-summary__title{font-size:clamp(36px,4.2vw,var(--lh-h2));line-height:1.05;margin-bottom:14px}
.lh-summary__spec{font-size:1.18em;color:var(--lh-ink);margin-bottom:12px}
.lh-summary__excerpt{color:var(--lh-stone)}
.lh-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0 8px}
.lh-facts__item{background:#fff;border:1px solid var(--lh-line);border-radius:var(--lh-r-md);padding:16px 18px;box-shadow:var(--lh-sh-xs)}
.lh-facts dt{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--lh-stone);margin-bottom:4px}
.lh-facts dd{margin:0;font-weight:600;font-size:16.5px}
.lh-summary__cta{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0 24px}
.lh-assure{list-style:none;display:grid;gap:10px;margin:0;padding:22px 0 0;border-top:1px solid var(--lh-line);font-size:15.5px;color:var(--lh-stone)}
.lh-assure li{display:flex;gap:10px;align-items:flex-start}
.lh-assure .lh-icon{color:var(--lh-vermilion);margin-top:2px}

/* Detail */
.lh-product__detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:clamp(28px,5vw,88px);align-items:start}
.lh-block{padding-block:clamp(26px,3vw,44px);border-top:1px solid var(--lh-line)}
.lh-block:first-child{border-top:0;padding-top:0}
.lh-block__title{font-size:clamp(28px,2.6vw,38px);margin-bottom:22px}
.lh-specs{margin:0;border:1px solid var(--lh-line);border-radius:var(--lh-r-lg);overflow:hidden;box-shadow:var(--lh-sh-xs)}
.lh-specs__row{display:grid;grid-template-columns:minmax(120px,32%) 1fr;gap:16px;padding:16px 20px;border-top:1px solid var(--lh-line)}
.lh-specs__row:first-child{border-top:0}
.lh-specs__row:nth-child(odd){background:var(--lh-fog)}
.lh-specs dt{font-weight:600}
.lh-specs dd{margin:0;color:var(--lh-ink)}
.lh-note{margin:14px 0 0;font-size:14.5px;color:var(--lh-stone)}
.lh-mini-steps{list-style:none;display:grid;gap:18px;margin:0;padding:0}
.lh-mini-steps li{display:grid;grid-template-columns:44px 1fr;gap:16px;align-items:start}
.lh-mini-steps strong{display:block;font-weight:600;margin-bottom:2px}
.lh-mini-steps div{color:var(--lh-stone);font-size:15.5px}
.lh-mini-steps__n{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--lh-line);box-shadow:var(--lh-sh-sm);font-family:var(--lh-font-head);font-size:24px;color:var(--lh-vermilion)}

.lh-product__side{position:sticky;top:calc(var(--lh-header-h-sticky) + var(--lh-header-inset) + 28px)}
.lh-related .lh-card__spec{min-height:0}

/* Mobile sticky quote bar */
.lh-stickybar{position:fixed;left:0;right:0;bottom:0;z-index:80;padding:10px var(--lh-gutter) calc(10px + env(safe-area-inset-bottom,0px));background:#fff;box-shadow:0 -10px 30px rgba(20,20,20,.10);transform:translateY(110%);transition:transform .4s var(--lh-ease);display:none}
.lh-stickybar.is-visible{transform:none}
.lh-stickybar__inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.lh-stickybar__name{font-weight:600;font-size:15px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lh-stickybar .lh-btn{padding:14px 18px;font-size:15px;white-space:nowrap}

@media (max-width:1024px){
  .lh-product__grid,.lh-product__detail-grid{grid-template-columns:1fr}
  .lh-product__side{position:static}
  .lh-stickybar{display:block}
  .lh-gallery__stage{aspect-ratio:1/.86}
}
@media (max-width:600px){
  .lh-facts{grid-template-columns:1fr}
  .lh-specs__row{grid-template-columns:1fr;gap:2px}
  .lh-thumb{width:68px;height:68px}
  .lh-summary__cta .lh-btn{flex:1 1 100%}
  .lh-gallery__stage{aspect-ratio:1/1}
}
@media (prefers-reduced-motion:reduce){.lh-gallery__main{transition:none}}






/* ===== Quote popup (single product page) ===== */
.lh-popup{width:min(720px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;border:0;background:transparent;overflow:visible;color:var(--lh-ink)}
.lh-popup::backdrop{background:rgba(20,20,20,.58);backdrop-filter:blur(3px)}
.lh-popup[open]{animation:lhPopIn .38s var(--lh-ease)}
.lh-popup[open]::backdrop{animation:lhPopFade .3s ease}
@keyframes lhPopIn{from{opacity:0;transform:translateY(26px) scale(.97)}to{opacity:1;transform:none}}
@keyframes lhPopFade{from{opacity:0}to{opacity:1}}
.lh-popup__panel{position:relative;max-height:calc(100dvh - 24px);overflow-y:auto;background:#fff;border-radius:var(--lh-r-xl);box-shadow:var(--lh-sh-xl);padding:clamp(22px,3vw,40px)}
.lh-popup__close{position:absolute;top:14px;right:14px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid var(--lh-line);border-radius:50%;background:#fff;color:var(--lh-ink);font-size:26px;line-height:1;cursor:pointer;transition:background-color .2s,color .2s,transform .25s var(--lh-ease)}
.lh-popup__close:hover{background:var(--lh-ink);color:#fff;transform:rotate(90deg)}
.lh-popup__head{display:flex;align-items:center;gap:18px;margin-bottom:24px;padding-right:52px}
.lh-popup__thumb{flex:none;display:grid;place-items:center;width:88px;height:88px;border-radius:var(--lh-r-md);background:var(--lh-fog);overflow:hidden}
.lh-popup__thumb img{width:100%;height:100%;object-fit:contain;padding:0px}
.lh-popup__title{font-size:clamp(28px,3vw,38px);margin:0 0 4px}
.lh-popup__product{margin:0;font-weight:600}
.lh-popup__spec{margin:2px 0 0;color:var(--lh-stone);font-size:15px}

/* Form fields inside the popup */
.lh-popup__form .wpcf7-form p{max-width:none;margin:0}
.lh-popup__form .wpcf7-form-control-wrap{display:block}
.lh-popup__form label{display:block;margin-bottom:6px;font-size:15px;font-weight:600}
.lh-popup__form input[type=text],.lh-popup__form input[type=email],.lh-popup__form input[type=tel],.lh-popup__form input[type=number],.lh-popup__form select,.lh-popup__form textarea{width:100%;padding:14px 16px;font:inherit;font-size:16.5px;font-weight:400;color:var(--lh-ink);background:#fff;border:1.5px solid #8E938E;border-radius:var(--lh-r-sm);transition:border-color .2s,box-shadow .2s}
.lh-popup__form textarea{min-height:110px;height:110px;resize:vertical}
.lh-popup__form select{appearance:none;padding-right:42px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px}
.lh-popup__form input:focus,.lh-popup__form select:focus,.lh-popup__form textarea:focus{outline:none;border-color:var(--lh-ink);box-shadow:0 0 0 4px rgba(201,61,20,.18)}
.lh-popup__form .wpcf7-acceptance label{font-size:14.5px;font-weight:400}
.lh-popup__form .wpcf7-acceptance input{width:auto;margin-right:8px}
.lh-popup__form .wpcf7-submit{display:inline-flex;padding:18px 32px;font-family:var(--lh-font-body);font-size:16.5px;font-weight:600;color:#fff;background:var(--lh-vermilion);border:2px solid transparent;border-radius:var(--lh-r-md);box-shadow:var(--lh-sh-cta);cursor:pointer;transition:transform .25s var(--lh-ease),background-color .2s}
.lh-popup__form .wpcf7-submit:hover{background:var(--lh-vermilion-deep);transform:translateY(-3px)}
.lh-popup__form .wpcf7-not-valid-tip{margin-top:5px;font-size:14px;color:var(--lh-vermilion)}
.lh-popup__form .wpcf7-not-valid{border-color:var(--lh-vermilion)}
.lh-popup__form .wpcf7 form .wpcf7-response-output{margin:18px 0 0;padding:14px 16px;border:1.5px solid var(--lh-line);border-radius:var(--lh-r-sm);font-size:15px}
.lh-popup__form .wpcf7 form.sent .wpcf7-response-output{border-color:#17653a;background:#EAF5EE}

@media (max-width:600px){
  .lh-popup{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}
  .lh-popup__panel{max-height:calc(100dvh - 16px);padding:20px}
  .lh-popup__thumb{width:68px;height:68px}
}
@media (prefers-reduced-motion:reduce){.lh-popup[open],.lh-popup[open]::backdrop{animation:none}}
