/* SrinakornGem V6.8 — targeted customer UI additions only.
   Admin / Staff are untouched. */
/* Restore favorites on product detail; card favorites are separate from the link. */
.product-config .heart-large {display:grid!important;place-items:center;flex:none;color:#202020;width:43px;height:43px;border-radius:50%;background:#fff;border:1px solid #e4ddd4;cursor:pointer;font-size:24px}
.product-config .heart-large.active {color:#b74b51}
.product-card {position:relative}
.sg68-card-fav{position:absolute;right:10px;top:10px;z-index:4;display:grid;place-items:center;border:1px solid #e9e2da;background:rgba(255,255,255,.96);color:#282523;width:39px;height:39px;border-radius:50%;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 3px 12px rgba(0,0,0,.05)}
.sg68-card-fav.is-active {color:#b74b51}
.sg68-card-fav:hover,.sg68-nav-fav:hover {border-color:#c5b296;background:#faf8f5}
.nav-wrap {position:relative}
.sg68-nav-fav{border:1px solid #e5dfd6;background:#fff;color:#24221f;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:41px;min-width:49px;padding:0 10px;cursor:pointer;font:600 12px var(--sg-v67-font,system-ui)!important;white-space:nowrap;flex:none}
.sg68-nav-fav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sg68-favorites-panel{position:absolute;right:0;top:calc(100% - 4px);z-index:1001;background:#fff;border:1px solid #e6dfd6;box-shadow:0 24px 65px rgba(35,29,22,.14);border-radius:16px;padding:14px;width:min(365px,calc(100vw - 26px));font:normal 14px var(--sg-v67-font,system-ui)}
.sg68-favorites-panel[hidden]{display:none!important}
.sg68-fav-title{display:flex;align-items:center;gap:8px;padding:0 3px 12px;border-bottom:1px solid #f1ede8}
.sg68-fav-title strong{flex:1;font-size:16px}
.sg68-fav-title span{font-size:12px;color:#817567}
.sg68-fav-title button{background:none;border:none;font-size:25px;line-height:1;cursor:pointer;color:#686057}
.sg68-fav-list{max-height:min(54vh,450px);overflow:auto;overscroll-behavior:contain}
.sg68-fav-entry{display:flex;align-items:center;gap:8px;border-bottom:1px solid #f5f1ed;padding:10px 2px}
.sg68-fav-entry a{display:flex;align-items:center;gap:11px;flex:1;min-width:0}
.sg68-fav-entry img,.sg68-fav-placeholder{height:50px;width:50px;flex:none;object-fit:contain;border-radius:8px;background:#faf8f5;display:grid;place-items:center;font-size:22px}
.sg68-fav-entry a>span:last-child{display:grid;gap:4px;min-width:0}
.sg68-fav-entry b{font-size:13px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg68-fav-entry small{color:#897868;font-size:11px}
.sg68-fav-entry>button{border:0;background:transparent;font-size:22px;color:#8c7c6c;cursor:pointer;padding:8px}
.sg68-fav-empty{margin:16px 5px 5px;font-size:13px;line-height:1.8;color:#7c746c}
/* Native dropdown presentation exactly like the Portfolio category select. */
.product-config .sg68-select {display:block;width:100%;min-height:52px;border-radius:13px!important;border:1px solid #e5dfd6!important;background:#fff!important;padding:12px 14px!important;color:#24221f;box-shadow:none!important;font-size:15px!important;font-weight:550!important;cursor:pointer}
.product-config .sg68-select:has(option:checked[value=""]) {color:#756d66}
.product-config .sg68-select:focus-visible {outline:2px solid #af8545;outline-offset:2px}
.product-config .config-block:has(>.sg68-select){margin-block:12px}
.product-config .config-row .config-block:has(>.sg68-select){margin-block:12px}
@media(max-width:640px){
  .sg68-nav-fav{height:38px;min-width:44px;padding:0 8px}
  .sg68-nav-fav svg{width:16px;height:16px}
  .sg68-nav-fav [data-fav-count]{font-size:11px}
  .sg68-favorites-panel{top:calc(100% + 3px);right:0}
  .product-config .sg68-select{font-size:16px!important;min-height:51px}
  .sg68-card-fav{height:35px;width:35px;font-size:23px;right:8px;top:8px}
}
@media(max-width:420px){
  .nav-wrap{gap:5px!important}
  .nav-actions{gap:4px!important}
  .nav-wrap .brand b{font-size:clamp(14px,4.1vw,17px)!important}
  .lang-toggle{padding:0 7px!important}
  .line-pill{padding:0 9px!important}
  .sg68-nav-fav{padding:0 6px;min-width:40px}
}
