/* =========================================================
   SHOP MAIN — 2 rows, sidebar = 15%, products = rest
   ========================================================= */

.shop-main {
  background: #fff;
  padding: 24px 0 60px;
}

.shop-main .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- ROW 1: breadcrumb ---------- */
.shop-breadcrumb-row {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.shop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #777;
}

.shop-breadcrumb a {
  color: #08c;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  text-decoration: underline;
}

.shop-breadcrumb__sep {
  color: #bbb;
}

.shop-breadcrumb__current {
  color: #222529;
  font-weight: 600;
}

/* ---------- ROW 2: 2 columns (15% / rest) ---------- */
.shop-body-row {
  display: grid;
  grid-template-columns: 15% minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---------- Sidebar (LEFT, 15%) ---------- */
.shop-sidebar {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.shop-sidebar__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #222529;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.shop-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-sidebar__list li {
  border-bottom: 1px solid #f2f2f2;
}

.shop-sidebar__list li:last-child {
  border-bottom: 0;
}

.shop-sidebar__list a {
  display: block;
  padding: 8px 4px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
  word-break: break-word;
}

.shop-sidebar__list a:hover {
  color: #08c;
  padding-left: 8px;
}

/* ---------- Products column ---------- */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 24px;
}

.shop-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #222529;
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #777;
}

.shop-sort select {
  padding: 8px 30px 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23777'/></svg>") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

/* ---------- Product grid ---------- */
.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: #f6f6f6;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #da5555;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.product-card__body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-card__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #999;
}

.product-card__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.product-card__title a {
  color: #222529;
  text-decoration: none;
}

.product-card__title a:hover {
  color: #08c;
}

.product-card__price {
  font-size: 15px;
  font-weight: 600;
  color: #222529;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-card__price del {
  color: #aaa;
  font-weight: 400;
  font-size: 13px;
}

.product-card__price ins {
  text-decoration: none;
}

.product-card__btn {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 14px;
  background: #08c;
  color: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.product-card__btn:hover {
  background: #006fa6;
}

/* ---------- Pagination ---------- */
.shop-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.shop-pagination a {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.shop-pagination a:hover,
.shop-pagination a.is-current {
  background: #08c;
  border-color: #08c;
  color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet — sidebar a bit wider so the 6 links don't wrap */
@media (max-width: 991px) {
  .shop-body-row {
    grid-template-columns: 22% minmax(0, 1fr);
    gap: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .shop-title {
    font-size: 20px;
  }
}

/* Mobile — sidebar stacks ABOVE products, full width */
@media (max-width: 767px) {
  .shop-main {
    padding: 16px 0 40px;
  }
  .shop-body-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-sidebar {
    order: 1; /* sidebar first */
  }
  .shop-sidebar__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .shop-sidebar__list li {
    border: 0;
    flex: 1 1 calc(50% - 8px);
  }
  .shop-sidebar__list a {
    padding: 8px 10px;
    background: #f4f4f4;
    border-radius: 20px;
    text-align: center;
  }
  .shop-sidebar__list a:hover {
    padding-left: 10px;
    background: #e9f6ff;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .shop-sort {
    justify-content: space-between;
  }
  .shop-sort select {
    flex: 1;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card__body {
    padding: 10px;
  }
  .product-card__title {
    font-size: 13px;
  }
  .product-card__btn {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* Very small phones — 1 column */
@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card__image {
    aspect-ratio: 4 / 3;
  }
}