/* Phka storefront theme: boutique look, serif headings, square corners. Loaded after psar.css; Phka-only parts use ph-. */
body.th-phka{
  --ps-page:#FFFFFF; --ps-paper:#FFFFFF; --ps-cream:#FFFFFF; --ps-line:#EEE7EB; --ps-line-2:#D9CFD5;
  --ps-ink:#221A20; --ps-ink-2:#6A5F67; --ps-ink-3:#7A6E76; --ph-soft:#F4EEF1; --ph-band:#F8F4F6;
  --ps-head:'Fraunces','Kantumruy Pro','Noto Sans JP',Georgia,serif;
  --ps-body:'Kantumruy Pro','Noto Sans JP',system-ui,sans-serif;
  font-size:15px;
}
.th-phka .ps-wrap{max-width:1440px}
@media (min-width:768px){.th-phka .ps-wrap{padding-left:64px;padding-right:64px}}

/* header */
.th-phka .ph-hdr{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--ps-line)}
.ph-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:20px;height:88px}
.ph-links{display:flex;gap:28px;font-size:14px}
.ph-links a{color:var(--ps-ink);white-space:nowrap}.ph-links a:hover{color:var(--ps-accent)}
.ph-logo{display:flex;align-items:center;gap:10px;color:var(--ps-ink);justify-self:center;min-width:0}
.ph-logo img{width:40px;height:40px;object-fit:cover}
.ph-logo span{font-family:var(--ps-head);font-size:30px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-phka .ph-bar .ps-tools{justify-self:end;gap:4px}
.th-phka .ps-icon-btn{width:44px;height:44px;color:var(--ps-ink)}
.th-phka .ps-lang>button{border:0;background:none;height:44px}
.ph-bag{height:44px;padding:0 10px;display:flex;align-items:center;gap:6px;color:var(--ps-ink);font-size:14px}
.ph-bag .ps-i{width:20px;height:20px}
.ph-find{display:flex;align-items:center;gap:10px;height:56px;border-top:1px solid var(--ps-line)}
.ph-find input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16px;background:transparent;color:var(--ps-ink)}
.ph-find button{height:40px;padding:0 20px;border:0;background:var(--ps-ink);color:#fff;font-weight:500}
@media (max-width:899px){
  .ph-bar{grid-template-columns:auto minmax(0,1fr) auto;height:auto;padding-top:8px;padding-bottom:8px;gap:8px}
  .ph-links{grid-column:1/-1;grid-row:2;overflow-x:auto;scrollbar-width:none;gap:22px;padding:6px 0 4px;font-size:13.5px}
  .ph-links::-webkit-scrollbar{display:none}
  .ph-logo{grid-column:1/3;grid-row:1;justify-self:start}
  .th-phka .ph-bar .ps-tools{grid-column:3;grid-row:1}
  .ph-logo span{font-size:22px}
  .th-phka .ps-lang>button .nm{display:none}
}

/* home */
.ph-main{display:flex;flex-direction:column}
.th-phka .ph-main>.ps-slider{border-radius:0;aspect-ratio:3/1}
.th-phka .ps-slider .dots button{width:32px;height:3px;border-radius:0;background:rgba(255,255,255,.55)}
.th-phka .ps-slider .dots button.on{width:32px;background:#fff}
.th-phka .ps-main{gap:72px;padding-top:64px;padding-bottom:80px}
.ph-sec{display:flex;flex-direction:column;gap:28px}
.ph-h{margin:0;font-family:var(--ps-head);font-weight:500;font-size:34px;letter-spacing:-.01em}
.ph-sec>.ph-h{text-align:center}
.ph-sh{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.ph-sh a{font-size:15px;font-weight:500;border-bottom:1px solid currentColor;padding-bottom:2px;color:var(--ps-ink)}
.ph-cats{display:flex;justify-content:center;gap:28px;flex-wrap:wrap}
.ph-cats a{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:15px;color:var(--ps-ink);width:156px;text-align:center}
.ph-cats .ci{width:156px;height:156px;border-radius:50%;background:var(--ph-soft);display:grid;place-items:center;overflow:hidden;color:#A89BA3;transition:transform .25s}
.ph-cats .ci img{width:100%;height:100%;object-fit:cover}
.ph-cats a:hover .ci{transform:scale(1.04)}
.ph-story{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:var(--ph-band)}
.ph-story .im{min-height:420px;background:var(--ph-soft)}
.ph-story .im img{width:100%;height:100%;object-fit:cover;display:block}
.ph-story .tx{padding:64px;display:flex;flex-direction:column;justify-content:center;gap:18px}
.ph-story .k{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--ps-ink-2)}
.ph-story h2{margin:0;font-family:var(--ps-head);font-weight:500;font-size:38px;line-height:1.2}
.ph-story p{margin:0;font-size:16px;line-height:1.7;color:var(--ps-ink-2)}
.ph-story .ps-btn{align-self:flex-start}
@media (max-width:767px){
  .th-phka .ps-main{gap:44px;padding-top:32px;padding-bottom:48px}
  .ph-h{font-size:26px}
  .ph-cats{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;gap:14px;margin:0 -16px;padding:0 16px}
  .ph-cats::-webkit-scrollbar{display:none}
  .ph-cats a{width:80px;flex:none;font-size:13px;gap:8px}
  .ph-cats .ci{width:76px;height:76px}
  .ph-story{grid-template-columns:minmax(0,1fr)}
  .ph-story .im{min-height:220px}
  .ph-story .tx{padding:28px 20px}
  .ph-story h2{font-size:28px}
}

/* product grid + card */
.th-phka .ps-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 28px}
@media (max-width:1099px){.th-phka .ps-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){.th-phka .ps-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}}
.ph-card{gap:8px}
.th-phka .ph-card .ps-ph{aspect-ratio:3/4;border-radius:0;background:var(--ph-soft)}
.th-phka .ph-card .ps-ph img{object-fit:cover}
.ph-heart{position:absolute;top:12px;right:12px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;display:grid;place-items:center;color:var(--ps-ink)}
.ph-heart .ps-i{width:19px;height:19px}
.ph-heart.on{color:var(--ps-accent)}.ph-heart.on .ps-i{fill:currentColor}
.ph-tag{position:absolute;left:12px;top:12px;background:var(--ps-accent);color:#fff;font-size:12px;font-weight:600;padding:4px 10px}
.ph-quick{position:absolute;left:12px;right:12px;bottom:12px;height:46px;border:0;background:var(--ps-ink);color:#fff;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px;opacity:0;transform:translateY(6px);transition:opacity .2s,transform .2s}
.ph-card:hover .ph-quick,.ph-quick:focus-visible,.ph-quick.in{opacity:1;transform:none}
.ph-quick.in{background:var(--ps-accent)}
.ph-quick:disabled{opacity:.6}
@media (hover:none),(max-width:767px){.ph-quick{opacity:1;transform:none;left:8px;right:8px;bottom:8px;height:40px;font-size:13px}}
.th-phka .ph-card .nm{font-size:16px;font-weight:400;white-space:normal;line-height:1.4;margin-top:6px}
.th-phka .ph-card .ps-price{font-family:var(--ps-body);font-size:16px;font-weight:600}
.th-phka .ps-soldout{border-radius:0;left:12px;top:12px}

/* listing pages */
.th-phka .ps-chip{border-radius:0;height:44px;background:#fff}
.th-phka .ps-chip.on{border-color:var(--ps-ink);color:var(--ps-ink);box-shadow:inset 0 0 0 1px var(--ps-ink)}
.th-phka .ps-gh h1,.th-phka .ps-gh h2,.th-phka .ps-bh h1,.th-phka .ps-center h1,.th-phka .ps-sec-h h2{font-weight:500;font-size:32px}
.th-phka .ps-sort select{border-radius:0;background:#fff}
.th-phka .ps-crumbs{padding-top:24px}

/* buttons */
.th-phka .ps-btn{border-radius:0;height:52px;font-weight:500;font-size:15px}
.th-phka .ps-btn.acc{box-shadow:none}
.th-phka .ps-btn.line{border-width:1px;padding:0 28px}

/* popup + product page */
.th-phka .ps-scrim{background:rgba(34,26,32,.5)}
.th-phka .ps-pop{border-radius:0;background:#fff;width:min(1040px,100%);padding:0;gap:0;grid-template-columns:76px minmax(0,1.1fr) minmax(0,1fr)}
.th-phka .ps-pop .ps-thumbs{padding:16px 0 16px 16px;background:var(--ph-soft)}
.th-phka .ps-pop .ps-big{border-radius:0;background:var(--ph-soft);aspect-ratio:4/5}
.th-phka .ps-pop .ps-pinfo{padding:56px 44px 40px}
.th-phka .ps-pop .x{background:none;box-shadow:none;width:44px;height:44px}
.th-phka .ps-thumbs button{border-radius:0;width:60px;height:76px;background:#fff}
.th-phka .ps-thumbs button.on{border-color:var(--ps-ink)}
.th-phka .ps-big img,.th-phka .ps-thumbs img{object-fit:cover}
.th-phka .ps-pinfo .cat{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--ps-ink-2)}
.th-phka .ps-pinfo h1,.th-phka .ps-pinfo h2{font-family:var(--ps-head);font-weight:500;font-size:36px;line-height:1.15}
.th-phka .ps-pinfo .ps-price{font-family:var(--ps-body);font-size:22px;font-weight:600;color:var(--ps-ink)}
.th-phka .ps-unit{border-radius:0;min-width:52px;min-height:48px;text-align:center}
.th-phka .ps-unit.on{background:var(--ps-ink);border-color:var(--ps-ink);color:#fff;box-shadow:none}
.th-phka .ps-unit.on small{color:#E9E1E6}
.th-phka .ps-pd{background:#fff;padding:0;border-radius:0;grid-template-columns:76px minmax(0,1.1fr) minmax(0,1fr);gap:28px;margin-top:8px}
.th-phka .ps-pd .ps-big{border-radius:0;background:var(--ph-soft);aspect-ratio:4/5}
.th-phka .ps-pd .ps-pinfo{justify-content:flex-start;padding-top:24px}
@media (max-width:767px){
  .th-phka .ps-pop{grid-template-columns:minmax(0,1fr);border-radius:0;max-height:94%}
  .th-phka .ps-pop .ps-thumbs{padding:10px 16px;order:-1}
  .th-phka .ps-pop .ps-pinfo{padding:20px 18px calc(24px + env(safe-area-inset-bottom,0px))}
  .th-phka .ps-pinfo h1,.th-phka .ps-pinfo h2{font-size:26px}
  .th-phka .ps-pd{grid-template-columns:minmax(0,1fr);gap:14px}
  .th-phka .ps-pd .ps-big{margin:0 -16px}
}

/* checkout */
.th-phka .ps-ckbox{border-radius:0;box-shadow:none;background:var(--ph-band);padding:32px}
.th-phka .ps-ckbox .lbl{color:var(--ps-ink);font-family:var(--ps-head);font-size:20px;letter-spacing:0;text-transform:none;font-weight:500}
.th-phka .ps-row img,.th-phka .ps-row .noimg{border-radius:0;width:72px;height:96px;object-fit:cover;background:var(--ph-soft)}
.th-phka .ps-fld{font-size:14px;font-weight:500}
.th-phka .ps-fld input,.th-phka .ps-fld textarea{border-radius:0;height:52px;font-size:15px;background:#fff}
.th-phka .ps-fld textarea{height:88px}
.th-phka .ps-radio{border-radius:0;min-height:56px;background:#fff}
.th-phka .ps-radio:has(input:checked){border-width:2px}
.th-phka .ps-qty{border-radius:0}
.th-phka .ps-sum .tot span:last-child{font-family:var(--ps-body);font-weight:600;font-size:22px}
.th-phka .ps-receipt{border-radius:0;box-shadow:none;background:var(--ph-band)}
.th-phka .ps-center .ic{background:var(--ph-soft);color:var(--ps-accent)}

/* footer */
.th-phka .ph-ftr{background:var(--ps-ink);color:#E9E1E6;border-top:0}
.th-phka .ph-ftr .ps-wrap{grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr));padding-top:56px}
.th-phka .ph-ftr strong{font-family:var(--ps-head);font-size:26px;font-weight:500;color:#fff}
.th-phka .ph-ftr p,.th-phka .ph-ftr ul{color:#E9E1E6}
.th-phka .ph-ftr h4{color:#fff}
.th-phka .ph-ftr a:hover{color:#fff;text-decoration:underline}
.th-phka .ph-ftr .base{border-top-color:rgba(255,255,255,.15);color:#C9BCC3}
.th-phka .ps-fab.c1{background:var(--ps-accent)}
@media (max-width:767px){.th-phka .ph-ftr .ps-wrap{grid-template-columns:minmax(0,1fr)}}

/* Quick add becomes a − n + bar once the product is in the cart */
.ph-step{opacity:1;transform:none;justify-content:space-between;padding:0 4px;background:var(--ps-accent)}
.ph-step button{width:40px;height:100%;border:0;background:none;color:#fff;display:grid;place-items:center}
.ph-step button:hover{background:rgba(255,255,255,.14)}
.ph-step button:disabled{opacity:.4}
.ph-step span{font-size:13.5px;font-weight:500}
