/* RescuePro storefront. Scoped to commerce pages; no seller-specific layout or data. */
.rp-store {
    --rp-navy: #073c5c;
    --rp-orange: #f19001;
    --rp-ink: #223642;
    --rp-muted: #596873;
    --rp-line: #dce3e7;
    --rp-surface: #f5f7f8;
    color: var(--rp-ink);
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
.rp-store .rp-shop-shell { width: 100%; max-width: 1240px; box-sizing: border-box; margin: 0 auto; padding: 0 28px 64px; }
.rp-store .rp-shop-nav { width: 100%; }
.rp-store .rp-shop-links a { white-space: nowrap; }
/* Legacy theme rules mark generic .product dimensions as !important. */
.rp-store.woocommerce ul.products li.product, .rp-store .woocommerce ul.products li.product { width: auto !important; max-width: none !important; height: auto !important; background: #fff !important; float: none !important; }
.rp-store.woocommerce .rp-product-page div.product { width: 100% !important; max-width: none !important; height: auto !important; background: #fff !important; }
.rp-store.woocommerce button.single_add_to_cart_button { background: var(--rp-navy) !important; margin: 0 !important; }
.rp-store ul.products bdi { font-size: inherit; }
.rp-store .rp-shop-shell *, .rp-store .woocommerce * { box-sizing: border-box; }
.rp-store .rp-shop-shell a { color: var(--rp-navy); }
.rp-store :where(a, button, input, select, summary, textarea):focus-visible { outline: 3px solid var(--rp-orange); outline-offset: 3px; }
.rp-store .rp-shop-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; margin: 0 0 24px; border-bottom: 1px solid var(--rp-line); font-size: 14px; }
.rp-store .rp-shop-nav a { color: var(--rp-navy); text-decoration: none; font-weight: 600; }
.rp-store .rp-shop-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rp-store .rp-shop-nav .rp-shop-home { font-size: 20px; }
.rp-store .rp-shop-links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.rp-store .rp-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 7px; margin-left: 5px; border-radius: 4px; background: var(--rp-navy); color: #fff; font-size: 12px; }
.rp-store .woocommerce-breadcrumb { margin: 0 0 26px; color: var(--rp-muted); font-size: 12px; line-height: 1.6; }
.rp-store .woocommerce-breadcrumb a { color: var(--rp-muted); }
.rp-store .rp-catalog-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,380px); align-items: center; gap: 32px; margin-bottom: 34px; }
.rp-store .rp-eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--rp-muted); }
.rp-store .rp-catalog-heading h1 { color: var(--rp-navy); margin: 0; font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.rp-store .rp-catalog-heading .term-description, .rp-store .rp-catalog-heading .page-description { margin-top: 12px; font-size: 14px; color: var(--rp-muted); }
.rp-store .rp-catalog-heading p:last-child { margin-bottom: 0; }
.rp-store .rp-product-search > label { display: block; margin-bottom: 6px; color: var(--rp-ink); font-size: 13px; font-weight: 600; }
.rp-store .rp-product-search > div { display: flex; gap: 8px; }
.rp-store .rp-product-search input[type=search] { width: 100%; min-width: 0; }
.rp-store .rp-catalog-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 34px; }
.rp-store .rp-catalog-sidebar { min-width: 0; }
.rp-store .rp-filter-panel { border-top: 2px solid var(--rp-navy); }
.rp-store .rp-filter-panel > summary { display: none; cursor: pointer; padding: 16px; font-weight: 600; color: var(--rp-navy); }
.rp-store .rp-filter-content { padding-top: 22px; }
.rp-store .rp-filter-content h2 { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--rp-navy); }
.rp-store .rp-categories, .rp-store .rp-categories ul { list-style: none; padding: 0; margin: 0; }
.rp-store .rp-categories li { margin: 0; padding: 0; font-size: 13px; line-height: 1.5; }
.rp-store .rp-categories li::before { display: none; }
.rp-store .rp-categories a { display: block; padding: 9px 10px; margin: 2px 0; border-left: 3px solid transparent; text-decoration: none; overflow-wrap: anywhere; }
.rp-store .rp-categories a:hover { background: var(--rp-surface); }
.rp-store .rp-categories .current-cat > a, .rp-store .rp-categories a[aria-current=page] { background: #edf3f6; border-left-color: var(--rp-orange); font-weight: 600; }
.rp-store .rp-categories ul { padding-left: 12px; }
.rp-store .rp-filters { border-top: 1px solid var(--rp-line); padding-top: 22px; margin-top: 22px; }
.rp-store .rp-filters fieldset { margin: 0; padding: 0; border: 0; }
.rp-store .rp-filters legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.rp-store .rp-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-store .rp-price-fields label { font-size: 12px; color: var(--rp-muted); }
.rp-store .rp-price-fields input { display: block; width: 100%; margin-top: 4px; }
.rp-store .rp-stock-filter { display: flex; align-items: center; gap: 8px; margin: 18px 0; font-size: 13px; }
.rp-store input[type=checkbox], .rp-store input[type=radio] { accent-color: var(--rp-navy); }
.rp-store .rp-filters button { width: 100%; }
.rp-store .rp-shop-shell :is(input[type=search], input[type=number], select),
.rp-store .woocommerce :is(input.input-text, textarea, select) { border: 1px solid #b7c3ca; border-radius: 4px; background: #fff; color: var(--rp-ink); min-height: 44px; padding: 10px 12px; font: inherit; font-size: 14px; box-shadow: none; max-width: 100%; }
.rp-store .rp-shop-shell button, .rp-store.woocommerce a.button, .rp-store .woocommerce :is(a.button,button.button,input.button), .rp-store.woocommerce button.button {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px; height: auto; width: auto; border: 1px solid var(--rp-navy); border-radius: 4px; background: var(--rp-navy); color: #fff; padding: 11px 18px; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; box-shadow: none; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.rp-store .rp-shop-shell button:hover, .rp-store.woocommerce a.button:hover, .rp-store .woocommerce :is(a.button,button.button,input.button):hover, .rp-store.woocommerce button.button:hover { background: #0c4e74; border-color: #0c4e74; color: #fff; }
.rp-store button:disabled, .rp-store .woocommerce button.button:disabled { opacity: .5; cursor: not-allowed; }
.rp-store .rp-results-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; margin-bottom: 20px; }
.rp-store .rp-results-toolbar .woocommerce-notices-wrapper { flex-basis: 100%; }
.rp-store .rp-results-toolbar .woocommerce-notices-wrapper:empty { display: none; }
.rp-store .rp-results-toolbar .woocommerce-result-count { float: none; margin: 0; color: var(--rp-muted); font-size: 13px; }
.rp-store .rp-results-toolbar .woocommerce-ordering { float: none; margin: 0; }
.rp-store .rp-results-toolbar select { font-size: 12px; max-width: 250px; padding-right: 25px; }
.rp-store .rp-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.rp-store .rp-active-filters a { display: inline-flex; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid var(--rp-line); border-radius: 4px; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.rp-store .rp-active-filters a:hover { background: var(--rp-surface); }
.rp-store .rp-active-filters .rp-clear-filters { border-color: transparent; text-decoration: underline; }
.rp-store.woocommerce ul.products, .rp-store .woocommerce ul.products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; padding: 0; margin: 0 0 30px; }
.rp-store.woocommerce ul.products::before, .rp-store.woocommerce ul.products::after, .rp-store .woocommerce ul.products::before, .rp-store .woocommerce ul.products::after { display: none; }
.rp-store.woocommerce ul.products li.product, .rp-store .woocommerce ul.products li.product { display: flex; flex-direction: column; float: none; width: auto; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--rp-line); border-radius: 5px; background: #fff; text-align: left; box-shadow: none; transition: none; }
.rp-store.woocommerce ul.products li.product:hover, .rp-store .woocommerce ul.products li.product:hover { border-color: #91a7b5; transform: none; }
.rp-store ul.products li.product .woocommerce-loop-product__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.rp-store.woocommerce ul.products li.product a img, .rp-store .woocommerce ul.products li.product a img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 0 16px; border-radius: 0; box-shadow: none; }
.rp-store.woocommerce ul.products li.product .woocommerce-loop-product__title, .rp-store .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; margin: 0 0 12px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--rp-navy); overflow-wrap: anywhere; }
.rp-store.woocommerce ul.products li.product .price, .rp-store .woocommerce ul.products li.product .price { display: block; margin: auto 0 6px; padding-top: 6px; color: var(--rp-navy); font-size: 18px; font-weight: 600; line-height: 1.5; }
.rp-store ul.products li.product .price del { color: var(--rp-muted); font-size: 13px; font-weight: 400; }
.rp-store ul.products li.product .price ins { text-decoration: none; }
.rp-store .rp-stock { display: block; margin-bottom: 12px; color: #38634b; font-size: 11px; }
.rp-store .rp-stock--outofstock, .rp-store .rp-stock--onbackorder { color: var(--rp-muted); }
.rp-store.woocommerce ul.products li.product .button, .rp-store .woocommerce ul.products li.product .button { margin: 0; width: 100%; }
.rp-store ul.products li.product .added_to_cart { padding: 8px 0 0; font-size: 12px; text-align: center; }
.rp-store.woocommerce span.onsale { min-height: auto; min-width: auto; padding: 4px 9px; top: 10px; right: 10px; left: auto; margin: 0; background: var(--rp-orange); color: var(--rp-navy); border-radius: 3px; font-size: 12px; line-height: 1.5; }
.rp-store.woocommerce nav.woocommerce-pagination { margin-top: 30px; }
.rp-store.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.rp-store.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.rp-store.woocommerce nav.woocommerce-pagination ul li :is(a,span) { min-width: 44px; min-height: 44px; padding: 14px; border: 1px solid var(--rp-line); border-radius: 4px; color: var(--rp-navy); }
.rp-store.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--rp-navy); color: #fff; border-color: var(--rp-navy); }
.rp-store .rp-empty-results { border: 1px solid var(--rp-line); background: var(--rp-surface); padding: 32px; border-radius: 5px; }
.rp-store .rp-empty-results h2 { font-size: 22px; }
.rp-store .rp-empty-results .woocommerce-info { margin-top: 20px; }
/* Product detail retains native gallery, variations, notices and extension hooks. */
.rp-store.woocommerce .rp-product-page div.product { display: flow-root; }
.rp-store.woocommerce .rp-product-page div.product div.images { width: 48%; border: 1px solid var(--rp-line); border-radius: 5px; padding: 20px; }
.rp-store.woocommerce .rp-product-page div.product div.summary { width: 46%; margin: 0 0 40px; }
.rp-store.woocommerce .rp-product-page div.product .product_title { margin: 0 0 18px; color: var(--rp-navy); font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.rp-store.woocommerce .rp-product-page div.product p.price { color: var(--rp-navy); font-size: 26px; font-weight: 600; margin: 0 0 20px; }
.rp-store .woocommerce-product-details__short-description { font-size: 15px; color: var(--rp-ink); }
.rp-store.woocommerce .rp-product-page div.product form.cart { margin: 22px 0; }
.rp-store.woocommerce .rp-product-page div.product form.cart:not(.variations_form):not(.grouped_form) { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rp-store.woocommerce .quantity .qty { width: 76px; min-height: 44px; border: 1px solid #b7c3ca; border-radius: 4px; padding: 9px; font-size: 16px; }
.rp-store .product_meta { padding-top: 20px; border-top: 1px solid var(--rp-line); font-size: 12px; color: var(--rp-muted); }
.rp-store .product_meta > span { display: block; margin-bottom: 5px; }
.rp-store .rp-purchase-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 12px; }
.rp-store .woocommerce-product-gallery__image img { max-height: 520px; object-fit: contain; }
.rp-store.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rp-store.woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 54px; width: 54px; border: 1px solid var(--rp-line); }
.rp-store .rp-checkout-title { margin: 0 0 24px; color: var(--rp-navy); font-size: 28px; line-height: 1.3; }
.rp-store.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 32px; }
.rp-store.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; display: flex; flex-wrap: wrap; }
.rp-store.woocommerce div.product .woocommerce-tabs ul.tabs::before, .rp-store.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .rp-store.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.rp-store.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 18px 0 0; padding: 0; border: 0; border-bottom: 3px solid transparent; background: none; border-radius: 0; }
.rp-store.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--rp-orange); }
.rp-store.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; color: var(--rp-navy); font-size: 14px; }
.rp-store.woocommerce div.product .woocommerce-tabs .panel { padding: 10px 0 24px; font-size: 15px; line-height: 1.8; }
.rp-store .rp-product-page :is(.panel,.related,.up-sells) h2 { font-size: 22px; color: var(--rp-navy); }
.rp-store .rp-product-page .related { border-top: 1px solid var(--rp-line); padding-top: 30px; }
/* Cart and checkout use the current WooCommerce forms and integration containers. */
.rp-store :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) { border-top-color: var(--rp-navy); background: var(--rp-surface); color: var(--rp-ink); font-size: 14px; }
.rp-store .woocommerce table.shop_table { border: 1px solid var(--rp-line); border-radius: 5px; border-collapse: separate; font-size: 14px; }
.rp-store .woocommerce table.shop_table th { background: var(--rp-surface); color: var(--rp-navy); font-weight: 600; padding: 16px 12px; }
.rp-store .woocommerce table.shop_table td { padding: 16px 12px; border-color: var(--rp-line); }
.rp-store .woocommerce table.shop_table td.product-thumbnail img { width: 76px; height: 76px; object-fit: contain; }
.rp-store .woocommerce table.shop_table .product-name a { color: var(--rp-navy); font-weight: 500; }
.rp-store .woocommerce .cart-collaterals { margin-top: 32px; }
.rp-store .woocommerce .cart-collaterals .cart_totals { padding: 24px; background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 5px; }
.rp-store .woocommerce :is(.cart_totals,.woocommerce-billing-fields,.woocommerce-shipping-fields,.woocommerce-additional-fields) h3,
.rp-store .woocommerce .cart_totals h2, .rp-store #order_review_heading { color: var(--rp-navy); font-size: 22px; line-height: 1.4; }
.rp-store .woocommerce .cart_totals .checkout-button { width: 100%; font-size: 15px; }
.rp-store .woocommerce form .form-row label { color: var(--rp-ink); font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 6px; }
.rp-store .woocommerce form .form-row { margin-bottom: 16px; padding: 0; }
.rp-store .woocommerce form .form-row input.input-text { min-height: 46px; }
.rp-store .select2-container .select2-selection--single { min-height: 46px; border: 1px solid #b7c3ca; border-radius: 4px; padding: 8px 4px; }
.rp-store .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.rp-store .woocommerce form.checkout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 0 36px; align-items: start; }
.rp-store .woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; width: 100%; }
.rp-store .woocommerce form.checkout #customer_details > :is(.col-1,.col-2) { width: 100%; float: none; max-width: none; }
.rp-store .woocommerce form.checkout #order_review_heading { grid-column: 2; margin-top: 0; }
.rp-store .woocommerce form.checkout #order_review { grid-column: 2; min-width: 0; }
.rp-store .woocommerce form.checkout > :not(#customer_details):not(#order_review_heading):not(#order_review) { grid-column: 1 / -1; }
.rp-store .woocommerce #payment { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 5px; }
.rp-store .woocommerce #payment #place_order { width: 100%; font-size: 15px; }
.rp-store .woocommerce .woocommerce-privacy-policy-text { font-size: 12px; color: var(--rp-muted); }
.rp-store .woocommerce .woocommerce-invalid :is(input.input-text,select) { border-color: #b32d2e; }
@media (min-width: 901px) {
    .rp-store .rp-filter-panel:not([open]) > .rp-filter-content { display: block; }
}
@media (max-width: 1000px) {
    .rp-store .rp-catalog-layout { grid-template-columns: 200px minmax(0,1fr); gap: 24px; }
    .rp-store.woocommerce ul.products, .rp-store .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .rp-store .rp-shop-shell { padding: 0 20px 40px; }
    .rp-store .rp-catalog-layout { display: block; }
    .rp-store .rp-catalog-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
    .rp-store .rp-catalog-sidebar { margin-bottom: 22px; }
    .rp-store .rp-filter-panel { border: 1px solid var(--rp-line); border-radius: 4px; }
    .rp-store .rp-filter-panel > summary { display: flex; justify-content: space-between; }
    .rp-store .rp-filter-panel[open] > summary span { transform: rotate(45deg); }
    .rp-store .rp-filter-content { padding: 0 16px 20px; }
    .rp-store .rp-filter-content h2 { display: none; }
    .rp-store .rp-filters { max-width: 420px; }
    .rp-store .woocommerce form.checkout { display: block; }
    .rp-store #order_review_heading { padding-top: 24px; }
}
@media (max-width: 600px) {
    .rp-store .rp-shop-shell { padding-left: 16px; padding-right: 16px; }
    .rp-store .rp-shop-nav { gap: 12px; padding: 14px 0; margin-bottom: 20px; font-size: 12px; }
    .rp-store .rp-shop-links { gap: 14px; }
    .rp-store .rp-shop-nav .rp-shop-home { font-size: 18px; }
    .rp-store .rp-catalog-heading h1 { font-size: 28px; }
    .rp-store .rp-results-toolbar { align-items: flex-start; }
    .rp-store .rp-results-toolbar .woocommerce-ordering, .rp-store .rp-results-toolbar select { width: 100%; max-width: none; }
    .rp-store.woocommerce ul.products, .rp-store .woocommerce ul.products { gap: 12px; }
    .rp-store.woocommerce ul.products li.product, .rp-store .woocommerce ul.products li.product { padding: 12px; }
    .rp-store.woocommerce ul.products li.product .woocommerce-loop-product__title, .rp-store .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; }
    .rp-store.woocommerce ul.products li.product .button, .rp-store .woocommerce ul.products li.product .button { font-size: 12px; padding: 10px 6px; }
    .rp-store.woocommerce .rp-product-page div.product div.images, .rp-store.woocommerce .rp-product-page div.product div.summary { float: none; width: 100%; }
    .rp-store.woocommerce .rp-product-page div.product .product_title { font-size: 26px; }
    .rp-store .woocommerce .cart-collaterals .cart_totals { padding: 16px; }
    .rp-store .woocommerce table.shop_table td { overflow-wrap: anywhere; }
    .rp-store .woocommerce .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
    .rp-store .woocommerce .coupon #coupon_code { width: 100%; }
}
@media (max-width: 359px) {
    .rp-store.woocommerce ul.products, .rp-store .woocommerce ul.products { grid-template-columns: 1fr; }
    .rp-store .rp-shop-links { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .rp-store .rp-shop-shell *, .rp-store .woocommerce * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
