/* Catalog and product pages share the same content edges and spacing. */
.shop-page {
  --shop-paper: #fbf7ef;
  --shop-ink: #272523;
  --shop-muted: #565653;
  --shop-teal: #145458;
  --shop-rust: #a54121;
  --shop-border: #e5dbce;
  --shop-gap: clamp(16px, 2vw, 32px);
  --shop-gutter: clamp(16px, 4vw, 64px);
  background: var(--shop-paper);
  color: var(--shop-ink);
  min-block-size: 70vh;
  padding-block: calc(var(--arty-header-offset, 82px) + 25px) clamp(46px, 7vw, 100px);
}
.shop-page .shop-width {
  max-inline-size: 1700px;
  inline-size: calc(100% - var(--shop-gutter) * 2);
  margin-inline: auto;
}
.shop-page :is(a, button, input, select, summary):focus-visible,
.product-image-lightbox :is(button):focus-visible {
  outline: 3px solid #146267;
  outline-offset: 3px;
}
.shop-page [hidden], .product-image-lightbox [hidden] { display: none; }
.nav-cart-btn .cart-count-badge[hidden] { display: none; }
.shop-page h1 { font-size: clamp(2rem, 4.25vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.shop-page h2 { font-size: clamp(1.28rem, 1.9vw, 1.85rem); line-height: 1.18; margin: 0; }
.shop-page p { overflow-wrap: anywhere; }

.catalog-intro {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px var(--shop-gap);
  padding-block: clamp(6px, 1.8vw, 28px) clamp(20px, 3.1vw, 46px);
  border-bottom: 1px solid var(--shop-border);
  margin-bottom: var(--shop-gap);
}
.catalog-intro h1 { color: var(--shop-teal); }
.catalog-intro p { margin: 10px 0 0; max-inline-size: 45rem; color: var(--shop-muted); font-size: clamp(.96rem, 1.15vw, 1.15rem); }
.catalog-intro a, .shop-page :is(.product-back, .product-detail-card a) { color: var(--shop-teal); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.shop-page .catalog-layout { grid-template-columns: clamp(176px, 18vw, 236px) minmax(0, 1fr); gap: var(--shop-gap); }
.shop-page .catalog-sidebar {
  top: calc(100px + var(--arty-announcement-height, 0px));
  max-block-size: calc(100dvh - var(--arty-announcement-height, 0px) - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  border: 1px solid var(--shop-border);
  background: #fffcf7;
  border-radius: 18px;
  box-shadow: none;
  padding: clamp(13px, 1.5vw, 21px);
}
.shop-page .catalog-sidebar-head { align-items: center; margin-bottom: 16px; }
.shop-page .catalog-sidebar h2 { font-size: 1.2rem; }
.shop-page .catalog-sidebar h3,
.shop-page .catalog-sidebar legend,
.shop-page .catalog-toolbar label { font-size: .9rem; color: var(--shop-teal); font-weight: 750; }
.shop-page .catalog-sidebar h3 { margin-bottom: 8px; }
.shop-page .catalog-filter-group { min-inline-size: 0; }
.shop-page .catalog-price-group { border: 0; border-bottom: 1px solid var(--shop-border); }
.shop-page .catalog-price-row label { min-inline-size: 0; font-size: .76rem; color: var(--shop-muted); }
.shop-page .catalog-price-row input { min-inline-size: 0; min-block-size: 42px; padding: 7px; border-radius: 9px; }
.shop-page .catalog-pill-list { display: grid; gap: 4px; }
.shop-page .catalog-pill {
  min-block-size: 41px;
  inline-size: 100%;
  background: transparent;
  color: var(--shop-teal);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 8px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
.shop-page .catalog-pill.active, .shop-page .catalog-pill:hover { background: #e8f0eb; color: #164748; border-color: #a8c4ba; }
.shop-page .catalog-pill span { flex: none; background: transparent; color: inherit; }
.shop-page .catalog-reset { color: var(--shop-rust); text-decoration: underline; text-underline-offset: .2em; min-block-size: 44px; min-inline-size: 44px; text-align: start; background: transparent; }
.shop-page .catalog-toolbar { background: transparent; border: 0; padding: 0; box-shadow: none; margin: 0; gap: 10px var(--shop-gap); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.shop-page .catalog-toolbar label { display: grid; gap: 5px; }
.shop-page .catalog-search-wrap { display: grid; gap: 5px; inline-size: 100%; max-inline-size: 34rem; }
.shop-page :is(.catalog-toolbar input, .catalog-toolbar select, .catalog-filter-toggle) {
  min-block-size: 46px;
  border: 1px solid #a6a19a;
  background: #fffdf9;
  border-radius: 9px;
  color: var(--shop-ink);
  font-size: 1rem;
}
.shop-page .catalog-toolbar select { min-inline-size: 165px; inline-size: 100%; padding: 8px 12px; }
.shop-page .catalog-result-bar { display: flex; flex-wrap: wrap; align-items: center; min-block-size: 46px; gap: 6px 13px; padding-block: 8px; color: var(--shop-muted); font-size: .9rem; }
.shop-page .active-filter-row { margin: 0; gap: 6px; }
.shop-page .active-filter-row button { background: #e8f0eb; color: var(--shop-teal); min-block-size: 32px; max-inline-size: 100%; overflow-wrap: anywhere; }
.shop-page #kitsGrid { grid-template-columns: repeat(4,minmax(0,1fr)); align-items: stretch; gap: clamp(12px, 1.55vw, 25px); }
.shop-page .catalog-empty { grid-column: 1/-1; background: #fffcf7; border: 1px dashed #b8a892; border-radius: 16px; padding: 24px; }
.shop-page .catalog-empty p { margin-block: 8px 14px; color: var(--shop-muted); }

.shop-page .catalog-kit-card {
  display: flex;
  flex-flow: column;
  min-inline-size: 0;
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  box-shadow: none;
  background: #fffdf9;
  transition: border-color .18s ease;
}
.shop-page .catalog-kit-card:hover { border-color: #a6a19a; transform: none; box-shadow: none; }
.shop-page .catalog-kit-card .kit-card-img {
  isolation: isolate;
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 4/5;
  block-size: auto;
  background: #f4ece0;
  padding: clamp(6px, .9vw, 15px);
}
.shop-page .catalog-kit-card .kit-card-img img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  max-block-size: 100%;
  object-fit: contain;
  object-position: center;
  position: absolute;
  inset: 0;
  padding: inherit;
  transform: none;
}
.shop-page :is(.kit-card-img,.product-main-media) img[hidden] { display: none; }
.catalog-image-placeholder { display: block; color: #534b41; padding: .65rem; font-size: .86rem; text-align: center; }
.shop-page :is(.kit-card-img,.product-main-media) img:not([hidden]) + .catalog-image-placeholder { visibility: hidden; }
.catalog-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.catalog-card-badge {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 700;
  background: var(--shop-teal);
  color: #fff;
}
.catalog-card-badge.is-out { background: #39332d; }
.shop-page .catalog-kit-card .kit-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: clamp(10px, 1vw, 17px); }
.shop-page .catalog-kit-card .kit-card-category { margin: 0; color: #5b625b; font-size: .78rem; letter-spacing: 0; text-transform: none; }
.shop-page .catalog-kit-card .kit-card-title { color: var(--shop-ink); font-size: clamp(.96rem,1.22vw,1.23rem); line-height: 1.24; margin: 0 0 5px; overflow-wrap: anywhere; }
.shop-page .catalog-kit-card .kit-card-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: start; gap: 2px 7px; margin: auto 0 0; padding: 0; border: 0; }
.shop-page .kit-card-price { font-family: inherit; font-size: clamp(.96rem,1.15vw,1.24rem); line-height: 1.2; font-weight: 790; color: var(--shop-rust); font-variant-numeric: tabular-nums; }
.shop-page :is(.catalog-price-from,.kit-card-footer del) { color: #514f4a; font-size: .78rem; }

#page-product #productPageContent { max-width: 1700px; max-inline-size: 1700px; min-height: 0; padding-inline: 0; }
.shop-product .product-breadcrumb { display: flex; flex-wrap: wrap; gap: 5px 11px; padding: 0; margin: 0 0 10px; font-size: .85rem; color: var(--shop-muted); }
.shop-product .product-breadcrumb a { color: var(--shop-teal); }
.shop-product .product-back { display: inline-flex; align-items: center; min-block-size: 36px; margin: 0 0 18px; padding: 0; background: transparent; box-shadow: none; border: 0; }
.shop-product :is(.product-layout-pro,.product-details-grid) { display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); max-width: none; align-items: start; gap: var(--shop-gap); margin-inline: 0; }
.shop-product .product-gallery-pro { max-inline-size: none; inline-size: 100%; margin: 0; align-items: stretch; }
.shop-product .product-main-media {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 4/5;
  max-block-size: 760px;
  padding: clamp(12px, 2vw, 29px);
  border: 1px solid var(--shop-border);
  border-radius: 18px;
  box-shadow: none;
  background: #f4ece0;
}
.shop-product .product-main-media::after { content: none; }
.shop-product .product-main-media .product-main-img {
  position: absolute;
  inset: 0;
  max-block-size: 100%;
  padding: inherit;
  border: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  transform: none;
  cursor: default;
}
.shop-product .product-gallery:has(.product-main-img[hidden]) .product-image-zoom { visibility: hidden; }
.shop-product .product-gallery-tools { display: flex; align-items: start; justify-content: end; flex-wrap: wrap; gap: 8px 12px; }
.shop-product .product-image-zoom { position: static; min-block-size: 44px; border-radius: 9px; padding: 8px 13px; color: #263b36; background: #fffdf9; border: 1px solid #aaa196; box-shadow: none; }
.shop-product .product-image-nav { position: static; border-radius: 9px; box-shadow: none; transform: none; }
.shop-product .product-image-nav:hover { transform: none; }
.shop-product .product-photo-count { position: static; align-self: center; color: var(--shop-muted); background: transparent; }
.shop-product .product-gallery .product-thumbs { justify-content: start; padding: 0; margin: 0 auto 0 0; background: transparent; border: 0; box-shadow: none; }
.shop-product .product-thumb img { object-fit: contain; }
.shop-product .product-info-pro { position: static; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0; }
.shop-product .product-info-pro h1 { font-size: clamp(2rem, 3.5vw, 4rem); color: var(--shop-teal); }
.shop-product .product-meta-line { justify-content: flex-start; gap: 8px 14px; margin-bottom: 11px; }
.shop-product .product-cat { color: var(--shop-teal); text-transform: none; letter-spacing: 0; padding: 0; background: transparent; }
.shop-product .product-desc { max-inline-size: 54ch; margin-block: 12px 17px; color: var(--shop-muted); }
.shop-product .product-purchase-card {
  padding: clamp(14px, 2vw, 25px);
  border: 1px solid var(--shop-border);
  border-radius: 17px;
  background: #fffdf9;
  box-shadow: none;
}
.shop-product .product-option-group { padding: 0; margin: 0 0 17px; border: 0; min-inline-size: 0; }
.shop-product .product-option-group legend { padding: 0; margin-bottom: 7px; font-weight: 750; color: var(--shop-teal); }
.shop-product .product-size-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 8px; }
.shop-product .product-size-option { min-width: 0; padding: 0; }
.shop-product .product-size-option > span { min-block-size: 48px; padding: 10px; border-radius: 8px; flex-wrap: wrap; }
.shop-product .product-size-option strong, .shop-product .product-size-option small { font-size: .91rem; }
.shop-product .product-size-option input:checked + span { border: 2px solid #a84c2e; padding: 9px; background: #fff1e6; box-shadow: none; }
.shop-product .product-size-option input:focus-visible + span, .shop-product .product-addon-option:has(input:focus-visible) { outline: 3px solid #146267; outline-offset: 3px; }
.shop-product .product-addon-option { border-radius: 8px; min-block-size: 48px; padding: 9px 11px; background: #fff; }
.shop-product .product-addon-option > b { color: var(--shop-rust); font-size: .91rem; }
.shop-product .product-purchase-meta { display: flex; flex-wrap: wrap; gap: 9px 17px; justify-content: space-between; align-items: end; }
.shop-product .product-qty-row { display: grid; gap: 5px; margin: 0; }
.shop-product .qty-btn { min-width: 39px; min-height: 40px; }
.shop-product .qty-btn:disabled { opacity: .52; cursor: default; }
.shop-product .product-price-line { display: flex; flex-wrap: wrap; align-items: end; justify-content: end; gap: 7px 15px; padding: 0; margin: 0; border: 0; text-align: end; }
.shop-product .product-price-line span { display: block; color: var(--shop-muted); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.shop-product .product-configured-price { flex-wrap: wrap; }
.shop-product .product-configured-price strong { color: var(--shop-rust); font-family: inherit; font-size: clamp(1.45rem, 2.2vw, 2.1rem); font-variant-numeric: tabular-nums; }
.shop-product .product-configured-price del { color: var(--shop-muted); font-size: .85rem; }
.shop-product #productSelectionSummary { margin: 10px 0 0; color: var(--shop-muted); font-size: .84rem; }
.shop-product .product-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin: 16px 0 5px; }
.shop-product .product-actions > button { min-block-size: 50px; padding: 10px; justify-content: center; white-space: normal; line-height: 1.25; margin: 0; box-shadow: none; }
.shop-product .product-add-button { background: var(--shop-rust); color: #fff; border: 1px solid var(--shop-rust); }
.shop-product .product-add-button:hover:not(:disabled) { background: #833318; transform: none; }
.shop-product .product-buy-now { background: #fffdf9; color: var(--shop-teal); border: 1px solid #94a9a4; }
.shop-product .product-bundle-button { display: block; margin: 0; width: max-content; max-width: 100%; background: transparent; border: 0; box-shadow: none; min-block-size: 43px; color: var(--shop-teal); text-align: start; text-decoration: underline; text-underline-offset: .2em; font-weight: 650; }
.shop-product .product-checkout-note { margin: 0; text-align: start; color: var(--shop-muted); }
.shop-product .product-details-grid { margin: var(--shop-gap) 0 0; }
.shop-product .product-detail-card { padding: clamp(16px,2vw,26px); background: #fffdf9; border: 1px solid var(--shop-border); border-radius: 15px; box-shadow: none; }
.shop-product .product-detail-card h2 { color: var(--shop-teal); margin-bottom: 12px; }
.shop-product .product-detail-card p { color: var(--shop-muted); margin: 0 0 8px; }
.shop-product .product-detail-card p:last-child { margin-bottom: 0; }
.shop-product .product-included-card ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 14px; margin: 0; }
.shop-product .product-included-card li { min-block-size: 0; padding: 6px 5px 6px 25px; border: 0; border-radius: 0; background: transparent; color: var(--shop-ink); font-weight: 550; }
.shop-product .product-included-card li::before { left: 0; top: .55em; }
.shop-product .product-facts { margin: 0; display: grid; gap: 7px; }
.shop-product .product-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 7px 13px; }
.shop-product .product-facts dt { color: var(--shop-muted); }
.shop-product .product-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.shop-product .product-related { margin-top: clamp(28px,4vw,54px); }
.shop-product .product-related h2 { margin-bottom: 15px; color: var(--shop-teal); }
.shop-product .product-related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: var(--shop-gap); }

dialog.product-image-lightbox {
  position: fixed;
  inset: 0;
  margin: 0;
  border: 0;
  padding: 56px 20px 24px;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: #242321;
}
dialog.product-image-lightbox[open] { display: grid; place-items: center; }
dialog.product-image-lightbox > img { max-inline-size: min(100%, 1200px); max-block-size: calc(100dvh - 80px); object-fit: contain; }
.shop-product-admin-facts label { display: grid; gap: 5px; min-width: 0; }
.shop-product-admin-facts .form-row > label { flex: 1; }
.shop-product-admin-facts :is(input:not([type=checkbox]),select) { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.shop-product-admin-facts fieldset { border: 0; margin-block: 12px; }
.shop-product-admin-facts fieldset label { display: inline-flex; align-items: center; margin-inline-end: 12px; }
#aKitIncludesList .admin-repeat-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; }
#aKitIncludesList label { min-width: 0; font-weight: 650; }
#aKitIncludeReview { margin-block: 0 10px; }
#aKitIncludeReview summary { cursor: pointer; color: #145458; }
#aKitIncludeReview ul { padding-inline-start: 1.1em; }
#aKitIncludeReview label { margin-top: 7px; }

@media (min-width: 1700px) {
  .shop-page #kitsGrid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width: 1220px) {
  .shop-page #kitsGrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .shop-page .catalog-layout { grid-template-columns: minmax(0,1fr); }
  .shop-page .catalog-sidebar { inset: 0 auto 0 0; max-block-size: none; height: 100dvh; visibility: hidden; padding: calc(20px + env(safe-area-inset-top)) 19px calc(20px + env(safe-area-inset-bottom)); border-radius: 0; }
  .shop-page .catalog-sidebar.open { visibility: visible; }
  .shop-page .catalog-sidebar-head { position: static; margin: 0 0 12px; padding: 0; border: 0; background: none; }
  .shop-page .catalog-filter-toggle { min-width: 76px; width: auto; padding: 0 9px; align-self: end; }
}
@media (max-width: 820px) {
  .shop-product :is(.product-layout-pro,.product-details-grid) { grid-template-columns: minmax(0,1fr); }
  .shop-product .product-gallery-pro { max-inline-size: 620px; margin-inline: auto; }
  .shop-product .product-main-media { max-block-size: 660px; }
  .shop-product .product-related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.arty-mobile-product-ready #page-product.active { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 620px) {
  .shop-page #kitsGrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-intro { padding-top: 3px; }
  .catalog-intro a { font-size: .88rem; }
  .shop-page .catalog-toolbar { grid-template-columns: minmax(0,1fr); }
  .shop-page .catalog-toolbar-actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; }
  .shop-page .catalog-toolbar select { min-inline-size: 0; }
  .shop-product .product-included-card ul, #aKitIncludesList .admin-repeat-row { grid-template-columns: 1fr; }
  .shop-product .product-back { margin-bottom: 8px; }
  .shop-product .qty-btn { min-width: 44px; min-height: 44px; }
  .shop-product .product-details-grid { margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-page .catalog-kit-card, .shop-page .catalog-sidebar { transition: none; }
}
