/* Product cards share one layout on the home rail and WooCommerce archives. */
.woocommerce ul.products li.rad-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 354px;
  padding: 14px 12px;
  border: 1px solid #dde0e5;
  border-radius: 17px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
  text-align: right;
}
.woocommerce ul.products li.rad-product-card:hover { border-color: #bdc2ca; box-shadow: 0 5px 20px #18212c08; }
.woocommerce ul.products li.rad-product-card > .woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  color: inherit;
  text-decoration: none;
}
.woocommerce ul.products li.rad-product-card .product-image {
  display: block;
  position: relative;
  flex: 0 0 180px;
  height: 180px;
  min-height: 180px;
  max-height: 180px;
  width: 100%;
  padding: 8px;
  margin: 0 0 12px;
  overflow: hidden;
  background: #fff;
}
.woocommerce ul.products li.rad-product-card .product-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  mix-blend-mode: normal;
}
.woocommerce ul.products li.rad-product-card .product-name {
  display: block;
  flex: 0 0 auto;
  min-height: 64px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
.woocommerce ul.products li.rad-product-card .product-name h2 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
  min-height: 0;
  font: inherit;
}
.woocommerce ul.products li.rad-product-card .price {
  display: block;
  min-height: 42px;
  margin: auto 0 0;
  padding: 10px 0 0;
  padding-inline-start: 49px;
  color: #131820;
  text-align: end;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.woocommerce ul.products li.rad-product-card .price del { font-size: 11px; color: #9298a1; display: block; line-height: 1.6; }
.woocommerce ul.products li.rad-product-card .price ins { text-decoration: none; background: transparent; }
.woocommerce ul.products li.rad-product-card .price .woocommerce-Price-currencySymbol { font-size: .85em; }
.woocommerce ul.products li.rad-product-card > .rad-card-action {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: white;
  font-size: 25px;
  line-height: 1;
}
.woocommerce ul.products li.rad-product-card > .rad-card-action:hover { background: var(--red-dark); color: white; }
.woocommerce ul.products li.rad-product-card > .rad-card-action .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.woocommerce ul.products li.rad-product-card > .rad-card-action.loading { opacity: .65; }
.woocommerce ul.products li.rad-product-card > .rad-card-action.loading:after { position: static; margin: 0; }
.woocommerce ul.products li.rad-product-card > .rad-card-action.loading > .icon { display: none; }
.woocommerce ul.products li.rad-product-card > .rad-card-action.added:after { display: none; }
.woocommerce ul.products li.rad-product-card > .added_to_cart {
  position: static;
  width: auto;
  margin: 12px 48px 0 0;
  padding: 0;
  font-size: 11px;
  text-align: end;
}
/* Keep an AJAX confirmation from moving the button over the product price. */
.woocommerce ul.products li.rad-product-card:has(> .added_to_cart) > .rad-card-action { bottom: 42px; }
.woocommerce ul.products li.rad-product-card .star-rating { margin: 0 0 10px; font-size: 10px; }
.woocommerce ul.products li.rad-product-card .rad-unavailable { color: #8a929e; font-size: 12px; margin-bottom: 8px; }
.woocommerce ul.products li.rad-product-card .screen-reader-text { margin: 0; }

/* Six cards on wide screens, natural touch scrolling on phones. */
.catalog { position: relative; padding: 23px 18px; background: #f7f7f8; border-radius: 17px; }
.catalog .section-heading { margin: 0 0 22px; }
.catalog .section-heading .overline { display: none; }
.catalog .section-heading h2 { border-inline-start: 4px solid var(--red); padding-inline-start: 12px; color: var(--red); font-size: 20px; }
.catalog .text-link { border: 0; font-size: 12px; }
.product-rail { position: relative; --rail-gap: 10px; }
.product-rail .product-rail-track[data-product-track] {
  grid-auto-columns: calc((100% - 5 * var(--rail-gap)) / 6);
  padding: 2px 0 4px;
  scroll-padding-inline: 0;
  scrollbar-width: none;
}
.product-rail-track::-webkit-scrollbar { display: none; }
.product-rail-controls { margin: 0; }
.product-rail-controls[hidden] { display: none; }
.product-rail-buttons { display: contents; }
.product-rail-button {
  position: absolute;
  z-index: 2;
  top: 45%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 37px;
  min-height: 37px;
  height: 37px;
  padding: 0;
  border: 1px solid #d9dce1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #17233108;
}
.product-rail-button:disabled { opacity: .45; }
.product-rail-button[data-product-step="-1"] { inset-inline-start: -16px; }
.product-rail-button[data-product-step="1"] { inset-inline-end: -16px; }
.product-rail-button .icon { width: 19px; height: 19px; }
.product-rail-button[data-product-step="-1"] .icon { transform: rotate(-90deg); }
.product-rail-button[data-product-step="1"] .icon { transform: rotate(90deg); }
.product-rail-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Category archive: filters on the right and a light grid workspace. */
body.woocommerce.archive { background: #f7f7f8; }
.rad-shop-page { max-width: 1480px; width: calc(100% - 56px); padding-block: 25px 48px; }
.rad-shop-page .rp-shop-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
.rad-shop-page .rad-shop-heading { margin-bottom: 18px; }
.rad-shop-page .rad-shop-heading .woocommerce-products-header h1 { font-size: 22px; margin: 0; }
.rad-shop-page .term-description { font-size: 13px; line-height: 2; color: var(--muted); }
.rad-shop-page .woocommerce-breadcrumb { color: #858b95; font-size: 12px; margin: 0 0 18px; }
.rad-shop-page .rad-shop-filters { background: transparent; border: 0; overflow: visible; }
.rad-shop-page .rad-shop-filters > summary { display: none; }
.rad-shop-page .rp-filter-content { display: flex; flex-direction: column; gap: 12px; }
.rad-filter-box { border: 1px solid #e0e3e8; border-radius: 12px; background: white; overflow: hidden; }
.rad-filter-box > summary { list-style: none; padding: 15px 16px; cursor: pointer; font-size: 13px; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.rad-filter-box > summary::-webkit-details-marker { display: none; }
.rad-filter-box > summary::after { content: '⌄'; font-size: 17px; color: #737c89; }
.rad-filter-box[open] > summary::after { transform: rotate(180deg); }
.rad-filter-box > .rad-filter-body { padding: 13px 16px 17px; border-top: 1px solid #edf0f3; }
.rad-filter-box .rp-check { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #656f7c; }
.rad-filter-box input[type="checkbox"] { accent-color: var(--red); width: 17px; height: 17px; }
.rad-filter-box input[type="search"],.rad-filter-box select,.rad-filter-box input[type="number"] { width: 100%; min-width: 0; margin: 0; padding: 9px 10px; border: 1px solid #e0e3e8; border-radius: 7px; background: #fff; font-size: 12px; }
.rad-filter-box label { font-size: 12px; }
.rad-filter-actions { display: grid; gap: 12px; text-align: center; }
.rad-filter-actions .button { width: 100%; font-size: 13px; }
.rad-filter-actions > a { font-size: 12px; color: #737c89; }
.rad-shop-page .rad-shop-toolbar { background: #fff; border: 1px solid #edf0f3; border-radius: 12px; padding: 10px 14px; gap: 8px; margin-bottom: 14px; }
.rad-shop-toolbar .woocommerce-notices-wrapper { order: -1; }
.rad-shop-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.rad-sort-tabs { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; align-items: center; min-width: 0; }
.rad-sort-tabs a { white-space: nowrap; padding: 8px 11px; border-radius: 7px; font-size: 12px; color: #737c89; text-decoration: none; }
.rad-sort-tabs a:hover { color: var(--red); background: #fff5f5; }
.rad-sort-tabs a[aria-current] { background: #fff; color: var(--red); box-shadow: 0 1px 7px #1723311f; }
.rad-shop-toolbar .woocommerce-result-count { order: 2; margin: 0; padding: 7px 9px; background: #f5f6f8; border-radius: 6px; font-size: 11px; }
.rad-shop-toolbar .woocommerce-ordering { display: none; }
.woocommerce .rad-shop-page ul.products { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 0; }
.rad-shop-page .woocommerce-pagination { margin-top: 25px; }
.rad-shop-page .woocommerce-pagination ul li { border: 0; }
.rad-shop-page .woocommerce-pagination ul li a,.rad-shop-page .woocommerce-pagination ul li span { padding: 11px 14px; border: 1px solid #e2e5e9; background: white; border-radius: 8px; color: var(--ink); }
.rad-shop-page .woocommerce-pagination ul li span.current { background: var(--red); border-color: var(--red); color: white; }
@media (min-width: 1600px) { .woocommerce .rad-shop-page ul.products { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 1250px) {
  .product-rail .product-rail-track[data-product-track] { grid-auto-columns: calc((100% - 4 * var(--rail-gap)) / 5); }
  .rad-shop-page .rp-shop-layout { grid-template-columns: 220px minmax(0,1fr); gap: 18px; }
  .woocommerce .rad-shop-page ul.products { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1000px) { .product-rail .product-rail-track[data-product-track] { grid-auto-columns: calc((100% - 3 * var(--rail-gap)) / 4); } }
@media (max-width: 850px) {
  .rad-shop-page { width: calc(100% - 32px); }
  .rad-shop-page .rp-shop-layout { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .rad-shop-page .rad-shop-filters > summary { display: block; background: white; border: 1px solid #e0e3e8; border-radius: 10px; }
  .rad-shop-page .rad-shop-filters[open] > summary { margin-bottom: 12px; }
  .rad-shop-page .rp-filter-content { gap: 10px; }
  .rad-shop-page .rad-shop-heading .woocommerce-products-header h1 { font-size: 19px; }
  .product-rail .product-rail-track[data-product-track] { grid-auto-columns: calc((100% - 2 * var(--rail-gap)) / 3); }
}
@media (max-width: 600px) {
  .catalog { margin-inline: -6px; padding: 18px 12px; }
  .catalog .section-heading { align-items: center; gap: 10px; }
  .catalog .section-heading h2 { font-size: 15px; padding-inline-start: 8px; }
  .catalog .text-link { font-size: 10px; white-space: nowrap; }
  .product-rail .product-rail-track[data-product-track] { grid-auto-columns: max(156px, calc((100% - var(--rail-gap)) / 2.1)); }
  .product-rail-button { width: 31px; height: 31px; min-height: 31px; }
  .product-rail-button[data-product-step="-1"] { inset-inline-start: -9px; }
  .product-rail-button[data-product-step="1"] { inset-inline-end: -9px; }
  .woocommerce ul.products li.rad-product-card { min-height: 320px; padding: 11px 10px; border-radius: 13px; }
  .woocommerce ul.products li.rad-product-card .product-image { flex-basis: 145px; height: 145px; min-height: 145px; max-height: 145px; padding: 7px; }
  .woocommerce ul.products li.rad-product-card .product-name { font-size: 12px; min-height: 70px; margin-bottom: 13px; }
  .woocommerce ul.products li.rad-product-card .price { font-size: 13px; min-height: 45px; padding-inline-start: 41px; }
  .woocommerce ul.products li.rad-product-card > .rad-card-action { width: 36px; height: 36px; min-height: 36px; bottom: 11px; inset-inline-start: 10px; }
  .woocommerce .rad-shop-page ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .rad-shop-toolbar .rad-sort-tabs { display: none; }
  .rad-shop-toolbar .woocommerce-ordering { display: block; width: auto; flex: 1; clear: none; }
  .rad-shop-toolbar .woocommerce-ordering select { font-size: 12px; padding: 8px; width: 100%; }
  .rad-shop-toolbar .woocommerce-result-count { max-width: 45%; font-size: 10px; }
}
@media (max-width: 380px) {
  .woocommerce ul.products li.rad-product-card .price { font-size: 12px; }
  .woocommerce ul.products li.rad-product-card .product-image { flex-basis: 130px; height: 130px; min-height: 130px; max-height: 130px; }
}
