.shop-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.shop-header {
  padding: 40px 0 0;
}

.shop-breadcrumb {
  font-size: 12px;
  color: var(--taupe);
  margin-bottom: 12px;
}

.shop-breadcrumb a {
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.shop-breadcrumb a:hover {
  color: var(--accent);
}

.shop-header h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.shop-header p {
  font-size: 15px;
  color: var(--warm-gray);
  max-width: 520px;
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--sand);
  flex-wrap: wrap;
}

.cat-pill {
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--warm-gray);
  background: transparent;
  border: 1.5px solid var(--sand);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.cat-pill:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.cat-pill.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.shop-toolbar .woocommerce-result-count {
  font-size: 13px;
  color: var(--taupe);
  margin: 0;
}

.result-count {
  font-size: 13px;
  color: var(--taupe);
}

.result-count strong {
  color: var(--warm-gray);
  font-weight: 500;
}

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

.shop-toolbar .woocommerce-ordering select,
.sort-select {
  padding: 7px 32px 7px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--charcoal);
  border: 1px solid var(--sand);
  background: var(--warm-white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236B635A' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  outline: none;
  border-radius: 0;
}

.shop-toolbar .woocommerce-ordering {
  margin: 0;
}

.product-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 8px 0 60px;
  list-style: none;
}

ul.products::before,
ul.products::after {
  display: none;
}

.product-card {
  text-decoration: none;
  display: block;
  position: relative;
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow transition: box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.04);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
}

.product-card-img .product-photo,
.product-card-img .lifestyle-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-card-img .lifestyle-photo {
  opacity: 0;
}

.product-card:hover .product-card-img .product-photo {
  opacity: 0;
}

.product-card:hover .product-card-img .lifestyle-photo {
  opacity: 1;
}

.product-card-img .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  border-radius: 3px;
}

.badge-popular {
  background: var(--accent);
  color: white;
}

.badge-new {
  background: var(--charcoal);
  color: white;
}

.product-card-content {
  padding: 18px 20px 22px;
}

.product-card-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.product-card:hover .product-card-name {
  color: var(--accent);
}

.product-card-price {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--warm-gray);
}

.product-card-price strong {
  font-weight: 500;
  color: var(--charcoal);
}

.product-card-price .woocommerce-Price-amount {
  font-weight: 500;
  color: var(--charcoal);
}

.product-card-divider {
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin: 12px 0;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-divider {
  width: 50px;
}

.product-card-cta {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card-cta svg {
  transform: translateX(3px);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 0 72px;
}

.pagination .woocommerce-pagination {
  width: 100%;
}

.woocommerce-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
}

.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  border: none;
}

.woocommerce-pagination ul.page-numbers li a,
.woocommerce-pagination ul.page-numbers li span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--warm-gray);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.woocommerce-pagination ul.page-numbers li a:hover {
  border-color: var(--sand);
  color: var(--charcoal);
}

.woocommerce-pagination ul.page-numbers li span.current {
  background: var(--charcoal);
  color: var(--warm-white);
  border-color: var(--charcoal);
}

.woocommerce-pagination ul.page-numbers li .dots {
  cursor: default;
  color: var(--taupe);
}

@media (max-width: 1024px) {
  .product-grid,
  ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }

  .shop-page {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .product-grid,
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .shop-page {
    padding: 0 24px;
  }

  .shop-header h1 {
    font-size: 32px;
  }

  .category-bar {
    gap: 6px;
    padding: 24px 0 20px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 6px 14px;
    font-size: 11px;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .product-card-content {
    padding: 14px 16px 18px;
  }

  .product-card-name {
    font-size: 16px;
  }

  .pagination {
    padding: 0 0 48px;
  }
}

@media (max-width: 480px) {
  .product-grid,
  ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .shop-page {
    padding: 0 16px;
  }

  .shop-header h1 {
    font-size: 28px;
  }

  .product-card-content {
    padding: 12px 14px 16px;
  }

  .product-card-name {
    font-size: 15px;
  }

  .product-card-price {
    font-size: 12px;
  }
}
