/* Shared surface styles for the customer-facing storefront. */
:root {
  --line: #dedbd8;
  --product-photo-bg: #f1f1f1;
}

body {
  font-size: 16px;
}

.product-card .product-photo,
.catalog-card .catalog-card-photo,
.cart-line .cart-line-photo {
  box-sizing: border-box;
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  background: var(--product-photo-bg);
  border: 1px solid var(--line);
}

.product-card .product-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card .product-photo img,
.catalog-card .catalog-card-photo img,
.cart-line .cart-line-photo img,
body[data-active-department="dresses"] .item-grid .product-photo img.dress-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.photo-result img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--product-photo-bg);
}

.catalog-placeholder {
  aspect-ratio: 4 / 5;
}

:is(.product-card, .catalog-card, .photo-result, .cart-line),
:is(.product-card, .catalog-card, .photo-result, .cart-line):hover,
:is(.product-photo, .catalog-card-photo, .cart-line-photo) {
  box-shadow: none;
}

/* Keep focus, active state and action colors; align neutral dividers and outlines. */
.header,
.storefront-nav,
.shopping-guide,
.collection .section-heading,
.shoe-listing-head,
.shoe-sticky-tools,
.shoe-filter-toolbar,
.collection-brand-directory,
.questions-section,
.questions details,
.contact-section,
.footer,
.catalog-footer,
.cart-line,
.cart-steps,
.cart-send-box,
.shoe-sheet-heading,
.shoe-sheet-actions,
.product-detail-page .product-detail-actions,
.product-detail-page [data-detail-specs],
.product-detail-page [data-detail-specs] > div,
.photo-dialog-header,
.photo-result,
.catalog-search,
.bag-search,
.item-search,
.browse-filter-panel,
.shoe-filter-menu,
.shoe-size-reference,
.shoe-sizing select,
.bag-sizing select,
.cart-line .cart-quantity,
.site-mobile-search-field {
  border-color: var(--line);
}

:is(.storefront-nav, .collection-variants) a:not([aria-current="page"]),
:is(.collection-brand-buttons, .directory-grid) :is(button, a):not([aria-pressed="true"]):not([aria-current="page"]),
.shoe-filter-trigger:not([aria-expanded="true"]),
.filter-chip,
.product-card .inquiry-link:not(:hover),
.catalog-card .inquiry-link:not(:hover),
.button-outline:not(:hover),
.product-condition-badge {
  border-color: var(--line);
}

.catalog-card .inquiry-link {
  min-inline-size: 44px;
  min-block-size: 44px;
}

/* Main text and product information stay readable with the existing serif display face. */
.product-card h3,
.catalog-card h2 {
  font-family: var(--serif, Georgia, serif);
}

.product-card :is(.product-kicker, .product-meta, .product-reference, .product-material, .button, .inquiry-link),
.catalog-card :is(.catalog-card-brand, .catalog-card-bottom, .product-reference, .product-material, .inquiry-link),
.catalog-card h2,
.cart-line :is(.cart-brand, .cart-reference, .cart-item-meta, .cart-size),
.cart-line .bag-size-control label,
:is(main, .product-detail-page, .photo-dialog) :is(.source-note, .hero-description, .cta-helper, .photo-lead, .photo-first-use, .photo-status-message, .photo-result-note),
:is(.bag-hero, .item-hero, .shopping-guide, .questions, .catalog-intro, .catalog-assistance, .catalog-empty, .cart-send-box, .cart-empty) p:not(.eyebrow),
:is(.questions, .shoe-size-reference) summary,
:is(.shoe-size-reference, .bag-size-control) :is(p, label),
:is(.shoe-sizing-note, .selection-size-note, .cart-no-payment),
.product-detail-page [data-detail-specs] > div,
.product-detail-page [data-detail-condition] details p,
.product-detail-page [data-detail-price-inquiry],
.product-detail-page .product-detail-actions .cart-product-actions .button,
.photo-result :is(strong, small, span),
.footer,
.catalog-footer,
:is(.footer, .catalog-footer) a:not(.footer-brand):not(.wordmark) {
  font-size: 15px;
}

/* Existing stylesheet uses important for these small print selectors. */
:is(.footer, .catalog-footer) p,
.footer > span,
.source-note,
.contact-inner .contact-note {
  font-size: 15px !important;
}

@media (max-width: 767px) {
  .product-card :is(.button, .inquiry-link) {
    white-space: normal;
  }

  .catalog-card-bottom {
    flex-wrap: wrap;
  }
}
