.products-wrapper{
  position: relative;
  padding: 26px;
  margin-top: 20px;

  background: rgba(255, 255, 255, 0.482);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 28px;

  box-shadow:
    0 30px 70px rgba(0,0,0,0.12),
    inset 0 0 0 5px rgba(255,255,255,0.6);
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.4);

  overflow: hidden;
  transition: all .3s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      130deg,
      rgba(255,255,255,0.6) 0%,
      rgba(255,255,255,0.15) 40%,
      transparent 70%
    );
  pointer-events: none;
  opacity: .35;
}


.product-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 35px 60px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}


.product-image {
  padding: 12px;              /* отступы внутри карточки */
  background: #fff;           /* можно transparent, если не надо */
  border-radius: 14px;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 220px;              /* фиксированная высота */
  object-fit: contain;        /* НЕ растягивает фото */
  display: block;
  border-radius: 12px;
}

span.product-status.out-of-stock{
  position: absolute;
  top: auto;     
  left: auto; 
  right: 12px;
  bottom: 12px;
  z-index: 10;
}

/* Уценка (зелёный бейдж) */
span.product-badge.discount {
  position: absolute;
  top: 12px;
  right: 12px;
  right: auto;
  bottom: auto;

}


/* DIMENSIONS: "впалый" контейнер */
.dim-container{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px;
  width: 100%;
  background: var(--color-primary);            /* под твою бежевую палитру */
  border-radius: 8px;
  /* ВПАЛЫЙ эффект (inset) */
  box-shadow:
    inset 6px 6px 12px rgba(0,0,0,0.12),
    inset -6px -6px 12px rgba(149, 145, 145, 0.75);
}

/* Один параметр: Ш59, В84... */
.dim-group{
  display: inline-flex;
  align-items: baseline;

  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  color: white;
}

/* Буква */
.dim-label{
  font-weight: 700;
    color: white;
}

.dim-label::after {
  content: '×';
}

/* Значение */
.dim-value {
  font-weight: 700;
  color: white;
  margin-right: 16px;
}

.dim-sep{ display: none; }




.product-status {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #2e7d32;
  color: #fff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-body {
  padding: 16px;
  text-align: center;
}

.product-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.old-price {
  text-decoration: line-through;
  font-size: 38px;
  color: #414141;
}

.new-price {
  font-size: 38px;
  font-weight: 700;
  color: #b60000;
}

.product-price-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.product-price-col{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  min-width: 90px;
}


/* PRODUCT BADGES (discount, new, etc.) */
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  z-index: 2;
}

.product-badge.discount {
  background: #0f7a3a;
  color: #fff;
}


.product-status.in-stock {
  background: #e6f7ec;
  color: #0f7a3a;
}

.product-status.out-of-stock {
  background: #fdecec;
  color: #b60000;
}


.product-dimensions {
  display: flex;
  justify-content: center;
  align-items: baseline;
  align-self: center;
  gap: 14px;
}
.product-heading {
  margin-bottom: 16px;
}

.product-brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.product-model {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #6b7280;
}


/* ===============================
   PAGINATION
=============================== */

.pagination-wrapper{
  display: flex;
  justify-content: center;
  margin: 36px 0 10px;
}

.pagination-card{
  width: 100%;
  max-width: 780px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  padding: 14px 16px;

  box-shadow:
    0 18px 40px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

.pagination-title{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 10px;
}

/* WP paginate_links(type=list) */
.pagination ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.pagination li{
  margin: 0;
}

.pagination a,
.pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 40px;
  padding: 0 14px;

  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;

  background: #fff;
  color: #111;

  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: all .2s ease;
}

/* hover */
.pagination a:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

/* active */
.pagination .current{
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

/* arrows */
.pagination .prev,
.pagination .next{
  font-size: 18px;
}


