.tw-filter-widget { font-family: inherit; position: relative; }

/* Mobile toggle button */
.tw-mobile-filter-toggle { display: none; width: 100%; padding: 14px; background: #0B2540; color: #FFFFFF; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 20px; align-items: center; justify-content: center; gap: 8px; }
.tw-overlay { display: none; position: fixed; inset: 0; background: rgba(11,37,64,0.5); z-index: 998; }

.tw-layout { display: flex; gap: 28px; align-items: flex-start; }

/* Sidebar */
.tw-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 20px; background: #F7FAFC; border: 1px solid #EEF1F4; border-radius: 14px; padding: 22px; }
.tw-sidebar-header { display: none; justify-content: space-between; align-items: center; margin-bottom: 16px; font-weight: 700; color: #0B2540; font-size: 16px; }
.tw-sidebar-close { background: none; border: none; font-size: 24px; color: #6B7280; cursor: pointer; line-height: 1; }
.tw-apply-btn { display: none; width: 100%; padding: 12px; background: #1DB9EC; color: #FFF; border: none; border-radius: 8px; font-weight: 700; margin-top: 20px; cursor: pointer; }

.tw-filter-group { margin-bottom: 26px; }
.tw-filter-group:last-child { margin-bottom: 0; }
.tw-filter-label { font-weight: 700; color: #0B2540; font-size: 13px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.tw-price-slider-wrap { position: relative; height: 6px; margin: 10px 0; width: 100%; }
.tw-slider-track { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: #E5E9ED; border-radius: 3px; }
.tw-slider-range { position: absolute; top: 0; height: 6px; background: #1DB9EC; border-radius: 3px; }
.tw-range { position: absolute; top: -7px; left: 0; width: 100%; height: 20px; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; }
.tw-range::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: all; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; border: 3px solid #1DB9EC; cursor: pointer; box-shadow: 0 2px 6px rgba(11,37,64,0.2); }
.tw-range::-moz-range-thumb { pointer-events: all; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; border: 3px solid #1DB9EC; cursor: pointer; box-shadow: 0 2px 6px rgba(11,37,64,0.2); }
.tw-price-display { font-size: 13px; color: #6B7280; font-weight: 600; margin-top: 14px; }
.tw-gender-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-pill { padding: 8px 16px; border-radius: 20px; border: 1px solid #D1D9E0; background: #FFFFFF; color: #0B2540; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.tw-pill:hover { border-color: #1DB9EC; color: #1DB9EC; }
.tw-pill-active { background: #1DB9EC !important; border-color: #1DB9EC !important; color: #FFFFFF !important; }
.tw-sort-select { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid #D1D9E0; background: #FFFFFF; color: #0B2540; font-size: 13px; font-weight: 600; cursor: pointer; }
.tw-sort-select:focus { outline: none; border-color: #1DB9EC; }

/* Main results area */
.tw-main { flex: 1; min-width: 0; }
.tw-results-topbar { margin-bottom: 16px; }
.tw-results-count { font-size: 13px; color: #6B7280; opacity: 0; transition: opacity 0.4s ease; }
.tw-results-count.tw-visible { opacity: 1; }

.tw-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tw-skeleton-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }

.tw-card { background: #FFFFFF; border: 1px solid #EEF1F4; border-radius: 12px; box-shadow: 0 2px 8px rgba(11,37,64,0.06); overflow: hidden; transition: all 0.25s ease; padding: 12px 12px 18px; position: relative; }
.tw-card:hover { box-shadow: 0 10px 24px rgba(11,37,64,0.12); transform: translateY(-4px); border-color: #1DB9EC; }
.tw-card-link { text-decoration: none; display: block; cursor: pointer; }
.tw-card-img-wrap { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 10px; }
.tw-card img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; transition: transform 0.35s ease; }
.tw-card:hover img { transform: scale(1.05); }
.tw-brand-badge { position: absolute; top: 8px; left: 8px; background: #0B2540; color: #FFFFFF; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; }
.tw-wishlist-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: scale(0.8); transition: all 0.25s ease; z-index: 2; }
.tw-card:hover .tw-wishlist-btn { opacity: 1; transform: scale(1); }
.tw-wishlist-btn svg { width: 16px; height: 16px; fill: none; stroke: #0B2540; stroke-width: 2; }
.tw-wishlist-btn:hover svg { fill: #FF5A7A; stroke: #FF5A7A; }
.tw-card-title { font-family: "Unbounded", sans-serif; font-size: 14px; font-weight: 600; color: #0B2540; margin-bottom: 6px; }
.tw-card-price { display: flex; flex-direction: column; gap: 2px; }
.tw-price-old { color: #9CA6B2; font-size: 12px; text-decoration: line-through; }
.tw-price-new { color: #1DB9EC; font-weight: 700; font-size: 16px; }

/* Skeleton loading */
.tw-skel-card { background: #FFFFFF; border: 1px solid #EEF1F4; border-radius: 12px; padding: 12px 12px 18px; }
.tw-skel-img { width: 100%; aspect-ratio: 1/1; border-radius: 8px; margin-bottom: 10px; }
.tw-skel-line { height: 12px; border-radius: 4px; margin-bottom: 8px; width: 80%; }
.tw-skel-line.tw-skel-short { width: 50%; }
.tw-skel-img, .tw-skel-line { background: linear-gradient(90deg, #EEF1F4 25%, #E2E7EC 50%, #EEF1F4 75%); background-size: 200% 100%; animation: tw-shimmer 1.4s infinite; }
@keyframes tw-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.tw-scroll-sentinel { height: 10px; width: 100%; }
.tw-end-message { text-align: center; padding: 30px; color: #6B7280; font-size: 13px; }
.tw-no-results { text-align: center; padding: 40px; color: #6B7280; grid-column: 1/-1; }

/* Mobile */
@media (max-width: 767px) {
	.tw-mobile-filter-toggle { display: flex; }
	.tw-layout { display: block; }
	.tw-sidebar { position: fixed; top: 0; right: -100%; height: 100%; width: 82%; max-width: 340px; z-index: 999; border-radius: 0; overflow-y: auto; transition: right 0.3s ease; margin: 0; }
	.tw-sidebar.tw-sidebar-open { right: 0; }
	.tw-sidebar-header { display: flex; }
	.tw-overlay.tw-overlay-open { display: block; }
	.tw-apply-btn { display: block; }
	.tw-results, .tw-skeleton-wrap { grid-template-columns: repeat(2, 1fr); }
}
.tw-discount-badge { position: absolute; top: 8px; right: 8px; background: #1DB9EC; color: #FFFFFF; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 20px; z-index: 2; letter-spacing: 0.3px; }
.tw-wishlist-btn { top: 40px !important; }