/* cyhn shop — product archives (shared base: base.css; product cards: cards.css). */

/* Short banner (product category) */
.cyw-rhero--short { height: calc(46vh + 100px); height: calc(46svh + 100px); min-height: 360px; }
/* Archive banners rest on their bottom edge (the top is cropped first). */
.cyw-rhero--short .cyw-rhero__img { object-position: center bottom; }

/* Header section */
.cyw-ahead { padding-bottom: 36px; }
.cyw-ahead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.cyw-ahead__txt { max-width: 760px; }
.cyw-ahead__intro { margin: 12px 0 0; font-size: 17.5px; line-height: 1.6; color: var(--cyw-ink-2); }
.cyw-ahead__desc > :first-child { margin-top: 0; }
.cyw-ahead__desc > :last-child { margin-bottom: 0; }
.cyw-ahead__count { margin: 0; color: var(--cyw-muted); font-size: 14.5px; white-space: nowrap; }

/* Category chips */
.cyw-chips { margin-top: 22px; }
.cyw-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cyw-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--cyw-box); color: var(--cyw-ink); text-decoration: none; font-weight: 600; font-size: 14.5px; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.cyw-chip:hover { border-color: var(--cyw-ink); }
.cyw-chip.is-on { background: var(--cyw-dark); color: var(--cyw-cream); }

/* Result count + ordering */
.cyw-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--cyw-line); }
.cyw-tools .woocommerce-result-count { margin: 0; color: var(--cyw-muted); font-size: 14.5px; }
.cyw-tools .woocommerce-ordering { margin: 0; }
.cyw-tools select.orderby { font: inherit; font-size: 14.5px; height: 42px; padding: 0 36px 0 14px; border: 1.5px solid var(--cyw-line); border-radius: 999px; background: var(--cyw-white); color: var(--cyw-ink); cursor: pointer; }

/* Grids */
.cyw-alist { padding-top: 48px; }
.cyw-agrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.cyw-agrid > li { display: flex; min-width: 0; }
.cyw-agrid .cyw-pcard { width: 100%; }

/* Empty state */
.cyw-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--cyw-white); border-radius: var(--cyw-r); padding: 28px; max-width: 640px; }
.cyw-empty p { margin: 0; font-size: 17px; }

/* Pagination */
.cyw-pager { margin-top: 40px; }
.cyw-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cyw-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--cyw-white); color: var(--cyw-ink); text-decoration: none; font-weight: 600; }
.cyw-pager a.page-numbers:hover { background: var(--cyw-dark); color: var(--cyw-cream); }
.cyw-pager .page-numbers.current { background: var(--cyw-dark); color: var(--cyw-cream); }
.cyw-pager .page-numbers.dots { background: none; }

/* WooCommerce notices (the default WooCommerce CSS is not loaded) */
.cyw-archive .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 20px; }
.cyw-archive .woocommerce-message, .cyw-archive .woocommerce-info, .cyw-archive .woocommerce-error { list-style: none; margin: 0 0 10px; padding: 14px 18px; border-radius: 10px; background: var(--cyw-leaf-soft); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.cyw-archive .woocommerce-error { background: var(--cyw-red-soft); color: color-mix(in srgb, var(--cyw-red) 70%, #000); display: block; }
.cyw-archive .woocommerce-message .button { order: 2; font-weight: 700; color: inherit; text-decoration: underline; background: none; border: 0; padding: 0; }
/* WooCommerce's "View cart" link (hidden inside cards; the notice is enough) */
.cyw-pcard .added_to_cart { display: none; }

@media (max-width: 1080px) {
	.cyw-agrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.cyw-rhero--short { height: calc(34vh + 100px); height: calc(34svh + 100px); min-height: 300px; }
	.cyw-ahead { padding-bottom: 24px; }
	.cyw-chips { margin-left: calc(-1 * var(--cyw-gutter)); margin-right: calc(-1 * var(--cyw-gutter)); }
	.cyw-chips ul { flex-wrap: nowrap; overflow-x: auto; padding: 0 var(--cyw-gutter) 4px; scrollbar-width: none; }
	.cyw-chips ul::-webkit-scrollbar { display: none; }
	.cyw-chip { white-space: nowrap; }
	.cyw-alist { padding-top: 32px; }
	.cyw-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
