/*--------------------------------
            Section 1
--------------------------------*/

.shop-sec-1 {
  padding: 80px 0;
  background: var(--background);
}

.shop-sec-1-container {
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: auto;

  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 35px;

  align-items: start;
}

/*==========================
        Sidebar
==========================*/

.shop-sec-1-sidebar {
  /* position: sticky;
  top: 100px; */
}

.shop-sec-1-filter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.shop-sec-1-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.shop-sec-1-filter-header h2 {
  font-size: 1.4rem;
  color: var(--black);
}

.shop-sec-1-filter-header button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--background);
  cursor: pointer;
  transition: 0.3s;
}

.shop-sec-1-filter-header button:hover {
  background: var(--primary);
  color: #fff;
}

/*==========================
        Filter Group
==========================*/

.shop-sec-1-filter-group {
  margin-top: 35px;
}

.shop-sec-1-filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.shop-sec-1-filter-title h3 {
  font-size: 1.05rem;
}

.shop-sec-1-filter-title i {
  transition: transform 0.35s ease;
}

/*==========================
        Options
==========================*/

.shop-sec-1-options {
  display: flex;
  flex-direction: column;
  gap: 15px;

  overflow-x: hidden;
  overflow-y: auto;

  max-height: 0;
  opacity: 0;

  margin-top: 0;
  padding-right: 4px;

  transition:
    max-height 0.45s ease,
    opacity 0.25s ease,
    margin-top 0.35s ease;

  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.shop-sec-1-filter-group.active .shop-sec-1-options {
  max-height: 160px;
  opacity: 1;
  margin-top: 20px;
}

.shop-sec-1-filter-group.active .shop-sec-1-filter-title i {
  transform: rotate(180deg);
}

/*==========================
        Labels
==========================*/

.shop-sec-1-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.shop-sec-1-options span {
  flex: 1;
  color: var(--text);
}

.shop-sec-1-options small {
  color: #999;
}

/*==========================
        Scrollbar
==========================*/

.shop-sec-1-options::-webkit-scrollbar {
  width: 6px;
}

.shop-sec-1-options::-webkit-scrollbar-track {
  background: transparent;
}

.shop-sec-1-options::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background 0.3s ease;
}

.shop-sec-1-options:hover::-webkit-scrollbar-thumb {
  background: var(--primary);
}

.shop-sec-1-options:hover::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

/* Firefox */

.shop-sec-1-options:hover {
  scrollbar-color: var(--primary) transparent;
}

/*==========================
        Right
==========================*/

.shop-sec-1-content {
  display: flex;

  flex-direction: column;
}

/*==========================
        Top
==========================*/

.shop-sec-1-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 30px;

  gap: 20px;

  flex-wrap: wrap;
}

.shop-sec-1-top h2 {
  font-size: 2rem;

  margin-bottom: 6px;
}

.shop-sec-1-top p {
  color: var(--text);
}

.shop-sec-1-top select {
  height: 48px;

  padding: 0 18px;

  border: 1px solid var(--border);

  border-radius: 12px;

  background: #fff;

  outline: none;

  cursor: pointer;
}

/*==========================
        Grid
==========================*/

.shop-sec-1-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 25px;
}

/*==========================
        Card
==========================*/

.shop-sec-1-card {
  background: #fff;

  border: 1px solid var(--border);

  border-radius: 18px;

  overflow: hidden;

  transition: 0.35s;
  position: relative;
}

.shop-sec-1-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.shop-sec-1-card img {
  width: 100%;

  height: 240px;

  object-fit: cover;

  transition: 0.4s;
}

.shop-sec-1-card:hover img {
  transform: scale(1.05);
}

.shop-sec-1-card-body {
  padding: 22px;
  border-top: 1px solid #ddd;
}

.shop-sec-1-card-body h3 {
  font-size: 1.2rem;

  color: var(--black);

  margin-bottom: 10px;
}

.shop-sec-1-card-body p {
  color: var(--text);

  line-height: 1.7;

  margin-bottom: 18px;
}

.shop-sec-1-card-body span {
  display: inline-block;

  color: var(--primary);

  font-weight: 700;

  font-size: 1.2rem;
}

/*==========================
        Pagination
==========================*/

.shop-sec-1-pagination {
  display: flex;

  justify-content: center;

  gap: 12px;

  margin-top: 50px;
}

.shop-sec-1-pagination button {
  width: 46px;

  height: 46px;

  border: 1px solid var(--border);

  background: #fff;

  border-radius: 12px;

  cursor: pointer;

  transition: 0.3s;
}

.shop-sec-1-pagination button:hover {
  background: var(--primary);

  color: #fff;

  border-color: var(--primary);
}

.shop-sec-1-pagination button.active {
  background: var(--primary);

  color: #fff;

  border-color: var(--primary);
}



.shop-sec-1-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;

  padding: 6px 12px;

  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  color: #333;
  font-size: 0.75rem;
  font-weight: 500;

  z-index: 2;
}

/*==========================
        Responsive
==========================*/

@media (max-width: 1200px) {
  .shop-sec-1-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .shop-sec-1-container {
    grid-template-columns: 1fr;
  }

  .shop-sec-1-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .shop-sec-1 {
    padding: 60px 0;
  }

  .shop-sec-1-grid {
    grid-template-columns: 1fr;
  }

  .shop-sec-1-top {
    flex-direction: column;

    align-items: flex-start;
  }

  .shop-sec-1-top select {
    width: 100%;
  }

  .shop-sec-1-pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .shop-sec-1-filter {
    padding: 20px;
  }

  .shop-sec-1-card img {
    height: 220px;
  }

  .shop-sec-1-top h2 {
    font-size: 1.6rem;
  }
}
