/* Praasia V15.16 — Shop home. One semantic shell, Classic Gold, no nested presentation tables. */
body.ps-shop-home {
  --psi-bg:#20130e; --psi-chocolate:#382519; --psi-deep:#271910;
  --psi-gold:#b88a4b; --psi-gold-light:#edc98b; --psi-cream:#fff9ef;
  --psi-paper:#fffdf8; --psi-ink:#37261a; --psi-muted:#705742; --psi-edge:#e6d5bd;
  margin:0; padding:0; min-width:0; overflow-x:clip;
  background:#20130e; color:#f5e6cb;
  font:14px/1.65 Tahoma,"Noto Sans Thai",Arial,sans-serif;
}
body.ps-shop-home *,body.ps-shop-home *::before,body.ps-shop-home *::after {box-sizing:border-box}
body.ps-shop-home img {max-width:100%;height:auto}
body.ps-shop-home button,body.ps-shop-home input,body.ps-shop-home textarea {font:inherit}
body.ps-shop-home a {text-decoration:none}
body.ps-shop-home :focus-visible {outline:3px solid #d5a75a;outline-offset:3px}
body.ps-shop-home .psi-sr-only {position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
body.ps-shop-home .psi-shell {width:calc(100% - 32px);max-width:none;margin:0 auto 28px;min-width:0;background:#38271c;border-inline:1px solid #765537;box-shadow:0 14px 44px #10080366}
body.ps-shop-home .psi-top-banner img {width:100%;display:block;max-height:235px;object-fit:cover;object-position:center}
body.ps-shop-home .psi-shop-cover img {width:100%;display:block;max-height:330px;aspect-ratio:20/6.4;object-fit:cover;object-position:center}
body.ps-shop-home .psi-shop-cover-fallback {min-height:130px;display:grid;place-items:center;text-align:center;background:#25160f;color:#e8cc9f;padding:20px}
body.ps-shop-home .psi-account-bar {width:calc(100% - 32px);max-width:none; margin:0 auto; min-width:0; background:#2d1c12;border-inline:1px solid #765537;border-bottom:1px solid #705032;padding:9px 16px}
body.ps-shop-home .psi-login {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.ps-shop-home .psi-login .login-input {width:170px;max-width:100%;min-height:38px;border:1px solid #a58253;border-radius:8px;padding:7px 10px;background:#fffcf7;color:#362314}
body.ps-shop-home .psi-remember {display:inline-flex;align-items:center;gap:6px;color:#f2e0c4;margin:0 6px 0 2px;white-space:nowrap;font-size:12px}
body.ps-shop-home .psi-remember input {accent-color:#b98a44;width:15px;height:15px}
body.ps-shop-home .login-btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;cursor:pointer;padding:8px 13px;border:1px solid #c39348;border-radius:8px;background:#b8863d;color:#211507;font-weight:700;box-shadow:none}
body.ps-shop-home .login-btn.secondary {background:transparent;border-color:#755738;color:#f3dfbc}
/* V15.23 — compact member strip: one line at all widths. */
body.ps-shop-home .psi-account-signed {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:nowrap;min-width:0}
body.ps-shop-home .psi-account-greeting {display:flex;align-items:center;gap:7px;flex:1 1 auto;min-width:0;max-width:100%;font-size:13px;color:#f1d6a4;white-space:nowrap}
body.ps-shop-home .psi-account-greeting>i {flex:none}
body.ps-shop-home .psi-account-greeting>span {flex:none}
body.ps-shop-home .psi-account-greeting strong {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.ps-shop-home .psi-account-links {display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:none;min-width:0;flex-wrap:nowrap}
body.ps-shop-home .psi-account-links a {display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:5px 9px;border-radius:7px;color:#f1dbb9;font-weight:600;font-size:12px;white-space:nowrap}
body.ps-shop-home .psi-account-links a:hover {color:#fff;background:#4b3323}
body.ps-shop-home .psi-suspension {position:fixed;inset:0;z-index:100000;background:#110a07b8;display:grid;place-items:center;padding:20px}
body.ps-shop-home .psi-suspension>div {display:flex;align-items:center;gap:12px;padding:23px;max-width:560px;border:1px solid #d39a64;border-radius:14px;background:#7a231c;color:#fff;font-size:18px}
body.ps-shop-home .psi-error {padding:45px 20px;text-align:center;min-height:180px;color:#fff1da}
body.ps-shop-home .psi-error i {font-size:28px;color:#f2bb6e}
body.ps-shop-home .psi-error a {color:#ffe2a0;text-decoration:underline}
body.ps-shop-home .psi-site-header {display:grid;grid-template-columns:auto 1fr minmax(200px,265px);align-items:center;gap:14px;padding:15px 19px;background:#2c1d15;border-bottom:1px solid #785634;position:relative;z-index:20}
body.ps-shop-home .psi-site-header .ps-brand {display:flex;align-items:center;gap:11px;min-width:0}
body.ps-shop-home .psi-site-header .ps-brand-mark {width:50px;height:50px;display:grid;place-items:center;border:1px solid #b68a4b;border-radius:50%;color:#eac37e;background:#23150c;font-size:20px;flex:none;overflow:hidden}
body.ps-shop-home .psi-site-header .ps-brand-mark .ps-brand-logo-image {display:block;width:46px;height:46px;max-width:100%;max-height:100%;object-fit:cover;border-radius:50%}
body.ps-shop-home .psi-site-header .ps-brand-title {display:block;line-height:1.22;letter-spacing:1px;font-size:19px;font-weight:800;color:#f3d9a3}
body.ps-shop-home .psi-site-header .ps-brand-sub {display:block;font-size:10px;line-height:1.45;color:#e0c9a8}
body.ps-shop-home .psi-site-header .ps-main-nav {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;min-width:0;overflow:visible}
body.ps-shop-home .psi-site-header .ps-main-nav > a {display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;color:#f1e0c4;padding:9px 10px;border:1px solid transparent;border-radius:9px;font-weight:600;font-size:13px}
body.ps-shop-home .psi-site-header .ps-main-nav > a i {color:#e4b873;font-size:16px}
body.ps-shop-home .psi-site-header .ps-main-nav > a:hover,body.ps-shop-home .psi-site-header .ps-main-nav > a.is-current {background:#493325;border-color:#6b4f37}
body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-bar {padding:0!important;min-height:0!important;margin:0!important;max-width:none!important;width:auto!important;border:0!important;background:transparent!important;box-shadow:none!important}
body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-trigger {min-height:40px;padding:7px 12px;font-size:13px}
body.ps-shop-home .psi-search {display:flex;align-items:center;gap:8px;min-width:0;min-height:40px;padding-left:10px;border:1px solid #b68c59;border-radius:10px;background:#fffbf3;color:#906741;overflow:hidden}
body.ps-shop-home .psi-search input[type="search"] {flex:1;min-width:0;width:100%;height:38px;border:0;background:transparent;outline:0;color:#392519;font-size:13px;padding:0}
body.ps-shop-home .psi-search button {flex:none;width:42px;align-self:stretch;border:0;background:#dfb565;color:#332111;cursor:pointer}
body.ps-shop-home .psi-search button:hover {background:#efc782}
body.ps-shop-home .psi-crumb-bar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 20px;background:#3b281b;border-bottom:1px solid #765234;color:#f5ddac;font-size:13px}
body.ps-shop-home .psi-crumb-bar>span {display:inline-flex;align-items:center;gap:9px;min-width:0;overflow-wrap:anywhere}
body.ps-shop-home .psi-crumb-bar i {color:#dcb36c}
body.ps-shop-home .psi-share {display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #7f5938;border-radius:7px;color:#ffe5b7}
body.ps-shop-home .psi-share:hover {background:#543622;color:#fff}
body.ps-shop-home .psi-hero {display:grid;grid-template-columns:132px minmax(0,1fr) auto;gap:22px;align-items:center;padding:25px;background:#fff9ef;color:#332319;border-bottom:1px solid #d3b58a}
body.ps-shop-home .psi-logo {width:132px;height:132px;padding:5px;background:#f2e6d5;border:1px solid #ceb994;border-radius:16px;overflow:hidden}
body.ps-shop-home .psi-logo img {width:100%;height:100%;object-fit:contain;border-radius:11px}
body.ps-shop-home .psi-hero-info {min-width:0}
body.ps-shop-home .psi-hero h1 {font-size:clamp(22px,2.5vw,31px);font-weight:750;line-height:1.35;margin:0 0 10px;color:#392417;overflow-wrap:anywhere}
body.ps-shop-home .psi-shop-badges {display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}
body.ps-shop-home .psi-badge {display:inline-flex;gap:6px;align-items:center;border:1px solid #d7c3a5;border-radius:999px;padding:3px 9px;background:#f6ead6;color:#67442a;font-size:11px;font-weight:700}
body.ps-shop-home .psi-badge i {color:#a27737}
body.ps-shop-home .psi-badge.is-online {background:#f2e9d9;border-color:#d7bd91;color:#73502c}
body.ps-shop-home .psi-badge.is-online i {color:#b08a48;font-size:8px}
body.ps-shop-home .psi-badge.is-offline i {color:#a55245;font-size:8px}
body.ps-shop-home .psi-shop-stats {display:flex;flex-wrap:wrap;gap:0;min-width:0}
body.ps-shop-home .psi-shop-stats>div {display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:6px;align-items:center;padding:0 17px;border-right:1px solid #e4d0b0}
body.ps-shop-home .psi-shop-stats>div:first-child {padding-left:0}
body.ps-shop-home .psi-shop-stats>div:last-child {border-right:0}
body.ps-shop-home .psi-shop-stats i {grid-row:1; color:#ad7d40}
body.ps-shop-home .psi-shop-stats strong {grid-row:1;color:#412a1a;font-size:17px}
body.ps-shop-home .psi-shop-stats small {grid-column:1/-1;color:#765c43;font-size:11px}
body.ps-shop-home .psi-hero-actions {display:flex;flex-direction:column;gap:9px;min-width:170px}
body.ps-shop-home .psi-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;min-height:40px;padding:9px 13px;text-align:center;border-radius:9px;border:1px solid #a87539;font-size:13px;font-weight:700}
body.ps-shop-home .psi-button-primary {background:#8b522e;color:#fff2dc}
body.ps-shop-home .psi-button-primary:hover {background:#744024;color:#fff}
body.ps-shop-home .psi-button-outline {background:#fffaf2;color:#6c432b}
body.ps-shop-home .psi-button-outline:hover {background:#f1e1cb}
body.ps-shop-home .psi-unread {border-radius:99px;background:#9e4037;color:#fff;padding:0 5px;font-size:11px}
body.ps-shop-home .psi-info-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:16px 16px 0}
body.ps-shop-home .psi-section {min-width:0;background:#fffdf8;color:var(--psi-ink);border:1px solid #ddcbb1;border-radius:14px;overflow:hidden;margin:0 16px 16px}
body.ps-shop-home .psi-info-grid .psi-section {margin:0}
body.ps-shop-home .psi-heading {display:flex;gap:9px;align-items:center;min-height:48px;padding:10px 15px;background:#3b281b;border-bottom:1px solid #6f4d32;color:#f5dfb3}
body.ps-shop-home .psi-heading>i {font-size:17px;color:#e7b875}
body.ps-shop-home .psi-heading h2 {margin:0;color:inherit;font-size:15px;line-height:1.5;font-weight:750}
body.ps-shop-home .psi-heading a.psi-more {margin-left:auto;display:inline-flex;gap:5px;align-items:center;color:#ffe1aa;font-size:12px;font-weight:600;white-space:nowrap}
body.ps-shop-home .psi-data-rows {margin:0;padding:2px 15px 8px}
body.ps-shop-home .psi-data-row {display:grid;grid-template-columns:minmax(105px,38%) minmax(0,1fr);align-items:start;gap:12px;padding:11px 0;border-bottom:1px solid #ede2d3;line-height:1.55}
body.ps-shop-home .psi-data-row:last-child {border-bottom:0}
body.ps-shop-home .psi-data-row dt {display:flex;align-items:center;gap:8px;min-width:0;font-size:12px;font-weight:700;color:#69462e}
body.ps-shop-home .psi-data-row dt i {display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:9px;background:#f9ecda;color:#915e31;font-size:15px}
body.ps-shop-home .psi-data-row dd {margin:0;min-width:0;text-align:right;color:#3c2517;font-size:13px;font-weight:600;overflow-wrap:anywhere}
body.ps-shop-home .psi-data-row .psi-address {white-space:pre-line}
body.ps-shop-home .psi-data-row .psi-days {display:block;margin-top:3px;color:#955f31;font-size:11px}
body.ps-shop-home .psi-welcome {padding:14px 17px 2px}
body.ps-shop-home .psi-welcome-copy {font-size:14px;line-height:1.85;overflow-wrap:anywhere;color:#422e1f}
body.ps-shop-home .psi-welcome-copy * {max-width:100%;color:inherit!important}
body.ps-shop-home .psi-welcome-copy table {width:100%!important;max-width:100%;table-layout:auto}
body.ps-shop-home .psi-welcome-copy img {max-width:100%;height:auto}
body.ps-shop-home .psi-welcome p {margin:0 0 14px;color:#705742}
body.ps-shop-home .psi-warranty {padding:0 17px 16px}
body.ps-shop-home .psi-warranty h3 {display:flex;align-items:center;gap:8px;margin:11px 0 7px;color:#674226;font-size:13px}
body.ps-shop-home .psi-warranty h3 i {color:#a87839}
body.ps-shop-home .psi-warranty ul {list-style:none;padding:0;margin:0}
body.ps-shop-home .psi-warranty li {display:flex;align-items:flex-start;gap:8px;padding:6px 0;border-top:1px solid #f0e6d8;color:#533c2c;font-size:12px}
body.ps-shop-home .psi-warranty li i {color:#9d6b33;flex:none}
body.ps-shop-home .psi-products-section {background:#fffdf8}
body.ps-shop-home .psi-product-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;background:#fff;border:0;padding:4px 8px 10px;min-width:0}
body.ps-shop-home .shop-product-card {min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:0;border-right:1px solid #ebdecb;border-bottom:1px solid #ebdecb;border-radius:0;margin:0;padding:12px 8px;background:#fff;color:#3b281a;box-shadow:none}
body.ps-shop-home .shop-product-card .shop-product-image {display:block;overflow:hidden;width:100%;aspect-ratio:1/1;border-radius:9px;background:#f0e6d7}
body.ps-shop-home .shop-product-card img {width:100%;height:100%;object-fit:cover;display:block}
body.ps-shop-home .shop-product-card .shop-product-body {display:flex;flex-direction:column;gap:7px;padding:8px 0 0;min-height:116px;flex:1;min-width:0}
body.ps-shop-home .shop-product-card .shop-product-name {display:block;height:3em;max-height:3em;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b99061 #f6ecde;color:#3a291b;font-size:12px;line-height:1.5;font-weight:700;overflow-wrap:anywhere}
body.ps-shop-home .shop-product-card .shop-product-meta {display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin-top:auto;font-size:11px}
body.ps-shop-home .shop-product-card .shop-product-meta .price {color:#8d4c2b;font-weight:800;overflow-wrap:anywhere}
body.ps-shop-home .shop-product-card .shop-product-meta .status {display:inline-block;padding:2px 6px;border-radius:99px;border:1px solid #d3bc99;background:#f8efd9;color:#71482c;font-size:10px;font-weight:700}
body.ps-shop-home .shop-product-card .shop-product-meta .status.sale {border-color:#dfc6a1;background:#f7edda;color:#81502c}
body.ps-shop-home .shop-product-card .shop-product-meta .status.sold {border-color:#d8b0a5;background:#faeae5;color:#9f3e32}
body.ps-shop-home .shop-product-card .score-row {margin-top:4px;min-height:18px;display:flex;gap:6px;align-items:center;justify-content:space-between;color:#825d39;font-size:10px}
body.ps-shop-home .shop-product-card .score-bar {height:4px;min-width:32px;flex:1;border-radius:5px;background:#e9dfd1;overflow:hidden}
body.ps-shop-home .shop-product-card .score-bar i {display:block;height:100%;background:#a1784d}
/* V15.17: high-contrast product rows. Specificity intentionally wins over the
   legacy V15.4 .hot-product-scroll rules while changing only the shop home. */
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-card {
  width:auto; min-width:0; height:auto; min-height:0; margin:0;
  padding:12px 9px; border:0; border-right:1px solid #e5d6c1;
  border-bottom:1px solid #e5d6c1; border-radius:0;
  background:#fffaf2; color:#302015; box-shadow:none;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-image {
  width:100%; height:auto; aspect-ratio:1/1; flex:0 0 auto;
  border-radius:9px; background:#f0e5d5;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-image img {
  width:100%; height:100%; aspect-ratio:1/1; object-fit:cover;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-body {
  display:flex; flex:1 1 auto; flex-direction:column; gap:8px;
  height:auto; min-height:116px; padding:10px 2px 3px;
  background:#fffaf2; color:#302015;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name,
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name:link,
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name:visited {
  display:block; height:3.15em; min-height:3.15em; max-height:3.15em;
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:#ae8555 #f5e9d8;
  color:#322014; font-size:13px; font-weight:700; line-height:1.55;
  overflow-wrap:anywhere; text-decoration:none;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name:hover {color:#743e24;text-decoration:underline}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name::-webkit-scrollbar {width:4px}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-name::-webkit-scrollbar-thumb {background:#ae8555;border-radius:6px}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta {
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:6px; height:auto; margin-top:auto;
  color:#4b3422; font-size:12px;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .price {
  color:#78391f; font-size:13px; font-weight:800;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .status {
  background:#f0e0c3; border:1px solid #c9a979;
  color:#54351f; font-size:11px; line-height:1.4; font-weight:700;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .status.sold {
  background:#f3deda; border-color:#d4afa8; color:#812f27;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .score-row {
  display:flex; align-items:center; justify-content:space-between; gap:6px;
  min-height:18px; margin-top:1px; color:#64462c; font-size:11px;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .score-bar {
  height:4px; min-width:25px; flex:1; overflow:hidden;
  border-radius:5px; background:#e8dac5;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .score-bar i {
  display:block; height:100%; background:#97703d;
}
body.ps-shop-home .psi-empty {margin:0;padding:20px;color:#6f5640;text-align:center}
body.ps-shop-home .psi-footer {width:calc(100% - 32px);max-width:none;margin:0 auto;color:#d6bb91;padding-bottom:24px}
body.ps-shop-home .pra-swal {font-family:Tahoma,"Noto Sans Thai",Arial,sans-serif}
@media(max-width:1080px){
  body.ps-shop-home .psi-site-header {grid-template-columns:1fr auto;}
  body.ps-shop-home .psi-site-header .ps-main-nav {justify-content:flex-end}
  body.ps-shop-home .psi-search {grid-column:1/-1;justify-self:stretch}
  body.ps-shop-home .psi-hero {grid-template-columns:115px minmax(0,1fr)}
  body.ps-shop-home .psi-logo {width:115px;height:115px}
  body.ps-shop-home .psi-hero-actions {grid-column:1/-1;flex-direction:row;justify-content:flex-end}
  body.ps-shop-home .psi-product-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:690px){
  body.ps-shop-home .psi-account-bar.psi-account-bar-signed {padding:5px 10px}
  body.ps-shop-home .psi-account-signed {gap:7px}
  body.ps-shop-home .psi-account-greeting {gap:6px;font-size:12px}
  body.ps-shop-home .psi-account-greeting>span {display:none}
  body.ps-shop-home .psi-account-links {gap:4px}
  body.ps-shop-home .psi-account-links a {width:38px;min-width:38px;height:36px;min-height:36px;padding:0;border:1px solid #735232;border-radius:8px;background:#3c2819;font-size:15px}
  body.ps-shop-home .psi-account-links a>span {display:none}
  body.ps-shop-home .psi-account-bar {padding:9px 10px}
  body.ps-shop-home .psi-login .login-input {flex:1 1 calc(50% - 6px);min-width:0;width:auto}
  body.ps-shop-home .psi-login .psi-remember {flex:1 1 100%}
  body.ps-shop-home .psi-login .login-btn {flex:1 1 45%;min-width:0}
  body.ps-shop-home .psi-site-header {grid-template-columns:1fr;padding:14px;gap:11px}
  body.ps-shop-home .psi-site-header .ps-brand {justify-content:center}
  body.ps-shop-home .psi-site-header .ps-main-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;border-top:1px solid #5a402f;padding-top:10px;justify-content:stretch}
  body.ps-shop-home .psi-site-header .ps-main-nav>a {min-width:0;min-height:42px;border-color:#654832;background:#372519}
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-bar,
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-wrap,
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-trigger {width:100%!important}
  body.ps-shop-home .psi-search {grid-column:auto}
  body.ps-shop-home .psi-crumb-bar {padding:9px 13px}
  body.ps-shop-home .psi-hero {grid-template-columns:80px minmax(0,1fr);padding:16px;gap:12px}
  body.ps-shop-home .psi-logo {width:80px;height:80px;border-radius:12px}
  body.ps-shop-home .psi-hero h1 {font-size:21px}
  body.ps-shop-home .psi-shop-stats>div {padding:0 9px}
  body.ps-shop-home .psi-shop-stats>div:first-child {padding-left:0}
  body.ps-shop-home .psi-shop-stats strong {font-size:14px}
  body.ps-shop-home .psi-shop-stats small {font-size:10px}
  body.ps-shop-home .psi-hero-actions {justify-content:stretch}
  body.ps-shop-home .psi-hero-actions>* {flex:1}
  body.ps-shop-home .psi-info-grid {grid-template-columns:1fr;padding:11px 10px 0;gap:11px}
  body.ps-shop-home .psi-section {margin:0 10px 12px}
  body.ps-shop-home .psi-heading {padding:9px 13px}
  body.ps-shop-home .psi-data-rows {padding:2px 12px 6px}
  body.ps-shop-home .psi-product-grid {grid-template-columns:repeat(2,minmax(0,1fr));padding:3px 5px 7px}
  body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-card {padding:9px 7px}
}
@media(max-width:380px){
  body.ps-shop-home .psi-hero {grid-template-columns:65px minmax(0,1fr);padding:11px;gap:10px}
  body.ps-shop-home .psi-logo {width:65px;height:65px}
  body.ps-shop-home .psi-hero h1 {font-size:18px}
  body.ps-shop-home .psi-hero-actions {gap:6px}
  body.ps-shop-home .psi-button {font-size:11px;padding:7px 8px}
  body.ps-shop-home .psi-data-row {grid-template-columns:minmax(100px,43%) minmax(0,1fr);gap:6px}
  body.ps-shop-home .psi-data-row dt {font-size:11px}
  body.ps-shop-home .psi-data-row dd {font-size:12px}
}
@media(prefers-reduced-motion:reduce){body.ps-shop-home *,body.ps-shop-home *::before,body.ps-shop-home *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* V15.18: featured amulets only. Latest products keep their existing grid. */
body.ps-shop-home .psi-featured-carousel {min-width:0;background:#fffdf8;padding:0 0 8px}
body.ps-shop-home .psi-featured-viewport {
  width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;scroll-padding-inline-start:8px;
  scroll-behavior:smooth;overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin;
  scrollbar-color:#b49167 #f5ecdc;
}
body.ps-shop-home .psi-featured-viewport::-webkit-scrollbar{height:6px}
body.ps-shop-home .psi-featured-viewport::-webkit-scrollbar-thumb{background:#b49167;border-radius:8px}
body.ps-shop-home .psi-featured-viewport::-webkit-scrollbar-track{background:#f5ecdc}
body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid {
  display:grid!important;grid-auto-flow:column;
  grid-auto-columns:calc((100% - 16px - 40px) / 5);
  grid-template-columns:none!important;gap:10px!important;padding:8px!important;
  width:100%!important;min-width:0;overflow:visible;align-items:stretch;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid .shop-product-card{
  width:100%!important;height:auto;scroll-snap-align:start;
  border:1px solid #e9dac5;border-radius:9px;background:#fffaf2;
  padding:9px;box-sizing:border-box;
}
body.ps-shop-home .psi-featured-controls{display:none;justify-content:center;align-items:center;gap:8px;padding:9px 12px 4px}
body.ps-shop-home .psi-featured-carousel.is-ready .psi-featured-controls{display:flex}
body.ps-shop-home .psi-featured-controls button{
  display:inline-flex;justify-content:center;align-items:center;gap:7px;height:36px;
  border:1px solid #be9a68;border-radius:9px;background:#f7ebd8;color:#52321c;
  cursor:pointer;font:700 13px/1.3 Tahoma,"Noto Sans Thai",sans-serif;
  transition:background-color .15s ease,border-color .15s ease;
}
body.ps-shop-home .psi-featured-controls button:hover{background:#ead3ae;border-color:#a9753e}
body.ps-shop-home .psi-featured-controls button:focus-visible,
body.ps-shop-home .psi-featured-viewport:focus-visible{outline:3px solid #b78648;outline-offset:2px}
body.ps-shop-home .psi-featured-arrow{width:40px}
body.ps-shop-home .psi-featured-toggle{padding:0 15px;min-width:112px}
body.ps-shop-home .psi-featured-toggle i{font-size:15px}
body.ps-shop-home .psi-featured-carousel.is-static .psi-featured-controls{display:none}
@media(max-width:1080px){
  body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid{
    grid-auto-columns:calc((100% - 16px - 30px) / 4);
  }
}
@media(max-width:690px){
  body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid{
    grid-auto-columns:calc((100% - 16px - 10px) / 2);gap:10px!important;padding:8px!important;
  }
  body.ps-shop-home .psi-featured-controls{padding:8px 8px 3px}
}
@media(prefers-reduced-motion:reduce){
  body.ps-shop-home .psi-featured-viewport{scroll-behavior:auto}
  body.ps-shop-home .psi-featured-controls button{transition:none}
  body.ps-shop-home .psi-featured-toggle{display:none}
}

/* V15.19 — Desktop full-width shop storefront, matched to viewport rather than a 1160px frame.
   Only this page is affected: other Shops pages keep their existing width and design. */
@media (min-width:1440px) {
  body.ps-shop-home .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(6,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 50px) / 6)}
}
@media (min-width:1780px) {
  body.ps-shop-home .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(7,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 60px) / 7)}
}
@media (min-width:2240px) {
  body.ps-shop-home .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(8,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 70px) / 8)}
}
@media (max-width:690px) {
  body.ps-shop-home .psi-shell,
  body.ps-shop-home .psi-account-bar,
  body.ps-shop-home .psi-footer {width:100%;max-width:none}
}

/* V15.20 — Three-zone store layout based on the supplied reference.
   Scoped to shop_index.php only. Existing PHP/SQL, tabs, links and cards unchanged. */
body.ps-shop-home .psi-storefront-layout {
  display:grid;
  grid-template-columns:clamp(250px,17vw,310px) minmax(0,1fr) clamp(250px,17vw,320px);
  gap:16px; align-items:start;
  padding:16px; min-width:0;
  background:#231810;
}
body.ps-shop-home .psi-storefront-left,
body.ps-shop-home .psi-storefront-center,
body.ps-shop-home .psi-storefront-right {
  display:flex; flex-direction:column; gap:16px; min-width:0;
}
body.ps-shop-home .psi-storefront-layout .psi-section {min-width:0;margin:0}
body.ps-shop-home .psi-crumb-bar {background:#c89b53;color:#2b1b0d;border-bottom-color:#916631;font-size:15px}
body.ps-shop-home .psi-crumb-bar i,
body.ps-shop-home .psi-crumb-bar .psi-share {color:#322010}
body.ps-shop-home .psi-crumb-bar .psi-share {border-color:#795b33;background:#eed0a0}
body.ps-shop-home .psi-crumb-bar .psi-share:hover {background:#ffe6bc}
/* Left: shop identity and owner details */
body.ps-shop-home .psi-storefront-left .psi-hero {
  display:flex;flex-direction:column;align-items:stretch;gap:12px;
  padding:20px 16px 16px;background:#38271c;color:#f8e8cd;
  border:1px solid #705239;border-radius:13px;min-width:0;
}
body.ps-shop-home .psi-storefront-left .psi-logo {
  align-self:center;width:112px;height:112px;padding:4px;
  border:2px solid #d0a35e;background:#2a1b13;border-radius:50%;
}
body.ps-shop-home .psi-storefront-left .psi-logo img {width:100%;height:100%;border-radius:50%;object-fit:cover}
body.ps-shop-home .psi-storefront-left .psi-hero-info {width:100%;min-width:0;text-align:center}
body.ps-shop-home .psi-storefront-left .psi-hero h1 {font-size:21px;color:#f4dcae;margin:0 0 10px}
body.ps-shop-home .psi-storefront-left .psi-shop-badges {justify-content:center;margin:0 0 10px}
body.ps-shop-home .psi-storefront-left .psi-badge {background:#503928;color:#f3dbad;border-color:#937047}
body.ps-shop-home .psi-storefront-left .psi-shop-stats {
  display:grid;grid-template-columns:1fr;gap:0;margin-top:9px;
  border-top:1px solid #694d33;
}
body.ps-shop-home .psi-storefront-left .psi-shop-stats>div {
  display:grid;grid-template-columns:22px minmax(0,1fr) auto;
  grid-template-rows:1fr;gap:8px;padding:10px 1px;
  align-items:center;border-right:0;border-bottom:1px solid #634730;text-align:left;
}
body.ps-shop-home .psi-storefront-left .psi-shop-stats>div:first-child {padding-left:1px}
body.ps-shop-home .psi-storefront-left .psi-shop-stats>div:last-child {border-bottom:0}
body.ps-shop-home .psi-storefront-left .psi-shop-stats i {grid-row:1;grid-column:1;color:#d1aa6f}
body.ps-shop-home .psi-storefront-left .psi-shop-stats small {grid-row:1;grid-column:2;color:#dfc49d;font-size:12px}
body.ps-shop-home .psi-storefront-left .psi-shop-stats strong {grid-row:1;grid-column:3;color:#fff2d6;font-size:14px;font-variant-numeric:tabular-nums}
body.ps-shop-home .psi-storefront-left .psi-hero-actions {width:100%;min-width:0;display:grid;grid-template-columns:1fr;gap:8px}
body.ps-shop-home .psi-storefront-left .psi-hero-actions>* {width:100%;min-width:0;min-height:38px}
body.ps-shop-home .psi-storefront-left .psi-info-grid {display:block;padding:0;min-width:0}
body.ps-shop-home .psi-storefront-left .psi-info-grid .psi-section,
body.ps-shop-home .psi-storefront-right .psi-section {
  border:1px solid #745438;background:#39291d;color:#f2dfbf;
  border-radius:13px;overflow:hidden;
}
body.ps-shop-home .psi-storefront-left .psi-heading,
body.ps-shop-home .psi-storefront-right .psi-heading {
  background:#493221;border-bottom-color:#79573a;color:#f6dba6;
}
body.ps-shop-home .psi-storefront-left .psi-heading h2,
body.ps-shop-home .psi-storefront-right .psi-heading h2 {color:#f6dba6}
body.ps-shop-home .psi-storefront-left .psi-data-rows {padding:3px 12px 8px}
body.ps-shop-home .psi-storefront-left .psi-data-row {grid-template-columns:minmax(0,39%) minmax(0,61%);gap:6px;border-color:#674c35}
body.ps-shop-home .psi-storefront-left .psi-data-row dt {font-size:11px;color:#e4c89f}
body.ps-shop-home .psi-storefront-left .psi-data-row dt i {width:25px;height:25px;background:#61472f;color:#f2cd87}
body.ps-shop-home .psi-storefront-left .psi-data-row dd {font-size:12px;color:#fff1d4}
body.ps-shop-home .psi-storefront-left .psi-data-row .psi-days {color:#e6b967}
/* Center: products take the flexible width */
body.ps-shop-home .psi-storefront-center .psi-products-section {background:#fffaf2;border:1px solid #b98c57;border-radius:12px;overflow:hidden}
body.ps-shop-home .psi-storefront-center .psi-heading {background:#493221;color:#f6dfae;border-bottom-color:#b48a56}
body.ps-shop-home .psi-storefront-center .psi-heading h2 {color:inherit}
body.ps-shop-home .psi-storefront-center .psi-more {color:#f3d6a5}
body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(4,minmax(0,1fr))}
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 30px) / 4)}
/* Right: shop statement, warranty and messaging. No duplicate database fields. */
body.ps-shop-home .psi-storefront-right .psi-welcome,
body.ps-shop-home .psi-storefront-right .psi-warranty {color:#f0ddbd}
body.ps-shop-home .psi-storefront-right .psi-welcome-copy,
body.ps-shop-home .psi-storefront-right .psi-welcome-copy *,
body.ps-shop-home .psi-storefront-right .psi-welcome p {color:#f3e0c3!important}
body.ps-shop-home .psi-storefront-right .psi-warranty h3 {color:#f3d09a}
body.ps-shop-home .psi-storefront-right .psi-warranty li {color:#e6ceb0;border-top-color:#684b33}
body.ps-shop-home .psi-storefront-right .psi-warranty li i {color:#d9ad69}
body.ps-shop-home .psi-storefront-right .psi-welcome-copy a {color:#ffe0a3!important;text-decoration:underline}
@media(min-width:1780px){
  body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(5,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 40px) / 5)}
}
@media(min-width:2300px){
  body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(6,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 50px) / 6)}
}
@media(max-width:1279px){
  body.ps-shop-home .psi-storefront-layout {grid-template-columns:270px minmax(0,1fr);grid-template-areas:'left center' 'right center'}
  body.ps-shop-home .psi-storefront-left {grid-area:left}
  body.ps-shop-home .psi-storefront-center {grid-area:center}
  body.ps-shop-home .psi-storefront-right {grid-area:right}
  body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(3,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 20px) / 3)}
}
@media(max-width:899px){
  body.ps-shop-home .psi-storefront-layout {grid-template-columns:1fr;grid-template-areas:'left' 'center' 'right';gap:12px;padding:12px}
  body.ps-shop-home .psi-storefront-left .psi-hero {display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;align-items:center}
  body.ps-shop-home .psi-storefront-left .psi-logo {width:100px;height:100px}
  body.ps-shop-home .psi-storefront-left .psi-hero-info {text-align:left}
  body.ps-shop-home .psi-storefront-left .psi-shop-badges {justify-content:flex-start}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats {grid-template-columns:repeat(3,minmax(0,1fr))}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div {display:flex;flex-direction:column;gap:2px;text-align:center;border-bottom:0;border-right:1px solid #634730;padding:4px 7px}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div:last-child {border-right:0}
  body.ps-shop-home .psi-storefront-left .psi-hero-actions {grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(3,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 20px) / 3)}
}
@media(max-width:690px){
  body.ps-shop-home .psi-storefront-layout {padding:10px;gap:10px}
  body.ps-shop-home .psi-storefront-left,.psi-storefront-center,.psi-storefront-right {gap:10px}
  body.ps-shop-home .psi-storefront-left .psi-hero {grid-template-columns:74px minmax(0,1fr);gap:10px;padding:12px}
  body.ps-shop-home .psi-storefront-left .psi-logo {width:74px;height:74px}
  body.ps-shop-home .psi-storefront-left .psi-hero h1 {font-size:19px;margin-bottom:6px}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats {gap:0}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div {padding:2px 4px}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div i {display:none}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div strong {font-size:13px}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div small {font-size:10px}
  body.ps-shop-home .psi-storefront-left .psi-hero-actions {gap:8px}
  body.ps-shop-home .psi-storefront-center .psi-product-grid:not(.psi-featured-track) {grid-template-columns:repeat(2,minmax(0,1fr))}
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {grid-auto-columns:calc((100% - 16px - 10px) / 2)}
}
@media(max-width:360px){
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div strong {font-size:12px}
  body.ps-shop-home .psi-storefront-left .psi-shop-stats>div small {font-size:9px}
}


/* V15.24 — one-row brand/search and one-row navigation on phones.
   Only the shop_index page header is affected; the desktop layout is unchanged. */
@media (max-width:690px) {
  body.ps-shop-home .psi-site-header {
    display:grid;
    grid-template-columns:minmax(114px,auto) minmax(0,1fr);
    grid-template-areas:"brand search" "nav nav";
    align-items:center;column-gap:9px;row-gap:8px;
    padding:9px 11px 10px;
  }
  body.ps-shop-home .psi-site-header .ps-brand {
    grid-area:brand;min-width:0;justify-content:flex-start;gap:7px;
  }
  body.ps-shop-home .psi-site-header .ps-brand-mark {
    width:36px;height:36px;flex:0 0 36px;
  }
  body.ps-shop-home .psi-site-header .ps-brand-mark .ps-brand-logo-image {
    width:34px;height:34px;
  }
  body.ps-shop-home .psi-site-header .ps-brand-title {
    font-size:16px;line-height:1.1;letter-spacing:.3px;
  }
  body.ps-shop-home .psi-site-header .ps-brand-sub {display:none}
  body.ps-shop-home .psi-site-header .ps-main-nav,
  body.ps-v157-page .psi-site-header .ps-main-nav {
    grid-area:nav;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;align-items:stretch;justify-content:stretch;min-width:0;
    padding:7px 0 0;border-top:1px solid #684b35;
    overflow:visible;
  }
  body.ps-shop-home .psi-site-header .ps-main-nav > a,
  body.ps-v157-page .psi-site-header .ps-main-nav > a {
    width:100%;min-width:0;height:43px;min-height:43px;margin:0;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:1px;padding:2px 2px;
    border:1px solid #684b35;border-radius:8px;background:#39271b;
    font-size:10.5px;line-height:1.12;white-space:nowrap;
  }
  body.ps-shop-home .psi-site-header .ps-main-nav > a i {font-size:16px;line-height:1.1}
  body.ps-shop-home .psi-site-header .ps-main-nav > a span {
    display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  }
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-bar.pra-shops-lang-inline {
    display:block;width:100%!important;min-width:0;min-height:0!important;
    padding:0!important;margin:0!important;
  }
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-wrap {
    display:block;width:100%!important;min-width:0;
  }
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-trigger,
  body.ps-v157-page .psi-site-header .ps-main-nav .pra-shops-lang-trigger {
    width:100%!important;min-width:0;height:43px;min-height:43px;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:1px;padding:2px 1px;border-radius:8px;
    font-size:10.5px;line-height:1.12;
  }
  body.ps-shop-home .psi-site-header .pra-shops-lang-icon svg {width:16px;height:16px}
  body.ps-shop-home .psi-site-header .pra-shops-lang-label {
    display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;
  }
  body.ps-shop-home .psi-site-header .pra-shops-lang-chevron {display:none}
  body.ps-shop-home .psi-site-header .psi-search {
    grid-area:search;grid-column:auto;justify-self:stretch;
    width:100%;min-width:0;min-height:36px;gap:5px;
    padding-left:8px;border-radius:8px;
  }
  body.ps-shop-home .psi-site-header .psi-search input[type="search"] {
    min-width:0;height:34px;font-size:11px;
  }
  body.ps-shop-home .psi-site-header .psi-search button {width:32px}
}
@media (max-width:350px) {
  body.ps-shop-home .psi-site-header {column-gap:6px;padding-inline:8px}
  body.ps-shop-home .psi-site-header .ps-brand-title {font-size:14px}
  body.ps-shop-home .psi-site-header .ps-main-nav > a,
  body.ps-v157-page .psi-site-header .ps-main-nav > a,
  body.ps-shop-home .psi-site-header .ps-main-nav .pra-shops-lang-trigger {font-size:10px}
}


/* PRAASIA — Latest shop products: same compact column density as the
   "More from this shop" cards on shop_product.php.
   Scoped ONLY to the latest grid; the featured carousel keeps its layout.
   Desktop 8/row, tablet 6/row, phone 4/row. */
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-product-grid.psi-latest-grid {
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:0;
  padding:4px 5px 9px;
  min-width:0;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card {
  min-width:0;
  padding:8px 5px;
  border-right:1px solid #e5d6c1;
  border-bottom:1px solid #e5d6c1;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card:nth-child(8n) {border-right:0;}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-image {
  width:100%;aspect-ratio:1/1;border-radius:6px;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-body {
  min-width:0;min-height:78px;height:auto;
  padding:6px 1px 2px;gap:4px;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name,
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name:link,
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name:visited {
  height:2.85em;min-height:2.85em;max-height:2.85em;
  font-size:10px;line-height:1.4;
  overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-meta {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  flex-wrap:nowrap;gap:3px;margin-top:auto;font-size:10px;
  min-width:0;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-meta .price {
  font-size:10px;overflow-wrap:anywhere;max-width:100%;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-meta .status {
  max-width:100%;font-size:9px;line-height:1.3;
  padding:2px 4px;white-space:normal;overflow-wrap:anywhere;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .score-row {
  display:flex;flex-direction:column;align-items:stretch;gap:2px;
  margin-top:2px;font-size:9px;min-width:0;
}
body.ps-shop-home.pra-v154-shop .psi-latest-grid .score-bar {
  flex:none;width:100%;min-width:0;height:3px;
}
@media (min-width:691px) and (max-width:1100px) {
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-product-grid.psi-latest-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card:nth-child(8n) {border-right:1px solid #e5d6c1;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card:nth-child(6n) {border-right:0;}
}
@media (max-width:690px) {
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-product-grid.psi-latest-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    padding:3px 3px 7px;
  }
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card {padding:6px 3px;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card:nth-child(8n) {border-right:1px solid #e5d6c1;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-card:nth-child(4n) {border-right:0;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-body {padding:4px 1px 1px;gap:3px;min-height:70px;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name,
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name:link,
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-name:visited {font-size:9px;line-height:1.35;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-meta .price {font-size:9px;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .shop-product-meta .status {font-size:8px;padding:1px 3px;}
  body.ps-shop-home.pra-v154-shop .psi-latest-grid .score-row {font-size:8px;}
}


/* PRAASIA Featured Amulets — compact, refined carousel. Scoped to featured only.
   Keep latest-products grid, shop data and other shared components unchanged. */
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-carousel {
  position:relative;min-width:0;padding:6px 0 7px;
  background:linear-gradient(180deg,#fffdf9 0%,#fbf2e3 100%);
  isolation:isolate;
}
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-carousel::before,
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-carousel::after {
  content:"";position:absolute;top:5px;bottom:60px;width:11px;
  pointer-events:none;z-index:2;
}
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-carousel::before {
  left:0;background:linear-gradient(90deg,#fffaf1 0%,transparent 100%);
}
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-carousel::after {
  right:0;background:linear-gradient(270deg,#fffaf1 0%,transparent 100%);
}
body.ps-shop-home.pra-v154-shop .psi-featured-viewport {
  scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding-inline:8px;
}
body.ps-shop-home.pra-v154-shop .psi-featured-viewport::-webkit-scrollbar {display:none}
body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {
  grid-auto-columns:calc((100% - 16px - 35px) / 6);gap:7px!important;
  padding:8px!important;background:transparent;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-card {
  min-width:0!important;padding:6px 5px!important;scroll-snap-align:start;
  background:#fffaf1!important;border:1px solid #e2cba9!important;
  border-radius:11px!important;
  box-shadow:0 2px 6px rgba(92,55,20,.06);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-card:hover {
  transform:translateY(-2px);border-color:#b78748!important;
  box-shadow:0 6px 14px rgba(92,55,20,.15);
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-image {
  width:100%;border-radius:7px;aspect-ratio:1/1;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-body {
  padding:5px 1px 2px;gap:4px;min-height:78px;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-name {
  font-size:10px;line-height:1.35;min-height:2.7em;height:2.7em;max-height:2.7em;
  overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-meta {
  gap:3px;align-items:flex-start;flex-direction:column;font-size:9px;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-meta .price {font-size:10px}
body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-meta .status {
  font-size:9px;line-height:1.2;padding:2px 4px;
  max-width:100%;white-space:normal;overflow-wrap:anywhere;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .score-row {
  display:flex;flex-direction:column;align-items:stretch;gap:3px;font-size:9px;min-height:0;
}
body.ps-shop-home.pra-v154-shop .psi-featured-track .score-bar {width:100%;min-width:0;flex:none;height:3px}
body.ps-shop-home.pra-v154-shop .psi-featured-controls {
  display:none;align-items:center;justify-content:center;gap:7px;
  flex-wrap:wrap;padding:6px 12px 2px;
}
body.ps-shop-home.pra-v154-shop .psi-featured-carousel.is-ready .psi-featured-controls {display:flex}
body.ps-shop-home.pra-v154-shop .psi-featured-controls button {
  height:32px;border-radius:999px;border-color:#b9905a;
  background:linear-gradient(180deg,#fff7e8,#efdcbe);color:#56371f;
  box-shadow:0 2px 5px rgba(95,59,25,.10);font-size:11px;
  transition:background .2s ease,transform .2s ease;
}
body.ps-shop-home.pra-v154-shop .psi-featured-controls button:hover {
  transform:translateY(-1px);background:#ecd0a5;
}
body.ps-shop-home.pra-v154-shop .psi-featured-arrow {width:34px}
body.ps-shop-home.pra-v154-shop .psi-featured-toggle {min-width:99px;padding:0 10px}
body.ps-shop-home.pra-v154-shop .psi-featured-progress {
  display:flex;align-items:center;gap:7px;min-width:70px;width:min(180px,33%);flex:0 1 180px;
}
body.ps-shop-home.pra-v154-shop .psi-featured-count {
  white-space:nowrap;color:#8c6940;font-size:10px;font-weight:700;font-variant-numeric:tabular-nums;
}
body.ps-shop-home.pra-v154-shop .psi-featured-count b {color:#70431e}
body.ps-shop-home.pra-v154-shop .psi-featured-progress-rail {
  display:block;flex:1;min-width:30px;height:4px;border-radius:99px;
  background:#e4d1b1;overflow:hidden;
}
body.ps-shop-home.pra-v154-shop .psi-featured-progress-rail > span {
  display:block;width:var(--psi-featured-progress,0%);height:100%;
  border-radius:99px;background:linear-gradient(90deg,#9f6830,#e3bb6c);
  transition:width .3s ease;
}
@media(min-width:1780px){
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {
    grid-auto-columns:calc((100% - 16px - 42px) / 7);
  }
}
@media(min-width:2300px){
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {
    grid-auto-columns:calc((100% - 16px - 49px) / 8);
  }
}
@media(min-width:691px) and (max-width:1100px){
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {
    grid-auto-columns:calc((100% - 16px - 21px) / 4);
  }
}
@media(max-width:690px){
  body.ps-shop-home.pra-v154-shop .psi-storefront-center .psi-featured-track.psi-product-grid {
    grid-auto-columns:calc((100% - 12px - 16px) / 3);
    padding:6px!important;gap:8px!important;
  }
  body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-card {padding:5px 4px!important}
  body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-name {font-size:9px}
  body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-body {min-height:70px}
  body.ps-shop-home.pra-v154-shop .psi-featured-controls {gap:6px;padding:6px 6px 3px}
  body.ps-shop-home.pra-v154-shop .psi-featured-progress {width:min(95px,25%);flex-basis:95px}
  body.ps-shop-home.pra-v154-shop .psi-featured-toggle {min-width:91px}
}
@media(prefers-reduced-motion:reduce){
  body.ps-shop-home.pra-v154-shop .psi-featured-track .shop-product-card,
  body.ps-shop-home.pra-v154-shop .psi-featured-controls button,
  body.ps-shop-home.pra-v154-shop .psi-featured-progress-rail > span {transition:none!important;transform:none!important}
}


/* PRAASIA Shops: member sign-in consistently follows the page footer.
   Same form/IDs and login endpoint; only position and responsive presentation change. */
body.ps-shop-home .psi-footer {padding-bottom:8px}
body.ps-shop-home .psi-account-footer {
  position:relative;z-index:1;margin:0 auto 16px;
  border:1px solid #765537;border-top:1px solid #c79b58;
  border-radius:0 0 12px 12px;
  background:linear-gradient(180deg,#3a2516 0%,#28180f 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.15);
}
body.ps-shop-home .psi-account-footer .psi-login {
  display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;
}
body.ps-shop-home .psi-account-footer-title {
  flex:none;display:inline-flex;align-items:center;white-space:nowrap;
  margin-right:6px;color:#f7dda9;font-weight:700;font-size:13px;
}
body.ps-shop-home .psi-account-footer .login-input {flex:0 1 185px}
body.ps-shop-home .psi-account-footer .login-btn {white-space:nowrap}
body.ps-shop-home .psi-account-footer .psi-account-signed {min-height:38px}
@media(max-width:800px){
  body.ps-shop-home .psi-account-footer .psi-login {justify-content:stretch;gap:8px}
  body.ps-shop-home .psi-account-footer-title {flex:1 1 100%;margin:0}
  body.ps-shop-home .psi-account-footer .login-input {flex:1 1 calc(50% - 4px);width:calc(50% - 4px);min-width:0}
  body.ps-shop-home .psi-account-footer .psi-remember {flex:1 1 100%;margin:0}
  body.ps-shop-home .psi-account-footer .login-btn {flex:1 1 calc(50% - 4px);min-width:0}
  body.ps-shop-home .psi-account-footer.psi-account-bar-signed {padding:10px}
}
@media(max-width:420px){
  body.ps-shop-home .psi-account-footer {width:100%;border-radius:0;margin-bottom:0;padding:12px 10px}
  body.ps-shop-home .psi-account-footer .login-input {font-size:16px;min-width:0}
}


/* PRAASIA Shops Mobile V1.7 — compact single-row actions, fixed header/login strip.
   Scope: shop_index.php mobile only. Footer content and all business logic retained. */
@media (max-width:690px) {
  body.ps-shop-home {
    padding-top:var(--psi-fixed-header-height,98px);
    padding-bottom:calc(var(--psi-fixed-login-height,85px) + 12px);
    scroll-padding-top:calc(var(--psi-fixed-header-height,98px) + 8px);
  }
  body.ps-shop-home .psi-site-header.pra-ui-header {
    position:fixed!important;
    inset:0 0 auto 0!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    z-index:850!important;
    box-shadow:0 5px 20px rgba(0,0,0,.32);
    padding:7px 9px 8px!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav {
    padding-top:5px!important;
    gap:4px!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav > a {
    height:35px!important;min-height:35px!important;
    padding:2px 1px!important;
    gap:0!important;
    font-size:9.5px!important;
    border-radius:7px!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav > a i {
    font-size:14px!important;line-height:1!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav .pra-ui-language-picker {
    min-height:35px!important;height:35px!important;
    border-radius:7px!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav .pra-ui-language-picker select {
    min-height:33px!important;height:33px!important;
    font-size:10px!important;
  }
  body.ps-shop-home .psi-site-header.pra-ui-header > .ps-main-nav .pra-ui-language-picker::after {top:12px!important}
  body.ps-shop-home .psi-account-footer {
    position:fixed!important;
    inset:auto 0 0 0!important;
    width:100%!important;
    max-height:calc(100dvh - var(--psi-fixed-header-height,98px) - 12px);
    overflow-y:auto;
    margin:0!important;
    padding:6px 7px calc(6px + env(safe-area-inset-bottom,0px))!important;
    border-radius:11px 11px 0 0!important;
    z-index:840!important;
    box-shadow:0 -5px 22px rgba(0,0,0,.4);
    background:linear-gradient(180deg,#432a19,#24160e);
  }
  body.ps-shop-home .psi-account-footer .psi-login {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto;
    grid-template-rows:auto 36px;
    column-gap:5px!important;row-gap:5px!important;
    align-items:center!important;
    justify-content:stretch!important;
    margin:0!important;
  }
  body.ps-shop-home .psi-account-footer-title {
    grid-column:1 / 3;grid-row:1;
    flex:none!important;margin:0!important;
    line-height:1.1;font-size:11px!important;
  }
  body.ps-shop-home .psi-account-footer .psi-remember {
    grid-column:3 / 5;grid-row:1;
    flex:none!important;margin:0!important;
    justify-self:end;
    gap:3px!important;
    white-space:nowrap;font-size:10px!important;line-height:1.2;
  }
  body.ps-shop-home .psi-account-footer .psi-remember input {width:14px;height:14px;flex:none}
  body.ps-shop-home .psi-account-footer #loginUsername {
    grid-column:1;grid-row:2;
  }
  body.ps-shop-home .psi-account-footer #loginPassword {
    grid-column:2;grid-row:2;
  }
  body.ps-shop-home .psi-account-footer .login-input {
    width:100%!important;max-width:100%!important;
    min-width:0!important;min-height:36px!important;height:36px!important;
    padding:5px 6px!important;font-size:16px!important;
    border-radius:7px!important;
  }
  body.ps-shop-home .psi-account-footer #Login {grid-column:3;grid-row:2;}
  body.ps-shop-home .psi-account-footer #submit2 {grid-column:4;grid-row:2;}
  body.ps-shop-home .psi-account-footer .login-btn {
    width:auto!important;min-width:0!important;
    min-height:36px!important;height:36px!important;
    padding:4px 6px!important;gap:3px!important;
    font-size:10.5px!important;line-height:1.1;
    border-radius:7px!important;
    white-space:nowrap!important;
  }
  body.ps-shop-home .psi-account-footer .login-btn i {font-size:12px;line-height:1}
  body.ps-shop-home .psi-account-footer .psi-account-signed {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:5px!important;min-width:0;
  }
  body.ps-shop-home .psi-account-footer .psi-account-links {gap:2px!important;min-width:0}
  body.ps-shop-home .psi-account-footer .psi-account-links a {
    min-height:34px!important;padding:4px 5px!important;
    font-size:10px!important;line-height:1.1;
  }
  body.ps-shop-home .psi-account-footer .psi-account-greeting {font-size:10px!important;gap:4px!important}
  body.ps-shop-home .psi-account-footer .psi-account-greeting>span {display:none}
  body.ps-shop-home .psi-account-footer .psi-account-links a i {font-size:12px}
  body.ps-shop-home :is(input,button,select,textarea,a) {scroll-margin-top:calc(var(--psi-fixed-header-height,98px) + 8px)}
}
@media (max-width:350px) {
  body.ps-shop-home .psi-account-footer {padding-inline:5px!important}
  body.ps-shop-home .psi-account-footer .psi-login {column-gap:3px!important}
  body.ps-shop-home .psi-account-footer .login-btn {font-size:9.5px!important;padding-inline:4px!important}
  body.ps-shop-home .psi-account-footer #Login i {display:none}
}


/* Product status / views: same palette as Public home, adapted to the
   existing cream shop cards. Applies to featured and latest only. */
body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-status-row {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  width:100%; min-width:0; gap:4px 5px;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status {
  display:inline-block; flex:0 1 auto; box-sizing:border-box; min-width:0; max-width:100%;
  padding:3px 7px; border:1px solid var(--psi-status-border,#a28a6a);
  border-radius:4px; background:var(--psi-status-bg,#514033);
  color:var(--psi-status-fg,#fff4e0); font-size:11px; line-height:1.3;
  font-weight:700; text-align:center; white-space:normal; overflow-wrap:anywhere;
  box-shadow:0 1px 2px rgba(0,0,0,.18);
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status.sale {
  --psi-status-bg:#197b43; --psi-status-border:#6cc88a; --psi-status-fg:#fff;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status.show {
  --psi-status-bg:#205e97; --psi-status-border:#82b9e8; --psi-status-fg:#fff;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status.reserve-open {
  --psi-status-bg:#efc65c; --psi-status-border:#ffe6a3; --psi-status-fg:#382708;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status.reserved {
  --psi-status-bg:#965014; --psi-status-border:#efb16a; --psi-status-fg:#fff;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status.sold {
  --psi-status-bg:#a73737; --psi-status-border:#e98e83; --psi-status-fg:#fff;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-views {
  display:inline-flex; flex:0 1 auto; align-items:center; justify-content:flex-end;
  min-width:0; max-width:100%; gap:3px; margin-left:auto; color:#64462c;
  font:700 11px/1.2 Tahoma,Arial,sans-serif; font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-views svg {
  flex:none; width:13px; height:13px;
}
body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-views > span {
  min-width:0; overflow:hidden; text-overflow:ellipsis;
}
@media(max-width:690px) {
  body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-status-row {gap:3px;}
  body.ps-shop-home.pra-v154-shop .psi-product-grid .shop-product-meta .psi-product-status-row .status {font-size:10px;padding:2px 4px;}
  body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-views {font-size:9px;gap:2px;}
  body.ps-shop-home.pra-v154-shop .psi-product-grid .psi-product-views svg {width:11px;height:11px;}
}
