/* Card controls. Product cards clip overflow, so let them grow to fit. */
ul.products li.product { overflow: visible; height: auto; }
.pd-qa { margin: 10px 12px 14px; text-align: center; }
.pd-qa-sizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 8px; }
.pd-qa .pd-qa-size { padding: 6px 10px !important; border: 1px solid rgba(255, 255, 255, .45) !important; border-radius: 6px !important; background: transparent !important; color: #fff !important; font-size: 13px !important; line-height: 1.2 !important; box-shadow: none !important; cursor: pointer; }
.pd-qa .pd-qa-size[aria-checked="true"] { border-color: #fff !important; background: #d32f2f !important; box-shadow: 0 0 0 2px #d32f2f !important; font-weight: 700 !important; }
.pd-qa-add { width: 100%; padding: 10px 14px; border: 0; border-radius: 8px; background: #d32f2f; color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; }
.pd-qa-add.loading { opacity: .6; cursor: progress; }
.pd-qa-msg { min-height: 1.4em; margin-top: 6px; font-size: 13px; }
.pd-qa-view { margin-left: 6px; text-decoration: underline; }

/* Quick View: the window was sized to the photo and clipped the size buttons and Add to Cart. */
#ast-quick-view-content,
#ast-quick-view-content .product,
#ast-quick-view-content .summary.entry-summary { height: auto !important; max-height: 85vh !important; }
#ast-quick-view-content .summary.entry-summary { overflow-y: auto !important; }

/* Side cart: the page behind stays put and the cart scrolls on its own. */
html.pd-cart-open,
html.pd-cart-open body { overflow: hidden !important; }
html.pd-cart-open .elementor-menu-cart__main { overflow-y: auto !important; overscroll-behavior: contain; }
.pd-cart-hide { display: none !important; }

/* Quick View: keep the Add to Cart label on one line inside its pill. */
#ast-quick-view-content .single_add_to_cart_button { white-space: nowrap !important; height: auto !important; width: auto !important; max-width: 100% !important; padding: 12px 20px !important; font-size: 15px !important; letter-spacing: .03em !important; line-height: 1.2 !important; }

/* Quick View is replaced by the size buttons on the card, so whoever sees the
   new card controls no longer gets the Quick View overlay. */
.ast-quick-view-text,
.ast-quick-view-button,
#ast-quick-view-modal { display: none !important; }
