/* Denuino homepage products. Product selection, tab state and paging remain
   owned by the managed product groups and their existing scripts. */
body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-groups {
  padding: 0 !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-tabs {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  border-bottom: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0;
  padding: 10px 15px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f3f7fc !important;
  color: #59687c !important;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-tabs button.is-active {
  background: #0869ee !important;
  color: #fff !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-grid {
  margin: 0;
  padding: 0 0 4px;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track {
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-card {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100%;
  padding: 9px !important;
  aspect-ratio: auto !important;
  border: 1px solid #dfe5ec !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #14243c;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

/* Global card display:flex rules must not override the pager's hidden batch. */
body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track.is-paged .theme-feature-product-card:not(.is-batch-visible) {
  display: none !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-card:hover {
  transform: none !important;
  border-color: #b9cfe5 !important;
  box-shadow: 0 4px 14px rgb(20 36 60 / 7%) !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-main-link {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  block-size: auto;
  color: inherit !important;
  text-decoration: none;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-main-link .designer-product-media {
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 100%;
  height: 132px !important;
  aspect-ratio: auto;
  margin: 0 0 12px;
  padding: 7px;
  border: 0;
  border-radius: 4px;
  background: #fff;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 118px;
  padding: 0;
  object-fit: contain;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-copy {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 0;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-copy > small {
  overflow: hidden;
  color: #788596 !important;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .025em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-copy > strong {
  display: -webkit-box;
  min-height: 36px;
  overflow: hidden;
  color: #14243c !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .product-labels {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 4px;
  min-width: 0;
  margin: 0 0 5px;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .product-labels .product-label {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-copy > span {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 9px;
  color: #0968c0 !important;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-cart-form {
  margin: 12px 0 0;
  padding: 0;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-cart-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100% !important;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 6px !important;
  border: 1px solid #14243c !important;
  border-radius: 5px !important;
  background: #14243c !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: none !important;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-variant-link {
  flex: 0 0 auto;
  margin-top: 12px;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-cart-button:hover {
  background: #0968c0 !important;
  border-color: #0968c0 !important;
  transform: none;
}

body.store-page-shop-index[data-theme-layout]:not(.admin-root) :is(.designer-product-main-link, .designer-product-cart-button, .store-product-group-tabs button):focus-visible {
  outline: 3px solid #0968c0;
  outline-offset: 2px;
}

@media (min-width: 1700px) {
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1300px) {
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-card {
    padding: 10px !important;
  }
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-main-link .designer-product-media {
    height: 112px !important;
  }
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .theme-feature-product-card .designer-product-media img {
    max-height: 98px;
  }
}

@media (max-width: 350px) {
  body.store-page-shop-index[data-theme-layout]:not(.admin-root) .store-product-group-panel .theme-feature-product-grid__track {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
