/* ===========================
   COMPONENTS CSS - Product Cards, Filter, Price Table, etc.
=========================== */

/* ===== PRODUCT CARD ===== */
.product-card{display:block;background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;transition:all .5s}
.product-card:hover{box-shadow:0 10px 40px var(--shadow);transform:translateY(-4px)}
.product-card__img-wrap{position:relative;overflow:hidden;aspect-ratio:4/3;background:linear-gradient(135deg,#f9fafb,#f3f4f6)}
.product-card__img{width:100%;height:100%;object-fit:cover;transition:transform .7s ease-out}
.product-card:hover .product-card__img{transform:scale(1.1)}
.product-card__hover{position:absolute;inset:0;background:transparent;display:flex;align-items:center;justify-content:center;transition:background .3s}
.product-card:hover .product-card__hover{background:rgba(0,0,0,.2)}
.product-card__eye{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.75);transition:all .3s}
.product-card:hover .product-card__eye{opacity:1;transform:scale(1)}
.product-card__eye svg{color:var(--red)}
.product-card__badges{position:absolute;top:12px;left:12px;display:flex;flex-direction:column;gap:6px}
.badge{font-size:10px;font-weight:700;padding:4px 10px;border-radius:8px;text-transform:uppercase;letter-spacing:.05em}
.badge--new{background:var(--red);color:#fff;box-shadow:0 4px 12px rgba(220,20,60,.3)}
.badge--hot{background:linear-gradient(to right,#f59e0b,#f97316);color:#fff;box-shadow:0 4px 12px rgba(245,158,11,.3)}
.badge--sale{position:absolute;top:12px;right:12px;background:#10b981;color:#fff;box-shadow:0 4px 12px rgba(16,185,129,.3)}
.product-card__body{padding:16px}
.product-card__sub{font-size:11px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px}
.product-card__name{font-size:15px;font-weight:600;transition:color .2s;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.product-card:hover .product-card__name{color:var(--red)}
.product-card__price-row{margin-top:12px;display:flex;align-items:center;gap:10px;padding-top:12px;border-top:1px solid var(--border)}
.product-card__price{color:var(--red);font-weight:800;font-size:16px;letter-spacing:-.02em}
.product-card__price-old{color:var(--text-muted);text-decoration:line-through;font-size:12px}

/* ===== PRODUCTS GRID ===== */
.products-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media(min-width:768px){.products-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1024px){.products-grid--4{grid-template-columns:repeat(4,1fr)}}

/* ===== FILTER PAGE LAYOUT ===== */
.filter-page{padding:32px 0}
.filter-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}
.filter-toggle{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:var(--radius);border:1px solid var(--border);font-size:13px;font-weight:600;transition:border-color .2s;background:#fff}
.filter-toggle:hover{border-color:rgba(220,20,60,.3)}
.filter-toggle__dot{width:8px;height:8px;border-radius:50%;background:var(--red);display:none}
.filter-toggle__dot.show{display:block}
@media(min-width:1024px){.filter-toggle{display:none}}
.filter-bar__right{display:flex;align-items:center;gap:12px;margin-left:auto}
.filter-bar__count{font-size:13px;color:var(--text-muted);display:none}
@media(min-width:640px){.filter-bar__count{display:inline}}
.filter-bar__sort{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:10px 32px 10px 16px;font-size:13px;appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.filter-bar__sort:focus{border-color:var(--red)}
.filter-layout{display:flex;gap:32px}
.filter-content{flex:1;min-width:0}

/* Sidebar */
.sidebar{display:none;width:260px;flex-shrink:0}
@media(min-width:1024px){.sidebar{display:block}}
.sidebar__inner{position:sticky;top:120px;background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border);padding:20px;box-shadow:0 1px 4px rgba(0,0,0,.03)}
.sidebar__header{display:flex;align-items:center;gap:8px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.sidebar__header svg{color:var(--red)}
.sidebar__header-text{font-size:14px;font-weight:700}
.sidebar__section{margin-bottom:24px}
.sidebar__section-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:12px;cursor:pointer;padding:2px 0}
.sidebar__section-toggle svg{transition:transform .2s}
.sidebar__section-toggle.collapsed svg{transform:rotate(0)}
.sidebar__section-toggle:not(.collapsed) svg{transform:rotate(180deg)}
.sidebar__section-body{display:flex;flex-direction:column;gap:4px}
.sidebar__section-body.hidden{display:none}
.sidebar__search{position:relative;margin-bottom:24px}
.sidebar__search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-muted)}
.sidebar__search input{width:100%;background:rgba(245,245,247,.5);border:1px solid var(--border);border-radius:var(--radius);padding:10px 16px 10px 40px;font-size:13px;transition:all .2s}
.sidebar__search input:focus{border-color:var(--red);box-shadow:0 0 0 2px rgba(220,20,60,.1)}
.filter-btn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-radius:var(--radius);font-size:13px;transition:all .2s;cursor:pointer;background:none;text-align:left}
.filter-btn:hover{background:rgba(245,245,247,.7)}
.filter-btn.active{background:var(--red);color:#fff;font-weight:600;box-shadow:0 4px 12px rgba(220,20,60,.15)}
.filter-btn.active .filter-btn__count{color:rgba(255,255,255,.7)}
.filter-btn__count{font-size:11px;color:var(--text-muted)}
.radio-btn{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius);font-size:13px;transition:all .2s;cursor:pointer;background:none;text-align:left}
.radio-btn:hover{background:rgba(245,245,247,.7)}
.radio-btn.active{background:var(--red);color:#fff;font-weight:600;box-shadow:0 4px 12px rgba(220,20,60,.15)}
.radio-circle{width:16px;height:16px;border-radius:50%;border:2px solid rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.radio-btn.active .radio-circle{border-color:#fff}
.radio-dot{width:8px;height:8px;border-radius:50%;background:#fff;display:none}
.radio-btn.active .radio-dot{display:block}
.check-btn{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius);font-size:13px;transition:all .2s;cursor:pointer;background:none;text-align:left}
.check-btn:hover{background:rgba(245,245,247,.7)}
.check-btn.active{background:rgba(220,20,60,.1);color:var(--red);font-weight:600}
.check-box{width:16px;height:16px;border-radius:4px;border:2px solid rgba(0,0,0,.15);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.check-btn.active .check-box{background:var(--red);border-color:var(--red)}
.clear-filters{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:var(--radius);border:1px solid var(--border);font-size:13px;font-weight:600;color:var(--text-muted);transition:all .2s;background:none;cursor:pointer}
.clear-filters:hover{color:var(--red);border-color:rgba(220,20,60,.2)}

/* No results */
.no-results{text-align:center;padding:80px 0;background:#fff;border-radius:var(--radius-lg);border:1px solid var(--border)}
.no-results__icon{width:64px;height:64px;border-radius:var(--radius-lg);background:var(--bg-secondary);display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.no-results__title{font-size:16px;font-weight:600;margin-bottom:4px}
.no-results__desc{font-size:13px;color:var(--text-muted);margin-bottom:16px}
.no-results__clear{font-size:13px;font-weight:600;color:var(--red);cursor:pointer;background:none;border:none}
.no-results__clear:hover{text-decoration:underline}

/* Mobile filter drawer */
.filter-drawer-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:200}
.filter-drawer-overlay.open{display:block}
.filter-drawer{position:fixed;left:0;top:0;bottom:0;width:320px;max-width:85vw;background:#fff;z-index:201;overflow-y:auto;transform:translateX(-100%);transition:transform .3s ease}
.filter-drawer.open{transform:translateX(0)}
.filter-drawer__inner{padding:20px}
.filter-drawer__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.filter-drawer__title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.filter-drawer__close{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:background .2s;cursor:pointer;background:none;border:none}
.filter-drawer__close:hover{background:var(--bg-secondary)}
.filter-drawer__submit{margin-top:24px;padding-top:16px;border-top:1px solid var(--border)}
.filter-drawer__submit button{width:100%;padding:12px;border-radius:var(--radius);font-weight:600;font-size:14px}
@media(min-width:1024px){.filter-drawer-overlay,.filter-drawer{display:none!important}}

/* ===== PRICE TABLE ===== */
.price-table-wrap{overflow-x:auto;border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:0 4px 20px rgba(0,0,0,.03)}
.price-table{width:100%;font-size:14px;border-collapse:collapse}
.price-table thead tr{background:linear-gradient(to right,var(--dark),var(--dark2));color:#fff}
.price-table th{padding:16px 20px;font-weight:600;font-size:13px;text-align:left}
.price-table th:last-child{text-align:right}
.price-table th.text-center{text-align:center}
.price-table td{padding:14px 20px;border-bottom:1px solid rgba(0,0,0,.03)}
.price-table tbody tr:nth-child(even){background:rgba(249,250,251,.5)}
.price-table tbody tr:hover{background:rgba(220,20,60,.02)}
.price-table td:last-child{text-align:right;color:var(--red);font-weight:700}
.price-table td.text-normal{text-align:left;color:var(--text);font-weight:400}
.status-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:600;color:#059669;background:#ecfdf5;padding:4px 10px;border-radius:999px}
.status-dot{width:6px;height:6px;border-radius:50%;background:#10b981;display:inline-block}
.new-badge{background:var(--red);color:#fff;font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;text-transform:uppercase;margin-left:8px;vertical-align:middle}
.price-table a{font-weight:600;transition:color .2s;color:var(--text)}
.price-table a:hover{color:var(--red)}
.price-note{font-size:13px;color:var(--text-muted);font-style:italic;background:rgba(245,245,247,.5);padding:16px;border-radius:var(--radius);border:1px solid rgba(0,0,0,.03);margin-top:32px}
.price-more{text-align:center;margin-top:24px}
.price-more a{display:inline-flex;align-items:center;gap:8px;color:var(--red);font-size:14px;font-weight:600;transition:gap .3s}
.price-more a:hover{gap:12px}
