/* UcUniverses homepage products */

/* ==========================================================================
   Shared base: horizontal-scroll product rows (selection / newarrivals /
   bestsellers home blocks + the catalog fallback before JS grid kicks in)
   ========================================================================== */

.uc-home-products-grid,
.uc-home-products-grid .uc-featuredproducts,
.uc-home-products-grid .module-products {
  min-width: 0;
}

.uc-home-products-grid .module-products.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.uc-home-products-grid .products {
  display: grid;
  grid-template-columns: none;
  grid-auto-columns: minmax(230px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
}

.uc-home-products-grid .products::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1400px) {
  .uc-home-products-grid .products { grid-auto-columns: calc((100% - 56px) / 5); }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .uc-home-products-grid .products { grid-auto-columns: calc((100% - 42px) / 4); }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .uc-home-products-grid .products { grid-auto-columns: calc((100% - 28px) / 3); }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .uc-home-products-grid .products { grid-auto-columns: calc((100% - 14px) / 2); }
}

@media (max-width: 575.98px) {
  .uc-home-products-grid .products { grid-auto-columns: 82%; }
}

.uc-home-products-grid .product-miniature {
  min-width: 0;
  border: 1px solid var(--uc-line);
  background: #fff;
  scroll-snap-align: start;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}

.uc-home-products-grid .product-miniature__inner {
  position: relative;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: box-shadow .2s ease, transform .2s ease;
}

.uc-home-products-grid .product-miniature:hover,
.uc-home-products-grid .product-miniature:focus-within {
  z-index: 2;
  box-shadow: 0 18px 38px rgba(19, 20, 18, .12);
  transform: translateY(-4px);
}

.uc-home-products-grid .product-miniature:hover .product-miniature__inner,
.uc-home-products-grid .product-miniature:focus-within .product-miniature__inner {
  transform: none;
  box-shadow: none;
}

.uc-home-products-grid .product-miniature__top {
  background: #fff;
}

.uc-home-products-grid .product-miniature__bottom {
  padding: 14px 52px 18px 15px;
}

.uc-home-products-grid .product-miniature__category {
  display: block;
  order: 0;
  margin: 0 0 3px;
  overflow: hidden;
  color: #e13f45;
  font-family: 'Manrope', Arial, sans-serif;
  font-size:10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.uc-home-products-grid .product-miniature__title {
  font-family: 'Barlow', Arial, sans-serif;
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  color: var(--uc-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.uc-home-products-grid .product-miniature__price {
  color: var(--uc-ink);
  font-size: 16px;
  font-weight: 800;
}

.uc-home-products-grid .product-miniature__add {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  background: var(--uc-ink);
}

.uc-home-products-grid .product-miniature__add:hover {
  background: var(--uc-red);
}

.uc-home-products-grid .product-miniature__add:focus,
.uc-home-products-grid .product-miniature__add:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 53, 73, .3);
}

.uc-home-products-grid .product-miniature__actions {
  position: absolute;
  right: 12px;
  bottom: 14px;
  margin: 0;
}

.uc-home-products-grid .product-miniature__form {
  display: block;
}

.uc-home-products-grid .quantity-button,
.uc-home-products-grid .product-miniature__add-text {
  display: none;
}

.uc-home-products-grid .product-miniature__add .material-icons {
  margin: 0;
  font-size: 20px;
}

.uc-home-products-grid .product-flags {
  display: none;
}

/* ==========================================================================
   Catalog block (tabbed grid, home hero section with category filters)
   ========================================================================== */

.uc-home-catalog .uc-home-section__intro {
  margin-bottom: 24px;
}

.uc-home-catalog .uc-home-section__intro h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 3.5vw, 50px);
  font-weight: 800;
  font-stretch: normal;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.uc-home-catalog__more {
  margin-top: 30px;
  text-align: center;
}

.uc-home-catalog__more-button {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 14px 20px;
  border: 1px solid #1c3549;
  border-radius: 0;
  background: #fff;
  color: #1c3549;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.uc-home-catalog__more-button span {
  display: inline-block;
  width: 15px;
  height: 15px;
  overflow: hidden;
  color: inherit;
  font-size: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.uc-home-catalog__more-button:hover span,
.uc-home-catalog__more-button:focus-visible span {
  transform: rotate(90deg) translateX(4px);
}

.uc-home-catalog__more-button:hover,
.uc-home-catalog__more-button:focus-visible {
  background: #1c3549;
  color: #fff;
}

.uc-home-catalog__more-button[hidden] {
  display: none;
}

.uc-home-catalog__more-button:disabled {
  opacity: .5;
  cursor: wait;
}

.uc-home-catalog__status {
  min-height: 1px;
  margin: 0;
  color: #6b7780;
  font-size: 13px;
  text-align: center;
}

.uc-home-catalog__empty {
  grid-column: 1 / -1;
  padding: 70px 20px;
  text-align: center;
}

.uc-home-catalog #uc-products-panel[aria-busy="true"] {
  opacity: .55;
}

/* Category tabs */

.uc-home-categories {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  margin: 36px 0 24px;
  border-bottom: 3px solid #1c3549;
}

.uc-home-categories button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  /* Keep every icon on the same baseline when a label wraps. */
  justify-content: flex-start;
  gap: 7px;
  padding: 8px 6px 13px;
  border: 0;
  background: transparent;
  color: #1c3549;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

.uc-home-categories button span:last-child {
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: 0;
  text-transform: none;
}

.uc-home-categories button .material-icons {
  font-family: 'Material Icons';
  font-size: 25px;
  font-weight: normal;
  line-height: 1;
}

.uc-home-categories button:hover,
.uc-home-categories button:focus-visible,
.uc-home-categories button.is-active {
  color: var(--uc-red);
}

.uc-home-categories button.is-active {
  border-bottom: 0;
  box-shadow: none;
}

.uc-home-categories button.is-active::after {
  position: absolute;
  z-index: 1;
  bottom: -8px;
  left: 50%;
  width: 13px;
  height: 13px;
  background: var(--uc-red);
  content: '';
  transform: translateX(-50%) rotate(45deg);
}

/* Product cards */

.uc-home-catalog .uc-home-products-grid .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: auto;
  overflow: visible;
  gap: 16px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature {
  min-width: 0;
  min-height: 442px;
  border: 1px solid #e0e4e8;
  box-shadow: 0 3px 12px rgba(28, 53, 73, .03);
}

.uc-home-catalog .uc-home-products-grid .product-miniature__inner {
  display: flex;
  flex-direction: column;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__top {
  display: flex;
  min-height: 272px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e9edf0;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__image-container {
  width: 100%;
  margin: 0;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__image-link {
  display: flex;
  height: 260px;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__image {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
}

.uc-home-catalog .uc-home-products-grid .product-flags {
  display: none;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__bottom {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__infos {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Reorder infos content: title, variants, reviews, then price. */

.uc-home-catalog .uc-home-products-grid .product-miniature__title {
  order: 1;
  display: -webkit-box;
  min-height: 61px;
  margin: 2px 0 8px;
  overflow: hidden;
  color: #1c3549;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.15;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__variants {
  order: 2;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__prices {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 4px;
  margin-top: auto;
  padding-right: 52px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__prices .grc-category-stars {
  margin-bottom: 10px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__price {
  color: #1c3549;
  font-size: 19px;
  font-weight: 800;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__actions {
  right: 16px;
  bottom: 18px;
}

.uc-home-catalog .uc-home-products-grid .product-miniature__add {
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 0;
  background: var(--uc-ink);
}

.uc-home-catalog .uc-home-products-grid .product-miniature__add:focus,
.uc-home-catalog .uc-home-products-grid .product-miniature__add:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 53, 73, .3);
}

/* Responsive */

@media (max-width: 991px) {
  .uc-home-categories {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .uc-home-categories button {
    flex: 0 0 135px;
  }

  .uc-home-catalog .uc-home-products-grid .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature {
    min-height: 410px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__top {
    min-height: 235px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__image-link {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .uc-home-catalog .uc-home-products-grid .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .uc-home-catalog .uc-home-products-grid .product-miniature {
    min-height: 330px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__top {
    min-height: 175px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__image-link {
    height: 165px;
    padding: 8px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__image {
    max-height: 150px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__bottom {
    padding: 12px 10px 14px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__title {
    min-height: 61px;
    font-size: 15px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__prices {
    padding-right: 40px;
  }

  .uc-home-catalog .uc-home-products-grid .product-miniature__actions {
    right: 8px;
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .uc-home-catalog .uc-home-products-grid .products {
    gap: 8px;
  }
}

/* Center the icon-only quick-view action. */
.uc-home-catalog .product-miniature__quickview-button,
.uc-home-products-grid .product-miniature__quickview-button {
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1.2;
}

.uc-home-catalog .product-miniature__quickview-button .material-icons,
.uc-home-products-grid .product-miniature__quickview-button .material-icons {
  display: inline-flex;
  align-items: center;
  height: 1.2em;
  line-height: 1;
  vertical-align: middle;
}
.uc-home-catalog #uc-products-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
