:root {
  --primary: #414bb2;
  --primary-light: #5c67f2;
  --accent: #7b83ff;
  --dark: #1a1a1a;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, sans-serif;
}


body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #fafafa;
}

/* HEADER */
.page-header {
  padding: 30px 20px;
  background: #f4f1f6;
}

.page-header h1 {
  margin: 10px 0;
  font-size: 36px;
}

.meta {
  color: #666;
}

/* MOBILE FILTER BAR */
.mobile-filter-bar {
  display: none;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.mobile-filter-bar button {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  
}

/* LAYOUT */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px;
}

/* FILTERS */
.filters {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  transition: 0.3s;
}
.filters:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  margin: 6px 0;
  transition: 0.3s;
  padding: 3%;
}
.filter-group label:hover {
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   padding: 3% 5%;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: 0.3s;
  height: fit-content;
}
.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  scale: 1.01;
}
.product-card:hover img{
  scale: 1;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  transition: 0.3s;
  scale: 0.9;
}

.product-card h3 {
  margin: 10px 0;
}

.spec {
  color: #666;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-outline {
  flex: 1;
  padding: 8px;
  border: 1px solid #aaa !important;
  background: #fff;
  color: black !important;
  text-align: center;
  text-decoration: none;  
}

.btn-primary {
  flex: 1;
  padding: 8px;
  background: #6b7cff;
  color: #fff;
  border: none;
  text-align: center;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: #5C67F2;
}

/* MOBILE FILTER PANEL */
.filter-panel {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 76%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 20px;
  transition: bottom 0.3s ease;
  z-index: 999;
}

.filter-panel.open {
  bottom: 0;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.filter-header button{
  border: none;
  background: none;
  font-size: 20px;
}
.apply-btn {
  width: 100%;
  padding: 14px;
  background: #6b7cff;
  color: #fff;
  border: none;
  margin-top: 20px;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
  }

  .mobile-filter-bar {
    display: block;
  }
}
