/* Uniform catalog cards; do not clamp the full title in the product form. */
body .product-small.col { min-width: 0 !important; }
body .product-small.col > .col-inner { height: 100%; min-width: 0 !important; display: flex; flex-direction: column; }
body .product-small.box { display: flex; flex-direction: column; width: 100%; min-width: 0 !important; height: 100%; }
body .product-small.box > .box-image { width: 100%; flex: 0 0 auto; aspect-ratio: 1 / 1; overflow: hidden; }
body .product-small.box .box-image > div:first-child { height: 100%; }
body .product-small.box .box-image > div:first-child > a { display: block; height: 100%; }
body .product-small.box .box-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease, opacity .35s ease; }
body .product-small.box > .box-text { display: flex; flex: 1 1 auto; flex-direction: column; width: 100%; min-width: 0; padding: 14px 14px 18px; }
body .product-small.box .title-wrapper { min-width: 0; width: 100%; }
body .product-small.box .box-text :is(.name, .product-title) {
  display: block !important; width: 100%; min-width: 0; min-height: 1.4em !important; height: 1.4em !important; max-height: 1.4em !important;
  margin: 0 0 8px !important; padding: 0; font-size: 16px !important; line-height: 1.4 !important;
  white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; -webkit-line-clamp: unset !important;
}
body .product-small.box .box-text :is(.name, .product-title) > a {
  display: block !important; max-width: 100%; overflow: hidden !important; white-space: nowrap !important; text-overflow: ellipsis !important; line-height: inherit;
}
body .product-small.box .price-wrapper { min-height: 1.5em; margin-bottom: 12px; }
body .product-small .quick-view,
body .product-small .box-text .add-to-cart-button { display: none !important; }
body .product-small.box .box-text .hd-choose-options {
  display: flex !important; align-items: center; justify-content: center; flex: 0 0 auto; width: 100% !important;
  min-height: 44px; margin: auto 0 0 !important; padding: 11px 10px; border: 1px solid #2F3B2F; border-radius: 7px;
  background: #2F3B2F; color: #fff !important; font-family: inherit; font-size: 16px; font-weight: 700;
  text-transform: none; letter-spacing: .02em; line-height: 1.35; white-space: normal; text-decoration: none; box-sizing: border-box;
}
body .product-small.box .box-text .hd-choose-options:hover { background: #243024; }
body .product-small.box .box-text .hd-choose-options:focus-visible { outline: 2px solid #2F3B2F !important; outline-offset: 3px; }
@media (hover: hover) {
  body .product-small.box:hover .box-image img { transform: scale(1.04); }
  body .product-small.box:hover .box-image img.back-image { transform: scale(1.04) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .product-small.box .box-image img { transition: none !important; }
  body .product-small.box:hover .box-image img { transform: none !important; }
}
@media (max-width: 549px) {
  body .product-small.box > .box-text { padding: 10px 8px 12px; }
  body .product-small.box .box-text :is(.name, .product-title) { font-size: 14px !important; }
  body .product-small.box .box-text .hd-choose-options { font-size: 14px; padding-inline: 6px; }
}

/* Native dialog handles focus containment and background inertness. */
.hd-options-dialog:not([open]) { display: none !important; }
.hd-options-dialog[open] {
  display: flex !important; flex-direction: column; position: fixed; inset: 0;
  width: min(960px, calc(100vw - 48px)); max-width: none; height: min(680px, calc(100vh - 64px)); height: min(680px, calc(100dvh - 64px)); max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 14px; background: #fff; color: #2F3B2F;
  overflow: hidden; box-shadow: 0 20px 80px rgb(0 0 0 / 25%);
}
.hd-options-dialog::backdrop { background: rgb(0 0 0 / 50%); }
.hd-options-bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 12px; padding: 6px 12px 6px 20px; border-bottom: 1px solid #eef0ee; }
.hd-options-full-page { color: #2F3B2F; font-size: 13px; text-decoration: underline; }
.hd-options-dialog .hd-options-close {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 40px;
  margin: 0; padding: 0; border: 1px solid #e5e8e5; border-radius: 50%; background: #fff; color: #2F3B2F; font-size: 28px; font-weight: 400; line-height: 1;
}
.hd-options-dialog :is(a,button):focus-visible { outline: 2px solid #2F3B2F !important; outline-offset: 2px; }
.hd-options-status { margin: 0; padding: 10px 20px; font-size: 14px; }
.hd-options-status[hidden] { display: none !important; }
.hd-options-loader[hidden] { display: none !important; }
.hd-options-loader { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; overflow: hidden; background: #f7f9f6; cursor: progress; }
.hd-options-skeleton { position: absolute; inset: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; opacity: .85; }
.hd-skeleton-image, .hd-skeleton-details > i, .hd-skeleton-pills > b { display: block; position: relative; overflow: hidden; border-radius: 10px; background: #e2e8df; }
.hd-skeleton-image { aspect-ratio: 1; width: 100%; max-height: 100%; }
.hd-skeleton-details { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.hd-skeleton-details > i { height: 24px; width: 88%; }
.hd-skeleton-details > i:nth-child(2) { width: 65%; }
.hd-skeleton-details > i:nth-child(3) { width: 35%; height: 32px; margin-block: 10px; }
.hd-skeleton-details > i:last-child { width: 100%; height: 48px; margin-top: 12px; }
.hd-skeleton-pills { display: flex; gap: 8px; }
.hd-skeleton-pills > b { flex: 1; height: 42px; border-radius: 999px; }
.hd-options-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 25%, rgb(255 255 255 / 55%) 48%, transparent 70%); transform: translateX(-100%); animation: hdOptionsShimmer 1.6s ease-in-out infinite; pointer-events: none; }
.hd-options-spinner { position: relative; width: 42px; height: 42px; border: 3px solid #ced8c9; border-top-color: #2F3B2F; border-radius: 50%; background: transparent; animation: hdOptionsSpin .75s linear infinite; box-shadow: 0 0 0 12px rgb(247 249 246 / 80%); }
.hd-options-loader-overlay { background: rgb(241 245 238 / 68%); }
.hd-options-loader-overlay .hd-options-skeleton { display: none; }
.hd-loader-accessible { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
@keyframes hdOptionsSpin { to { transform: rotate(360deg); } }
@keyframes hdOptionsShimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .hd-options-spinner, .hd-options-skeleton::after { animation: none !important; }
  .hd-options-skeleton::after { display: none; }
}
@media (max-width: 749px) {
  .hd-options-skeleton { grid-template-columns: 1fr; gap: 18px; inset: 16px; }
  .hd-skeleton-image { max-height: 230px; width: min(100%, 260px); justify-self: center; }
  .hd-skeleton-details { gap: 10px; }
}
.hd-options-frame-container { position: relative; display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.hd-options-iframe { display: block; width: 100%; height: 100%; border: 0; flex: 1 1 auto; background: #fff; }
.hd-options-iframe.hd-options-awaiting { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.hd-options-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 24px; width: 100%; padding: 20px; overflow: auto; background: #fff; }
.hd-options-preview[hidden] { display: none !important; }
.hd-options-preview-image { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 8px; }
.hd-options-preview h2 { font-family: inherit; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.3; color: #2F3B2F; margin: 0 0 18px; overflow-wrap: anywhere; }
.hd-options-preview .price { display: block; color: #2F3B2F; font-size: 24px; font-weight: 700; }
.hd-options-preview .price del { font-size: 18px; opacity: .65; margin-right: 8px; }
@media (max-width: 549px) {
  .hd-options-dialog[open] { width: calc(100vw - 20px); height: calc(100vh - 40px); height: calc(100dvh - 40px); border-radius: 10px; }
  .hd-options-preview { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
}

/* Isolated product document: full native WCPA assets, no site header/upsells. */
body.huntdad-options-frame { --hd-control-height: 48px; --hd-quantity-width: 112px; padding: 0 !important; margin: 0 !important; background: #fff; }
body.huntdad-options-frame #wrapper, body.huntdad-options-frame #main { background: #fff; }
body.huntdad-options-frame .product-main { padding: 20px !important; }
body.huntdad-options-frame .product-main > .row { display: flex; flex-wrap: wrap; align-items: flex-start; max-width: none; }
body.huntdad-options-frame .product-main > .row > .col { flex: 0 0 50%; width: 50%; max-width: 50%; min-width: 0; padding: 0 12px; }
body.huntdad-options-frame .product-info .product-title { font-size: clamp(20px, 2.6vw, 27px) !important; line-height: 1.3 !important; }
body.huntdad-options-frame .product-info > .price-wrapper .price { font-size: 24px !important; }
body.huntdad-options-frame .product-info .woocommerce-product-details__short-description { font-size: 15px; }
body.huntdad-options-frame .wcpa_wrap :is(.wcpa_field_label, .wcpa_label, .wcpa_field > label) { font-size: 16px !important; }
body.huntdad-options-frame .product-info form.cart .quantity :is(.minus, .plus) { width: 34px !important; flex-basis: 34px; }
body.huntdad-options-frame .product-info form.cart .quantity .qty { width: 44px !important; }
body.huntdad-options-frame .product-info form.cart .quantity :is(.minus, .plus, .qty) { font-size: 18px !important; }
body.huntdad-options-frame .product-info form.cart .single_add_to_cart_button { font-size: 17px !important; padding: 9px 12px !important; }
body.huntdad-options-frame :is(.huntdad-companion-bundle, .huntdad-product-accordion, .sticky-add-to-cart, .related, .upsells) { display: none !important; }
@media (max-width: 749px) {
  body.huntdad-options-frame .product-main { padding: 16px !important; }
  body.huntdad-options-frame .product-main > .row > .col { flex-basis: 100%; width: 100%; max-width: 100%; padding: 0; }
  body.huntdad-options-frame .product-gallery { margin-bottom: 20px; }
}
