/* 10.8 Storefront — shop pages. Mobile first; breakpoints 361 / 600 / 990 / 1280 (approved 2026-10-06). */
.tp8s {
	--ink: #1b1f1c;
	--muted: #6f7570;
	--line: #e9e7e2;
	--soft: #f6f5f2;
	--brand: #3d5244;
	--accent: #a8432c;
	--radius: 10px;
	--gap-x: 10px;
	--gap-y: 18px;
	--pad: 14px;
	color: var(--ink);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.tp8s:lang(ar) { font-family: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.tp8s *, .tp8s *::before, .tp8s *::after { box-sizing: border-box; }
.tp8s ul { list-style: none; margin: 0; padding: 0; }
.tp8s li { list-style: none; margin: 0; }
.tp8s li::before, .tp8s li::marker { content: none; }
.tp8s a { color: inherit; text-decoration: none; }
.tp8s a:focus-visible, .tp8s button:focus-visible, .tp8s summary:focus-visible, .tp8s input:focus-visible + .tp8s-box, .tp8s input:focus-visible + .tp8s-switch { outline: 2px solid var(--brand); outline-offset: 2px; }
.tp8s button { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; text-transform: none; letter-spacing: normal; min-height: 0; box-shadow: none; }
.tp8s h1, .tp8s h2, .tp8s h3 { font-family: inherit; color: var(--ink); text-transform: none; letter-spacing: normal; }
.tp8s-i { width: 20px; height: 20px; display: block; flex: none; }
.tp8s-wrap { max-width: 1440px; margin: 0 auto; padding: 12px var(--pad) 40px; }
.tp8s-muted { color: var(--muted); }
.tp8s-link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.tp8s-sr, .tp8s .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The theme prints its own title banner (big title, English "Home", category slider) from header.php; our page has its own. */
body.tp8s-catalog #bwp-main > .page-title.bwp-title { display: none !important; }

/* Breadcrumb and heading */
.tp8s-crumbs { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tp8s-crumbs a:hover { color: var(--ink); }
.tp8s-crumbs [aria-current] { color: var(--ink); }
.tp8s-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 6px 0 2px; }
.tp8s-title { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 0; }
.tp8s-count { font-size: 12.5px; color: var(--muted); }

/* Category circles */
.tp8s-circles ul { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 12px calc(var(--pad) * -1) 4px; padding: 2px var(--pad) 4px; }
.tp8s-circles ul::-webkit-scrollbar { display: none; }
.tp8s-circles li { flex: none; width: 66px; scroll-snap-align: start; }
.tp8s-circles a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11.5px; line-height: 1.35; }
.tp8s-circle { width: 58px; height: 58px; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; transition: box-shadow .2s; }
.tp8s-circle img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.tp8s-circle.is-photo img { object-fit: cover; padding: 0; }
.tp8s-circles a:hover .tp8s-circle, .tp8s-circles .is-current .tp8s-circle { box-shadow: 0 0 0 2px var(--brand); }
.tp8s-circles .is-current .tp8s-circle-name { font-weight: 600; }
.tp8s-circle-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Toolbar (phones and tablets) */
.tp8s-toolbar { display: flex; gap: 8px; margin: 10px 0 4px; position: sticky; top: 0; z-index: 20; background: #fff; padding: 8px 0; }
.tp8s-tb-btn { flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 1px solid var(--line) !important; border-radius: 999px !important; font-size: 13px; white-space: nowrap; overflow: hidden; padding: 0 12px !important; background: #fff !important; }
.tp8s-tb-btn .tp8s-i { width: 17px; height: 17px; }
.tp8s-tb-btn span { overflow: hidden; text-overflow: ellipsis; }
.tp8s-dot { background: var(--ink); color: #fff; font: 600 10.5px/1 system-ui, sans-serif; min-width: 19px; height: 19px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 5px; }

/* Shared controls */
.tp8s-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13.5px; white-space: nowrap; cursor: pointer; user-select: none; }
.tp8s-pill:hover { border-color: #c9ccc7; }
.tp8s-chev { width: 15px; height: 15px; transition: transform .2s; }
.tp8s-f[open] > summary .tp8s-chev { transform: rotate(180deg); }
.tp8s-f[data-active] > .tp8s-pill { border-color: var(--ink); }
.tp8s-f > summary { list-style: none; }
.tp8s-f > summary::-webkit-details-marker { display: none; }
.tp8s-btn { display: inline-flex !important; align-items: center; justify-content: center; height: 44px; padding: 0 22px !important; border-radius: 999px !important; background: var(--ink) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; border: 1.5px solid var(--ink) !important; cursor: pointer; white-space: nowrap; line-height: 1 !important; }
.tp8s-btn.is-ghost { background: #fff !important; color: var(--ink) !important; border-color: var(--line) !important; }
.tp8s-btn.is-outline { background: #fff !important; color: var(--ink) !important; }
.tp8s-btn:hover { opacity: .92; }
.tp8s-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; height: 42px; color: var(--muted); }
.tp8s-search .tp8s-i { width: 17px; height: 17px; }
.tp8s-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important; font: inherit; font-size: 14px; color: var(--ink); height: 40px; padding: 0 !important; box-shadow: none !important; margin: 0 !important; }
.tp8s-checks { max-height: 300px; overflow-y: auto; margin: 8px -4px 0 !important; overscroll-behavior: contain; }
.tp8s-check, .tp8s-radio { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tp8s-check:hover, .tp8s-radio:hover { background: var(--soft); }
.tp8s-check input, .tp8s-radio input, .tp8s-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tp8s-box { width: 19px; height: 19px; flex: none; border: 1.5px solid #b9beb8; border-radius: 5px; display: grid; place-items: center; background: #fff; }
.tp8s-check input:checked + .tp8s-box { background: var(--ink); border-color: var(--ink); }
.tp8s-check input:checked + .tp8s-box::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.tp8s-check-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tp8s-check-name small { color: var(--muted); font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.tp8s-check em { font-style: normal; color: var(--muted); font-size: 12px; }
.tp8s-radio span { flex: 1; }
.tp8s-radio-mark { width: 18px; height: 18px; opacity: 0; color: var(--ink); }
.tp8s-radio input:checked ~ .tp8s-radio-mark { opacity: 1; }
.tp8s-radio input:checked + span { font-weight: 600; }
.tp8s-switch { width: 34px; height: 20px; border-radius: 10px; background: #d5d9d4; position: relative; flex: none; transition: background .2s; }
.tp8s-switch::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.tp8s-toggle input:checked + .tp8s-switch { background: var(--brand); }
.tp8s-toggle input:checked + .tp8s-switch::after { transform: translateX(14px); }
[dir="rtl"] .tp8s-toggle input:checked + .tp8s-switch::after, .tp8s[dir="rtl"] .tp8s-toggle input:checked + .tp8s-switch::after { transform: translateX(-14px); }
.tp8s-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tp8s-chipbtn { height: 36px !important; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid var(--line) !important; font-size: 13px; background: #fff !important; }
.tp8s-chipbtn.is-on { border-color: var(--ink) !important; background: var(--soft) !important; font-weight: 600; }
.tp8s-range { display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; }
.tp8s-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.tp8s-range input { height: 42px; border: 1px solid var(--line) !important; border-radius: 10px !important; padding: 0 10px !important; font: inherit; font-size: 15px; color: var(--ink); width: 100%; background: #fff !important; margin: 0 !important; box-shadow: none !important; }
.tp8s-range-sep { padding-bottom: 10px; color: var(--muted); }
.tp8s-links a { display: flex; align-items: center; min-height: 42px; padding: 4px 8px; border-radius: 8px; font-size: 14px; }
.tp8s-links a:hover { background: var(--soft); }
.tp8s-links a[aria-current] { font-weight: 600; }
.tp8s-pop-foot { display: flex; gap: 8px; margin-top: 12px; }
.tp8s-pop-foot .tp8s-btn { flex: 1; }
.tp8s-empty-note { color: var(--muted); font-size: 13px; padding: 10px 4px; margin: 0; }

/* Filters: a sheet below 990px (bottom sheet on phones, side panel on tablets) */
.tp8s-filters { display: none; }
.tp8s-filters.is-open { display: flex; flex-direction: column; position: fixed; z-index: 100001; inset: auto 0 0 0; max-height: 88vh; max-height: 88dvh; background: #fff; border-radius: 20px 20px 0 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -10px 40px rgba(0,0,0,.18); padding: 0 16px; animation: tp8s-up .22s ease-out; }
@keyframes tp8s-up { from { transform: translateY(30px); opacity: .6; } }
.tp8s-scrim { position: fixed; inset: 0; z-index: 100000; background: rgba(15,20,16,.45); }
.tp8s-scrim[hidden] { display: none; }
html.tp8s-lock, html.tp8s-lock body { overflow: hidden !important; }
.tp8s-sheet-head { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.tp8s-sheet-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d6d6d6; }
.tp8s-sheet-title { font-size: 16px; font-weight: 600; flex: 1; }
.tp8s-x { width: 40px; height: 40px; display: grid !important; place-items: center; border-radius: 50% !important; background: var(--soft) !important; }
.tp8s-x .tp8s-i { width: 18px; height: 18px; }
.tp8s-filters.is-open .tp8s-fgroups { display: flex; flex-direction: column; }
.tp8s-filters.is-open .tp8s-f { border-bottom: 1px solid var(--line); }
.tp8s-filters.is-open .tp8s-f > summary { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0; border: 0; border-radius: 0; font-size: 15px; font-weight: 500; width: 100%; }
.tp8s-filters.is-open .tp8s-f > summary > span:first-child { flex: 1; }
.tp8s-filters.is-open .tp8s-pop { padding: 0 0 14px; }
.tp8s-filters.is-open .tp8s-pop-foot { display: none; }
.tp8s-filters.is-open .tp8s-toggle { height: 54px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; font-size: 15px; font-weight: 500; justify-content: space-between; flex-direction: row-reverse; }
.tp8s-filters.is-open .tp8s-sortsum { display: flex; align-items: center; gap: 6px; height: 54px; font-size: 15px; font-weight: 500; }
.tp8s-filters.is-open .tp8s-sortsum .tp8s-muted { flex: 1; color: var(--ink); }
.tp8s-filters.is-open .tp8s-sortsum b { font-weight: 400; color: var(--muted); font-size: 13.5px; }
.tp8s-filters.is-sort .tp8s-fgroups, .tp8s-filters.is-sort .tp8s-sheet-foot, .tp8s-filters.is-sort .tp8s-sheet-head .tp8s-link { display: none !important; }
.tp8s-filters.is-sort .tp8s-sortsum { display: none !important; }
.tp8s-filters.is-sort .tp8s-sortf { border-bottom: 0; padding-top: 6px; }
.tp8s-sheet-foot { display: flex; gap: 10px; position: sticky; bottom: 0; background: #fff; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: auto; border-top: 1px solid var(--line); }
.tp8s-sheet-foot .tp8s-btn { flex: 1; }
.tp8s-sheet-foot .tp8s-btn:last-child { flex: 2; }

/* Active filter chips */
.tp8s-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; }
.tp8s-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--soft); font-size: 13px; }
.tp8s-chip .tp8s-i { width: 14px; height: 14px; color: var(--muted); }
.tp8s-chip:hover { background: #eeece7; }

/* Grid and cards */
.tp8s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-y) var(--gap-x); margin: 14px 0 0 !important; }
.tp8s-card { position: relative; min-width: 0; }
.tp8s-media { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s ease; }
.tp8s-img-link { display: block; width: 100%; height: 100%; }
.tp8s-img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 5%; transition: transform .4s ease; max-width: none !important; }
.tp8s-card.is-soldout .tp8s-img { opacity: .5; }
.tp8s-badge { position: absolute; top: 7px; inset-inline-start: 7px; z-index: 2; background: var(--soft); color: var(--ink); font-size: 10.5px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 999px; }
.tp8s-badge.is-sale { color: var(--accent); font-weight: 600; }
.tp8s-wish { position: absolute !important; top: 5px; inset-inline-end: 5px; z-index: 3; width: 30px !important; height: 30px !important; border-radius: 50% !important; background: var(--soft) !important; font-size: 0 !important; color: var(--ink) !important; display: grid !important; place-items: center; padding: 0 !important; overflow: visible !important; }
.tp8s-wish > * { display: none !important; }
.tp8s-wish::before { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.4A4.2 4.2 0 0 1 12 7.6a4.2 4.2 0 0 1 7.5 2.5c0 5.8-7.5 10.4-7.5 10.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.4A4.2 4.2 0 0 1 12 7.6a4.2 4.2 0 0 1 7.5 2.5c0 5.8-7.5 10.4-7.5 10.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tp8s-wish.woosw-added, .tp8s-wish.woosw-btn-added { color: var(--accent) !important; }
.tp8s-wish.woosw-added::before, .tp8s-wish.woosw-btn-added::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.4A4.2 4.2 0 0 1 12 7.6a4.2 4.2 0 0 1 7.5 2.5c0 5.8-7.5 10.4-7.5 10.4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.5s-7.5-4.6-7.5-10.4A4.2 4.2 0 0 1 12 7.6a4.2 4.2 0 0 1 7.5 2.5c0 5.8-7.5 10.4-7.5 10.4z'/%3E%3C/svg%3E"); }
.tp8s-wish.loading::before { opacity: .35; }
.tp8s-wish::after, .tp8s-qa::after { content: ''; position: absolute; inset: -7px; } /* 44px touch targets */

/* Quick add: an icon on phones, tablets and every touch screen */
.tp8s-qa { position: absolute !important; bottom: 6px; inset-inline-end: 6px; z-index: 3; width: 32px; height: 32px; border-radius: 50% !important; background: var(--ink) !important; color: #fff !important; display: grid !important; place-items: center; padding: 0 !important; margin: 0 !important; border: 0 !important; font-size: 0 !important; line-height: 1 !important; min-width: 0 !important; min-height: 0 !important; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s; }
.tp8s-qa:active { transform: scale(.94); }
.tp8s-qa .tp8s-i { width: 16px; height: 16px; grid-area: 1 / 1; }
.tp8s-qa .tp8s-i-done { opacity: 0; }
.tp8s-qa-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp8s-qa.loading .tp8s-i { opacity: 0; }
.tp8s-qa.loading::before { content: ''; grid-area: 1 / 1; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: tp8s-spin .7s linear infinite; }
.tp8s-qa.added .tp8s-i:not(.tp8s-i-done) { opacity: 0; }
.tp8s-qa.added .tp8s-i-done { opacity: 1; }
.tp8s-qa.is-options { background: #fff !important; color: var(--ink) !important; }
@keyframes tp8s-spin { to { transform: rotate(360deg); } }
.tp8s-card .added_to_cart { display: none !important; }

.tp8s-meta { padding: 8px 1px 0; display: flex; flex-direction: column; gap: 2px; }
.tp8s-brand { font: 500 10px/1.3 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tp8s-name { font-size: 12.5px !important; line-height: 1.55 !important; font-weight: 400 !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.tp8s-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp8s-price { font-weight: 600; font-size: 13.5px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tp8s-price del { color: var(--muted); font-weight: 400; font-size: .86em; opacity: 1; order: 2; }
.tp8s-price ins { text-decoration: none; background: none; color: var(--accent); }
.tp8s-price .woocommerce-Price-currencySymbol { font-weight: 400; font-size: .84em; }
.tp8s-price .screen-reader-text { position: absolute !important; }

/* Show more */
.tp8s-more { text-align: center; margin-top: 28px; }
.tp8s-more-text { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.tp8s-bar { width: 180px; height: 3px; background: var(--line); margin: 0 auto 14px; border-radius: 2px; overflow: hidden; }
.tp8s-bar i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.tp8s-more-btn { width: 100%; height: 48px !important; }
.tp8s-more-btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.tp8s-more-btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: tp8s-spin .7s linear infinite; }

/* Empty state and description */
.tp8s-empty { text-align: center; padding: 48px 0 24px; }
.tp8s-empty h2 { font-size: 18px; margin: 0 0 6px; }
.tp8s-empty p { color: var(--muted); margin: 0 0 16px; }
.tp8s-empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tp8s-desc { margin: 48px auto 0; max-width: 820px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.tp8s-desc h2, .tp8s-desc h3 { font-size: 15px; }

/* ≤ 360 px */
@media (max-width: 360px) {
	.tp8s { --gap-x: 8px; --gap-y: 16px; --pad: 12px; }
	.tp8s-name { font-size: 12px !important; }
	.tp8s-price { font-size: 13px; }
	.tp8s-qa { width: 30px; height: 30px; bottom: 5px; inset-inline-end: 5px; }
	.tp8s-qa .tp8s-i { width: 15px; height: 15px; }
	.tp8s-wish { width: 28px !important; height: 28px !important; }
	.tp8s-circles li { width: 58px; }
	.tp8s-circle { width: 50px; height: 50px; }
	.tp8s-tb-btn { font-size: 12.5px; padding: 0 8px !important; }
}

/* ≥ 600 px: tablets */
@media (min-width: 600px) {
	.tp8s { --gap-x: 14px; --gap-y: 24px; --pad: 22px; --radius: 12px; }
	.tp8s-title { font-size: 25px; }
	.tp8s-count { font-size: 13.5px; }
	.tp8s-circles ul { gap: 16px; }
	.tp8s-circles li { width: 76px; }
	.tp8s-circles a { font-size: 12.5px; }
	.tp8s-circle { width: 66px; height: 66px; }
	.tp8s-toolbar { max-width: 420px; }
	.tp8s-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tp8s-qa { width: 36px; height: 36px; bottom: 8px; inset-inline-end: 8px; }
	.tp8s-qa .tp8s-i { width: 17px; height: 17px; }
	.tp8s-wish { width: 32px !important; height: 32px !important; top: 8px; inset-inline-end: 8px; }
	.tp8s-badge { top: 9px; inset-inline-start: 9px; font-size: 11px; }
	.tp8s-name { font-size: 13.5px !important; }
	.tp8s-price { font-size: 14.5px; }
	.tp8s-brand { font-size: 10.5px; }
	.tp8s-more-btn { width: auto; padding: 0 48px !important; }
	.tp8s-filters.is-open { inset: 0 auto 0 0; width: min(420px, 86vw); max-height: none; border-radius: 0; animation-name: tp8s-side; }
	[dir="rtl"] .tp8s-filters.is-open, .tp8s[dir="rtl"] .tp8s-filters.is-open { inset: 0 0 0 auto; }
	.tp8s-sheet-head::before { display: none; }
}
@keyframes tp8s-side { from { opacity: .4; } }

/* ≥ 990 px: laptops and desktops — filter bar with popovers */
@media (min-width: 990px) {
	.tp8s { --gap-x: 20px; --gap-y: 30px; --pad: 36px; }
	.tp8s-wrap { padding-top: 18px; }
	.tp8s-title { font-size: 29px; }
	.tp8s-circles ul { flex-wrap: wrap; overflow: visible; margin: 18px 0 8px; padding: 2px; gap: 22px; }
	.tp8s-circles li { width: 88px; }
	.tp8s-circles a { font-size: 13px; }
	.tp8s-circle { width: 78px; height: 78px; }
	.tp8s-toolbar { display: none; }
	.tp8s-filters, .tp8s-filters.is-open { display: flex; flex-direction: row; align-items: center; gap: 10px; position: relative; inset: auto; width: auto; max-height: none; overflow: visible; background: none; box-shadow: none; border-radius: 0; padding: 12px 0; margin-top: 8px; border-block: 1px solid var(--line); animation: none; z-index: 30; }
	.tp8s-scrim { display: none !important; }
	.tp8s-sheet-head, .tp8s-sheet-foot { display: none !important; }
	.tp8s-fgroups { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; align-items: center; }
	.tp8s-f { position: relative; }
	.tp8s-pop { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 40; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(20,30,22,.16); padding: 14px; }
	.tp8s-pop-price { width: 340px; }
	.tp8s-sortf .tp8s-pop { inset-inline-start: auto; inset-inline-end: 0; width: 260px; padding: 8px; }
	.tp8s-sortsum { display: flex; align-items: center; gap: 6px; height: 40px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
	.tp8s-sortsum b { font-weight: 500; }
	.tp8s-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px !important; }
	.tp8s-name { font-size: 14px !important; }
	.tp8s-price { font-size: 15px; }
	.tp8s-more { margin-top: 44px; }
	.tp8s-bar { width: 220px; }
}

/* ≥ 990 px with a mouse: the quick add becomes a text button that appears on hover */
@media (min-width: 990px) and (hover: hover) and (pointer: fine) {
	.tp8s-card:hover .tp8s-media { box-shadow: 0 8px 26px rgba(20,30,22,.10); }
	.tp8s-card:hover .tp8s-img { transform: scale(1.03); }
	.tp8s-qa { width: auto; height: 40px; inset-inline: 10px; bottom: 10px; border-radius: 999px !important; font-size: 13px !important; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
	.tp8s-qa .tp8s-i { display: none; }
	.tp8s-qa-t { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
	.tp8s-qa.loading .tp8s-qa-t { opacity: 0; }
	.tp8s-qa.loading::before { position: absolute; }
	.tp8s-qa::after { inset: 0; }
	.tp8s-card:hover .tp8s-qa, .tp8s-card:focus-within .tp8s-qa, .tp8s-qa.loading, .tp8s-qa.added { opacity: 1; transform: none; }
	.tp8s-qa.is-options { border: 1px solid var(--line) !important; }
}

/* ≥ 1280 px */
@media (min-width: 1280px) {
	.tp8s { --gap-x: 24px; --gap-y: 34px; }
	.tp8s-name { font-size: 14.5px !important; }
}
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
	.tp8s-qa { height: 42px; inset-inline: 12px; bottom: 12px; font-size: 13.5px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.tp8s *, .tp8s *::before, .tp8s *::after { animation: none !important; transition: none !important; }
}
