:root {
  --forest: #18392E;
  --forest-deep: #102820;
  --forest-soft: #234C3E;
  --cream: #F6F0E4;
  --surface: #EDE5D5;
  --card-bg: #FBF8F1;
  --brick: #A94226;
  --brick-hover: #8B341D;
  --charcoal: #242521;
  --muted: #5F5D55;
  --border: #D5CCB9;
  --border-strong: #B8AE97;
  --radius: 2px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

/* Runtime states retain the template's existing restrained forest/brick palette. */
.shop-u-toast{position:fixed;right:24px;bottom:24px;z-index:1080;max-width:320px;padding:12px 16px;border:1px solid var(--forest);border-radius:var(--radius);background:#fffdf7;color:var(--forest);box-shadow:0 8px 24px rgba(38,57,43,.18)}
.shop-u-toast.is-error{border-color:var(--brick);color:var(--brick)}
.no-cover{display:flex;align-items:center;justify-content:center;min-height:120px;background:var(--surface);color:var(--muted);font-size:.875rem}
.product-card .product-cover{display:block;width:100%;height:190px;object-fit:contain;background:var(--surface)}
.hero-banner-img.no-cover{min-height:300px}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif-title {
  font-family: var(--font-serif);
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Buttons & Inputs: Crisp Square / Small Radius */
.btn-vintage-primary {
  background-color: var(--brick);
  border: 1px solid var(--brick);
  color: #FBF8F1;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn-vintage-primary:hover,
.btn-vintage-primary:focus {
  background-color: var(--brick-hover);
  border-color: var(--brick-hover);
  color: #FBF8F1;
}

.btn-vintage-forest {
  background-color: var(--forest);
  border: 1px solid var(--forest);
  color: #F6F0E4;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn-vintage-forest:hover,
.btn-vintage-forest:focus {
  background-color: var(--forest-deep);
  border-color: var(--forest-deep);
  color: #F6F0E4;
}

.btn-vintage-outline {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: var(--charcoal);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.btn-vintage-outline:hover {
  background-color: var(--surface);
  border-color: var(--forest);
  color: var(--forest);
}

.form-control-vintage,
.form-select-vintage {
  background-color: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: 0.925rem;
  padding: 0.55rem 0.85rem;
}

.form-control-vintage:focus,
.form-select-vintage:focus {
  background-color: #FFFFFF;
  border-color: var(--forest);
  box-shadow: none;
  color: var(--charcoal);
}

/* Double-Layer Header */
.site-header-top {
  background-color: var(--forest);
  color: #F6F0E4;
  border-bottom: 1px solid var(--forest-deep);
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #F6F0E4;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-wordmark:hover {
  color: #FFFFFF;
}

.header-search-form {
  display: flex;
  width: 100%;
  max-width: 560px;
}

.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  background-color: #FBF8F1;
  border: 1px solid #FBF8F1;
  color: var(--charcoal);
  padding: 0.48rem 0.9rem;
  font-size: 0.9rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

.header-search-input::placeholder {
  color: #7A766C;
}

.header-search-btn {
  background-color: var(--brick);
  border: 1px solid var(--brick);
  color: #FBF8F1;
  padding: 0.48rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 160ms ease;
}

.header-search-btn:hover {
  background-color: var(--brick-hover);
  border-color: var(--brick-hover);
}

.header-utility-link {
  color: #EAE3D2;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.35rem 0.25rem;
  transition: color 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-utility-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cart-link {
  background-color: var(--forest-deep);
  border: 1px solid rgba(246, 240, 228, 0.28);
  color: #F6F0E4;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.header-cart-link:hover {
  background-color: var(--brick);
  border-color: var(--brick);
  color: #FFFFFF;
}

.cart-count-box {
  background-color: var(--brick);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.05rem 0.42rem;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.site-header-nav {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.65rem 0;
}

.nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-strip-link {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}

.nav-strip-link:hover,
.nav-strip-link.active {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

.nav-strip-link.nav-promo {
  color: var(--brick);
  font-weight: 600;
}

.nav-strip-link.nav-promo:hover,
.nav-strip-link.nav-promo.active {
  border-bottom-color: var(--brick);
}

/* Homepage 3-Column Hero */
.hero-shell {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-cat-panel {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-cat-header {
  background-color: var(--forest);
  color: #F6F0E4;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 150ms ease, color 150ms ease;
}

.hero-cat-item:last-child {
  border-bottom: none;
}

.hero-cat-item:hover {
  background-color: var(--surface);
  color: var(--forest);
}

.hero-cat-title {
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
}

.hero-cat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}

.hero-banner-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--forest-deep);
  min-height: 360px;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-scrim {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, rgba(16, 40, 32, 0) 0%, rgba(16, 40, 32, 0.76) 45%, rgba(16, 40, 32, 0.94) 100%);
  color: #F6F0E4;
}

.hero-banner-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #E2D9C5;
  margin-bottom: 0.35rem;
}

.hero-banner-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 700;
  color: #F6F0E4;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.hero-banner-desc {
  font-size: 0.92rem;
  color: #E5DEC9;
  margin-bottom: 1.1rem;
  max-width: 34rem;
}

.hero-reco-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.hero-reco-card:hover {
  transform: translateY(-2px);
  border-color: var(--forest);
}

.hero-reco-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background-color: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}

.hero-reco-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile Quick Category Strip */
.mobile-cat-strip {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}

.mobile-cat-strip::-webkit-scrollbar {
  display: none;
}

.mobile-cat-chip {
  background-color: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--charcoal);
}

.mobile-cat-chip:hover {
  border-color: var(--forest);
  color: var(--forest);
}

/* Section Headers & Hairlines */
.section-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
}

.section-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Product Cards (Uniform Grid & Aspect Ratio) */
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--forest);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: linear-gradient(135deg, #EAE1CF 0%, #DFD4BE 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.promo-flag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background-color: var(--brick);
  color: #FBF8F1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.product-card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product-meta-line {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-title:hover {
  color: var(--forest);
}

.product-spec-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
}

.price-old {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.3rem;
  font-variant-numeric: tabular-nums;
}

/* Segmented Category Tabs */
.shelf-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.shelf-tab-btn {
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--charcoal);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.shelf-tab-btn:hover {
  border-color: var(--forest);
}

.shelf-tab-btn.active {
  background-color: var(--forest);
  border-color: var(--forest);
  color: #F6F0E4;
}

/* Filter Sidebar (products.html) */
.filter-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.filter-group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  padding-bottom: 0.45rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.filter-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.6rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 0.2rem;
}

.filter-cat-btn:hover {
  background-color: var(--surface);
}

.filter-cat-btn.active {
  background-color: var(--forest);
  color: #F6F0E4;
  font-weight: 600;
}

/* Product Detail Page */
.detail-gallery-main {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumb-btn {
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--surface);
  cursor: pointer;
  transition: border-color 150ms ease;
}

.detail-thumb-btn.active,
.detail-thumb-btn:hover {
  border-color: var(--forest);
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-option-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-strong);
  color: var(--charcoal);
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 150ms ease;
}

.spec-option-btn:hover {
  border-color: var(--forest);
}

.spec-option-btn.active {
  background-color: var(--forest);
  border-color: var(--forest);
  color: #F6F0E4;
  font-weight: 600;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--card-bg);
}

.qty-stepper button {
  background-color: var(--surface);
  border: none;
  color: var(--charcoal);
  width: 34px;
  height: 36px;
  font-weight: 700;
  cursor: pointer;
}

.qty-stepper button:hover {
  background-color: #DFD5C0;
}

.qty-stepper input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background-color: var(--card-bg);
  text-align: center;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--charcoal);
}

/* Cart & Tables */
.surface-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-item-row {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-thumb {
  width: 96px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* Auth & Forms */
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.auth-card-head {
  background-color: var(--forest);
  color: #F6F0E4;
  padding: 1.25rem 1.5rem;
}

/* Merchant Steps */
.step-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
}

.step-index {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brick);
  margin-bottom: 0.4rem;
}

.accordion-vintage .accordion-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius) !important;
  margin-bottom: 0.6rem;
}

.accordion-vintage .accordion-button {
  background-color: var(--card-bg);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: var(--radius) !important;
  box-shadow: none;
}

.accordion-vintage .accordion-button:not(.collapsed) {
  background-color: var(--surface);
  color: var(--forest);
}

/* Footer */
.site-footer {
  background-color: var(--forest);
  color: #DFD8C6;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--forest-deep);
}

.footer-title {
  font-family: var(--font-serif);
  color: #F6F0E4;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.footer-link {
  display: block;
  color: #CFC7B4;
  font-size: 0.875rem;
  margin-bottom: 0.45rem;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 240, 228, 0.16);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #B8B09D;
}

/* Toast Notification */
.vintage-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  max-width: 340px;
}

.vintage-toast {
  background-color: var(--forest);
  color: #F6F0E4;
  border: 1px solid var(--forest-deep);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: 0 6px 20px rgba(24, 57, 46, 0.24);
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  .hero-banner-card {
    min-height: 280px;
  }
  .cart-thumb {
    width: 76px;
  }
}

/* Keep conditional content hidden even when Bootstrap display utilities are present. */
[hidden] { display: none !important; }
#detail-description img { max-width: 100%; height: auto; }
/* Shared runtime controls inherit the original template palette. */
:root{--accent:var(--forest);--accent-soft:var(--surface);--bg-surface:var(--card-bg);--bg-subtle:var(--surface);--text-primary:var(--charcoal);--text-secondary:var(--charcoal);--text-muted:var(--muted);--hairline:var(--border);--radius-sm:var(--radius);--radius-md:var(--radius);--radius-lg:var(--radius);--font-display:var(--font-serif);--danger:var(--brick);--ease-out:ease;--shadow-hover:0 4px 16px rgba(16,40,32,.1)}

/* Keep product imagery and long descriptions balanced across storefront pages. */
@media (min-width: 992px) {
  .hero-shell .row.align-items-stretch { height: 440px; }
  #hero-reco-cards { grid-template-rows: repeat(2, minmax(0, 1fr)) !important; }
  #hero-reco-cards > .col { min-height: 0; }
  #hero-reco-cards .product-card { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); overflow: hidden; }
  #hero-reco-cards .product-card > a { min-width: 0; height: 100%; }
  #hero-reco-cards .product-cover { height: 100%; min-height: 0; }
  #hero-reco-cards .product-card > .p-3 { min-width: 0; padding: .75rem !important; }
  #hero-reco-cards .product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.45; }
}
.hero-banner-img { object-fit: contain; }
.detail-gallery-main { aspect-ratio: 1 / 1; max-height: 440px; }
.detail-gallery-main img { object-fit: contain; }
#detail-thumbs-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .5rem; margin: 0; padding: 0 0 .35rem; }
#detail-thumbs-row > button { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--border) !important; background: var(--surface) !important; }
#detail-thumbs-row img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-u-detail-sections { align-items: flex-start; }
.shop-u-detail-sections .surface-box { height: auto !important; }
#detail-description { overflow-wrap: anywhere; }
#detail-description img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; }
#store-products .product-card { overflow: hidden; }
#store-products .product-card-media { aspect-ratio: 4 / 3; overflow: hidden; }
#store-products .product-card-media img { object-fit: contain; }
#store-products .product-card-meta { padding: .8rem 1rem 0; color: var(--muted); font-size: .8rem; }
#store-products .product-card-title { padding: .3rem 1rem 0; margin: 0; font-family: var(--font-sans); font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
#store-products .product-card-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
#store-products .product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding: .8rem 1rem 1rem; }
#store-products .product-card-price { color: var(--brick); font-weight: 700; }
#store-products .product-card-bottom .btn-text { padding: .35rem .55rem; font-size: .8rem; white-space: nowrap; }
@media (min-width: 992px) {
  .hero-shell .row.align-items-stretch > [class*="col-"] { height: 100%; min-height: 0; }
  #hero-reco-cards .product-card { min-height: 0; }
  #hero-reco-cards .product-card > .p-3 { overflow: hidden; overflow-wrap: anywhere; }
  #hero-reco-cards .product-name { overflow-wrap: anywhere; }
}
.product-card .product-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; line-height: 1.5; }
.product-card .product-cover.no-cover { display: grid; place-items: center; color: var(--muted); font-size: .85rem; }

/* Show product descriptions across the available content area. */
.shop-u-detail-sections #detail-description img { max-width: min(100%, 960px); }
