/****************************************
    CATEGORY WRAPPER
*****************************************/
.category-wrapper {
  margin-top: 200px !important; /* FIXED */
  padding: 0 18px 80px;
  margin-left: 46px;
  margin-right: 46px;
}

/****************************************
    HERO SECTION
*****************************************/
.category-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-description {
  font-size: 16px;
  color: #555;
  max-width: 600px;
  margin-bottom: 30px;
}

/****************************************
    TABS
*****************************************/
.category-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 25px;
}

.tab {
  padding: 8px 0;
  font-size: 14px;
  color: #777;
  cursor: pointer;
  transition: color 0.25s ease;
}

.tab:hover {
  color: #000;
}

.tab.active {
  color: #000;
  font-weight: 600;
  position: relative;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -13px;
  width: 100%;
  height: 2px;
  background: #000;
}

/****************************************
    FILTER & SORT BAR
*****************************************/
.filter-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 30px;
}

.filter-btn {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #222;
}

.filter-btn:hover {
  opacity: 0.7;
}

.sort-dropdown {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-dropdown:hover {
  border-color: #bbb;
}

/****************************************
    PRODUCT GRID
*****************************************/
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

/****************************************
    PRODUCT CARD
*****************************************/
.product-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #ececec;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease, border-color 0.28s ease;
  padding: 0px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
}

/****************************************
    PRODUCT IMAGE
*****************************************/
.product-image-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #ffffff 0%, #faf7f4 100%);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0eae4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.07);
}

/****************************************
    PRODUCT INFO
*****************************************/
.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.product-info .price {
  font-size: 15px;
  font-weight: 700;
  color: #c5a24a;
}

/****************************************
    PAGINATION
*****************************************/
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
  gap: 10px;
}

.page-btn,
.page-number {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: 0.25s ease;
}

.page-btn:hover,
.page-number:hover {
  background: #f3f3f3;
}

.page-number.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/****************************************
    FILTER PANEL (SLIDE OUT)
*****************************************/
.filter-panel {
  position: fixed;
  right: -371px;
  top: 0;
  width: 371px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 14px rgba(0, 0, 0, 0.12);
  z-index: 20000;
  padding: 30px;
  transition: right 0.35s ease;
  overflow-y: auto;
}

.filter-panel.show {
  right: 0;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.filter-overlay.show {
  opacity: 1;
  visibility: visible;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  margin-top: 28px;
}

.filter-group label {
  display: block;
  margin: 8px 0;
  font-size: 14px;
}

.filter-footer {
  margin-top: 35px;
  display: flex;
  justify-content: space-between;
}

.clear-btn,
.view-btn {
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.clear-btn {
  border: 1px solid #ccc;
  background: #fafafa;
  text-decoration: none;
}

.view-btn {
  background: #111;
  color: #fff;
}

/****************************************
    MOBILE — PANDORA STYLE
*****************************************/
@media (max-width: 768px) {
  .category-wrapper {
    margin-top: 80px !important;
    padding: 0 18px 60px !important;
    margin-left: 0px;
    margin-right: 0px;
  }

  .category-title {
    font-size: 32px;
    margin-bottom: 6px;
  }

  .category-description {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .category-tabs {
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  /***** FILTER SORT *****/
  .filter-sort-bar {
    padding: 14px 0 16px;
    margin-bottom: 22px;
  }

  .filter-btn {
    font-size: 13px;
  }

  /***** GRID *****/
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px 18px;
  }

  /***** CARD *****/
  .product-card {
    border-radius: 14px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 0px !important;
  }

  .product-card:active {
    transform: scale(0.97);
  }

  /***** MOBILE IMAGE FIX (IMPORTANT) *****/
  .product-image-wrapper {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 12px !important;
  }

  .product-image-wrapper img {
    object-fit: cover !important;
    padding: 0 !important;
    border-radius: 12px;
  }

  /***** PRODUCT INFO *****/
  .product-info {
    padding: 10px 4px 14px;
  }

  .product-info h3 {
    font-size: 13px;
    min-height: 34px;
  }

  .product-info .price {
    font-size: 14px;
  }

  /***** PAGINATION *****/
  .pagination {
    margin-top: 40px;
    gap: 8px;
  }

  .page-number,
  .page-btn {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 40px;
  }
}
