/* Shop archive — ruby / white / gold (extends home-v2.css + oem-v3.css) */
body.v-shop { --v-bg: #FBF8F5; --v-surface-2: #F4EDE6; --v-line: #E8DDD3; --w-gold: #B8923A; --w-gold-soft: #E9D9A8; --w-cream: #F7F0E9; }
.v-shop .s-hero { background: radial-gradient(800px 380px at 88% 0%, #F3E6D6 0%, transparent 70%), linear-gradient(180deg, #FDFBF8, #F8F1EA); padding-block: 24px 28px; border-bottom: 1px solid var(--w-gold-soft); }
.v-shop .s-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: end; margin-top: 6px; }
.v-shop .s-hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; margin-block: 8px 10px; line-height: 1.15; }
.v-shop .s-lead { color: var(--v-muted); max-width: 58ch; font-size: 17px; }
.v-shop .s-lead b { color: var(--v-brand); font-weight: 600; }
.v-shop .s-search { display: flex; border: 2px solid var(--v-ink); border-radius: 4px; background: #fff; overflow: hidden; }
.v-shop .s-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font: inherit; background: transparent; color: var(--v-ink); }
.v-shop .s-search input:focus { outline: none; }
.v-shop .s-search:focus-within { outline: 3px solid var(--v-label); outline-offset: 2px; }
.v-shop .s-search button { border: 0; background: var(--v-brand); color: #fff; padding: 0 22px; font: inherit; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.v-shop .s-search button:hover, .v-shop .s-search button:focus { background: #7E0E1D; color: #fff; }
.v-shop .s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.v-shop .s-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--v-line); border-radius: 999px; background: #fff; color: var(--v-ink); font-size: 14.5px; font-weight: 500; transition: border-color .15s, background .15s; }
.v-shop .s-chips a span { font-family: var(--v-mono); font-size: 12px; color: var(--v-muted); }
.v-shop .s-chips a:hover { border-color: var(--v-brand); color: var(--v-brand); }
.v-shop .s-chips a.is-on { background: var(--v-brand); border-color: var(--v-brand); color: #fff; }
.v-shop .s-chips a.is-on span { color: var(--w-gold-soft); }

.v-shop .s-body { padding-block: 32px 64px; }
.v-shop .s-catalog { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--v-label); border-radius: 8px; padding: 12px 18px; margin-bottom: 26px; }
.v-shop .s-catalog:hover { background: var(--v-surface-2); }
.v-shop .s-catalog .ic { width: 40px; height: 40px; border-radius: 6px; background: var(--v-surface-2); color: var(--v-brand); display: grid; place-items: center; font-size: 22px; flex: none; }
.v-shop .s-catalog .tx { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.4; }
.v-shop .s-catalog small { color: var(--v-muted); }
.v-shop .s-catalog .go { background: linear-gradient(180deg, var(--v-gold-hi), var(--v-label)); color: var(--v-label-ink); font-weight: 600; padding: 8px 18px; border-radius: 4px; flex: none; }

.v-shop .s-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid var(--v-ink); }
.v-shop .s-count .woocommerce-result-count { margin: 0; color: var(--v-muted); font-size: 15px; }
.v-shop .s-sort form { margin: 0; }
.v-shop .s-sort select.orderby { font: inherit; font-size: 15px; padding: 9px 36px 9px 14px; border: 1.5px solid var(--v-line); border-radius: 4px; background-color: #fff; color: var(--v-ink); cursor: pointer; max-width: 100%; }
.v-shop .s-sort select.orderby:focus { outline: 3px solid var(--v-label); outline-offset: 1px; }

.v-shop .s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.v-shop .s-grid .v-product { transition: border-color .15s, transform .15s, box-shadow .15s; }
.v-shop .s-grid .v-product:hover { border-color: var(--v-brand); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(76, 10, 23, .10); }
.v-shop .s-grid .v-product .v-pic { aspect-ratio: 1 / 1; background: #fff; }
.v-shop .s-grid .v-product .v-pic img { width: 100%; height: 100%; object-fit: contain; }
.v-shop .s-grid .v-product .v-tag { background: #fff; border-color: var(--w-gold-soft); color: var(--w-gold); max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-shop .s-grid .v-product h3 { font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v-shop .s-grid .v-price del { color: var(--v-muted); }

.v-shop .s-pager { margin-top: 36px; display: flex; justify-content: center; }
.v-shop .s-pager .woocommerce-pagination { width: 100%; }
.v-shop .s-pager ul.page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; border: 0; }
.v-shop .s-pager ul.page-numbers li { border: 0; margin: 0; float: none; display: block; }
.v-shop .s-pager .page-numbers a, .v-shop .s-pager .page-numbers span.current, .v-shop .s-pager .page-numbers span.dots { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border: 1.5px solid var(--v-line); border-radius: 4px; background: #fff; color: var(--v-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-shop .s-pager .page-numbers a:hover { border-color: var(--v-brand); color: var(--v-brand); }
.v-shop .s-pager .page-numbers span.current { background: var(--v-brand); border-color: var(--v-brand); color: #fff; }
.v-shop .s-pager .page-numbers span.dots { border-color: transparent; background: transparent; }
.v-shop .s-empty { text-align: center; color: var(--v-muted); padding: 60px 0; }

@media (max-width: 1100px) { .v-shop .s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .v-shop .s-hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .v-shop .s-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; padding-bottom: 6px; scrollbar-width: thin; }
  .v-shop .s-chips a { white-space: nowrap; flex: none; }
  body.v-shop { padding-bottom: 76px; }
  .v-shop .v-float-line { display: none; }
}
@media (max-width: 700px) { .v-shop .s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .v-shop .s-grid .v-product .v-info { padding: 12px; } .v-shop .s-grid .v-product h3 { font-size: 14.5px; } }
@media (max-width: 380px) { .v-shop .s-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .v-shop .s-catalog { flex-wrap: wrap; } .v-shop .s-catalog .go { width: 100%; text-align: center; } .v-shop .s-search button span { display: none; } }
.v-shop .v-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--v-muted); margin-bottom: 14px; }
.v-shop .v-crumbs a { color: var(--v-brand); font-weight: 500; }
.v-shop .v-crumbs span[aria-hidden] { color: var(--w-gold); }
.v-shop .s-sort { display: flex; align-items: center; gap: 10px; }
.v-shop .s-sort::before { content: "เรียงตาม"; color: var(--v-muted); font-size: 14px; }
