/* Scoped to product cards; the existing grids, prices and page typography remain authoritative. */
body .spc-card {
    --spc-orange: #ff5100;
    --spc-ink: #20262d;
    border: 1px solid var(--spc-border, #e9ecef) !important;
    border-radius: var(--spc-radius, 26px) !important;
    background: var(--spc-background, #fff) !important;
    box-shadow: var(--spc-shadow, 0 5px 22px rgba(31, 41, 55, .055)) !important;
    overflow: hidden;
    text-align: left !important;
    height: auto;
    transition: box-shadow .2s ease, border-color .2s ease;
}
body .spc-card:hover { border-color: #ffd7c2 !important; box-shadow: 0 12px 30px rgba(55, 36, 23, .10) !important; }
body .spc-card.spc-standard { display: flex !important; flex-direction: column; padding: var(--spc-padding, 18px) !important; }
body .spc-card .eael-product-wrap { display: flex !important; flex-direction: column; height: 100%; padding: var(--spc-padding, 18px) !important; border: 0 !important; border-radius: inherit !important; background: transparent !important; }
body .spc-card .eael-product-wrap > a:has(img),
body .spc-card > .woocommerce-loop-product__link,
body .spc-card .wc-block-components-product-image { display: block; }
body .spc-card img.attachment-woocommerce_thumbnail,
body .spc-card img.size-woocommerce_thumbnail,
body .spc-card .wc-block-components-product-image img,
body .spc-card .wc-block-grid__product-image img {
    width: 100% !important; height: var(--spc-image-height, 225px) !important; object-fit: contain !important;
    padding: 10px !important; margin: 0 0 16px !important; background: #fff; border-radius: 18px;
}
body .spc-card .woocommerce-loop-product__title,
body .spc-card .eael-product-title h3,
body .spc-card .wc-block-components-product-name {
    color: var(--spc-ink) !important; font-size: var(--spc-title-size, 19px) !important; line-height: 1.3 !important;
    font-weight: 600 !important; text-transform: none !important; margin: 0 0 10px !important;
    min-height: 3.9em; overflow-wrap: anywhere;
}
body .spc-card .eael-product-title a { text-decoration: none; }
body .spc-card .eael-product-price,
body .spc-card .price,
body .spc-card .wc-block-components-product-price { color: var(--spc-price, #d94300) !important; font-size: var(--spc-price-size, 23px) !important; font-weight: 700 !important; line-height: 1.25; margin: 5px 0 14px !important; }
body .spc-card .woocommerce-price-suffix { display: none !important; }
body .spc-card .spc-empty-rating { display: none !important; }
body .spc-card .spc-legacy-stock { display: none !important; }
body .spc-card .onsale { border-radius: 999px !important; padding: 7px 12px !important; min-height: 0; line-height: 1.3; }
body .spc-card .spc-stock { display: var(--spc-stock-display, flex); flex-wrap: wrap; gap: 6px; margin: auto 0 14px; padding-top: 5px; }
body .spc-card .spc-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border-radius: 999px; padding: 6px 9px; background: #f2f4f6; color: #56606b; font: 500 11px/1.35 system-ui, sans-serif; text-transform: none; }
body .spc-card .spc-pill::before { content: ''; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
body .spc-card .spc-own-available { background: #eaf6ef; color: #237141; }
body .spc-card .spc-supplier-available { background: #edf3fd; color: #285e9e; }
body .spc-card .spc-review { background: #fff4e5; color: #82550f; }
body .spc-card .spc-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: auto; }
body .spc-card .spc-actions > a.button,
body .spc-card .spc-actions > button {
    display: flex !important; align-items: center; justify-content: center; gap: 7px;
    flex: 1 1 85px; width: auto !important; min-width: 0 !important; min-height: 46px;
    padding: 10px 12px !important; margin: 0 !important; border: 1px solid var(--spc-orange) !important;
    border-radius: 999px !important; background: var(--spc-orange) !important; color: #fff !important;
    font-size: 15px !important; font-weight: 600; line-height: 1.2 !important; text-align: center; text-transform: none !important; white-space: normal;
}
body .spc-card .spc-actions > a.button:not(.add_to_cart_button) { color: #ba3b00 !important; background: #fff5ef !important; border-color: #ffd9c6 !important; }
body .spc-card .spc-actions > a.button:hover { background: #dd4400 !important; color: #fff !important; }
body .spc-card .spc-quantity { flex: 0 0 91px; display: var(--spc-quantity-display, grid); grid-template-columns: 26px 37px 26px; align-items: stretch; border: 1px solid #e3e7eb; border-radius: 999px; overflow: hidden; background: #f5f7f8; min-height: 46px; }
body .spc-card .spc-quantity button { width: 26px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #39434d !important; font: 20px/1 system-ui, sans-serif; cursor: pointer; }
body .spc-card .spc-quantity button:hover { background: #e6ebef !important; }
body .spc-card .spc-quantity button:disabled { opacity: .35; cursor: default; }
body .spc-card .spc-quantity input { box-sizing: border-box; width: 37px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #20262d !important; text-align: center; font: 600 14px/1 system-ui, sans-serif; appearance: textfield; -moz-appearance: textfield; box-shadow: none; }
body .spc-card .spc-quantity input::-webkit-inner-spin-button,
body .spc-card .spc-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
body .spc-card .spc-actions :focus-visible { outline: 3px solid #94501d !important; outline-offset: -3px; }
body .spc-card .spc-actions .added_to_cart { flex: 1 0 100%; text-align: center; font-size: 13px; color: #a93800; }
@media (max-width: 767px) {
    body .spc-card { border-radius: var(--spc-radius, 20px) !important; }
    body .spc-card.spc-standard, body .spc-card .eael-product-wrap { padding: var(--spc-padding, 12px) !important; }
    body .spc-card img.attachment-woocommerce_thumbnail, body .spc-card img.size-woocommerce_thumbnail,
    body .spc-card .wc-block-components-product-image img, body .spc-card .wc-block-grid__product-image img { height: var(--spc-image-height, 155px) !important; padding: 5px !important; }
    body .spc-card .woocommerce-loop-product__title, body .spc-card .eael-product-title h3,
    body .spc-card .wc-block-components-product-name { font-size: var(--spc-title-size, 16px) !important; }
    body .spc-card .eael-product-price, body .spc-card .price { font-size: var(--spc-price-size, 20px) !important; }
    body .spc-card .spc-pill { font-size: 10px; padding: 5px 8px; }
    body .spc-card .spc-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { body .spc-card { transition: none; } }

/* Override the EAEL button presets while exposing every value in Elementor. */
body .elementor .elementor-element.elementor-widget .products li.product.spc-card .spc-actions > a.button,
body .spc-card.spc-standard .spc-actions > a.button {
    border-radius: var(--spc-button-radius, 999px) !important;
    background: var(--spc-orange, #ff5100) !important;
    border-color: var(--spc-orange, #ff5100) !important;
}
body .elementor .elementor-element.elementor-widget .products li.product.spc-card .spc-actions > a.button:not(.add_to_cart_button) {
    background: #fff5ef !important; color: #ba3b00 !important; border-color: #ffd9c6 !important;
}

/* The custom shop template has ID-scoped presets, so override within the same scope. */
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card {
    padding: var(--spc-padding, 14px) !important;
    border-radius: var(--spc-radius, 26px) !important;
    background: var(--spc-background, #fff) !important;
    border-color: var(--spc-border, #e9ecef) !important;
    box-shadow: var(--spc-shadow, 0 5px 22px rgba(31,41,55,.055)) !important;
}
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card img {
    height: var(--spc-image-height, 205px) !important; width: 100% !important;
    object-fit: contain !important; border: 0 !important; border-radius: 18px !important;
}
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .woocommerce-loop-product__title {
    font-size: var(--spc-title-size, 19px) !important; color: var(--spc-ink, #20262d) !important;
}
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .price {
    color: var(--spc-price, #d94300) !important; font-size: var(--spc-price-size, 23px) !important;
}
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .spc-actions > a.button {
    border-radius: var(--spc-button-radius, 999px) !important;
    background: var(--spc-orange, #ff5100) !important; border-color: var(--spc-orange, #ff5100) !important;
    min-height: 46px !important; padding: 10px 8px !important;
}
body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .spc-actions > a.button:not(.add_to_cart_button) {
    background: #fff5ef !important; color: #ba3b00 !important; border-color: #ffd9c6 !important;
}
@media (max-width: 767px) {
    body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card { padding: var(--spc-padding, 12px) !important; border-radius: var(--spc-radius, 20px) !important; }
    body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card img { height: var(--spc-image-height, 155px) !important; }
    body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .woocommerce-loop-product__title { font-size: var(--spc-title-size, 16px) !important; }
    body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .price { font-size: var(--spc-price-size, 20px) !important; }
}

body #sipter-shop .sipter-products-wrap ul.products li.product.spc-card .woocommerce-loop-product__title {
    height: auto !important; max-height: none !important; overflow: visible !important;
    display: block !important; -webkit-line-clamp: unset !important;
}
