/****************************************
    CATEGORY WRAPPER
*****************************************/
.category-wrapper {
  margin-top: 200px !important;
  /* FIXED */
  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-wrapper {
  position: relative;
  display: inline-block;
}

.sort-dropdown {
  appearance: none;
  padding: 12px 40px 12px 18px;
  font-size: 14px;
  border-radius: 40px;
  border: 1.5px solid #d8c79e;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
  outline: none;

  transition: all 0.25s ease;
}

/* Custom arrow icon */
.sort-wrapper::after {
  content: "▾";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8c7b5a;
  pointer-events: none;
}

.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 — FINAL, CLEAN, PANDORA STYLE
*************************************************/

/* ===== PANEL (HIDDEN BY DEFAULT) ===== */
.filter-panel {
  position: fixed;
  top: 0;
  right: 0;

  width: 420px;
  max-width: 100%;
  height: 100vh;

  background: #fff;
  z-index: 4000;

  padding: 28px 30px;
  overflow-y: auto;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* 🔑 PANDORA SLIDE-IN */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== PANEL OPEN ===== */
.filter-panel.show {
  transform: translateX(0);
}

/* ===== OVERLAY ===== */
.filter-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);

  z-index: 20000;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ===== OVERLAY OPEN ===== */
.filter-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== HEADER ===== */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.filter-header h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.close-btn {
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* ===== SECTION HEADERS ===== */
.filter-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.filter-content {
  display: none;
  padding: 10px 0 0;
}

/* OPEN SECTION */
.filter-content.open {
  display: block;
}

/* ===== FILTER OPTIONS ===== */
.filter-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;

  font-size: 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option span {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.filter-option small {
  font-size: 14px;
  color: #9a9a9a;
}

/* ===== CHECKBOX / RADIO (PANDORA) ===== */
.filter-option input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d5d5d5;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.filter-option input:checked {
  background: #000;
  border-color: #000;
}

.filter-option input:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
}

/* Pandora uses square radios */
.filter-option input[type="radio"] {
  border-radius: 0;
}

/* ===== APPLIED FILTERS ===== */
.applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.filter-chip {
  font-size: 13px;
  border: 1px solid #e5e5e5;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===== SHOP BY ===== */
.filter-main-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  border: 1px solid #ddd;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}

.category-chip.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ===== FOOTER ===== */
.filter-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  gap: 14px;
}

.clear-btn {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border: 1px solid #ddd;
  font-size: 14px;
  text-decoration: none;
  color: #000;
}

.view-btn,
.apply-btn {
  flex: 1;
  background: #1c120c;
  color: #fff;
  border: none;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .filter-panel {
    width: 100%;
    padding: 22px 20px;
  }
}

/* ===============================
   PANDORA ACCORDION
================================ */

.filter-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;

  display: flex;
  justify-content: space-between;
  align-items: center;

  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.filter-toggle span {
  font-size: 18px;
  line-height: 1;
}

/* Content hidden by default */
.filter-content {
  display: none;
  padding: 10px 0 0;
}

/* Open state */
.filter-content.open {
  display: block;
}

/****************************************
    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;
  }
}