/* Buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 26px; background: var(--ink); color: white; border-radius: var(--r); font-size: 13px; font-weight: 700; transition: background .15s, transform .15s; cursor: pointer; border: none; font-family: var(--font); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 22px; border: 1.5px solid var(--border-md); border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s; font-family: var(--font); }
.btn-ghost:hover { border-color: var(--blue-hi); background: var(--blue-pale); color: var(--blue); }

/* Product Cards (shared across homepage, shop, related) */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; display: flex; flex-direction: column; }
.pcard:hover { box-shadow: var(--sh-lg); transform: translateY(-5px); border-color: transparent; }
.pcard-img { aspect-ratio: 1; background: var(--surf-2); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--blue); color: white; font-size: 9px; font-weight: 800; letter-spacing: .03em; padding: 3px 7px; border-radius: var(--r); }
.badge.g { background: var(--green); }
.wish { position: absolute; top: 10px; right: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: white; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-4); opacity: 0; transform: scale(.85); transition: all .2s; cursor: pointer; }
.pcard:hover .wish { opacity: 1; transform: scale(1); }
.wish:hover { color: #c03030; border-color: #c03030; }
.qadd { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; background: var(--ink); color: white; height: 36px; font-size: 10px; font-weight: 700; letter-spacing: .05em; display: flex; align-items: center; justify-content: center; gap: 5px; transform: translateY(100%); transition: transform .22s cubic-bezier(.34,1.2,.64,1); cursor: pointer; border: none; font-family: var(--font); }
.qadd:hover { background: var(--blue); }
.pcard:hover .qadd { transform: translateY(0); }
.pcard-info { padding: 13px; flex: 1; display: flex; flex-direction: column; }
.pcard-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 5px; }
.stars { display: flex; gap: 1px; }
.st { font-size: 10px; color: var(--amber); }
.st.e { color: var(--surf-3); }
.rc { font-size: 10px; color: var(--ink-4); font-weight: 500; }
h2.pcard-name, .pcard-name { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.45; margin-bottom: 9px; margin-top: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a { color: inherit; }
.pcard-price { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.pnow { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.pwas { font-size: 11px; color: var(--ink-4); text-decoration: line-through; }
.psave { font-size: 10px; font-weight: 700; color: var(--green); background: var(--green-l); padding: 2px 6px; border-radius: var(--r); }

/* Blog Cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bcard { border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; background: var(--white); cursor: pointer; transition: box-shadow .25s, transform .25s, border-color .25s; display: block; }
.bcard:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: transparent; }
.bcard-link { display: block; color: inherit; text-decoration: none; }
.bcard-img { height: 160px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; }
.bcat-tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: white; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: var(--r); }
.bcard-body { padding: 18px; }
.bcard-date { font-size: 10px; font-weight: 600; color: var(--ink-4); letter-spacing: .04em; margin-bottom: 6px; }
h2.bcard-title, .bcard-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 8px; margin-top: 0; }
.bcard-excerpt { font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.65; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-read { font-size: 11px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; transition: gap .15s; }
.bcard:hover .bcard-read { gap: 9px; }

/* Star ratings (used in reviews, product cards, product page) */
.stars { display: flex; gap: 2px; }
.st { font-size: 12px; color: var(--amber); }
.st.e { color: var(--surf-3); }

/* Form inputs */
.field label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 5px; }
.field input, .field select { width: 100%; height: 42px; border: 1.5px solid var(--border-md); border-radius: var(--r); padding: 0 13px; font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--ink); outline: none; background: white; transition: border-color .15s; }
.field input:focus, .field select:focus { border-color: var(--blue-hi); box-shadow: 0 0 0 3px rgba(46,100,153,.1); }
.field input::placeholder { color: var(--ink-4); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.frow.full { grid-template-columns: 1fr; }

/* Responsive */
@media (max-width: 1024px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pgrid { gap: 10px; }
  .pcard-info { padding: 10px; }
  .pcard-name { font-size: 11px; margin-bottom: 6px; }
  .pnow { font-size: 14px; }
  .qadd { transform: translateY(0); opacity: 1; }
  .wish { opacity: 1; transform: scale(1); }
  .blog-grid { grid-template-columns: 1fr; }
  .btn-primary { height: 44px; padding: 0 20px; font-size: 13px; }
  .btn-ghost { height: 44px; padding: 0 18px; font-size: 13px; }
  .frow { grid-template-columns: 1fr; }
}
