/* Full supplier photos, never a square-cropped derivative or a zoomed card. */
.factory-shop .product-photo {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  padding: 14px;
}
.factory-shop .product-photo img,
.factory-shop .factory-complete-photo,
.factory-shop .factory-native-product img {
  width: 100% !important;
  height: 100% !important;
  max-height: 360px;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  background: #fff !important;
}
.factory-shop .factory-native-product .e-image-link-base {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 270px;
  padding: 14px;
  background: #fff;
}
.factory-shop .factory-rollover-image {
  transform: none !important;
  object-fit: contain !important;
}
.factory-shop .factory-interactive-card {
  padding-bottom: 0 !important;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.factory-shop .factory-interactive-card:hover {
  box-shadow: 0 10px 28px #172b3c12;
  transform: translateY(-3px);
}
.factory-shop .factory-card-actions {
  padding: 12px 16px 16px;
}
.factory-shop .factory-card-add {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font:
    600 14px/1.4 Arial,
    sans-serif;
  cursor: pointer;
  transition:
    filter 0.2s,
    transform 0.2s;
}
.factory-shop .factory-card-add:hover {
  filter: brightness(0.93);
  transform: translateY(-1px);
}
.factory-shop .factory-card-add:disabled {
  opacity: 0.55;
  cursor: default;
}
.factory-shop .factory-quick-view {
  position: static;
  width: calc(100% - 32px);
  margin: 6px 16px 0;
  min-height: 44px;
  background: #fff;
  border-radius: 8px;
}
.factory-shop .factory-product-add {
  max-width: 320px;
  margin: 20px 0;
}
.factory-shop .factory-quick-view:hover,
.factory-shop .factory-quick-view:focus-visible {
  background: var(--accent);
  color: #fff;
}
.factory-shop .factory-cart-trigger {
  width: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  font:
    600 13px Arial,
    sans-serif;
  padding: 6px 8px;
  color: var(--ink);
  min-height: 44px;
  cursor: pointer;
}
.factory-cart-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.factory-cart-trigger > span:first-child {
  white-space: nowrap;
  flex-shrink: 0;
}
.factory-facet-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  margin: 12px 0 22px;
  padding: 16px;
}
.factory-facet-panel summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 28px;
}
.factory-facet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.factory-facet-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.factory-facet-grid select {
  min-height: 46px;
  font:
    16px Arial,
    sans-serif;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 100%;
  width: 100%;
  color: var(--ink);
  background: white;
}
.factory-cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(520px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0;
  padding: 24px;
  border: 0;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
.factory-cart-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: factory-cart-enter 0.22s ease-out;
}
.factory-cart-dialog::backdrop,
.factory-choice-dialog::backdrop {
  background: #12233066;
  backdrop-filter: blur(3px);
}
.factory-cart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.factory-cart-heading h2 {
  font-size: 27px;
  margin: 0;
}
.factory-cart-close {
  padding: 0 !important;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 24px;
  cursor: pointer;
}
.factory-cart-notice {
  color: #596873;
  font:
    14px/1.6 Arial,
    sans-serif;
  padding: 12px;
  border-radius: 7px;
  background: #f4f6f8;
}
.factory-cart-content {
  flex: 1;
}
.factory-cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.factory-cart-item > img {
  width: 92px;
  height: 120px;
  object-fit: contain;
  background: white;
}
.factory-cart-item-info a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
}
.factory-cart-item-info p {
  font-size: 12px;
  margin: 8px 0;
}
.factory-cart-item-info label {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.factory-cart-item-info input {
  width: 65px;
  height: 44px;
  padding: 6px;
  font-size: 16px;
  border: 1px solid var(--line);
}
.factory-cart-remove {
  display: block;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  font-size: 13px;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.factory-cart-footer {
  padding-top: 16px;
}
.factory-cart-summary {
  font-size: 14px;
}
.factory-cart-continue {
  width: 100%;
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}
.factory-cart-open {
  overflow: hidden;
}
.factory-cart-feedback {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: min(480px, calc(100% - 32px));
  padding: 16px;
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 28px #0002;
  border-radius: 10px;
  z-index: 1000;
  display: none;
  font:
    14px/1.5 Arial,
    sans-serif;
}
.factory-cart-feedback.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.factory-cart-feedback > span {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.factory-cart-feedback button {
  flex-shrink: 0;
  background: white;
  color: var(--ink);
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.factory-choice-dialog {
  width: min(480px, calc(100% - 32px));
  border: 0;
  border-radius: 14px;
  padding: 24px;
  color: var(--ink);
  background: white;
}
.factory-choice-dialog h2 {
  font-size: 22px;
}
.factory-choice-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.factory-choice-dialog select {
  min-height: 44px;
  font-size: 16px;
}
.factory-choice-dialog > button {
  margin-top: 12px;
  min-height: 44px;
}
.factory-shop-luma .factory-card-add {
  border-radius: 3px;
}
.factory-shop-clar .factory-facet-panel {
  border-top: 3px solid var(--accent);
}
.factory-shop-aura .factory-card-add {
  background: var(--ink);
  border-color: var(--ink);
}
.factory-shop-nera .factory-card-add,
.factory-shop-puf .factory-card-add {
  border-radius: 24px;
}
@keyframes factory-cart-enter {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 600px) {
  .factory-shop .product-photo {
    padding: 8px;
  }
  .factory-shop .factory-card-actions {
    padding: 10px;
  }
  .factory-shop .factory-card-add {
    font-size: 12px;
    padding: 10px 6px;
  }
  .factory-shop .factory-quick-view {
    font-size: 11px;
    margin: 5px 10px 0;
    width: calc(100% - 20px);
  }
  .factory-facet-grid {
    grid-template-columns: 1fr;
  }
  .factory-cart-dialog {
    padding: 18px;
  }
  .factory-cart-feedback {
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .factory-cart-feedback.is-visible {
    flex-direction: row;
    align-items: center;
  }
  .factory-shop .factory-shop-tools {
    gap: 2px;
  }
  .factory-shop .factory-brand-logo {
    max-width: 130px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .factory-cart-dialog[open],
  .factory-shop .factory-interactive-card,
  .factory-shop .factory-card-add {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
@media (max-width: 360px) {
  .factory-shop .menu-toggle.main-header-menu-toggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
  }
  .factory-shop .factory-brand-logo {
    width: 85px !important;
    max-width: 85px !important;
    height: 44px !important;
  }
}
