/* Shared mobile product list (category, product related, homepage tabs) */

.cat-table-wrap--mobile {
  display: none;
}

.cat-table--mobile {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border: none;
}

.cat-table--mobile tbody td {
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.cat-table--mobile tbody tr:last-child td {
  border-bottom: none;
}

.cat-table--mobile tbody tr:nth-child(even):not(.cat-row--outstock) td {
  background: #f9fbfd;
}

.cat-table--mobile tbody tr:nth-child(odd):not(.cat-row--outstock) td {
  background: #fff;
}

.cat-table--mobile tbody tr.cat-row--outstock td {
  background: #ebebeb !important;
  color: var(--text-muted);
}

.cat-mpn__img {
  width: 48px;
  height: 48px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
}

.cat-mpn__img a.cat-mpn__thumb {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  cursor: pointer;
}

.cat-mpn__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-mob__head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cat-mob__info {
  flex: 1;
  min-width: 0;
}

.cat-mob__title {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}

.cat-mob__title:hover {
  color: var(--blue);
  text-decoration: none;
}

.cat-mob__specs {
  margin: 0;
  padding: 6px 0 0;
  border-top: 1px solid #eef1f4;
  font-size: 11px;
  line-height: 1.55;
  color: var(--text);
}

.cat-mob__spec {
  display: inline;
  margin: 0;
  padding: 0;
}

.cat-mob__spec:not(:last-child)::after {
  content: " · ";
  color: #b8c0cc;
  font-weight: 700;
  white-space: pre;
}

.cat-mob__spec dt {
  display: inline;
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
}

.cat-mob__spec dt::after {
  content: ": ";
}

.cat-mob__spec dd {
  display: inline;
  margin: 0;
  color: var(--text);
}

.cat-mob__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.cat-mob__pricing {
  flex: 1;
  min-width: 0;
}

.cat-mob__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.cat-mob__was {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.cat-mob__was span {
  margin-right: 4px;
}

.cat-mob__form {
  flex-shrink: 0;
  margin: 0;
}

.btn-add,
button.btn-add,
button.btn-add[type="submit"],
button.btn-add.btn-add--mob,
form.addtocart.cat-mob__form button[type="submit"],
.rk-product .pd-related button.btn-add {
  position: relative;
  display: inline-block;
  padding: 5px 14px;
  min-width: 92px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--blue) !important;
  background-color: var(--blue) !important;
  color: var(--white) !important;
  border: none !important;
  border-width: 0 !important;
  outline: none;
  border-radius: var(--radius) !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
  text-shadow: none;
  box-shadow: none !important;
}

.btn-add:hover,
button.btn-add:hover,
button.btn-add[type="submit"]:hover,
button.btn-add.btn-add--mob:hover,
form.addtocart.cat-mob__form button[type="submit"]:hover,
.rk-product .pd-related button.btn-add:hover {
  background: var(--blue-dark) !important;
  background-color: var(--blue-dark) !important;
  color: var(--white) !important;
}

.btn-add:hover::after,
button.btn-add:hover::after,
button.btn-add[type="submit"]:hover::after,
form.addtocart.cat-mob__form button[type="submit"]:hover::after {
  content: none !important;
  display: none !important;
}

.btn-add--mob {
  min-width: 88px;
  padding: 8px 16px;
  font-size: 13px;
}

.btn-add.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn-add.is-loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: rk-btn-spin 0.7s linear infinite;
}

@keyframes rk-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.rk-cat-img-preview {
  position: fixed;
  z-index: 10050;
  width: 400px;
  height: 400px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.rk-cat-img-preview.is-visible {
  opacity: 1;
  visibility: visible;
}

.rk-cat-img-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-mob__unavail {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.rk-cat-img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rk-cat-img-lightbox.is-open {
  display: flex;
}

.rk-cat-img-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius);
}

.rk-cat-img-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.rk-cat-lightbox-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .rk-products-table-wrap--desktop {
    display: none !important;
  }

  .cat-table-wrap--mobile {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .pd-related .cat-table-wrap--mobile,
  .product-tabs-section .cat-table-wrap--mobile {
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .rk-cat-img-preview {
    display: none !important;
  }
}
