/* ============================================================
   Archive Product — Shop & Product Category
   ============================================================ */

.archive-product-page {
  padding-bottom: 80px;
  padding-top: 100px;
}

/* ---- Breadcrumb ---- */
.archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}

.archive-breadcrumb a {
  color: #6c6c6c;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.archive-breadcrumb a:hover {
  color: #00d3d7;
}

.archive-breadcrumb-sep {
  display: flex;
  align-items: center;
  color: #6c6c6c;
}

.archive-breadcrumb-current {
  color: #343330;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 500;
}

/* ---- Search Box ---- */
.archive-search-wrap {
  padding-top: 0;
  padding-bottom: 28px;
}

.archive-search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid #e1e1e1;
  border-radius: 100px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s;
}

.archive-search-form:focus-within {
  border-color: #00d3d7;
}

.archive-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-family: Montserrat;
  font-size: 15px;
  color: #343330;
  background: transparent;
}

.archive-search-input::placeholder {
  color: #aaa;
}

.archive-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #00d3d7;
  border: none;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.2s;
}

.archive-search-btn:hover {
  background: #00b8bc;
}

.archive-search-result-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-family: Montserrat;
  font-size: 14px;
  color: #6c6c6c;
}

.archive-search-result-label strong {
  color: #343330;
}

.archive-search-clear {
  display: flex;
  align-items: center;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.archive-search-clear:hover {
  color: #ff1f1f;
}

/* ---- Hero ---- */
.archive-hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
}

.archive-hero-img {
  width: 280px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.archive-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-hero-content {
  flex: 1;
}

.archive-hero-shop {
  padding-bottom: 32px;
}

.archive-hero-title {
  color: #000;
  font-family: Montserrat;
  font-size: 32px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 12px;
}

.archive-hero-desc {
  color: #6c6c6c;
  font-family: Montserrat;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---- Sub Categories ---- */
.archive-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 40px;
}

.archive-subcat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  width: calc(16.666% - 14px);
  min-width: 100px;
}

.archive-subcat-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  transition: box-shadow 0.3s;
}

.archive-subcat-item:hover .archive-subcat-img {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.archive-subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.archive-subcat-item:hover .archive-subcat-img img {
  transform: scale(1.05);
}

.archive-subcat-name {
  color: #343330;
  font-family: Montserrat;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  line-height: normal;
}

/* ---- Toolbar ---- */
.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-toolbar-count {
  color: #6c6c6c;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
}

.archive-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.archive-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-sort-label {
  color: #343330;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.archive-sort-select {
  border: 1px solid #e1e1e1;
  border-radius: 100px;
  padding: 8px 16px;
  font-family: Montserrat;
  font-size: 14px;
  color: #343330;
  background: #fff;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23343330' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.archive-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid #e1e1e1;
  border-radius: 100px;
  padding: 8px 16px;
  background: #fff;
  cursor: pointer;
  font-family: Montserrat;
  font-size: 14px;
  color: #343330;
}

/* ---- Layout ---- */
.archive-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ---- Sidebar ---- */
.archive-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.archive-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.archive-sidebar-close {
  display: none;
}

.archive-sidebar-title {
  color: #000;
  font-family: Montserrat;
  font-size: 18px;
  font-weight: 700;
}

.archive-filter-group {
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 20px;
}

.archive-filter-group-title {
  color: #343330;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category list */
.archive-filter-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-filter-cat-item a {
  color: #6c6c6c;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}

.archive-filter-cat-item a:hover,
.archive-filter-cat-item.active a {
  color: #00d3d7;
}

.archive-filter-cat-count {
  font-size: 12px;
  color: #aaa;
}

/* Price filter */
.archive-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.archive-price-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.archive-price-input-wrap label {
  font-family: Montserrat;
  font-size: 12px;
  color: #6c6c6c;
}

.archive-price-input {
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Montserrat;
  font-size: 13px;
  color: #343330;
  width: 100%;
  outline: none;
}

.archive-price-input:focus {
  border-color: #00d3d7;
}

.archive-price-sep {
  color: #aaa;
  margin-top: 16px;
  flex-shrink: 0;
}

.archive-price-submit {
  display: flex;
  width: 100%;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  border: 1px solid #00d3d7;
  background: transparent;
  color: #00d3d7;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.archive-price-submit:hover {
  background: #00d3d7;
  color: #fff;
}

/* Color swatches (filter) */
.archive-filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-filter-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: block;
}

.archive-filter-color-swatch:hover,
.archive-filter-color-swatch.active {
  border-color: #343330;
  transform: scale(1.15);
}

/* Attribute list */
.archive-filter-attr-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-filter-attr-item a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #e1e1e1;
  border-radius: 100px;
  font-family: Montserrat;
  font-size: 13px;
  color: #6c6c6c;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.archive-filter-attr-item a:hover,
.archive-filter-attr-item.active a {
  border-color: #00d3d7;
  color: #00d3d7;
}

/* Reset */
.archive-filter-reset {
  display: inline-block;
  font-family: Montserrat;
  font-size: 13px;
  color: #ff1f1f;
  text-decoration: underline;
  cursor: pointer;
}

/* Overlay (mobile) */
.archive-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

/* ---- Product Grid ---- */
.archive-products {
  flex: 1;
  min-width: 0;
}

.archive-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---- Product Card ---- */
.archive-product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.archive-product-thumb {
  height: 300px;
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  aspect-ratio: 3 / 4;
}

.archive-product-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s;
}

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

/* Tag */
.archive-product-tag {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #7b7b7b;
  background: #fff;
  color: #000;
  font-family: Montserrat;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.archive-product-tag--sale {
  background: #ff1f1f;
  border-color: #ff1f1f;
  color: #fff;
}

/* Info */
.archive-product-info {
  padding: 12px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 0 0;
}

.archive-product-name {
  color: #000;
  font-family: Montserrat;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-product-name:hover {
  color: #00d3d7;
}

.archive-product-price {
  color: #ff1f1f;
  font-family: Montserrat;
  font-size: 15px;
  font-weight: 500;
}

.archive-product-price .woocommerce-Price-currencySymbol {
  color: #ff1f1f;
  font-size: 15px;
  font-weight: 500;
}

.archive-product-price del {
  color: #aaa;
  font-size: 13px;
  margin-right: 4px;
}

/* Color swatches (card) */
.archive-product-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.archive-product-color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  display: inline-block;
}

.archive-product-color-swatch:hover,
.archive-product-color-swatch.active {
  border-color: #343330;
  transform: scale(1.2);
}

/* Add to cart */
.archive-product-addtocart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid #00d3d7;
  background: transparent;
  cursor: pointer;
  font-family: Montserrat;
  font-size: 14px;
  color: #00d3d7;
  font-weight: 400;
  transition:
    background 0.2s,
    color 0.2s;
  width: 100%;
  margin-top: auto;
}

.archive-product-addtocart:hover {
  background: #00d3d7;
  color: #fff;
}

.archive-product-addtocart:hover svg path {
  stroke: #fff;
}

/* ---- No products ---- */
.archive-no-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 0;
  text-align: center;
}

.archive-no-products p {
  color: #6c6c6c;
  font-family: Montserrat;
  font-size: 16px;
}

/* ---- Pagination ---- */
.archive-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e1e1e1;
  color: #343330;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #00d3d7;
  border-color: #00d3d7;
  color: #fff;
}

.archive-pagination .page-numbers.prev,
.archive-pagination .page-numbers.next {
  background: transparent;
  border-color: #e1e1e1;
}

.archive-pagination .page-numbers.prev:hover,
.archive-pagination .page-numbers.next:hover {
  background: #f4f4f4;
  border-color: #343330;
}

.archive-pagination .page-numbers.prev svg path,
.archive-pagination .page-numbers.next svg path {
  stroke: #343330;
}

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

@media (max-width: 1024px) {
  .archive-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-subcat-item {
    width: calc(25% - 12px);
  }
}

@media (max-width: 768px) {
  /* Toolbar */
  .archive-filter-toggle {
    display: flex;
  }

  /* Sidebar — slide in from left */
  .archive-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px 20px;
    box-sizing: border-box;
  }

  .archive-sidebar.open {
    transform: translateX(0);
  }

  .archive-sidebar-overlay.open {
    display: block;
  }

  .archive-sidebar-close {
    display: flex;
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 8px;
  }

  /* Layout */
  .archive-layout {
    flex-direction: column;
  }

  /* Grid */
  .archive-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Hero */
  .archive-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .archive-hero-img {
    width: 100%;
    height: 180px;
  }

  .archive-hero-title {
    font-size: 24px;
  }

  /* Sub cats */
  .archive-subcat-item {
    width: calc(33.333% - 11px);
  }

  /* Pagination */
  .archive-pagination .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .archive-product-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .archive-product-grid {
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
  }
  .archive-product-card {
    width: 100%;
  }
  .archive-products {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .archive-product-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .archive-subcat-item {
    width: calc(50% - 8px);
  }

  .archive-product-name {
    font-size: 13px;
  }

  .archive-product-price {
    font-size: 13px;
  }

  .archive-product-addtocart {
    font-size: 12px;
    padding: 8px 10px;
  }
}
