/**
 * Shop Page List Style
 */
.woocommerce.ast-woocommerce-related-upsell-list-style ul.products,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products {
  -js-display: flex;
  display: flex;
  flex-wrap: wrap;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product {
  -js-display: flex;
  display: flex;
  padding-bottom: 0;
  /**
				 * Shope page list wrapper
				 */
  /**
				 * Shope page image and sale wrapper
				 */
  /**
				 * No box shadow and no box hover shadow
				 */
  /**
				 * Sale
				 */
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-summary-wrap,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-summary-wrap {
  padding: .8em 1.2em 0;
  flex: 1;
  align-self: center;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap {
  overflow: hidden;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap {
  overflow: initial;
  flex: 1;
  margin-bottom: 0;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-loop-product__link,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .astra-shop-thumbnail-wrap .woocommerce-loop-product__link {
  margin-bottom: 0;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .added_to_cart,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .added_to_cart {
  display: inline-block;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product.box-shadow-0.box-shadow-0-hover,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product.box-shadow-0.box-shadow-0-hover {
  padding-bottom: 0;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product.box-shadow-0.box-shadow-0-hover .astra-shop-summary-wrap,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product.box-shadow-0.box-shadow-0-hover .astra-shop-summary-wrap {
  padding: 0 1.2em 0;
}

.woocommerce.ast-woocommerce-related-upsell-list-style ul.products li.product .onsale,
.woocommerce-page.ast-woocommerce-related-upsell-list-style ul.products li.product .onsale {
  margin: 0;
}


/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */

/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
