/* Category / tag listing in the reference store's layout */
:root { --scr-pink: #c93eb0; --scr-blue: #1b3a8c; --scr-ink: #1d1d1d; }
body.scr-archive .sc-main { padding-top: 0; }
body.scr-archive .sc-main > .sc-wrap { max-width: none; padding: 0; }

.scr-crumb { display: flex; align-items: center; gap: 14px; margin: 0; padding: 28px max(70px, calc((100% - 1560px) / 2 + 70px)); border-bottom: 1px solid #ececec; font-size: 15px; text-transform: uppercase; color: var(--scr-blue); }
.scr-crumb a { color: var(--scr-blue); }
.scr-crumb .sep { color: #333; font-style: italic; }
.scr-crumb .cur { color: var(--scr-pink); }

.scr-layout { max-width: 1560px; margin: 0 auto; padding: 56px 70px 80px; display: grid; grid-template-columns: 360px minmax(0, 1fr); column-gap: 36px; align-items: start; }
.scr-main { min-width: 0; }

/* sidebar */
.scr-side h3 { margin: 48px 0 26px; font-size: 22px; line-height: 1.2; font-weight: 700; text-transform: uppercase; letter-spacing: 0; color: var(--scr-ink); }
.scr-search { position: relative; }
.scr-search input { width: 100%; height: 48px; padding: 0 48px 0 18px; border: 1px solid #e3e3e3; font: 400 16px 'Spartan', Arial, sans-serif; color: #555; box-sizing: border-box; }
.scr-search button { position: absolute; right: 8px; top: 0; height: 48px; width: 38px; padding: 0; border: 0; background: none; cursor: pointer; }
.scr-search svg { width: 18px; height: 18px; fill: none; stroke: #9a9a9a; stroke-width: 2; stroke-linecap: round; }
.scr-cats { margin: 0; padding: 0; list-style: none; }
.scr-cats li { display: flex; align-items: center; gap: 10px; padding: 13px 0; font-size: 18px; color: var(--scr-blue); }
.scr-cats li.child { padding-left: 18px; font-size: 16px; }
.scr-cats li a { color: inherit; }
.scr-cats li i { flex: 1; height: 1px; background: #e4e4e4; }
.scr-cats li span { color: #555; font-size: 17px; min-width: 24px; text-align: right; }
.scr-cats li.on a { color: var(--scr-pink); font-weight: 600; }
.scr-cats li a:hover { color: var(--scr-pink); }

.scr-range { position: relative; height: 22px; margin: 4px 4px 28px; }
.scr-range .track, .scr-range .fill { position: absolute; top: 9px; height: 4px; border-radius: 2px; }
.scr-range .track { left: 0; right: 0; background: #e6e6e6; }
.scr-range .fill { background: var(--scr-pink); }
.scr-range input { position: absolute; left: -4px; width: calc(100% + 8px); top: 0; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.scr-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--scr-pink); border: 0; cursor: pointer; }
.scr-range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--scr-pink); border: 0; cursor: pointer; }
.scr-range input::-webkit-slider-runnable-track { background: none; }
.scr-range input::-moz-range-track { background: none; }
.scr-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; color: #444; }
.scr-price-row button { padding: 12px 24px; border: 0; background: #ececec; color: #333; font: 600 14px 'Spartan', Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.scr-price-row button:hover { background: var(--scr-pink); color: #fff; }

.scr-prods { margin: 0; padding: 0; list-style: none; }
.scr-prods li { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 26px; }
.scr-prods .im { flex: none; width: 96px; border: 1px solid #ddd; padding: 3px; background: #fff; }
.scr-prods .im img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.scr-prods .t { display: block; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--scr-blue); }
.scr-prods .pr { margin-top: 8px; font-size: 20px; }
.scr-prods .pr del { color: #111; opacity: 1; margin-right: 4px; }
.scr-prods .pr ins { background: none; color: var(--scr-pink); text-decoration: none; }
.scr-prods .pr .screen-reader-text { display: none; }

.scr-tags { display: flex; flex-wrap: wrap; gap: 10px 10px; }
.scr-tags a { padding: 11px 18px; border: 1px solid #ececec; background: #fafafa; font-size: 16px; color: #666; transition: color .2s, border-color .2s; }
.scr-tags a:hover { color: var(--scr-pink); border-color: var(--scr-pink); }

/* result bar */
.scr-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 34px; }
.scr-bar .woocommerce-result-count { margin: 0; font-size: 20px; color: #222; }
.scr-bar .woocommerce-ordering { margin: 0; }
.scr-bar select { width: 244px; height: 48px; padding: 0 16px; border: 1px solid #ececec; background: #fff; font: 400 17px 'Spartan', Arial, sans-serif; color: #333; }

/* product cards: bordered image, round SALE badge, centred name + price */
body.scr-archive ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; row-gap: 46px; }
body.scr-archive ul.products li.product { text-align: center; }
body.scr-archive ul.products li.product a.woocommerce-LoopProduct-link { overflow: visible; }
body.scr-archive ul.products li.product a.woocommerce-LoopProduct-link > img, body.scr-archive ul.products li.product .attachment-woocommerce_thumbnail { border: 2px solid #ececec; padding: 0; background: #fff; box-sizing: border-box; }
body.scr-archive ul.products li.product .woocommerce-loop-product__title { margin: 24px 0 0; min-height: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: #111; text-align: center; }
body.scr-archive ul.products li.product .price { margin: 12px 0 0; justify-content: center; align-items: baseline; gap: 6px; font-size: 24px; }
body.scr-archive ul.products li.product .price del { font-size: 24px; font-weight: 500; color: #111; opacity: 1; }
body.scr-archive ul.products li.product .price ins { font-size: 24px; font-weight: 500; color: var(--scr-pink); }
body.scr-archive ul.products li.product .price .screen-reader-text { display: none; }
body.scr-archive ul.products li.product .sc-vendor { display: none; }
body.scr-archive ul.products li.product .sc-sale { top: 16px; left: auto; right: 16px; width: 58px; height: 58px; min-width: 0; padding: 0; border-radius: 50%; background: #f5a26b; font-size: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
body.scr-archive ul.products li.product .sc-sale::after { content: "SALE!"; font-size: 13px; font-weight: 700; color: #fff; }

/* category text below the grid */
.scr-desc { margin-top: 70px; color: #222; font-size: 17px; line-height: 1.7; }
.scr-desc h1, .scr-desc h2:first-child { margin: 0 0 22px; font-size: clamp(30px, 3vw, 46px); line-height: 1.5; font-weight: 400; letter-spacing: 0; text-transform: none; text-align: left; }
.scr-desc h2 { margin: 28px 0 14px; font-size: 32px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.scr-desc h3, .scr-desc h4 { margin: 26px 0 12px; font-size: 26px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; }
.scr-desc h5 { margin: 6px 0; font-size: 22px; font-weight: 700; }
.scr-desc h4:empty { display: none; }
.scr-desc p { margin: 0 0 18px; }
.scr-desc ul { list-style: disc; padding-left: 30px; margin: 0 0 18px; }
.scr-desc ul li { margin-bottom: 6px; }
.scr-desc a { color: var(--scr-blue); font-weight: 700; }

@media (max-width: 1100px) {
	.scr-layout { grid-template-columns: 1fr; padding: 32px 32px 60px; }
	.scr-crumb { padding: 20px 32px; }
	.scr-side { order: 2; margin-top: 50px; }
	.scr-side h3 { margin-top: 36px; }
}
@media (max-width: 700px) {
	.scr-layout { padding: 24px 14px 50px; }
	.scr-crumb { padding: 16px 14px; font-size: 13px; flex-wrap: wrap; gap: 8px; }
	body.scr-archive ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
	body.scr-archive ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	body.scr-archive ul.products li.product .price, body.scr-archive ul.products li.product .price del, body.scr-archive ul.products li.product .price ins { font-size: 17px; }
	.scr-bar { flex-direction: column; align-items: stretch; }
	.scr-bar select { width: 100%; }
}

body.scr-archive .scr-bar .woocommerce-result-count { display: block !important; }
.scr-desc li { display: list-item; list-style: disc outside; }
.scr-desc li h5 { display: block; }
body.scr-archive .scr-desc h2:first-child, body.scr-archive .scr-desc h1 { font-size: clamp(30px, 3vw, 46px); font-weight: 400; line-height: 1.5; }
body.scr-archive ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: contain; }
